/* ===================================
   HOME PAGE - EXCLUSIVE PROPERTIES
   2-Column Grid with Info Above Images
   NO ANIMATIONS - Pure static display
   =================================== */

/* Override default listings section */
section.listings {
    padding: 80px 0;
    background: #ffffff;
}

/* Disable ALL animations globally for this section */
section.listings *,
section.listings *::before,
section.listings *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Force full opacity - remove white overlay */
section.listings .listing-card,
section.listings .listing-card.fade-in-card,
section.listings .listing-image-wrapper,
section.listings .listing-card img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure images are always visible */
section.listings .listing-card::before,
section.listings .listing-card::after,
section.listings .listing-image-wrapper::before,
section.listings .listing-image-wrapper::after {
    display: none !important;
}

/* Section headers */
section.listings .section-tag {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
    text-align: left;
}

section.listings .section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 48px;
    text-align: left;
}

/* Keep container normal width */
section.listings .container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

/* Asymmetric grid: 2 on top, 3 on bottom */
section.listings .listings-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px 24px;
    margin-top: 48px;
    margin-bottom: 48px;
}

/* First 2 cards span 3 columns each (2 cards total) */
section.listings .listing-card:nth-child(1),
section.listings .listing-card:nth-child(2) {
    grid-column: span 3;
}

/* Next 3 cards span 2 columns each (3 cards total) */
section.listings .listing-card:nth-child(3),
section.listings .listing-card:nth-child(4),
section.listings .listing-card:nth-child(5) {
    grid-column: span 2;
}

/* Property cards - info above image */
section.listings .listing-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: visible;
    text-decoration: none;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Remove ALL hover effects */
section.listings .listing-card:hover {
    transform: none !important;
    opacity: 1 !important;
}

/* Property info - ABOVE image */
section.listings .listing-info {
    order: 1;
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    text-align: left;
}

/* Property title */
section.listings .listing-title {
    font-family: var(--font-ui);
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-align: left;
}

/* Property meta - simplified, inline */
section.listings .listing-meta {
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    line-height: 1.5;
    text-align: left;
}

section.listings .meta-item {
    display: inline;
}

section.listings .meta-item::after {
    content: ", ";
}

section.listings .meta-item:last-child::after {
    content: "";
}

section.listings .meta-item svg {
    display: none;
}

/* Property price */
section.listings .listing-price {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    letter-spacing: -0.01em;
    text-align: left;
}

/* ===================================
   CRITICAL: IMAGE SIZING - EXACT HEIGHTS
   ALL images MUST be exactly 280px
   =================================== */

/* Image wrapper - BELOW info - BASE SIZE FOR ALL SCREENS */
section.listings .listing-card .listing-image-wrapper,
section.listings .listing-card:nth-child(1) .listing-image-wrapper,
section.listings .listing-card:nth-child(2) .listing-image-wrapper,
section.listings .listing-card:nth-child(3) .listing-image-wrapper,
section.listings .listing-card:nth-child(4) .listing-image-wrapper,
section.listings .listing-card:nth-child(5) .listing-image-wrapper {
    order: 2 !important;
    position: relative !important;
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
    flex-shrink: 0 !important;
}

/* Remove ALL hover effects */
section.listings .listing-card:hover .listing-image-wrapper {
    box-shadow: none !important;
    transform: none !important;
    height: 280px !important;
}

/* CRITICAL: All images EXACTLY 280px */
section.listings .listing-card img,
section.listings .listing-card:nth-child(1) img,
section.listings .listing-card:nth-child(2) img,
section.listings .listing-card:nth-child(3) img,
section.listings .listing-card:nth-child(4) img,
section.listings .listing-card:nth-child(5) img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

section.listings .listing-card:hover img {
    transform: none !important;
    scale: 1 !important;
    height: 280px !important;
}

/* Badge styling - BOTTOM LEFT */
section.listings .listing-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-ui);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

section.listings .badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

/* View All Button - Centered */
section.listings .btn-view-all {
    display: inline-block;
    margin: 48px auto 0;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

/* Center the button container */
section.listings > .container {
    text-align: center;
}

section.listings .btn-view-all:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ===================================
   TABLET RESPONSIVE (768px - 1023px)
   =================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    section.listings .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 20px;
    }

    /* Reset grid spans for tablet - all cards equal */
    section.listings .listing-card:nth-child(1),
    section.listings .listing-card:nth-child(2),
    section.listings .listing-card:nth-child(3),
    section.listings .listing-card:nth-child(4),
    section.listings .listing-card:nth-child(5) {
        grid-column: span 1;
    }

    /* CRITICAL: All images EXACTLY 280px on tablet */
    section.listings .listing-card .listing-image-wrapper,
    section.listings .listing-card:nth-child(1) .listing-image-wrapper,
    section.listings .listing-card:nth-child(2) .listing-image-wrapper,
    section.listings .listing-card:nth-child(3) .listing-image-wrapper,
    section.listings .listing-card:nth-child(4) .listing-image-wrapper,
    section.listings .listing-card:nth-child(5) .listing-image-wrapper {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }

    section.listings .listing-card img,
    section.listings .listing-card:nth-child(1) img,
    section.listings .listing-card:nth-child(2) img,
    section.listings .listing-card:nth-child(3) img,
    section.listings .listing-card:nth-child(4) img,
    section.listings .listing-card:nth-child(5) img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    section.listings .listing-title {
        font-size: 16px;
    }
}

/* ===================================
   DESKTOP RESPONSIVE (1024px+)
   =================================== */
@media (min-width: 1024px) {
    section.listings {
        padding: 100px 0;
    }

    section.listings .section-title {
        margin-bottom: 56px;
    }

    section.listings .listings-grid {
        gap: 48px 28px;
    }

    /* CRITICAL: All images EXACTLY 340px on desktop */
    section.listings .listing-card .listing-image-wrapper,
    section.listings .listing-card:nth-child(1) .listing-image-wrapper,
    section.listings .listing-card:nth-child(2) .listing-image-wrapper,
    section.listings .listing-card:nth-child(3) .listing-image-wrapper,
    section.listings .listing-card:nth-child(4) .listing-image-wrapper,
    section.listings .listing-card:nth-child(5) .listing-image-wrapper {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
        border-radius: 8px !important;
    }

    section.listings .listing-card img,
    section.listings .listing-card:nth-child(1) img,
    section.listings .listing-card:nth-child(2) img,
    section.listings .listing-card:nth-child(3) img,
    section.listings .listing-card:nth-child(4) img,
    section.listings .listing-card:nth-child(5) img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    section.listings .listing-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    section.listings .listing-info {
        margin-bottom: 18px;
    }

    section.listings .listing-price {
        font-size: 16px;
    }
}

/* ===================================
   MOBILE RESPONSIVE (≤767px)
   CRITICAL: All images EXACTLY 280px
   =================================== */
@media (max-width: 767px) {
    section.listings {
        padding: 60px 0;
    }

    section.listings .section-title {
        margin-bottom: 36px;
    }

    section.listings .listings-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Reset grid spans for mobile - all cards equal */
    section.listings .listing-card:nth-child(1),
    section.listings .listing-card:nth-child(2),
    section.listings .listing-card:nth-child(3),
    section.listings .listing-card:nth-child(4),
    section.listings .listing-card:nth-child(5) {
        grid-column: span 1;
    }

    section.listings .listing-info {
        margin-bottom: 12px;
    }

    /* CRITICAL: All images EXACTLY 280px on mobile */
    section.listings .listing-card .listing-image-wrapper,
    section.listings .listing-card:nth-child(1) .listing-image-wrapper,
    section.listings .listing-card:nth-child(2) .listing-image-wrapper,
    section.listings .listing-card:nth-child(3) .listing-image-wrapper,
    section.listings .listing-card:nth-child(4) .listing-image-wrapper,
    section.listings .listing-card:nth-child(5) .listing-image-wrapper {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }

    section.listings .listing-card img,
    section.listings .listing-card:nth-child(1) img,
    section.listings .listing-card:nth-child(2) img,
    section.listings .listing-card:nth-child(3) img,
    section.listings .listing-card:nth-child(4) img,
    section.listings .listing-card:nth-child(5) img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    section.listings .listing-title {
        font-size: 16px;
    }

    section.listings .listing-meta {
        font-size: 13px;
    }

    section.listings .listing-price {
        font-size: 14px;
    }
}

