:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-light: #e7f1ff;
    --primary-surface: rgba(13, 110, 253, 0.07);
    --bg-light: #f8f9fb;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

.pd-listing-page {
    min-height: 100vh;
    background: #f8fafc;
}

@media (min-width: 992px) {
    .pd-listing-page.container-fluid {
        padding-left: 60px;
        padding-right: 60px;
    }
}

.project-search-hero {
    background: transparent !important;
    border: none !important;
    position: relative;
    padding: 0 !important;
}

.project-search-hero::after {
    display: none;
}

.search-bar-container {
    border: 1px solid var(--border-color);
}

.search-bar-container select:focus,
.search-bar-container input:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    border-color: var(--primary-color);
}

/* -------------------- DUAL COLUMN LAYOUT -------------------- */
.project-list-column {
    display: flex;
    flex-column: gap-4;
}

.project-heading-row {
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

/* -------------------- FILTER PANEL -------------------- */
.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.filter-chip {
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 550;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
}

.filter-chip:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-chip.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* -------------------- PROJECT CARDS -------------------- */
.project-card-new {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    height: 200px;
}

.project-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.project-card-image-section {
    width: 35%;
    position: relative;
    height: 100%;
    background: #e2e8f0;
}

.project-card-image-section a {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-details-section {
    width: 65%;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.project-card-developer {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.project-card-developer i {
    color: #e28743;
}

.project-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
}

.project-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.project-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-card-meta i {
    color: var(--primary-color);
}

.project-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-amenity-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Badges styling */
.project-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-badge-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-rera {
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge-verified {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Actions Section */
.project-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-contact-property {
    height: 44px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-contact-property:not(.is-connected):hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-contact-property.is-connected {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    cursor: default;
}

.project-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.project-card-title a,
.project-card-developer a,
.project-card-actions {
    position: relative;
    z-index: 5;
}

.btn-detail-property {
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-detail-property:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}

/* -------------------- RESPONSIVE SIDEBAR MOBILE -------------------- */
@media (max-width: 991.98px) {
    .project-card-new {
        flex-direction: column;
        height: auto;
    }
    
    .project-card-image-section {
        width: 100%;
        height: 200px;
    }
    
    .project-card-details-section {
        width: 100%;
        padding: 20px;
    }

    .pd-filter-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100%;
        background: #ffffff;
        z-index: 1050;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }
    
    .pd-filter-column.open {
        right: 0;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(3px);
        z-index: 1040;
    }
    
    .filter-overlay.open {
        display: block;
    }
}

/* -------------------- ACTIVE FILTER CHIPS -------------------- */
.active-filter-chip {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    transition: all 0.2s ease;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.active-filter-chip .btn-close {
    filter: none !important;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.active-filter-chip .btn-close:hover {
    opacity: 0.95;
}

/* Override default chip counts look */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.filter-chip.active {
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}
