/* ========================================
   SINGLE PROPERTY PAGE - v8.5 (Child Theme)
   Location: al-homes-builder-framework/assets/css/property-single-v8.css
   
   FONTS: Direct names (NO VARIABLES)
   - Headings: 'Sofia Pro'
   - Body: 'Afacad Flux'
   
   v8.5 Changes:
   - LIGHTBOX REDESIGN (Figma): Dark overlay (black/80 + backdrop-blur-2.5px)
   - Image centered with max 1200x800, object-fit contain, subtle border
   - Arrows (left/right) FIXED to viewport — do NOT move with image size
   - Counter (1/N) FIXED at bottom center of viewport
   - Close (X) button FIXED at top-right of viewport
   - Small images just appear smaller; controls stay locked in place
   - ALL other styles UNCHANGED from v8.4
   
   v8.4 (preserved):
   - .fhv5-section override: padding 0 0 80px 0
   - .sp-explore-view-all hover: #928572
   
   v8.2 (preserved):
   - BADGE REDESIGN (Figma): All badges unified white pill style
======================================== */

:root {
    --color-primary: #5A4F42;
    --color-light-text: #766C61;
    --color-dark-text: #5A4F42;
    --color-800: #483F35;
    --color-400: #CCC8C0;
    --color-300: #E8E5DF;
    --color-200: #EFEDEB;
    --color-100: #FAF9F7;
    --color-white: #FFFFFF;
    --map-pin-color: #778869;
    --content-max-width: 1200px;
}

.single-property-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--color-white);
}

/* ========== v8.4 — FEATURED HOMES SHORTCODE SPACING FIX ========== */
.single-property-page .fhv5-section {
    width: 100%;
    padding: 0px 0 80px 0;
    background: #FFFFFF;
}

/* ========== BREADCRUMB ========== */
.property-breadcrumb-section {
    width: 100%;
    background: var(--color-200);
    display: flex;
    justify-content: center;
}

.breadcrumb-container {
    width: 100%;
    max-width: var(--content-max-width);
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-link {
    color: var(--color-primary);
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
    text-decoration: none;
}

.breadcrumb-link:hover { 
    opacity: 0.7; 
    color: #928572 !important; 
}

.breadcrumb-separator, 
.breadcrumb-current {
    color: var(--color-primary);
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
}

.breadcrumb-current { 
    font-weight: 400; 
}

/* ========== GALLERY GRID (700x500 + 4 smaller) ========== */
.property-gallery-grid-section {
    width: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
}

.gallery-grid-container {
    width: 100%;
    max-width: var(--content-max-width);
    padding: 20px 0 0 0;
}

.gallery-grid {
    display: flex;
    gap: 14px;
}

.gallery-main-image {
    width: 700px;
    height: 500px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main-image:hover img { 
    transform: scale(1.02); 
    opacity: 0.95; 
}

.gallery-side-grid {
    width: 485px;
    height: 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
}

.gallery-side-image {
    width: 235px;
    height: 243px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-side-image:hover img { 
    transform: scale(1.02); 
    opacity: 0.95; 
}

/* ========== SEE ALL PHOTOS ========== */
.gallery-side-last {
    position: relative !important;
    overflow: hidden !important;
}

.gallery-see-all-overlay {
    position: absolute !important;
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    z-index: 10 !important;
    display: flex !important;
    pointer-events: none !important;
    padding: 0 !important;
}

.gallery-see-all-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    border: none !important;
    outline: 0.5px solid #5A4F42 !important;
    font-family: 'Afacad Flux', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #2A2A2A !important;
    cursor: pointer !important;
    pointer-events: all !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.gallery-see-all-btn:hover,
.gallery-see-all-btn:focus,
.gallery-see-all-btn:active,
button.gallery-see-all-btn:hover,
.gallery-see-all-overlay .gallery-see-all-btn:hover {
    background: #5A4F42 !important;
    color: #FFFFFF !important;
    outline: 0.5px solid #5A4F42 !important;
    opacity: 1 !important;
}

.gallery-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #5A4F42;
    color: #FFFFFF;
    border-radius: 50px;
    font-size: 12px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-see-all-btn:hover .gallery-btn-count,
button.gallery-see-all-btn:hover .gallery-btn-count {
    background: #FFFFFF !important;
    color: #5A4F42 !important;
}

.gallery-btn-text {
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
}

/* ========== NO IMAGE PLACEHOLDER ========== */
.gallery-no-images {
    width: 100%;
    height: 500px;
    background: var(--color-200);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-placeholder-svg {
    width: 30px;
    height: 30px;
}

.gallery-placeholder-svg path {
    fill: var(--color-primary);
}

.gallery-side-image.gallery-placeholder {
    background: var(--color-200);
    cursor: default;
}

.gallery-side-placeholder-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-side-placeholder-inner svg {
    width: 30px;
    height: 30px;
}

.gallery-side-placeholder-inner svg path {
    fill: var(--color-primary);
}

/* ========== PROPERTY INFO SECTION ========== */
.property-info-section {
    width: 100%;
    background: #FFFFFF !important;
    display: flex;
    justify-content: center;
    padding: 30px 0 48px 0;
}

.property-info-section.coming-soon-info { 
    padding: 32px 0; 
}

.property-info-container {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.property-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.property-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

/* ========== BADGE PILLS — v8.2 FIGMA REDESIGN ========== */
.property-badges-container {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.property-badge-pill {
    display: inline-flex;
    padding: 5px 20px;
    border-radius: 50px;
    border: 1px solid var(--color-300);
    background: var(--color-white);
    font-family: 'Afacad Flux', sans-serif;
    font-size: 16px;
    align-items: center;
    gap: 10px;
}

.property-badge-pill.badge-move-in-ready,
.property-badge-pill.badge-for-sale,
.property-badge-pill.badge-under-construction,
.property-badge-pill.badge-in-construction,
.property-badge-pill.badge-plan-ready,
.property-badge-pill.badge-in-contract,
.property-badge-pill.badge-near-completion,
.property-badge-pill.badge-off-market-lot,
.property-badge-pill.badge-future-phases,
.property-badge-pill.badge-presale,
.property-badge-pill.badge-quick-move-in,
.property-badge-pill.badge-default {
    background: var(--color-white);
    border: 1px solid var(--color-300);
}

.property-badge-pill.badge-sold {
    background: var(--color-white);
    border: 1px solid var(--color-300);
}

.property-badge-pill.badge-coming-soon {
    background: var(--color-white) !important;
    border: 1px solid var(--color-300) !important;
}

.property-badge-pill.badge-estimated {
    background: var(--color-100);
    border: 1px solid var(--color-300);
}

.property-badge-pill.badge-promo {
    background: var(--color-white);
    border: 1px solid var(--color-300);
}

.property-badge-text {
    font-size: 16px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    color: #2A2A2A!important;
}

.property-badge-text-dark {
    font-size: 16px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
    color: #2A2A2A!important;
}

.property-badge-text-dark-bold {
    font-size: 16px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 500;
    color: #2A2A2A;
}

/* ========== PROPERTY HEADER INFO ========== */
.property-header-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-name {
    display: none !important;
}

.property-name-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.property-address {
    color: #2A2A2A !important;
    font-size: 24px !important;
    font-family: 'Sofia Pro', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    max-width: 400px;
}

.property-name-separator {
    width: 1px;
    height: 20px;
    background: var(--color-400);
    display: inline-block;
}

.property-location-highlight {
    color: var(--color-light-text);
    font-size: 16px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
}

.property-price-section { 
    display: flex; 
    justify-content: flex-end; 
}

.price-amount {
    text-align: right;
    color: #2A2A2A;
    font-size: 30px;
    font-family: 'Sofia Pro', sans-serif;
    font-weight: 400;
}

.property-actions { 
    display: flex; 
    gap: 14px; 
}

.property-action-btn {
    height: 45px;
    padding: 0 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: capitalize;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.property-action-btn.primary-btn { 
    background: var(--color-primary); 
    color: var(--color-white); 
}
.property-action-btn.primary-btn:hover { 
    background: #928572 !important; 
}

.property-action-btn.secondary-btn { 
    background: #FFFFFF !important; 
    color: #2A2A2A !important; 
    border: 0.5px solid #2A2A2A !important; 
    padding: 10px 25px !important;
    height: auto !important;
    font-family: 'Afacad Flux', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
}
.property-action-btn.secondary-btn:hover { 
    background: #5A4F42 !important; 
    color: #FFFFFF !important; 
}

.btn-icon { 
    display: flex; 
    align-items: center; 
}
.btn-icon .material-symbols-outlined { 
    font-size: 20px; 
}

/* ========== SPECIFICATIONS ========== */
.specifications-section {
    width: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.specifications-container {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    gap: 112px;
}

.specifications-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-card {
    width: 160px;
    height: 80px;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
}

.spec-card-icon { 
    font-size: 24px !important; 
    width: 24px;
    height: 24px;
    color: #BCB6AF !important;
}

.spec-card-content { 
    flex: 1;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.spec-card-label {
    color: #666666 !important;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    align-self: stretch;
}

.spec-card-value {
    color: #2A2A2A !important;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 500;
    align-self: stretch;
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
    width: 100%;
    max-width: var(--content-max-width);
    height: 0;
    border: none;
    border-top: 1px solid var(--color-300);
    margin: 0 auto;
}

.divider-wrapper {
    width: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    padding: 0;
}

/* ========== CONTENT SECTIONS ========== */
.property-section {
    width: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.property-section-inner { 
    width: 100%; 
    max-width: var(--content-max-width); 
}

.section-title {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #2A2A2A;
    margin: 0 0 28px 0;
}

/* ========== HOME FEATURES TABS (v8.0 — same spc-hf-* classes as community) ========== */
.single-property-page .spc-home-features-section {
    border-top: none !important;
}

.single-property-page .spc-hf-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-300);
    margin-bottom: 28px;
}

.single-property-page .spc-hf-tab {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--color-300);
    border-radius: 50px;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.single-property-page .spc-hf-tab:hover {
    color: #2A2A2A;
    border-color: #2A2A2A;
}

.single-property-page .spc-hf-tab.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    font-weight: 400;
}

.single-property-page .spc-hf-panel {
    display: none;
}

.single-property-page .spc-hf-panel.active {
    display: block;
}

/* Home Details Slider */
.single-property-page .spc-hd-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 550px;
    overflow: hidden;
    border-radius: 0;
    background: var(--color-200);
}

.single-property-page .spc-hd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.single-property-page .spc-hd-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.single-property-page .spc-hd-slide-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.single-property-page .spc-hd-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-property-page .spc-hd-slide-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-200);
}

/* Slider Arrows */
.single-property-page .spc-hd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.single-property-page .spc-hd-arrow:hover {
    background: #FFFFFF;
}

.single-property-page .spc-hd-arrow .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-primary);
}

.single-property-page .spc-hd-arrow-prev {
    left: 16px;
}

.single-property-page .spc-hd-arrow-next {
    right: 16px;
}

/* Slider Dots */
.single-property-page .spc-hd-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.single-property-page .spc-hd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.single-property-page .spc-hd-dot.active {
    background: #FFFFFF;
}

/* Badge overlay on slider */
.single-property-page .spc-hd-badge {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 5px 20px !important;
    border-radius: 50px !important;
    border: 0.5px solid #FFFFFF !important;
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(2.5px) !important;
    -webkit-backdrop-filter: blur(2.5px) !important;
    color: #2A2A2A !important;
    font-family: 'Afacad Flux', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    z-index: 10 !important;
    width: auto !important;
    max-width: 70% !important;
    white-space: nowrap !important;
}

/* Static content below slider */
.single-property-page .spc-hd-content {
    display: none;
    padding: 32px 0 0 0;
}

.single-property-page .spc-hd-content.active {
    display: block;
}

.single-property-page .spc-hd-content p {
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.single-property-page .spc-hd-content p:last-child {
    margin-bottom: 0;
}

/* Features tab description */
.single-property-page .spc-hf-feat-description {
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

.single-property-page .spc-hf-feat-description p {
    margin: 0 0 16px 0;
}

.single-property-page .spc-hf-feat-description p:last-child {
    margin-bottom: 0;
}

/* ========== OVERVIEW & KEY FEATURES (FALLBACK) ========== */
.overview-features-section { 
    border-top: none !important;
}

.overview-features-container {
    display: flex;
    gap: 96px;
}

.overview-content, 
.features-content {
    width: 550px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.overview-content .section-title, 
.features-content .section-title { 
    margin: 0; 
}

.overview-content .property-description,
.property-description {
    color: #2A2A2A !important;
    font-size: 18px !important;
    font-family: 'Afacad Flux', sans-serif !important;
    font-weight: 300 !important;
    line-height: normal;
}

.overview-content .property-description p { 
    margin: 0 0 15px 0; 
}
.overview-content .property-description p:last-child { 
    margin-bottom: 0; 
}

.features-content .features-grid { 
    display: flex; 
    justify-content: space-between; 
}

.features-content .features-column { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
}

.features-content .features-column:first-child { 
    width: 256px; 
}
.features-content .features-column:last-child { 
    width: 224px; 
}

.features-content .feature-item { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}

.features-content .feature-icon-container { 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.features-content .feature-icon { 
    font-size: 24px !important; 
    color: var(--color-primary) !important; 
}

.features-content .feature-title { 
    color: #2A2A2A; 
    font-size: 18px; 
    font-family: 'Afacad Flux', sans-serif; 
    font-weight: 300; 
}

/* ========== FLOOR PLANS ========== */
.floorplan-section { 
    border-top: none !important;
}

.floorplan-container { 
    display: flex; 
    flex-direction: column; 
    gap: 28px; 
}

.floorplan-section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.floorplan-section .section-title { 
    margin: 0; 
}

.floorplan-dropdown-container { 
    width: 192px; 
    position: relative; 
}

.floorplan-dropdown {
    width: 100%;
    height: 40px;
    padding: 8px 10px;
    background: var(--color-white);
    border: none;
    border-radius: 3px;
    outline: 1px var(--color-300) solid;
    color: #2A2A2A;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    cursor: pointer;
    appearance: none;
}

.floorplan-dropdown-container::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #2A2A2A;
    pointer-events: none;
}

.floorplan-display-container {
    padding: 14px 240px;
    background: var(--color-white);
    outline: 1px var(--color-400) solid;
    display: flex;
    justify-content: center;
}

.floorplan-item-dropdown { 
    display: none; 
    width: 715px; 
    max-width: 100%; 
}

.floorplan-item-dropdown.active { 
    display: block; 
}

.floorplan-item-dropdown img { 
    width: 100%; 
    max-height: 550px; 
    object-fit: contain; 
}

/* ========== VIRTUAL TOUR ========== */
.tour-section { 
    border-top: none !important;
}

.tour-container-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 28px; 
}

.tour-container { 
    width: 100%; 
    height: 700px; 
    position: relative; 
    background: #000; 
    overflow: hidden; 
}

.tour-content { 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
}

.tour-iframe, 
.tour-content iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

.tour-controls {
    width: 144px;
    height: 40px;
    padding: 5px 6px;
    position: absolute;
    bottom: 79px;
    right: 53px;
    background: rgba(48, 48, 48, 0.60);
    border-radius: 50px;
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    z-index: 10;
}

.tour-control-btn {
    padding: 5px 10px;
    background: transparent;
    border: none;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--color-white);
    text-decoration: none;
}

.tour-control-btn:hover { 
    background: rgba(255, 255, 255, 0.1); 
}

.tour-control-btn .material-symbols-outlined { 
    font-size: 20px; 
    color: var(--color-white); 
}

/* ========== MAP V2 SECTION WRAPPER (single property context) ========== */
.sp-map-v2-section {
    padding: 10px 0 0 0 !important;
    margin-bottom: 54px;
}

.sp-map-v2-section .spc-map-v2-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* ========== MAP SECTION (legacy fallback for coming soon) ========== */
.map-section {
    width: 100%;
    padding: 10px 0 0 0;
    background: var(--color-white);
    margin-bottom: 54px;
}

.map-section .section-title {
    display: none !important;
}

.map-container-wrapper { 
    width: 100%; 
    height: 500px; 
    position: relative; 
    background: var(--color-300); 
    overflow: hidden; 
}

.leaflet-map-container { 
    width: 100%; 
    height: 100%; 
}

.custom-map-marker { 
    background: transparent !important; 
    border: none !important; 
}

.marker-pin {
    width: 28px;
    height: 28px;
    background: #778869;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 3px 5px 6px 2px rgba(0, 0, 0, 0.40);
}

.map-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 80px;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.map-zoom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.map-zoom-btn:hover { 
    background: #F5F5F5; 
}

.map-zoom-btn .material-symbols-outlined { 
    font-size: 20px; 
    color: var(--color-primary); 
}

.zoom-divider { 
    width: 28px; 
    height: 1px; 
    background: #E5E5E5; 
    margin: 0 auto; 
}

.leaflet-control-zoom, 
.leaflet-control-attribution { 
    display: none !important; 
}

/* ========== EXPLORE HOMES SECTION (v8.4 — updated button style) ========== */
.sp-explore-homes-section {
    border-top: none !important;
}

.sp-explore-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
}

.sp-explore-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-explore-desc {
    color: var(--color-light-text);
    font-size: 16px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
    margin: 0;
}

/* v8.4 — View All Homes button: hover updated to #928572 */
.sp-explore-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-300);
    border-radius: 50px;
    text-decoration: none;
    color: #2A2A2A;
    font-size: 16px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sp-explore-view-all:hover {
    background: #928572;
    color: var(--color-white);
    border-color: #928572;
}

.sp-explore-view-all .material-symbols-outlined {
    font-size: 18px;
}

/* ========== CTA BANNER (kept for backward compat — Elementor shortcode now primary) ========== */
.cta-banner-section { 
    width: 100%; 
    background: var(--color-white); 
    display: flex; 
    justify-content: center; 
}

.cta-banner-container {
    width: 100%;
    max-width: var(--content-max-width);
    min-height: 320px;
    display: flex;
    background: var(--color-200);
    overflow: hidden;
}

.cta-banner-accent { 
    width: 10px; 
    background: var(--color-primary); 
}

.cta-banner-content { 
    flex: 1; 
    padding: 40px 56px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 60px; 
}

.cta-banner-text { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
    max-width: 500px; 
}

.cta-banner-info { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.cta-banner-title { 
    color: #2A2A2A; 
    font-size: 30px; 
    font-family: 'Sofia Pro', sans-serif; 
    font-weight: 400; 
    margin: 0; 
}

.cta-banner-description { 
    color: #2A2A2A; 
    font-size: 18px; 
    font-family: 'Afacad Flux', sans-serif; 
    font-weight: 300; 
    margin: 0; 
}

.cta-banner-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--color-white);
    border-radius: 50px;
    outline: 1px solid #2A2A2A;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    text-transform: capitalize;
    width: fit-content;
    transition: all 0.3s ease;
}

.cta-banner-btn:hover { 
    background: var(--color-primary); 
    color: var(--color-white); 
}

.cta-banner-btn .material-symbols-outlined { 
    font-size: 20px; 
}

.cta-banner-image { 
    width: 350px; 
    height: 240px; 
    object-fit: cover; 
}

/* =========================================================================
   LIGHTBOX — v8.5.3 (Nuclear Override)
   
   - z-index 99999 to cover WP header/nav
   - ALL button styles use !important to override theme resets
   - Close: bare X icon, 40x40 tap area, fixed top-right
   - Arrows: 40x40 circle, 1px white border, fixed left/right
   - Counter: fixed bottom center
   ========================================================================= */

.gallery-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.80) !important;
    backdrop-filter: blur(2.5px) !important;
    -webkit-backdrop-filter: blur(2.5px) !important;
    z-index: 99999 !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery-lightbox.active { 
    display: block !important; 
}

/* Close button — bare X icon, 40x40 tap area, fixed top-right */
.gallery-lightbox .lightbox-close-btn {
    position: fixed !important;
    top: 34px !important;
    right: 35px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: opacity 0.2s ease !important;
}

.gallery-lightbox .lightbox-close-btn:hover,
.gallery-lightbox .lightbox-close-btn:focus,
.gallery-lightbox .lightbox-close-btn:active,
.gallery-lightbox .lightbox-close-btn:focus-visible { 
    opacity: 0.7 !important;
    outline: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gallery-lightbox .lightbox-close-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

/* Arrows — 40x40 circle, 1px white border, fixed left/right
   Border stays white on ALL states — hover, focus, active, focus-visible */
.gallery-lightbox .lightbox-arrow {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 8px !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 20px !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 100001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* White border on ALL states — never disappear */
.gallery-lightbox .lightbox-arrow:hover,
.gallery-lightbox .lightbox-arrow:focus,
.gallery-lightbox .lightbox-arrow:active,
.gallery-lightbox .lightbox-arrow:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.gallery-lightbox .lightbox-arrow-left {
    left: 36px !important;
}

.gallery-lightbox .lightbox-arrow-right {
    right: 36px !important;
}

.gallery-lightbox .lightbox-arrow svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

/* Image container — centered in viewport, max bounds */
.gallery-lightbox .lightbox-image-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 1200px !important;
    max-height: 800px !important;
    width: calc(100% - 200px) !important;
    height: calc(100% - 200px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100000 !important;
}

.gallery-lightbox .lightbox-image-container img { 
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* Counter — fixed bottom center */
.gallery-lightbox .lightbox-counter { 
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    z-index: 100001 !important;
}

.gallery-lightbox .lightbox-counter span { 
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-family: 'Afacad Flux', sans-serif !important;
    font-weight: 400 !important;
}

/* ========== FOOTER SPACER ========== */
.footer-spacer { 
    width: 100%; 
    height: 80px; 
    background: var(--color-white); 
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 1439px) {
    .breadcrumb-container, 
    .gallery-grid-container, 
    .property-info-container, 
    .specifications-container, 
    .property-section-inner {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .section-divider {
        max-width: calc(100% - 80px);
    }
    
    .gallery-main-image { width: 55%; height: 450px; }
    .gallery-side-grid { width: 45%; height: 450px; gap: 12px; }
    .gallery-side-image { width: calc(50% - 6px); height: calc(50% - 6px); }
    
    .overview-content, .features-content { width: calc(50% - 30px); }
    .cta-banner-image { width: 300px; height: 220px; }
}

@media (max-width: 1023px) {
    .breadcrumb-container, 
    .gallery-grid-container, 
    .property-info-container, 
    .specifications-container, 
    .property-section-inner {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .section-divider {
        max-width: calc(100% - 60px);
    }
    
    .gallery-grid { flex-direction: column; }
    .gallery-main-image { width: 100%; height: 400px; }
    .gallery-side-grid { width: 100%; height: auto; }
    .gallery-side-image { width: calc(25% - 11px); height: 150px; }
    
    .gallery-no-images { height: 400px; }
    
    .gallery-see-all-overlay {
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.25) !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }
    
    .gallery-see-all-btn {
        font-size: 13px !important;
        padding: 5px 14px !important;
        gap: 7px !important;
    }
    
    .gallery-see-all-btn:hover,
    button.gallery-see-all-btn:hover {
        background: #5A4F42 !important;
        color: #FFFFFF !important;
    }
    
    .property-info-container { flex-direction: column; gap: 30px; align-items: flex-start; }
    .property-info-right { width: 100%; align-items: flex-start; }
    .property-price-section { justify-content: flex-start; }
    .price-amount { text-align: left; }
    .property-actions { width: 100%; flex-wrap: wrap; }
    
    .specifications-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .spec-card { width: 100%; }
    
    .overview-features-container { gap: 40px; }
    .overview-content, .features-content { width: calc(50% - 20px); }
    
    .tour-container { height: 500px; }
    .map-container-wrapper { height: 400px; }
    
    .cta-banner-container { flex-direction: column; }
    .cta-banner-accent { width: 100%; height: 8px; }
    .cta-banner-content { flex-direction: column; padding: 30px; gap: 30px; }
    .cta-banner-text { max-width: 100%; }
    .cta-banner-image { width: 100%; height: 220px; }
    
    .sp-explore-header { flex-direction: column; gap: 20px; }
    
    .property-address { font-size: 22px !important; }
    
    .single-property-page .spc-hd-slider { max-height: 450px; }
    
    /* Lightbox tablet */
    .gallery-lightbox .lightbox-image-container {
        width: calc(100% - 160px) !important;
        height: calc(100% - 180px) !important;
    }
    .gallery-lightbox .lightbox-arrow-left { left: 20px !important; }
    .gallery-lightbox .lightbox-arrow-right { right: 20px !important; }
    .gallery-lightbox .lightbox-close-btn { top: 20px !important; right: 20px !important; }
    .gallery-lightbox .lightbox-counter { bottom: 28px !important; }
}

@media (max-width: 767px) {
    .breadcrumb-container, 
    .gallery-grid-container, 
    .property-info-container, 
    .specifications-container, 
    .property-section-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-divider {
        max-width: calc(100% - 40px);
    }
    
    .gallery-main-image { height: 300px; }
    .gallery-side-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .gallery-side-image { width: 100%; height: 80px; }
    
    .gallery-no-images { height: 300px; }
    
    .gallery-see-all-btn {
        font-size: 11px !important;
        padding: 4px 10px !important;
        gap: 5px !important;
    }
    
    .gallery-see-all-btn:hover,
    button.gallery-see-all-btn:hover {
        background: #5A4F42 !important;
        color: #FFFFFF !important;
    }
    
    .property-address { font-size: 20px !important; }
    .price-amount { font-size: 28px; }
    
    .property-actions { flex-direction: column; gap: 12px; }
    .property-action-btn { width: 100%; font-size: 16px; justify-content: center; text-align: center; }
    
    .overview-features-container { flex-direction: column; gap: 40px; }
    .overview-content, .features-content { width: 100%; }
    .features-content .features-grid { flex-direction: column; gap: 20px; }
    .features-content .features-column:first-child, 
    .features-content .features-column:last-child { width: 100%; }
    
    .floorplan-section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .floorplan-dropdown-container { width: 100%; max-width: 300px; }
    .floorplan-display-container { padding: 15px 20px; }
    
    .tour-container { height: 350px; }
    .tour-controls { width: 120px; height: 36px; bottom: 20px; right: 15px; }
    
    .map-container-wrapper { height: 300px; }
    
    .cta-banner-content { padding: 24px 20px; }
    .cta-banner-title { font-size: 24px; }
    .cta-banner-description { font-size: 16px; }
    .cta-banner-image { height: 180px; }
    
    .property-badge-pill { padding: 4px 16px; font-size: 14px; }
    
    .single-property-page .spc-hd-slider { max-height: 350px; }
    .single-property-page .spc-hf-tabs { overflow-x: auto; }
    .single-property-page .spc-hf-tab { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
    
    /* Lightbox mobile */
    .gallery-lightbox .lightbox-image-container {
        width: calc(100% - 110px) !important;
        height: calc(100% - 160px) !important;
    }
    .gallery-lightbox .lightbox-arrow-left { left: 10px !important; }
    .gallery-lightbox .lightbox-arrow-right { right: 10px !important; }
    .gallery-lightbox .lightbox-arrow { 
        width: 36px !important; 
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 6px !important;
        border: 1px solid #FFFFFF !important;
        border-radius: 18px !important;
    }
    .gallery-lightbox .lightbox-arrow:hover,
    .gallery-lightbox .lightbox-arrow:focus,
    .gallery-lightbox .lightbox-arrow:active { border: 1px solid #FFFFFF !important; }
    .gallery-lightbox .lightbox-arrow svg { width: 20px !important; height: 20px !important; }
    .gallery-lightbox .lightbox-close-btn { 
        top: 14px !important; 
        right: 14px !important; 
        width: 36px !important; 
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    .gallery-lightbox .lightbox-close-btn svg { width: 12px !important; height: 12px !important; }
    .gallery-lightbox .lightbox-counter { bottom: 20px !important; }
    .gallery-lightbox .lightbox-counter span { font-size: 16px !important; }
}

@media (max-width: 479px) {
    .breadcrumb-container, 
    .gallery-grid-container, 
    .property-info-container, 
    .specifications-container, 
    .property-section-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .section-divider {
        max-width: calc(100% - 32px);
    }
    
    .gallery-main-image { height: 250px; }
    .gallery-side-image { height: 70px; }
    
    .gallery-see-all-btn {
        font-size: 10px !important;
        padding: 3px 8px !important;
        gap: 4px !important;
    }
    
    .gallery-see-all-btn:hover,
    button.gallery-see-all-btn:hover {
        background: #5A4F42 !important;
        color: #FFFFFF !important;
    }
    
    .gallery-no-images { height: 250px; }
    
    .property-badge-pill { padding: 4px 12px; font-size: 13px; }
    .property-address { font-size: 22px !important; }
    .price-amount { font-size: 24px; }
    .property-action-btn { height: 42px; font-size: 15px; }
    
    .section-title { font-size: 20px; }
    .spec-card-label { font-size: 11px; }
    .spec-card-value { font-size: 14px; }
    
    .tour-container { height: 280px; }
    .map-container-wrapper { height: 250px; }
    
    .cta-banner-title { font-size: 22px; }
    .cta-banner-image { height: 160px; }
    
    .single-property-page .spc-hd-slider { max-height: 280px; }
    
    /* Lightbox small mobile (479px) */
    .gallery-lightbox .lightbox-image-container {
        width: calc(100% - 90px) !important;
        height: calc(100% - 140px) !important;
    }
    .gallery-lightbox .lightbox-arrow-left { left: 8px !important; }
    .gallery-lightbox .lightbox-arrow-right { right: 8px !important; }
    .gallery-lightbox .lightbox-arrow { 
        width: 32px !important; 
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 5px !important;
        border: 1px solid #FFFFFF !important;
        border-radius: 16px !important;
    }
    .gallery-lightbox .lightbox-arrow:hover,
    .gallery-lightbox .lightbox-arrow:focus,
    .gallery-lightbox .lightbox-arrow:active { border: 1px solid #FFFFFF !important; }
    .gallery-lightbox .lightbox-arrow svg { width: 18px !important; height: 18px !important; }
    .gallery-lightbox .lightbox-close-btn { 
        top: 10px !important; 
        right: 10px !important; 
        width: 32px !important; 
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    .gallery-lightbox .lightbox-close-btn svg { width: 10px !important; height: 10px !important; }
    .gallery-lightbox .lightbox-counter { bottom: 16px !important; }
    .gallery-lightbox .lightbox-counter span { font-size: 14px !important; }
}

@media (max-width: 375px) {
    .breadcrumb-container, 
    .gallery-grid-container, 
    .property-info-container, 
    .specifications-container, 
    .property-section-inner {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .section-divider {
        max-width: calc(100% - 24px);
    }
    
    .gallery-main-image { height: 220px; }
    .gallery-side-image { height: 60px; }
    
    .gallery-see-all-btn {
        font-size: 9px !important;
        padding: 3px 6px !important;
        gap: 3px !important;
    }
    
    .gallery-see-all-btn:hover,
    button.gallery-see-all-btn:hover {
        background: #5A4F42 !important;
        color: #FFFFFF !important;
    }
    
    .gallery-no-images { height: 220px; }
    
    .property-badge-pill { padding: 3px 10px; font-size: 12px; }
    .property-address { font-size: 20px !important; }
    .price-amount { font-size: 22px; }
    .property-action-btn { height: 40px; font-size: 14px; }
    
    .map-container-wrapper { height: 220px; }
    
    .cta-banner-title { font-size: 20px; }
    .cta-banner-image { height: 140px; }
    
    .single-property-page .spc-hd-slider { max-height: 240px; }
    
    /* Lightbox iPhone SE (375px) */
    .gallery-lightbox .lightbox-image-container {
        width: calc(100% - 76px) !important;
        height: calc(100% - 120px) !important;
    }
    .gallery-lightbox .lightbox-arrow-left { left: 6px !important; }
    .gallery-lightbox .lightbox-arrow-right { right: 6px !important; }
    .gallery-lightbox .lightbox-arrow { 
        width: 30px !important; 
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 4px !important;
        border: 1px solid #FFFFFF !important;
        border-radius: 15px !important;
    }
    .gallery-lightbox .lightbox-arrow:hover,
    .gallery-lightbox .lightbox-arrow:focus,
    .gallery-lightbox .lightbox-arrow:active { border: 1px solid #FFFFFF !important; }
    .gallery-lightbox .lightbox-arrow svg { width: 16px !important; height: 16px !important; }
    .gallery-lightbox .lightbox-close-btn { 
        top: 8px !important; 
        right: 8px !important; 
        width: 30px !important; 
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
    .gallery-lightbox .lightbox-close-btn svg { width: 10px !important; height: 10px !important; }
    .gallery-lightbox .lightbox-counter { bottom: 12px !important; }
    .gallery-lightbox .lightbox-counter span { font-size: 13px !important; }
}

/* iPhone SE 1st gen (320px) */
@media (max-width: 320px) {
    .breadcrumb-container, 
    .gallery-grid-container, 
    .property-info-container, 
    .specifications-container, 
    .property-section-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .section-divider {
        max-width: calc(100% - 20px);
    }
    
    .gallery-main-image { height: 200px; }
    .gallery-side-image { height: 50px; }
    
    .property-address { font-size: 18px !important; }
    .price-amount { font-size: 20px; }
    .section-title { font-size: 18px; }
    
    /* Lightbox iPhone SE 1st gen (320px) */
    .gallery-lightbox .lightbox-image-container {
        width: calc(100% - 66px) !important;
        height: calc(100% - 110px) !important;
    }
    .gallery-lightbox .lightbox-arrow-left { left: 4px !important; }
    .gallery-lightbox .lightbox-arrow-right { right: 4px !important; }
    .gallery-lightbox .lightbox-arrow { 
        width: 28px !important; 
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 3px !important;
        border: 1px solid #FFFFFF !important;
        border-radius: 14px !important;
    }
    .gallery-lightbox .lightbox-arrow:hover,
    .gallery-lightbox .lightbox-arrow:focus,
    .gallery-lightbox .lightbox-arrow:active { border: 1px solid #FFFFFF !important; }
    .gallery-lightbox .lightbox-arrow svg { width: 14px !important; height: 14px !important; }
    .gallery-lightbox .lightbox-close-btn { 
        top: 6px !important; 
        right: 6px !important; 
        width: 28px !important; 
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
    .gallery-lightbox .lightbox-close-btn svg { width: 10px !important; height: 10px !important; }
    .gallery-lightbox .lightbox-counter { bottom: 10px !important; }
    .gallery-lightbox .lightbox-counter span { font-size: 12px !important; }
}