/* ==========================================================================
   Project detail page — Sawalem The Crescent Villas
   Premium real-estate layout inspired by Meraas-style project pages.
   ========================================================================== */

:root {
    --ink:        #1f1b16;
    --ink-soft:   #4b463f;
    --sand:       #f6f1ea;
    --sand-2:     #ece4d8;
    --brand:      #8a6d3b;
    --brand-ink:  #5d4922;
    --line:       #d8cfc1;
    --shadow:     0 14px 40px rgba(40, 30, 10, 0.08);
    --radius:     14px;
    --mobile-shell: #15120f;
    --mobile-gold:  #b9975b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.project-page {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
}

.project-page a {
    color: inherit;
    text-decoration: none;
}

.project-page img {
    display: block;
    max-width: 100%;
}

.project-page .section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 48px;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2.5vw;
    background: #fff;
    border-bottom: 1px solid #d8cfc1;
    color: #3d2b14;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.site-header .brand-logo {
    height: 100px;
    width: auto;
    /*max-width: 200px;*/
    display: block;
    object-fit: contain;
}

.site-header .brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.brand-copy {
    font-size: 0.72rem;
    opacity: 0.8;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a {
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 1px;
    background: #3d2b14;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.project-page .eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
    font-weight: 600;
}
.page-h1 {
    font-family: "Cormorant Garamond", "Times New Roman", 'serif' !important;
}
.project-page h1 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

.project-page h2 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 12px;
}

.project-page h3 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 500;
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.project-page p {
    color: var(--ink-soft);
    margin: 0 0 14px;
}

.project-page .section-heading {
    max-width: 840px;
    margin-bottom: 48px;
}

.project-page .section-heading.split {
    display: flex;
    /*align-items: flex-end;*/
    justify-content: space-between;
    gap: 40px;
    max-width: none;
}

.project-page .section-heading.split > p {
    max-width: 550px;
}

.project-page .button {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, color .2s ease;
    border: 1px solid transparent;
}

.project-page .button-primary {
    background: var(--brand-ink);
    color: #fff;
}
.project-page .button-primary:hover { background: var(--brand-ink); }

.project-page .button-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.project-page .button-ghost:hover { background: rgba(255,255,255,0.1); }

.project-page .text-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.project-page .text-link:hover { border-bottom-color: var(--brand); }

.mobile-header-cta,
.mobile-menu-button,
.mobile-project-panel,
.mobile-hero-enquiry,
.mobile-sticky-actions {
    display: none;
}

/* Burger button — hidden on desktop, shown only in mobile media query */
.mobile-burger {
    display: none;
}

/* Mobile nav drawer — hidden until toggled */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 120px;                          /* matches mobile header height */
    left: 0;
    right: 0;
    z-index: 19;
    background: #f9f5ef;
    border-bottom: 1px solid #d8cfc1;
    box-shadow: 0 8px 28px rgba(61, 43, 20, 0.12);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-drawer nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer a {
    display: block;
    padding: 15px 24px;
    color: #3d2b14;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 207, 193, 0.6);
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-nav-drawer a:last-child {
    border-bottom: none;
}

.mobile-nav-drawer a:active {
    background: rgba(61, 43, 20, 0.06);
}

/* RTL: align drawer text to the right */
[dir="rtl"] .mobile-nav-drawer a {
    text-align: right;
}
[dir="rtl"] .hide-ar {
    display: none;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.project-hero {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding: 120px 48px 72px;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 80%);
    z-index: 1;
}

/* Full-bleed background video for the hero. Keeps the image poster visible
   until the video can autoplay, and sits under the dark overlay + content. */
.project-hero-video {
    background-image: url('/media/gallery-1.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.project-hero-video .project-hero-video-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.project-hero-video .project-hero-content {
    z-index: 2;
}

.project-hero-content {
    position: relative;
    max-width: 780px;
}

.project-hero .eyebrow {
    color: #f4e2c2;
}

.project-hero h1 {
    color: #fff;
    margin-bottom: 0;
}

/* ── Hero title: single line on desktop, two lines on mobile ── */
.hero-title-group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0 0.32em;
    margin-bottom: 18px;
}

.hero-title-group h1,
.hero-title-group h2 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.project-hero .lede {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 28px;
}

.project-hero .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   KEY FACTS STRIP
   -------------------------------------------------------------------------- */
.key-facts {
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--line);
}

.key-facts .key-fact {
    background: var(--sand);
    padding: 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.key-facts .key-fact-value {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 500;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.key-facts .key-fact-value.strong {
    color: var(--brand-ink);
    font-size: 1.75rem;
}

.key-facts .key-fact-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   OVERVIEW
   -------------------------------------------------------------------------- */
.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.project-overview .overview-copy h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.project-overview .overview-copy p {
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 58ch;
    margin-bottom: 16px;
}

.project-overview .overview-media {
    position: relative;
}

.project-overview .overview-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

.project-overview .overview-points {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.project-overview .overview-points li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.98rem;
}
.project-overview .overview-points li:last-child { border-bottom: 1px solid var(--line); }



/* --------------------------------------------------------------------------
   VILLA TYPES
   -------------------------------------------------------------------------- */
.villa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.villa-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}
.villa-card:hover { transform: translateY(-4px); }

.villa-card.featured {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.villa-card-media {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.villa-card-body { padding: 28px; }

.villa-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
    font-weight: 600;
}

.villa-specs {
    margin: 18px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}
.villa-specs > div {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}
.villa-specs dt {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
}
.villa-specs dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   AMENITIES
   -------------------------------------------------------------------------- */
.amenities-grid { background: var(--sand); border-block: 1px solid var(--line); max-width: none; }
.amenities-grid > .section-heading,
.amenities-grid > .amenity-cards {
    max-width: 1440px;
    margin-inline: auto;
}

.amenities-grid .amenity-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.amenities-grid .amenity-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.amenities-grid .amenity-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sand-2);
    color: var(--brand-ink);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   LOCATION
   -------------------------------------------------------------------------- */
.project-location {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.project-location .location-points {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.project-location .location-points li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 0.98rem;
}
.project-location .location-points li:last-child { border-bottom: 1px solid var(--line); }
.project-location .location-points strong {
    display: inline-block;
    min-width: 70px;
    color: var(--brand-ink);
}
.project-location .location-map img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */
.gallery-strip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 16px;
}
.gallery-strip figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-strip figure:first-child { grid-row: span 2; }
.gallery-strip img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.gallery-strip figure:hover img { transform: scale(1.04); }

/* Video figure inside the gallery — fills its grid cell, plays muted/looped
   in the background, and shows a caption chip at the bottom-left. */
.gallery-strip .gallery-video {
    position: relative;
    background: #000;
}
.gallery-strip .gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
.gallery-strip .gallery-video figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   CONTACT panel reuse — borrow layout from home.css but tighten for dark bg
   -------------------------------------------------------------------------- */
.project-page .contact {
    background: var(--sand);
    border-top: 1px solid var(--line);
    max-width: none;
}
.project-page .contact-panel {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}

.project-page .contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.project-page .contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    gap: 6px;
}
.project-page .contact-form input {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
.project-page .contact-form select {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.project-page .contact-form input::placeholder {
    color: #9ca3af;
}
.project-page .contact-form select.placeholder {
    color: #9ca3af;
}
.project-page .contact-form input:focus,
.project-page .contact-form select:focus {
    outline: 2px solid var(--brand);
    outline-offset: -1px;
}
.project-page .contact-form .button { margin-top: 6px; }

.form-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    min-height: 1.2em;
}

.form-status-info {
    background: #eef4ff;
    color: #1d4ed8;
}

.form-status-success {
    background: #e9f7ef;
    color: #166534;
}

.form-status-error {
    background: #fdecec;
    color: #b91c1c;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.project-footer {
    background: var(--ink);
    color: #e5dfd3;
    padding: 64px 48px 28px;
}
.project-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.project-footer h4 {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
}
.project-footer ul { list-style: none; padding: 0; margin: 0; }
.project-footer ul li { padding: 4px 0; }
.project-footer a { color: #cfc6b6; text-decoration: none; }
.project-footer a:hover { color: #fff; }
.project-footer .brand-mark {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    color: #fff;
    display: block;
    margin-bottom: 6px;
}
.project-footer .brand-copy { color: #bfb7a6; max-width: 380px; }
.project-footer .footer-fine-print {
    max-width: 1440px;
    margin: 20px auto 0;
    font-size: 1rem;
    color: #8d8574;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .project-page .section { padding: 56px 28px; }
    .project-hero { padding: 100px 28px 56px; min-height: 78vh; }

    .key-facts { grid-template-columns: repeat(2, 1fr); }
    .project-overview, .project-location { grid-template-columns: 1fr; gap: 32px; }
    .villa-grid, .amenities-grid .amenity-cards { grid-template-columns: 1fr; }
    .gallery-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .gallery-strip figure:first-child { grid-row: auto; grid-column: span 2; }
    .project-page .contact-panel { grid-template-columns: 1fr; }
    .project-page .section-heading.split { flex-direction: column; align-items: flex-start; }
    .project-footer .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .site-header .brand-logo {
        height: 100px;
    }

    .site-header .brand-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-page {
        background: #fffaf4;
    }

    /* ── Mobile header: [☰] [logo centred] [EN] ── */
    .project-page .site-header {
        position: fixed;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0 14px;
        min-height: 120px;
        background: #fff;
    }

    /* Logo absolutely centred — works in both LTR and RTL */
    .project-page .site-header .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        min-width: 0;
        flex: none;
    }

    [dir="rtl"] .project-page .site-header .brand {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }

    .project-page .site-header .brand-logo {
        height: 120px;
    }

    /* Burger button — visible on mobile */
    .mobile-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        background: transparent;
        /*background: rgba(61, 43, 20, 0.06);*/
        /*border: 1px solid rgba(61, 43, 20, 0.18);*/
        border: none;
        border-radius: 8px;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        z-index: 1;
        transition: background 0.15s ease;
    }

    .mobile-burger:active {
        background: rgba(61, 43, 20, 0.12);
    }

    .mobile-burger span {
        display: block;
        width: 20px;
        height: 2px;
        background: #3d2b14;
        border-radius: 2px;
        transition: transform 0.22s ease, opacity 0.18s ease;
        transform-origin: center;
    }

    /* Animated to ✕ when open */
    .mobile-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .mobile-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .project-page .site-nav {
        display: none;
    }

    .mobile-header-cta {
        display: none;
    }

    .mobile-menu-button {
        display: none !important;
    }

    .mobile-menu-button-hidden {
        display: inline-grid;
        place-items: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 0;
        position: absolute;
        right: 14px;
        border: 1px solid rgba(255, 255, 255, 0.38);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
    }

    .mobile-menu-button span {
        width: 14px;
        height: 1px;
        background: #fff;
    }

    .project-hero {
        min-height: 90svh;
        align-items: center;
        padding: 88px 18px 20px;
        background-position: center top;
    }

    .project-hero-video .project-hero-video-el {
        object-position: 54% center;
    }

    .project-hero-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.3) 34%, rgba(0, 0, 0, 0.84) 100%),
            linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05));
    }

    .project-hero-content {
        max-width: none;
        width: 100%;
    }

    .project-page .eyebrow,
    .villa-tag,
    .key-facts .key-fact-label,
    .villa-specs dt {
        letter-spacing: 0.12em;
    }

    .project-hero .eyebrow {
        max-width: 24ch;
        margin-bottom: 11px;
        color: #f3d89f;
        font-size: 0.68rem;
        display: none;
    }

    .project-page h1 {
        font-size: clamp(1.55rem, 11.5vw, 4rem);
        line-height: 1.08;
        margin-bottom: 16px;
        text-align: left;
    }
    .project-page h2 {
        font-size: clamp(1.55rem, 10.5vw, 3rem);
        line-height: 1.08;
        margin-bottom: 16px;
        text-align: left;
    }

    /* Hero title: two stacked lines on mobile */
    .hero-title-group {
        flex-direction: column;
        /*align-items: center;*/
        gap: 4px 0;
        margin-bottom: 14px;
    }
   
    .hero-title-group h1 {
        font-size: clamp(1.55rem, 11.5vw, 4rem);
        line-height: 1.05;
        margin: 0;
        /*text-align: center;*/
    }

    .hero-title-group h2 {
        font-size: clamp(1rem, 4.5vw, 1.35rem);
        line-height: 1.1;
        color: rgba(255, 255, 255, 0.88);
        margin: 0;
        text-align: center;
    }
    .project-hero .lede {
        display: none;
    }

    .project-hero .hero-actions {
        display: flex;
        /*justify-content: center;*/
        margin-top: 40px;
    }

    .project-hero .hero-actions .button-ghost {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.75);
        font-size: 0.82rem;
        padding: 12px 28px;
        border-radius: 999px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 700;
    }

    .mobile-hero-enquiry {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        align-items: center;
        gap: 1px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        background: rgba(14, 12, 10, 0.76);
        box-shadow: 0 22px 38px rgba(0, 0, 0, 0.32);
        backdrop-filter: blur(14px);
    }

    .mobile-hero-enquiry > div {
        min-width: 0;
        padding: 12px 11px;
    }

    .mobile-hero-enquiry span {
        display: block;
        color: rgba(255, 255, 255, 0.58);
        font-size: 0.66rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .mobile-hero-enquiry strong {
        display: block;
        margin-top: 3px;
        color: #fff;
        font-size: 0.95rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .mobile-hero-enquiry a {
        align-self: stretch;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        background: var(--mobile-gold);
        color: #171411;
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .mobile-project-panel {
        display: block;
        /*padding: 22px 18px 26px;*/
        /*background: #fff;*/
        /*border-bottom: 1px solid #e7dfd4;*/
    }

    .mobile-location-kicker,
    .mobile-project-copy > span {
        display: block;
        margin-bottom: 8px;
        color: #7d6a48;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .mobile-project-location {
        display: grid;
        gap: 3px;
        margin-bottom: 18px;
    }

    .mobile-project-location strong {
        font-family: "Cormorant Garamond", "Times New Roman", serif;
        font-size: 1.48rem;
        font-weight: 500;
        line-height: 1;
        color: #1f1b16;
    }

    .mobile-project-location span {
        color: #6c6256;
        font-size: 0.92rem;
    }

    .mobile-download-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 26px;
    }

    .mobile-download-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 45px;
        border: 1px solid #1f1b16;
        border-radius: 0;
        color: #1f1b16;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: #fff;
    }
    
    .mobile-project-copy h2 {
        margin-bottom: 12px;
        color: #1f1b16;
    }

    .mobile-project-copy p {
        margin-bottom: 18px;
        color: #ffffff;
    }

    .mobile-project-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border: 1px solid #ded4c6;
        background: #f9f5ef;
    }

    .mobile-project-metrics div {
        min-width: 0;
        padding: 13px 10px;
        border-right: 1px solid #ded4c6;
    }

    .mobile-project-metrics div:last-child {
        border-right: 0;
    }

    .mobile-project-metrics span {
        display: block;
        margin-bottom: 5px;
        color: #7b7166;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .mobile-project-metrics strong {
        display: block;
        color: #1f1b16;
        font-size: 0.85rem;
        line-height: 1.15;
        white-space: nowrap;
    }

    .key-facts {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 15px 16px;
        /*background: var(--mobile-shell);*/
        border: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .key-facts .key-fact {
        flex: 0 0 168px;
        min-height: 112px;
        /*justify-content: center;*/
        padding: 18px 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        /*background: #211c17;*/
        scroll-snap-align: start;
    }
    

    .key-facts .key-fact-label {
        /*color: rgba(255, 255, 255, 0.62);*/
        font-size: 0.64rem;
    }

    .project-page .section {
        padding: 30px 18px;
    }

    .project-page h2 {
        font-size: 2rem;
        line-height: 1.06;
    }

    .project-page h3 {
        font-size: 1.28rem;
    }

    .project-page p {
        font-size: 0.94rem;
        line-height: 1.66;
    }

    .project-page .section-heading {
        margin-bottom: 28px;
    }

    .project-page .section-heading.split {
        gap: 12px;
    }

    .project-overview {
        gap: 24px;
    }

    .project-overview .overview-media {
        order: -1;
    }

    .project-overview .overview-media img,
    .gallery-strip figure,
    .project-page .contact-form {
        border-radius: 8px;
    }

    .project-overview .overview-points li,
    .project-location .location-points li {
        padding: 12px 0;
        font-size: 0.92rem;
    }

    .villa-grid {
        gap: 18px;
    }

    .villa-card {
        border-radius: 8px;
        box-shadow: 0 16px 32px rgba(40, 30, 10, 0.12);
    }

    .villa-card:hover {
        transform: none;
    }

    .villa-card.featured {
        outline-color: var(--mobile-gold);
    }

    .villa-card-media {
        aspect-ratio: 16 / 11;
    }

    .villa-card-body {
        padding: 20px;
    }

    .villa-specs {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 15px 0;
    }

    .villa-specs > div {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding-top: 9px;
    }

    .villa-specs dd {
        text-align: right;
    }

    .amenities-grid {
        background: var(--sand);
        border: revert;
        color: revert;
    }

    .amenities-grid .amenity-cards {
        gap: 12px;
    }

    .amenities-grid .amenity-card {
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 14px;
        padding: 18px;
        border-radius: 8px;
        background: #fff;
    }

    .amenities-grid .amenity-icon {
        grid-row: span 2;
        width: 38px;
        height: 38px;
        margin: 0;
        background: var(--sand-2);
        color: var(--brand-ink);
        font-size: 1.1rem;
    }

    .amenities-grid .amenity-card h3 {
        margin-bottom: 3px;
    }

    .amenities-grid .amenity-card p {
        margin: 0;
    }

    .project-location {
        gap: 24px;
    }

    .project-location .location-map iframe {
        height: 300px;
        border-radius: 8px !important;
    }

    .gallery-strip {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-strip figure {
        flex: 0 0 82vw;
        height: 280px;
        scroll-snap-align: start;
    }

    .gallery-strip figure:first-child {
        flex-basis: 88vw;
    }

    .project-page .contact {
        padding-bottom: 38px;
    }

    .project-page .contact-panel {
        gap: 22px;
    }

    .project-page .contact-form {
        padding: 20px;
    }

    .project-page .contact-form label {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .project-page .contact-form input,
    .project-page .contact-form select {
        min-height: 46px;
        border-radius: 6px;
    }

    .project-page .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 12px 18px;
        border-radius: 6px;
    }

    .project-footer {
        padding: 42px 18px 96px;
    }

    .project-footer .footer-grid {
        gap: 24px;
        padding-bottom: 26px;
    }

    .mobile-sticky-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(17, 14, 11, 0.9);
        box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(14px);
    }

    .mobile-sticky-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 6px;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .mobile-sticky-actions a.primary {
        border-color: var(--mobile-gold);
        background: var(--mobile-gold);
        color: #171411;
    }
}

/* --------------------------------------------------------------------------
   LANGUAGE SWITCHER
   -------------------------------------------------------------------------- */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: transparent;
    border: 1px solid rgba(61, 43, 20, 0.22);
    border-radius: 999px;
    color: #7d6a48;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(61, 43, 20, 0.11);
    border-color: rgba(61, 43, 20, 0.38);
}

.lang-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: rgba(61, 43, 20, 0.55);
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 148px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 4px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #cfc6b6;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

/* Mobile: switcher absolutely positioned — right for LTR, left for RTL */
@media (max-width: 480px) {
    .lang-switcher {
        position: absolute;
        right: 14px;
        left: auto;
    }

    /* RTL: flip to left side */
    [dir="rtl"] .lang-switcher {
        right: auto;
        left: 14px;
    }

    /* Dropdown opens toward center in both directions */
    .lang-dropdown {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .lang-dropdown {
        right: auto;
        left: 0;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
        gap: 5px;
    }
}

/* --------------------------------------------------------------------------
   RTL (Arabic) — desktop dropdown flips to left edge
   -------------------------------------------------------------------------- */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* RTL: flip chevron direction logic handled by JS rotation; no change needed */

/* RTL: header flex row reverses naturally with dir=rtl on <html> */

/* ==========================================================================
   RTL / Arabic — full content overrides
   ========================================================================== */

/* Arabic font stack — applied to everything when dir=rtl */
[dir="rtl"] body,
[dir="rtl"] .project-page,
[dir="rtl"] .project-page p,
[dir="rtl"] .project-page li,
[dir="rtl"] .project-page span,
[dir="rtl"] .project-page a,
[dir="rtl"] .project-page dt,
[dir="rtl"] .project-page dd,
[dir="rtl"] .project-page label,
[dir="rtl"] .project-page button,
[dir="rtl"] .project-page select,
[dir="rtl"] .project-page input,
[dir="rtl"] .project-page h3,
[dir="rtl"] .project-page h4 {
    font-family: "Cairo", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0;
}

/* Keep display headings in serif but allow Cairo as fallback */
[dir="rtl"] .project-page h1,
[dir="rtl"] .project-page h2 {
    font-family: "Cairo", Georgia, serif;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: right;
}

/* Eyebrow labels — remove EN tracking */
[dir="rtl"] .eyebrow {
    letter-spacing: 0;
}

/* Key fact labels — remove uppercase tracking for Arabic */
[dir="rtl"] .key-fact-label {
    letter-spacing: 0;
    text-transform: none;
}

/* Villa specs table */
[dir="rtl"] .villa-specs dt,
[dir="rtl"] .villa-specs dd {
    text-align: right;
}

/* Contact form — right-align labels and inputs */
[dir="rtl"] .contact-form label {
    text-align: right;
}
[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form select {
    text-align: right;
    direction: rtl;
}

/* Footer */
[dir="rtl"] .footer-grid {
    text-align: right;
}

/* Location points — keep strong bold in RTL */
[dir="rtl"] .location-points li strong {
    font-weight: 700;
}

