/**
 * Single Unit Page Styles — v7.2 (Child Theme)
 * For: al-homes-builder-framework child theme
 *
 * v7.2 CHANGES from v7.1:
 * - REMOVED: All Map V2 styles (sidebar, markers, responsive)
 *   → community-map-nearby.css v5.43 handles EVERYTHING including responsive
 *   → Loaded via community-nearby-places.php require in child functions.php
 * - This file ONLY contains: specs, content sections, unit overrides
 *
 * REQUIRES:
 *   1. community-property.css (spc- base: gallery, breadcrumb, key features, home features,
 *      floor plans, sitemap, virtual tour, explore, CTA, lightbox)
 *   2. community-map-nearby.css v5.43 (Map V2: sidebar, markers, colors, 7 categories, responsive)
 */

/* =========================================
   SPECIFICATIONS SECTION (unit-only)
   ========================================= */
.specifications-section {
    width: 100%;
    padding: 40px 0;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
}

.specifications-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 112px;
    column-gap: 0;
    justify-items: start;
}

.spec-card {
    width: 160px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
}

.spec-card-icon {
    font-size: 24px !important;
    color: #BCB6AF !important;
    flex-shrink: 0;
    display: block !important;
    width: 24px;
    height: 24px;
}

.spec-card-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.spec-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    align-self: stretch;
}

.spec-card-label {
    color: #666666;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    align-self: stretch;
}

.spec-card-value {
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 500;
    line-height: normal;
    align-self: stretch;
}

/* =========================================
   CONTENT SECTIONS — Alternating Image + Text
   ========================================= */
.unit-content-section {
    width: 100%;
    padding: 80px 0;
}

.unit-content-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.content-section-image-left .unit-content-section-inner { flex-direction: row; }
.content-section-image-right .unit-content-section-inner { flex-direction: row-reverse; }

.unit-content-section-image {
    flex: 0 0 48%;
    max-width: 48%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 474 / 412;
}

.unit-content-section-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    top: 0;
    left: 0;
}

.unit-content-section-text { flex: 1; min-width: 0; }

.unit-content-section-text h1, .unit-content-section-text h2,
.unit-content-section-text h3, .unit-content-section-text h4,
.unit-content-section-text h5, .unit-content-section-text h6 {
    font-family: 'Sofia Pro', 'Sofia Sans', sans-serif;
    color: #2A2A2A;
    margin: 0 0 16px 0;
    line-height: 1.3;
}
.unit-content-section-text h2 { font-size: 28px; font-weight: 500; }
.unit-content-section-text h3 { font-size: 22px; font-weight: 500; }
.unit-content-section-text h4 { font-size: 18px; font-weight: 600; }

.unit-content-section-text p {
    font-family: 'Afacad Flux', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #5A4F42;
    line-height: 1.6;
    margin: 0 0 14px 0;
}
.unit-content-section-text p:last-child { margin-bottom: 0; }

.unit-content-section-text ul, .unit-content-section-text ol {
    font-family: 'Afacad Flux', sans-serif;
    font-size: 16px; font-weight: 300;
    color: #5A4F42; line-height: 1.6;
    margin: 0 0 14px 0; padding-left: 24px;
}
.unit-content-section-text ul li, .unit-content-section-text ol li { margin-bottom: 6px; }
.unit-content-section-text ul li:last-child, .unit-content-section-text ol li:last-child { margin-bottom: 0; }
.unit-content-section-text ul li::marker { color: #5A4F42; }
.unit-content-section-text strong, .unit-content-section-text b { font-weight: 500; color: #2A2A2A; }

/* =========================================
   UNIT PAGE OVERRIDES (on spc- shared classes)
   ========================================= */
.single-unit-page .spc-price-label { display: none; }
.single-unit-page .footer-spacer { height: 80px; background: #FFFFFF; }

/* View Community — inline text + icon link (NOT button) */
.spc-unit-view-community-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.spc-unit-view-community-text {
    color: #5A4F42;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}

.spc-unit-view-community-link svg { flex-shrink: 0; }

.spc-unit-view-community-link:hover .spc-unit-view-community-text {
    color: #928572;
}

/* Gallery grid — square corners on unit page (no border-radius) */
.single-unit-page .spc-gallery-grid-main { border-radius: 0; }
.single-unit-page .spc-gallery-grid-thumb { border-radius: 0 !important; }
.single-unit-page .spc-gallery-grid-thumb:nth-child(2) { border-radius: 0 !important; }
.single-unit-page .spc-gallery-grid-thumb:nth-child(4) { border-radius: 0 !important; }
.single-unit-page .spc-gallery-grid-placeholder { border-radius: 0; }
.single-unit-page .spc-gallery-grid-empty { border-radius: 0; }

/* =========================================
   RESPONSIVE — 1439px
   ========================================= */
@media (max-width: 1439px) {
    .specifications-grid { padding: 0 80px; row-gap: 80px; }
    .spec-card { width: 140px; }
    .unit-content-section-inner { padding: 0 80px; gap: 48px; }
}

/* =========================================
   RESPONSIVE — 1199px
   ========================================= */
@media (max-width: 1199px) {
    .specifications-grid { padding: 0 60px; }
    .unit-content-section-inner { padding: 0 60px; gap: 40px; }
}

/* =========================================
   RESPONSIVE — 1023px
   ========================================= */
@media (max-width: 1023px) {
    .specifications-section { padding: 30px 0; }
    .specifications-grid {
        padding: 0 40px;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px; column-gap: 40px;
    }
    .spec-card { width: 100%; max-width: 200px; }
    .unit-content-section { padding: 60px 0; }
    .unit-content-section-inner { padding: 0 40px; gap: 36px; }
}

/* =========================================
   RESPONSIVE — 767px
   ========================================= */
@media (max-width: 767px) {
    .specifications-section { padding: 25px 0; }
    .specifications-grid { padding: 0 20px; row-gap: 30px; column-gap: 20px; }
    .spec-card { width: 100%; max-width: none; gap: 10px; }
    .spec-card-icon { font-size: 22px !important; }
    .spec-card-icon-svg { width: 22px; height: 22px; }
    .spec-card-label { font-size: 12px; }
    .spec-card-value { font-size: 16px; }
    .unit-content-section { padding: 40px 0; }
    .unit-content-section-inner {
        padding: 0 20px;
        flex-direction: column !important;
        gap: 24px;
    }
    .unit-content-section-image { flex: none; max-width: 100%; width: 100%; }
    .unit-content-section-text h2 { font-size: 24px; }
    .unit-content-section-text h3 { font-size: 20px; }
    .unit-content-section-text p, .unit-content-section-text ul, .unit-content-section-text ol { font-size: 15px; }
    .single-unit-page .footer-spacer { height: 60px; }

    /* View Community link — mobile */
    .spc-unit-view-community-text { font-size: 16px; }
    .spc-unit-view-community-link svg { width: 12px; height: 12px; }
}

/* =========================================
   RESPONSIVE — 480px
   ========================================= */
@media (max-width: 480px) {
    .specifications-section { padding: 20px 0; }
    .specifications-grid { padding: 0 16px; row-gap: 25px; column-gap: 15px; }
    .spec-card { gap: 8px; min-height: 70px; }
    .spec-card-icon { font-size: 20px !important; }
    .spec-card-icon-svg { width: 20px; height: 20px; }
    .spec-card-label { font-size: 11px; }
    .spec-card-value { font-size: 14px; }
    .unit-content-section { padding: 30px 0; }
    .unit-content-section-inner { padding: 0 16px; gap: 20px; }
    .single-unit-page .footer-spacer { height: 40px; }

    /* View Community link — small mobile */
    .spc-unit-view-community-text { font-size: 15px; }
    .spc-unit-view-community-link svg { width: 11px; height: 11px; }
}

/* =========================================
   RESPONSIVE — 374px (iPhone SE)
   ========================================= */
@media (max-width: 374px) {
    .specifications-section { padding: 16px 0; }
    .specifications-grid { padding: 0 12px; row-gap: 20px; column-gap: 12px; }
    .spec-card { gap: 6px; min-height: 60px; }
    .spec-card-icon { font-size: 18px !important; width: 18px; height: 18px; }
    .spec-card-icon-svg { width: 18px; height: 18px; }
    .spec-card-label { font-size: 10px; }
    .spec-card-value { font-size: 13px; }
    .unit-content-section { padding: 28px 0; }
    .unit-content-section-inner { padding: 0 12px; gap: 16px; }
    .single-unit-page .footer-spacer { height: 32px; }
}