/* ===========================================================
   ASTRALIS 514 SQ FT LEASE — DESIGN SYSTEM
   Matches Supernova Astralis exactly (DM Sans + Cormorant only)
   =========================================================== */

:root {
    --dark: #0b1e14;
    --dark-mid: #112a1c;
    --accent: #1b6b5a;
    --gold: #c9a84c;
    --gold-light: #e8cc7e;
    --cream: #faf6ed;
    --light-green: #f0f7f3;
    --text-dark: #1a2622;
    --text-muted: #5a6b65;
    --border: #e0ede9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text-dark);
    margin: 0;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

/* ===== READING PROGRESS BAR ===== */
#nlPageProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0%;
    z-index: 10001;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #0b1e14 0%, #112a1c 60%, #0d2117 100%);
    color: #fff;
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(201, 168, 76, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #fff;
}

.hero-gradient-text {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: #c8d4cb;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 580px;
}

/* KPI Boxes */
.kpi-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
}

.kpi-box strong {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 3px;
}

.kpi-box span {
    display: block;
    font-size: 12.5px;
    color: #fff;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    background: var(--gold);
    color: #0b1e14;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    font-family: "DM Sans", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.3);
    color: #0b1e14;
}

.cta-btn .btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(11, 30, 20, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cta-btn.outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}

.cta-btn.outline:hover {
    background: var(--gold);
    color: #0b1e14;
}

.cta-btn.outline .btn-icon {
    background: rgba(201, 168, 76, 0.18);
}

.cta-btn.wa {
    background: #25d366;
    color: #fff;
}

.cta-btn.wa:hover {
    background: #128c7e;
    color: #fff;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.call-btn:hover {
    background: #145549;
    color: #fff;
    transform: translateY(-2px);
}

.icon-pill {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.consent-text {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ===== LEAD FORM CARD ===== */
.lead-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.lead-form-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.lead-form-card form input,
.lead-form-card form textarea,
.lead-form-card form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 11px;
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    transition: border 0.2s;
    color: var(--text-dark);
}

.lead-form-card form input:focus,
.lead-form-card form textarea:focus,
.lead-form-card form select:focus {
    outline: none;
    border-color: var(--gold);
}

.lead-form-card form button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "DM Sans", sans-serif;
}

.lead-form-card form button:hover {
    background: #145549;
}

/* ===== CTA STRIP ===== */
.cta-strip {
    background: var(--cream);
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-strip::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
    );
    animation: shimmer 4s infinite 2s;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* ===== PAGE SECTIONS ===== */
.page-section {
    padding: 60px 0;
    background: #fff;
}

.page-section.bg-cream {
    background: var(--cream);
}

.page-section.bg-light-green {
    background: var(--light-green);
}

.section-label {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.section-label::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s ease 0.3s;
}

.section-in-view .section-label::after {
    width: 100%;
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.25;
}

.section-title span {
    color: var(--gold);
}

.divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 22px;
}

.page-section.section-in-view .divider {
    animation: drawDivider 0.5s ease 0.2s both;
}

@keyframes drawDivider {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 50px;
        opacity: 1;
    }
}

.section-intro {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 760px;
}

/* ===== GALLERY MOSAIC ===== */
.gal-mosaic {
    display: grid;
    grid-template-columns: 1.65fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}

.gal-mosaic .gal-main {
    grid-row: span 2;
    overflow: hidden;
    position: relative;
}

.gal-mosaic .gal-cell {
    overflow: hidden;
    position: relative;
}

.gal-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s;
    display: block;
}

.gal-mosaic img:hover {
    transform: scale(1.05);
}

.gal-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 30, 20, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
}

.gal-more-overlay span {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Cormorant Garamond", serif;
}

.gal-mosaic .gal-main,
.gal-mosaic .gal-cell {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

body.js-ready .gal-mosaic .gal-main:not(.gal-visible),
body.js-ready .gal-mosaic .gal-cell:not(.gal-visible) {
    opacity: 0;
    transform: scale(0.97);
}

.gal-mosaic .gal-main.gal-visible,
.gal-mosaic .gal-cell.gal-visible {
    opacity: 1;
    transform: scale(1);
}

/* Gallery thumbs */
.gallery-thumbs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.gallery-thumbs img {
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    height: 52px;
    width: 70px;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.gallery-thumbs img:hover {
    border-color: var(--gold);
}

.gallery-thumbs .view-all-btn {
    border-radius: 5px;
    cursor: pointer;
    height: 52px;
    width: 70px;
    border: 2px solid var(--border);
    background: var(--cream);
    font-size: 11px;
    color: var(--text-muted);
    font-family: "DM Sans", sans-serif;
    transition:
        border-color 0.2s,
        color 0.2s;
}

.gallery-thumbs .view-all-btn:hover {
    border-color: var(--gold);
    color: var(--accent);
}

.gallery-note {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.gallery-note a {
    color: var(--accent);
}

/* ===== PRICING BAR ===== */
.pricing-bar-wrap {
    margin-top: 28px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.pricing-bar-wrap:hover {
    box-shadow: 0 12px 36px rgba(201, 168, 76, 0.18);
}

.pricing-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pricing-bar-title {
    margin: 0;
    font-size: 1.3rem;
}

.pricing-bar-title i {
    color: var(--gold);
    font-size: 1rem;
    margin-right: 6px;
}

.pricing-disclaimer {
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
}

.pricing-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pricing-bar-item {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.pricing-bar-item.accent {
    background: #fff;
    border-top: 3px solid var(--gold);
}

.pricing-bar-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pricing-bar-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: "Cormorant Garamond", serif;
    color: var(--text-dark);
}

.pricing-bar-value.gold {
    color: var(--accent);
}

.pricing-bar-note {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.pricing-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.pricing-actions a,
.pricing-actions button {
    flex: 1;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    text-decoration: none;
    transition: all 0.2s;
}

.pricing-actions .wa-btn {
    background: #25d366;
    color: #fff;
}

.pricing-actions .wa-btn:hover {
    background: #128c7e;
    color: #fff;
}

.pricing-actions .call-btn-bar {
    background: var(--accent);
    color: #fff;
}

.pricing-actions .call-btn-bar:hover {
    background: #145549;
    color: #fff;
}

.pricing-actions .enquire-btn {
    background: var(--gold);
    color: #0b1e14;
}

.pricing-actions .enquire-btn:hover {
    background: var(--gold-light);
    color: #0b1e14;
}

/* ===== APARTMENT CARDS ===== */
.apt-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.apt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.apt-card a {
    display: block;
}

.apt-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.apt-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apt-card-body h3 {
    margin-bottom: 6px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    color: var(--dark);
}

.apt-card-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.apt-spec {
    background: var(--light-green);
    color: var(--text-dark);
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.apt-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.apt-cta {
    margin-top: auto;
    padding: 9px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "DM Sans", sans-serif;
    width: 100%;
    position: relative;
    z-index: 1;
}

.apt-cta:hover {
    background: #145549;
}

.resale-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #0b1e14;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

.resale-tag.tag-lease {
    background: #0d8a52;
    color: #fff;
}

/* ===== SPEC GRID ===== */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.spec-item {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 1;
    transform: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

body.js-ready .spec-item:not(.spec-visible) {
    opacity: 0;
    transform: translateY(16px);
}

.spec-item.spec-visible {
    opacity: 1;
    transform: translateY(0);
}

.spec-icon {
    color: var(--gold);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.spec-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: "Cormorant Garamond", serif;
}

/* ===== FURNISH GRID ===== */
.furnish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 576px) {
    .furnish-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.furnish-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

.furnish-item:hover {
    border-color: var(--gold);
    background: var(--cream);
}

.furnish-item i {
    color: var(--gold);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* ===== AMENITY PILLS ===== */
.amen-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amen-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12.5px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

.amen-pill:hover {
    border-color: var(--gold);
    background: #fff;
}

.amen-pill i {
    color: var(--gold);
    font-size: 13px;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    opacity: 1;
    transform: none;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

body.js-ready .feature-item:not(.feat-visible) {
    opacity: 0;
    transform: translateX(-16px);
}

.feature-item.feat-visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-item h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== ABOUT SECTION — sticky sidebar ===== */
.about-sticky {
    position: sticky;
    top: 20px;
}

.about-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    margin-bottom: 16px;
}

.about-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-img-wrap:hover img {
    transform: scale(1.04);
}

.unit-glance {
    padding: 14px;
    background: var(--cream);
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.unit-glance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.unit-glance-header i {
    color: var(--accent);
}

.unit-glance-header span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
}

.unit-glance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 22px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--gold);
    height: 100%;
    margin: 0;
}

.testimonial-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 14px;
}

.testimonial-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}

.testimonial-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 13px;
    margin-top: 6px;
}

/* ===== NEARBY CARDS ===== */
.nearby-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.nearby-card h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
}

.nearby-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-card ul li {
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.nearby-card ul li:last-child {
    border-bottom: none;
}

.location-map {
    border-radius: 16px;
    width: 100%;
    height: auto;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    margin-bottom: 24px;
}

/* ===== FAQ ===== */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: 10px !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-accordion .accordion-button {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 16px 20px;
    background: #fff;
    font-family: "DM Sans", sans-serif;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--cream);
    color: var(--accent);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--gold);
}

.faq-accordion .accordion-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    padding: 10px 20px 18px;
    font-family: "DM Sans", sans-serif;
}

/* ===== LISTING CARDS ===== */
.listings-section {
    padding: 48px 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.listings-section.dark {
    background: var(--dark);
    border-top: none;
}

.listings-section.dark .section-label {
    color: var(--gold);
}

.listings-section.dark .section-title {
    color: #fff;
}

.listings-section.dark .section-title span {
    color: var(--gold);
}

.listings-section.dark .section-intro {
    color: #c8d4cb;
}

.listings-section.dark .divider {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.listing-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.listing-card-img {
    position: relative;
    overflow: hidden;
}

.listing-card-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.35s;
    display: block;
}

.listing-card:hover .listing-card-img img {
    transform: scale(1.04);
}

.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.listing-badge.sale {
    background: var(--gold);
    color: #0b1e14;
}

.listing-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-body h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.listing-card-body p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex: 1;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.listing-tag {
    background: var(--light-green);
    color: var(--text-dark);
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.listing-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.listing-price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.listing-cta {
    display: flex;
    gap: 8px;
}

.listing-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.listing-btn.primary {
    background: var(--accent);
    color: #fff;
}

.listing-btn.primary:hover {
    background: #145549;
    color: #fff;
}

.listing-btn.wa {
    background: #25d366;
    color: #fff;
    flex: 0 0 44px;
}

.listing-btn.wa:hover {
    background: #128c7e;
    color: #fff;
}

/* ===== FINAL CTA ===== */
.final-cta-section {
    background: var(--dark);
    padding: 48px 0;
}

.final-cta-title {
    font-family: "Cormorant Garamond", serif;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.final-cta-title span {
    color: var(--gold);
}

.final-cta-text {
    color: #c8d4cb;
    font-size: 14px;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-btn {
    font-size: 13px !important;
    padding: 13px 22px !important;
}

.final-cta-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* =====================================================
   ENQUIRY MODAL — HARDENED (forces display + high z-index)
   ===================================================== */
.enquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.enquiry-modal.active {
    display: flex !important;
}

/* Fallback — if JS sets inline display:flex but class is missing */
.enquiry-modal[style*="display: flex"],
.enquiry-modal[style*="display:flex"] {
    display: flex !important;
}

.enquiry-modal-inner {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    margin: auto;
}

.enquiry-modal-inner h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-right: 30px;
    font-weight: 700;
    margin-top: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition:
        color 0.2s,
        transform 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.modal-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.enquiry-modal-inner form input[type="text"],
.enquiry-modal-inner form input[type="email"],
.enquiry-modal-inner form input[type="tel"],
.enquiry-modal-inner form input[type="number"],
.enquiry-modal-inner form select,
.enquiry-modal-inner form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 11px;
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.enquiry-modal-inner form input:focus,
.enquiry-modal-inner form select:focus,
.enquiry-modal-inner form textarea:focus {
    border-color: var(--gold);
}

.enquiry-modal-inner form label:not(.error):not(.form-check-label) {
    display: none;
}

.enquiry-modal-inner form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        background 0.2s,
        transform 0.15s;
}

.enquiry-modal-inner form button[type="submit"]:hover {
    background: #145549;
    transform: translateY(-1px);
}

.enquiry-modal-inner form input[type="hidden"] {
    display: none !important;
    margin: 0 !important;
}

/* ===== LIGHTBOX ===== */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#lightbox-overlay:not(.active) {
    display: none !important;
}

#lightbox-overlay:not(.active) #lightbox-close,
#lightbox-overlay:not(.active) .lightbox-nav,
#lightbox-overlay:not(.active) #gal-counter,
#lightbox-overlay:not(.active) #lightbox-img {
    display: none !important;
    visibility: hidden !important;
}

#lightbox-overlay.active {
    display: flex !important;
}

#lightbox-overlay.active #lightbox-close,
#lightbox-overlay.active .lightbox-nav,
#lightbox-overlay.active #gal-counter,
#lightbox-overlay.active #lightbox-img {
    display: flex;
    visibility: visible;
}

#lightbox-overlay.active #lightbox-img {
    display: block;
}

#lightbox-overlay img {
    max-width: 92%;
    max-height: 90%;
    border-radius: 8px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    font-weight: 300;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

#gal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #fff;
    padding: 9px 12px;
    display: none;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    z-index: 998;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    font-size: 11.5px;
}

.sticky-cta a {
    color: #fff;
    background: var(--accent);
    padding: 7px 11px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sticky-cta a.wa-sticky {
    background: #25d366;
}

.sticky-cta span {
    font-weight: 600;
    font-size: 11px;
    flex: 1;
}

/* ===== REVEAL ANIMATIONS — Progressive Enhancement ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-ready .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(32px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-ready .reveal-left:not(.visible) {
    opacity: 0;
    transform: translateX(-36px);
}

.reveal-right {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-ready .reveal-right:not(.visible) {
    opacity: 0;
    transform: translateX(36px);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-children > * {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-ready .stagger-children:not(.visible) > * {
    opacity: 0;
    transform: translateY(24px);
}

.stagger-children.visible > *:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
}
.stagger-children.visible > *:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 80ms;
}
.stagger-children.visible > *:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 160ms;
}
.stagger-children.visible > *:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 240ms;
}
.stagger-children.visible > *:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 320ms;
}
.stagger-children.visible > *:nth-child(6) {
    opacity: 1;
    transform: none;
    transition-delay: 400ms;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 0 50px;
    }

    .lead-form-card {
        margin-top: 28px;
    }

    .gal-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 170px 170px;
    }

    .gal-mosaic .gal-main {
        grid-row: span 1;
        grid-column: span 2;
    }

    .pricing-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 42px 0;
    }

    .sticky-cta {
        display: flex;
    }

    body {
        padding-bottom: 54px;
    }

    .hero-h1 {
        font-size: 1.7rem;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .lead-form-card {
        padding: 20px 18px;
    }

    .enquiry-modal-inner {
        padding: 22px 18px;
    }

    .gal-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px 150px;
    }

    .pricing-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .stagger-children > *,
    .feature-item,
    .spec-item,
    .gal-main,
    .gal-cell {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
