/* ============================================
   PROPERTY FILTER STYLES
   Prestige Group - City & Zone Filters
   ============================================ */

/* Zone Filter Pills - Top Bar */
.zone-filter-container {
    margin: 20px 0 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.zone-filter-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #ffffff;
    border: 2px solid #f2b240;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zone-filter-btn:hover {
    background-color: #f2b240;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 178, 64, 0.4);
}

.zone-filter-btn.active {
    background-color: #f2b240;
    color: #000;
    box-shadow: 0 4px 12px rgba(242, 178, 64, 0.4);
}

/* City Filter Sidebar */
#city-filter-sidebar {
    padding-left: 15px;
    padding-right: 15px;
}

.filter-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
}

.filter-header {
    padding: 15px 20px;
    background: #333;
    color: #fff;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

.filter-body {
    padding: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-checkbox {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-checkbox:hover {
    background: #e9ecef;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    accent-color: #f2b240;
}

#apply-filters {
    background-color: #f2b240;
    border-color: #f2b240;
    color: #000;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#apply-filters:hover {
    background-color: #d9a030;
    border-color: #d9a030;
}

#clear-filters {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear-filters:hover {
    background: #f5f5f5;
}

/* Property Count Display */
.filter-results-count {
    text-align: center;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2e7d32;
}

.filter-results-count i {
    margin-right: 8px;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
    display: none;
}

.no-results-message p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Property Cards Container */
#property-cards-container {
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   NEW CARD DESIGN - Prestige Style
   ============================================ */

/* Card Grid */
#property-grid .sppb-row,
#property-grid .tab-content > div {
    display: flex;
    flex-wrap: wrap;
}

#property-grid .latest-post.sppb-col-sm-4 {
    width: 33.333%;
    padding: 0 12px;
    margin-bottom: 24px;
}

/* Card Container */
.latest-post {
    display: flex;
    flex-direction: column;
}

.latest-post .prop-div {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.latest-post .prop-div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Project Status Badge */
.latest-post .project-status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-post .project-status.new-launch {
    background: #e74c3c;
    color: #fff;
}

.latest-post .project-status.ready-to-move {
    background: #27ae60;
    color: #fff;
}

.latest-post .project-status.under-construction {
    background: #f39c12;
    color: #fff;
}

/* Image Section */
.latest-post .prop-img-div {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.latest-post .prop-img-div img.full-width {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.latest-post .prop-div:hover .prop-img-div img.full-width {
    transform: scale(1.05);
}

/* Project Logo */
.latest-post .project-logo {
    position: absolute;
    bottom: -25px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
}

.latest-post .project-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Content Section */
.latest-post .prop-details {
    flex: 1;
    padding: 15px 12px 12px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

/* Title and Price */
.latest-post .project-title-price {
    margin-bottom: 5px;
  
    border-bottom: 1px solid #eee;
    min-height: 100px;
}

.latest-post .prop-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0px 0 6px 0;
    line-height: 1.3;
    position: static;
    background: none;
    padding: 0;
    height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-post .prop-name span {
    color: #1a1a1a;
}

.latest-post .prop-location {
    font-size: 14px;
    color: #666;
    margin: 0 0 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-post .prop-location i {
    color: #f2b240;
    margin-top: 2px;
    font-size: 10px;
}

.latest-post .prop-price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    position: static;
    background: none;
    padding: 0;
}

.latest-post .prop-price span {
    color: #f2b240;
}

/* Configurations */
.latest-post .project-configurations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    min-height: 50px;
}

.latest-post .config-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 45%;
}

.latest-post .config-icon {
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
}

.latest-post .config-icon i {
    font-size: 12px;
}

.latest-post .config-details h4 {
    font-size: 9px;
    color: #999;
    margin: 0;
    
    letter-spacing: 0.3px;
}

.latest-post .config-details span {
    font-size: 11px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    display: block;
}

/* Contact Buttons */
.latest-post .project-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.latest-post .btn-enquire,
.latest-post .btn-visit {
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    text-decoration: none;
}

.latest-post .btn-enquire {
    background: #f2b240;
    color: #000;
}

.latest-post .btn-enquire:hover {
    background: #d9a030;
}

.latest-post .btn-visit {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.latest-post .btn-visit:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.latest-post .btn-enquire i,
.latest-post .btn-visit i {
    font-size: 10px;
}

/* RERA */
.latest-post .rera {
    font-size: 9px;
    color: #999;
    margin: 8px 0 0 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide old elements */
.latest-post .prop-inner,
.latest-post .prop-title,
.latest-post .prop-desc {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    #property-grid .latest-post.sppb-col-sm-4 {
        width: 50%;
    }
}

@media (max-width: 767px) {
    #property-grid .latest-post.sppb-col-sm-4 {
        width: 100%;
    }

    .latest-post .prop-img-div {
        height: 200px;
    }

    .latest-post .config-item {
        min-width: 100%;
    }
}

/* Hide filtered items */
.latest-post.filtered-out {
    display: none !important;
}

/* Animation for showing/hiding */
.latest-post {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.latest-post.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.latest-post.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet and below */
@media (max-width: 991px) {
    .filter-sidebar {
        position: relative;
        top: 0;
    }

    #city-filter-sidebar {
        margin-bottom: 30px;
    }

    .zone-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Sidebar as slide-out panel on mobile */
    #city-filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 9999;
        background: #fff;
        transition: left 0.3s ease;
        overflow-y: auto;
        margin-bottom: 0;
        padding: 0;
    }

    #city-filter-sidebar.open {
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .filter-sidebar {
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .sidebar-toggle {
        display: block;
    }

    /* Mobile Filter Toggle Button (floating) */
    .mobile-filter-btn {
        position: fixed;
        bottom: 80px;
        right: 15px;
        width: 56px;
        height: 56px;
        background: #f2b240;
        color: #000;
        border: none;
        border-radius: 50%;
        font-size: 22px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-btn:hover {
        background: #d9a030;
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Zone filter pills scroll on mobile */
    .zone-filter-container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        text-align: left;
    }

    .zone-filter-btn {
        padding: 8px 15px;
        font-size: 12px;
        margin: 3px;
    }

    /* Full width property cards container */
    #property-cards-container {
        width: 100% !important;
        float: none !important;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .zone-filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .filter-checkbox {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 768px) {
    .mobile-filter-btn {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}
