/* =====================================================================
   Etemaad 100 Group - GC Royal Emporium Chitral
   Mobile-first stylesheet (base styles target phones, scaled up via min-width)
   ===================================================================== */

:root {
    --brand-gold: #f7c548;
    --brand-gold-dark: #dfa31f;
    --brand-green: #0b3d2e;
    --brand-green-2: #14533f;
    --brand-green-3: #0d4636;
    --brand-green-4: #11523d;
    --brand-dark: #06221a;
    --brand-navy: #0d4a37;
    --brand-light: #f4f7f2;
    --brand-muted: #6b7280;
    --brand-green-rgb: 11, 61, 46;
    --brand-dark-rgb: 6, 34, 26;
    --brand-radius: 14px;
    --brand-shadow: 0 10px 30px rgba(var(--brand-dark-rgb), .12);
    --header-h: 74px;
    /* Banner images (overridden at runtime from Site Settings via header.php) */
    --banner-hero: url("../img/gc 3.jpg");
    --banner-inner: url("../img/banner.jpg");
    --banner-about: url("../img/about.jpg");
    --banner-builder: url("../img/gc.jpg");
}

/* ---- Blue theme ---------------------------------------------------- */
[data-theme="blue"] {
    --brand-green: #16324f;
    --brand-green-2: #1e4266;
    --brand-green-3: #183a56;
    --brand-green-4: #22486d;
    --brand-dark: #0a1c30;
    --brand-navy: #12314c;
    --brand-light: #eef2f6;
    --brand-green-rgb: 22, 50, 79;
    --brand-dark-rgb: 10, 28, 48;
}

/* ---- Base ---------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--brand-dark); }

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-green); text-decoration: none; }
a:hover { color: var(--brand-gold-dark); }

h1, h2, h3, h4 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: var(--brand-green);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: .2px;
}
h1 { font-weight: 800; }

.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

.text-gold { color: var(--brand-gold) !important; }
.text-brand { color: var(--brand-green) !important; }
.text-justify { text-align: justify; }
.bg-brand { background: var(--brand-green) !important; }
.bg-brand-dark { background: var(--brand-dark) !important; }
.bg-light-brand { background: var(--brand-light) !important; }

/* ---- Buttons (touch friendly, >=44px) ------------------------------ */
.btn { border-radius: 50px; padding: .7rem 1.4rem; font-weight: 600; }
.btn-gold {
    background: var(--brand-gold);
    border: 1px solid var(--brand-gold);
    color: #1b1b1b;
}
.btn-gold:hover, .btn-gold:focus { background: var(--brand-gold-dark); border-color: var(--brand-gold-dark); color: #fff; }
.btn-outline-gold { border: 1px solid var(--brand-gold); color: var(--brand-gold); background: transparent; }
.btn-outline-gold:hover { background: var(--brand-gold); color: #1b1b1b; }
.btn-brand { background: var(--brand-green); border: 1px solid var(--brand-green); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---- Header / Navbar ---------------------------------------------- */
.site-header {
    background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green-4) 100%);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .navbar { width: 100%; padding-top: .4rem; padding-bottom: .4rem; align-items: center; flex-wrap: nowrap; }
.site-header .navbar-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.12rem;
    line-height: 1.15;
    min-width: 0;
    max-width: 100%;
    margin-right: 1.25rem;
    padding: 0;
}
.brand-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    overflow: hidden;
}
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    display: grid;
    place-items: center;
    color: var(--brand-gold);
    font-weight: 800;
    flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.brand-name { display: block; line-height: 1.05; white-space: normal; overflow: visible; text-overflow: clip; }
.brand-sub { display: block; margin-top: 3px; font-size: .68rem; font-weight: 600; color: var(--brand-gold); letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; white-space: normal; overflow: visible; text-overflow: clip; }
.brand-logo-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-logo-img-lg { height: 76px; width: auto; object-fit: contain; }
.site-header .navbar-nav { gap: .35rem; }
.site-header .nav-link {
    color: rgba(255,255,255,.92);
    font-weight: 600;
    padding: .5rem 1.15rem;
    border-radius: 50px;
    border: 1px solid transparent;
    background: transparent;
    transition: all .2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--brand-gold);
    background: rgba(247,197,72,.14);
    border-color: rgba(247,197,72,.5);
    transform: translateY(-1px);
}
.site-header .nav-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
}
/* Compact, circular theme switch — matches the CTA button height */
.site-header .theme-toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.site-header .theme-toggle:hover,
.site-header .theme-toggle:focus-visible {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #1b1b1b;
    transform: translateY(-1px);
    outline: none;
}
.site-header .theme-toggle:focus-visible { box-shadow: 0 0 0 .2rem rgba(247,197,72,.35); }
.site-header .nav-cta {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 42px;
    padding: 0 1.2rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
@media (min-width: 1200px) {
    .site-header .nav-actions { width: auto; }
    .site-header .nav-cta { flex: 0 0 auto; }
}
.site-header .navbar-toggler {
    flex: 0 0 auto;
    margin-left: .5rem;
    border-color: rgba(255,255,255,.35);
    border-radius: 10px;
    padding: .3rem .55rem;
}
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(247,197,72,.25); }
.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sticky header */
.site-header.sticky-top { position: sticky; top: 0; z-index: 1030; box-shadow: 0 4px 18px rgba(var(--brand-dark-rgb), .35); }

/* ---- Unit status ticker (marquee) --------------------------------- */
.unit-ticker {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--brand-dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .8rem;
}
.unit-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--brand-gold);
    color: #1b1b1b;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .45rem .95rem;
    white-space: nowrap;
    z-index: 2;
}
.unit-ticker-viewport { overflow: hidden; flex: 1 1 auto; position: relative; }
.unit-ticker-viewport::before,
.unit-ticker-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    z-index: 1;
    pointer-events: none;
}
.unit-ticker-viewport::before { left: 0; background: linear-gradient(90deg, var(--brand-dark), transparent); }
.unit-ticker-viewport::after { right: 0; background: linear-gradient(270deg, var(--brand-dark), transparent); }
.unit-ticker-track {
    display: flex;
    width: max-content;
    animation: unit-ticker-scroll 45s linear infinite;
}
.unit-ticker:hover .unit-ticker-track { animation-play-state: paused; }
.unit-ticker-static { display: none; justify-content: center; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1.15rem;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.08);
    color: #fff;
}
.ticker-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.ticker-item b { font-weight: 700; }
.ticker-item span { color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; font-size: .7rem; }
.ticker-available::before { background: #35c46b; }
.ticker-reserved::before { background: var(--brand-gold); }
.ticker-sold::before { background: #e0524f; }
@keyframes unit-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .unit-ticker-track { display: none; }
    .unit-ticker-viewport::before,
    .unit-ticker-viewport::after { display: none; }
    .unit-ticker-static { display: flex; flex: 1 1 auto; }
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--brand-green-rgb),.45), rgba(var(--brand-dark-rgb),.60)),
                url("../img/banner2.jpg?v=2") center/cover no-repeat;
    background-color: var(--brand-green);
    padding: 64px 0 56px;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: .6rem; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1rem; max-width: 620px; margin: 0 auto 1.4rem; }
.hero .badge-pill {
    display: inline-block;
    background: rgba(247,197,72,.18);
    color: var(--brand-gold);
    border: 1px solid rgba(247,197,72,.5);
    border-radius: 50px;
    padding: .35rem .9rem;
    font-size: .76rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Hero slideshow (static banner with copy below) */
.hero-slider { padding: 0; min-height: 0; display: block; background: linear-gradient(160deg, var(--brand-green-3) 0%, var(--brand-dark) 100%); }
.hero-slider .container { position: relative; z-index: 2; padding-top: 46px; padding-bottom: 58px; }
.hero-slider h1 { font-size: 2.1rem; margin: .2rem 0 .35rem; }
.hero-sub { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; color: var(--brand-gold); font-style: italic; margin-bottom: .45rem; }
.hero-slider .lead { font-size: .98rem; max-width: 640px; }
.hero-slider .badge-pill { margin-bottom: .9rem; }
.hero-tagline { margin: .35rem 0 1.5rem; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-slider .btn { min-width: 170px; }
.hero-slides { position: relative; height: 260px; overflow: hidden; background: var(--brand-dark); }
.hero-slide {
    position: absolute; inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity .8s ease;
    z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide.active .hero-slide-bg { animation: heroKenBurns 3.8s ease forwards; }
@keyframes heroKenBurns {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-slide.active .hero-slide-bg { animation: none; }
}
/* Real <img> elements let the browser auto-fit JPG, JPEG, PNG, WEBP and GIF. */
.hero-slide-bg,
.hero-slide-img {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    object-position: center center;
}
.hero-slide-bg {
    inset: -6%;
    width: 112%;
    height: 112%;
    filter: blur(24px) brightness(.45) saturate(1.15);
    transform: scale(1.06);
}
.hero-slide-img {
    inset: 0;
    filter: brightness(1.08) saturate(1.08);
}
/* Inner-page banners use the shared images only; their own copy sits below. */
body.inner-page .site-hero-banner {
    display: block;
    padding: 0;
}
body.inner-page .site-hero-banner::before,
body.inner-page .site-hero-banner::after { display: none; }
body.inner-page .site-hero-banner > .hero-slides {
    position: relative;
    inset: auto;
    z-index: 0;
}
body.inner-page .site-hero-banner > .container { position: relative; z-index: 2; }

/* Soft scrim for text readability over the banner image */
.hero-slides::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(var(--brand-dark-rgb),.10) 0%, rgba(var(--brand-dark-rgb),.28) 100%);
    pointer-events: none;
}
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.hero-dots button {
    width: 11px; height: 11px; border-radius: 50%;
    border: 0; padding: 0; cursor: pointer;
    background: rgba(255,255,255,.45);
    transition: background .2s ease, transform .2s ease;
}
.hero-dots button.active { background: var(--brand-gold); transform: scale(1.2); }

/* ---- Feature / stat strip ----------------------------------------- */
.stat-box {
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    padding: 18px 14px;
    text-align: center;
    height: 100%;
}
.stat-box .num { font-size: 1.6rem; font-weight: 800; color: var(--brand-green); }
.stat-box .lbl { font-size: .82rem; color: var(--brand-muted); }

/* ---- Cards --------------------------------------------------------- */
.card-brand {
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card-brand:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow); }
.card-brand img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-brand .card-body { padding: 18px; }

/* ---- Section heading ---------------------------------------------- */
.section-title { text-align: center; margin-bottom: 34px; }
.section-title .eyebrow {
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .76rem;
    font-weight: 700;
}
.section-title h2 { font-size: 1.6rem; margin: .3rem 0 .5rem; }
.section-title p { color: var(--brand-muted); max-width: 640px; margin: 0 auto; }

/* ---- Gallery ------------------------------------------------------- */
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px 12px 10px;
    background: linear-gradient(transparent, rgba(var(--brand-dark-rgb),.85));
    color: #fff; font-size: .82rem;
}

/* ---- Footer -------------------------------------------------------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.75); padding: 44px 0 20px; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--brand-gold); }
.site-footer .footer-brand { color: #fff; font-weight: 800; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    margin-right: .4rem;
    font-size: 1.05rem;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .82rem; }

/* ---- Floating action buttons (mobile) ------------------------------ */
.float-actions {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.float-actions a {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
    border: 2px solid rgba(255,255,255,.85);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.float-actions svg {
    display: block;
    width: 28px; height: 28px;
    shape-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}
.float-whatsapp { background: #25d366; }
.float-call { background: var(--brand-green); }
.float-actions a:hover {
    transform: translateY(-3px) scale(1.03);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.38);
}
.float-whatsapp:hover { background: #128c7e; }
.float-call:hover { background: var(--et-blue, #1e6fd9); }

/* ---- Page banner (inner pages) ------------------------------------ */
.page-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-green);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--banner-inner) center/cover no-repeat;
    filter: brightness(1.16) saturate(1.1);
    z-index: 0;
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--brand-green-rgb),.42), rgba(var(--brand-dark-rgb),.58));
    z-index: 1;
}
.page-banner > .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: 1.6rem; margin: 0; }
.page-banner .breadcrumb { justify-content: center; margin: .4rem 0 0; background: transparent; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb-item.active { color: var(--brand-gold); }

/* ---- Tables (units) ------------------------------------------------ */
.unit-table thead th { background: var(--brand-green); color: #fff; font-size: .82rem; white-space: nowrap; }
.unit-table td, .unit-table th { vertical-align: middle; }

/* ---- Forms --------------------------------------------------------- */
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-gold); box-shadow: 0 0 0 .2rem rgba(247,197,72,.2); }
.form-label { font-weight: 600; font-size: .9rem; }

/* ---- Auth (admin login) ------------------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-green), var(--brand-dark)); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; padding: 28px 22px; width: 100%; max-width: 400px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* ---- Admin shell --------------------------------------------------- */
.admin-body { padding-top: 0; background: #f4f6f8; }
.admin-sidebar {
    background: linear-gradient(180deg, #eef5ff 0%, #e3eefc 100%);
    color: #334155;
    min-height: 100vh;
    border-right: 1px solid #d7e3f4;
}
.admin-sidebar .admin-brand-link { color: #0f3d68; }
.admin-sidebar .admin-brand-link:hover { color: #0b2f52; }
.admin-sidebar a {
    color: #334155;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: color .22s ease, background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.admin-sidebar a:hover {
    background: #fff3e6;
    color: #e67e22;
    transform: translateX(4px);
    box-shadow: inset 3px 0 0 #f39c12;
}
.admin-sidebar a:hover i { color: #e67e22; }
.admin-sidebar a.active {
    background: #fff7ed;
    color: #d97706;
    box-shadow: inset 3px 0 0 #f39c12;
}
.admin-sidebar .admin-view-site {
    color: #475569;
    padding: .5rem 1rem;
    transition: color .22s ease, background-color .22s ease, transform .22s ease;
}
.admin-sidebar .admin-view-site:hover {
    color: #e67e22;
    background: #fff3e6;
    transform: translateX(3px);
}
.admin-sidebar hr { border-color: #c9d9ec; opacity: 1; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; }
/* Keep anchored cards clear of the sticky admin top bar. */
#recordPayment { scroll-margin-top: 84px; }
.stat-card { background: #fff; border-radius: var(--brand-radius); padding: 18px; border: 1px solid #eceff2; height: 100%; }
.stat-card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-card .num { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
/* Long PKR amounts: smaller and allowed to wrap on narrow cards. */
.stat-card .num-sm { font-size: 1.15rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }

/* ---- Lightbox (image viewer) --------------------------------------- */
.lb {
    position: fixed; inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 15, 11, .94);
    backdrop-filter: blur(4px);
    padding: 52px 16px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb-figure {
    margin: 0;
    max-width: 1280px;
    max-height: 82vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    border-radius: 14px;
    padding: 14px;
    transform: scale(.96);
    transition: transform .22s ease;
}
.lb.open .lb-figure { transform: scale(1); }
.lb-figure img {
    max-width: 100%;
    max-height: calc(82vh - 90px);
    width: auto;
    border-radius: 8px;
    display: block;
}
.lb-figure figcaption {
    color: rgba(255, 255, 255, .92);
    text-align: center;
    font-size: .9rem;
    padding: 10px 6px 2px;
    letter-spacing: .3px;
}
.lb-count {
    position: absolute;
    top: 16px; left: 0; right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
    letter-spacing: 1px;
}
.lb-close, .lb-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
    padding: 0;
}
.lb-close:hover, .lb-nav:hover { background: var(--brand-gold); color: #1b1b1b; transform: scale(1.06); }
.lb-close {
    top: 14px; right: 14px;
    width: 42px; height: 42px;
    font-size: 1.1rem;
}
.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    font-size: 1.4rem;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 576px) {
    .lb { padding: 48px 8px 30px; }
    .lb-figure { padding: 8px; border-radius: 10px; }
    .lb-nav { width: 38px; height: 38px; font-size: 1.1rem; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
}

/* =====================================================================
   Luxury components
   ===================================================================== */

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Eyebrow refinements */
.section-title h2 { font-size: 1.8rem; }
.section-title .eyebrow { font-size: .74rem; }

/* Divider flourish under section titles */
.section-title h2::after {
    content: "";
    display: block;
    width: 54px; height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-dark));
    border-radius: 3px;
}
.text-start .eyebrow + h2::after,
.section-title.text-start h2::after { margin-left: 0; }

/* The Five Experiences */
.exp-card {
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    padding: 30px 22px;
    height: 100%;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.exp-card:hover { transform: translateY(-6px); box-shadow: var(--brand-shadow); border-color: rgba(247,197,72,.7); }
.exp-card .exp-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    font-size: 1.75rem;
    color: var(--brand-gold);
    background: linear-gradient(160deg, var(--brand-green-3), var(--brand-dark));
    box-shadow: 0 8px 20px rgba(var(--brand-dark-rgb),.28);
}
.exp-card h3 { font-size: 1.25rem; margin-bottom: .35rem; letter-spacing: 1px; }
.exp-card .exp-letter { color: var(--brand-gold-dark); font-weight: 700; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; display: block; }
.exp-card p { color: var(--brand-muted); font-size: .92rem; margin-bottom: 0; }

/* Amenity tiles */
.amenity-tile {
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    padding: 24px 18px;
    height: 100%;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.amenity-tile:hover { transform: translateY(-5px); box-shadow: var(--brand-shadow); }
.amenity-tile .ai { font-size: 1.7rem; color: var(--brand-gold-dark); display: block; margin-bottom: 10px; }
.amenity-tile h3 { font-size: 1rem; margin-bottom: .2rem; }
.amenity-tile p { font-size: .82rem; color: var(--brand-muted); margin: 0; }

/* Developer values */
.value-card {
    background: #fff;
    border: 1px solid #ece7db;
    border-left: 4px solid var(--brand-gold);
    border-radius: var(--brand-radius);
    padding: 22px;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow); }
.value-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.value-card p { font-size: .88rem; color: var(--brand-muted); margin: 0; }
.value-card .ai { color: var(--brand-gold-dark); font-size: 1.4rem; }

/* Flagship callout */
.flagship {
    background: linear-gradient(135deg, var(--brand-green-3), var(--brand-dark));
    color: #fff;
    border-radius: var(--brand-radius);
    padding: 34px;
    border: 1px solid rgba(247,197,72,.3);
}
.flagship h2, .flagship h3 { color: #fff; }
.flagship p { color: rgba(255,255,255,.86); margin-bottom: 0; }

/* Closing banner line */
.trust-line {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--brand-gold);
}

/* Selling-point badges */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: 50px;
    padding: .6rem 1.1rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--brand-green);
    box-shadow: 0 4px 14px rgba(var(--brand-dark-rgb),.06);
}
.plan-badge i { color: #1e9e5a; }

/* ---- Payment plans page ------------------------------------------- */
.page-banner-plan { padding: 58px 0; }
.page-banner-plan .eyebrow-light {
    display: block;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .74rem;
    font-weight: 700;
    margin-bottom: .55rem;
}
.page-banner-sub {
    color: rgba(255,255,255,.82);
    max-width: 560px;
    margin: .55rem auto 0;
    font-size: .96rem;
}

/* Plan highlight strip */
.plan-highlight {
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    padding: 22px 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 18px rgba(var(--brand-dark-rgb),.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.plan-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-shadow);
    border-color: rgba(247,197,72,.65);
}
.plan-highlight i { font-size: 1.6rem; color: var(--brand-gold-dark); display: block; margin-bottom: .5rem; }
.plan-highlight .ph-value {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand-green);
    line-height: 1;
}
.plan-highlight .ph-label { font-size: .78rem; color: var(--brand-muted); margin-top: .4rem; }

/* Payment table */
.plan-table-wrap {
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow);
    overflow: hidden;
}
.pay-table { margin: 0; }
.pay-table thead th {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2));
    color: #fff;
    font-size: .76rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 15px 18px;
    border: 0;
    white-space: nowrap;
}
.pay-table tbody td { padding: 15px 18px; border-color: #f0efe9; vertical-align: middle; }
.pay-table tbody tr { transition: background .2s ease; }
.pay-table tbody tr:hover { background: #faf8f1; }
.pay-table .total { font-weight: 700; color: var(--brand-gold-dark); }
.pay-table .cat-name { display: block; font-weight: 700; color: var(--brand-green); }
.pay-table .cat-sub { font-size: .74rem; color: var(--brand-muted); }
.monthly-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    background: rgba(247,197,72,.18);
    color: var(--brand-gold-dark);
    border: 1px solid rgba(247,197,72,.55);
    border-radius: 50px;
    padding: 5px 13px;
    font-weight: 700;
    white-space: nowrap;
}
.monthly-chip small { font-weight: 600; opacity: .8; }
.table-caption-note { font-size: .8rem; color: var(--brand-muted); }

/* Payment plan accordion */
.pay-accordion { margin-top: 26px; }
.pay-accordion .accordion-item {
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(var(--brand-dark-rgb),.04);
}
.pay-accordion .accordion-button {
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand-green);
    background: #fff;
    padding: 18px 20px;
    gap: .5rem;
}
.pay-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-light);
    color: var(--brand-green);
    box-shadow: none;
}
.pay-accordion .accordion-button:focus { box-shadow: none; border-color: #ece7db; }
.pay-accordion .cat-chip {
    margin-left: auto;
    margin-right: 14px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand-gold-dark);
    background: rgba(247,197,72,.16);
    border: 1px solid rgba(247,197,72,.45);
    border-radius: 50px;
    padding: 4px 12px;
    white-space: nowrap;
}
.pay-accordion .accordion-body { padding: 22px 20px; }

/* Payment composition bar */
.comp { margin-bottom: 6px; }
.comp-title { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-muted); margin-bottom: 10px; }
.comp-bar { display: flex; height: 16px; border-radius: 50px; overflow: hidden; background: #eceae2; }
.comp-seg { height: 100%; }
.comp-seg.down { background: var(--brand-gold); }
.comp-seg.inst { background: var(--brand-green-2); }
.comp-seg.year { background: #2e9e6b; }
.comp-seg.poss { background: var(--brand-dark); }
.comp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .78rem; color: var(--brand-muted); }
.comp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.comp-legend .dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.comp-legend .dot.down { background: var(--brand-gold); }
.comp-legend .dot.inst { background: var(--brand-green-2); }
.comp-legend .dot.year { background: #2e9e6b; }
.comp-legend .dot.poss { background: var(--brand-dark); }

/* Schedule table */
.pay-schedule th { width: 55%; font-weight: 600; color: var(--brand-green); font-size: .9rem; }
.pay-schedule td { text-align: right; font-weight: 700; }
.pay-schedule tr.highlight-row th,
.pay-schedule tr.highlight-row td { color: var(--brand-gold-dark); }
.pay-schedule tr:last-child td,
.pay-schedule tr:last-child th { border-bottom: 0; }
.schedule-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 12px;
}
.schedule-head i { color: var(--brand-gold-dark); }

/* How it works steps */
.plan-steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .plan-steps { grid-template-columns: repeat(4, 1fr); } }
.plan-step {
    position: relative;
    background: #fff;
    border: 1px solid #ece7db;
    border-radius: var(--brand-radius);
    padding: 24px 20px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.plan-step:hover { transform: translateY(-5px); box-shadow: var(--brand-shadow); }
.plan-step .step-no {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-green);
    color: var(--brand-gold);
    font-weight: 800;
    margin-bottom: 14px;
}
.plan-step h3 { font-size: 1rem; margin-bottom: .3rem; }
.plan-step p { font-size: .85rem; color: var(--brand-muted); margin: 0; }

/* Installment calculator */
.calc-box {
    background: linear-gradient(160deg, var(--brand-green-3), var(--brand-dark));
    color: #fff;
    border-radius: var(--brand-radius);
    padding: 30px 26px;
    height: 100%;
    box-shadow: var(--brand-shadow);
}
.calc-box h3 { color: #fff; font-size: 1.3rem; }
.calc-box .form-label { color: rgba(255,255,255,.85); }
.calc-box .help { color: rgba(255,255,255,.7); font-size: .82rem; }
.calc-result { border-top: 1px solid rgba(255,255,255,.18); margin-top: 18px; padding-top: 18px; }
.calc-result .amount { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; color: var(--brand-gold); line-height: 1.1; }
.calc-result .label { font-size: .82rem; color: rgba(255,255,255,.75); letter-spacing: 1px; text-transform: uppercase; }
.calc-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.2); }
.calc-meta .k { display: block; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.calc-meta .v { font-weight: 700; color: #fff; }
.calc-box .form-select { border: 0; }

/* Destination cards */
.dest-card {
    position: relative;
    border-radius: var(--brand-radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-green-3), var(--brand-dark));
    color: #fff;
    padding: 22px;
    height: 100%;
}
.dest-card .ai { font-size: 1.5rem; color: var(--brand-gold); }
.dest-card h3 { color: #fff; font-size: 1.05rem; margin: .5rem 0 .25rem; }
.dest-card p { color: rgba(255,255,255,.8); font-size: .84rem; margin: 0; }

/* Regional map graphic (decorative) */
.map-graphic {
    border-radius: var(--brand-radius);
    overflow: hidden;
    border: 1px solid #ece7db;
    background: var(--brand-light);
}
.map-graphic svg { display: block; width: 100%; height: auto; }

/* Footer tagline line */
.footer-line { color: rgba(255,255,255,.6); font-size: .84rem; }

/* Larger, elegant footer brand */
.site-footer .footer-brand { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; }

/* About page hero (full-width render + mountain backdrop) */
.about-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 96px 0;
    background-color: var(--brand-green);
}
.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--banner-about) center/cover no-repeat;
    filter: brightness(1.16) saturate(1.1);
    z-index: 0;
}
.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--brand-green-rgb),.40), rgba(var(--brand-dark-rgb),.60));
    z-index: 1;
}
.about-hero > .container { position: relative; z-index: 2; }
.about-hero h1 { color: #fff; font-size: 2.2rem; margin: .3rem 0; }
.about-hero .lead-line { color: rgba(255,255,255,.9); font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.1rem; }

/* Pull quote */
.pullquote {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--brand-green);
    border-left: 4px solid var(--brand-gold);
    padding: .3rem 0 .3rem 20px;
    margin: 0;
}

/* Band with mountain silhouette */
.mountain-band { position: relative; background: linear-gradient(160deg, var(--brand-green-3), var(--brand-dark)); color: #fff; overflow: hidden; }
.mountain-band .container { position: relative; z-index: 2; }
.mountain-band h2 { color: #fff; }
.mountain-band p { color: rgba(255,255,255,.86); }
.mountain-svg { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; opacity: .16; z-index: 1; }

/* Built on trust band */
.trust-band { background: var(--brand-light); border: 1px solid #ece7db; border-radius: var(--brand-radius); padding: 34px; }
.trust-band img { height: 74px; width: auto; }

/* Dark chip so white-on-transparent logos read on light backgrounds */
.logo-chip { display: inline-block; background: linear-gradient(160deg, var(--brand-green-3), var(--brand-dark)); padding: 16px 22px; border-radius: 14px; line-height: 0; }
.logo-chip img { height: 82px; width: auto; margin: 0 !important; }

/* Group (Builder) hero variant */
.about-hero.group-hero::before {
    background-image: var(--banner-builder);
}
.about-hero.group-hero::after {
    background: linear-gradient(135deg, rgba(var(--brand-green-rgb),.42), rgba(var(--brand-dark-rgb),.62));
}

/* Numbered value chips */
.vnum {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(247,197,72,.18);
    color: var(--brand-gold-dark);
    font-weight: 700; font-size: .85rem;
    margin-bottom: .6rem;
    font-family: "Inter", sans-serif;
}

/* Simple gold check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .55rem; color: var(--brand-muted); }
.check-list li i { color: var(--brand-gold-dark); margin-top: 3px; }

/* Chairman message */
.chair-message { background: linear-gradient(135deg, var(--brand-green-3), var(--brand-dark)); color: #fff; border-radius: var(--brand-radius); padding: 34px; border: 1px solid rgba(247,197,72,.3); }
.chair-message p { color: rgba(255,255,255,.88); }
.chair-message .who { color: var(--brand-gold); font-weight: 700; }
.chair-message .role { color: rgba(255,255,255,.65); font-size: .82rem; }
.ceo-photo { width: 168px; height: 168px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(247,197,72,.55); box-shadow: 0 14px 34px rgba(0,0,0,.4); }

/* Mother company highlight card */
.mother-card { background: linear-gradient(160deg, var(--brand-green-3), var(--brand-dark)); color: #fff; border-radius: var(--brand-radius); padding: 26px; text-align: center; height: 100%; }
.mother-card img { height: 86px; width: auto; margin-bottom: 12px; }
.mother-card h3 { color: #fff; margin-bottom: .2rem; }
.mother-card p { color: rgba(255,255,255,.75); margin: 0; font-size: .85rem; }


/* =====================================================================
   Responsive scaling (mobile-first → larger screens)
   ===================================================================== */
@media (min-width: 576px) {
    .hero h1 { font-size: 2.4rem; }
    .hero:not(.hero-slider) { padding: 80px 0 70px; }
    .section { padding: 70px 0; }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 2.9rem; }
    .hero p.lead { font-size: 1.12rem; }
    .hero-slider .hero-slides { height: 300px; }
    .hero-slider h1 { font-size: 2.7rem; }
    .hero-slider .lead { font-size: 1.05rem; }
    .section-title h2 { font-size: 2.1rem; }
    .page-banner { padding: 56px 0; }
    .page-banner h1 { font-size: 2.1rem; }
}

@media (min-width: 992px) {
    :root { --header-h: 90px; }
    .section { padding: 84px 0; }
    .hero:not(.hero-slider) { padding: 100px 0 90px; }
    .hero-slider .hero-slides { height: 340px; }
    .hero-slider h1 { font-size: 3.1rem; }
    .hero-sub { font-size: 1.3rem; }
    .brand-mark { width: 60px; height: 60px; padding: 8px; border-radius: 14px; }
    .site-header .navbar-brand { font-size: 1.22rem; }
    .brand-sub { font-size: .7rem; }
    .site-header .nav-link { padding: .5rem .8rem; font-size: .95rem; }
    .site-header .navbar-nav { gap: .15rem; }
}

@media (max-width: 1199.98px) {
    /* Mobile full-screen menu */
    .navbar-collapse.collapse.navbar-mobile {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(160deg, var(--brand-green) 0%, var(--brand-green-4) 100%);
        z-index: 1045;
        padding: 84px 22px 30px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .navbar-collapse .btn-close { position: absolute; top: 18px; right: 18px; }
    .navbar-collapse.navbar-mobile .navbar-nav { gap: .4rem; }
    .navbar-collapse.navbar-mobile .nav-link {
        color: rgba(255,255,255,.92);
        font-size: 1.05rem;
        padding: .7rem 1.1rem;
    }
    .navbar-collapse.navbar-mobile .nav-link.active { color: var(--brand-gold); background: rgba(247,197,72,.14); border-color: rgba(247,197,72,.5); }
}

@media (max-width: 575.98px) {
    .hero-slider .hero-slides { height: 160px; }
    .hero-slider .container { padding-top: 38px; padding-bottom: 46px; }
    .hero-slider h1 { font-size: 1.85rem; }
    .hero-slider .lead { font-size: .9rem; }
    .hero-slider .badge-pill { font-size: .66rem; }
    .hero-slider .d-flex .btn { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 400px) {
    .site-header .navbar-brand { font-size: .96rem; gap: .55rem; }
    .brand-mark { width: 46px; height: 46px; padding: 6px; border-radius: 11px; }
    .brand-sub { display: none; }
}

/* ------------------------------------------------------------------
   Admin panel additions
   ------------------------------------------------------------------ */
.admin-nav-heading {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    padding: .9rem 1rem .35rem;
    font-weight: 700;
}
.admin-sidebar .admin-nav-heading:first-child { padding-top: .2rem; }

/* Mobile offcanvas admin nav: light blue to match sidebar */
#adminNav {
    background: linear-gradient(180deg, #eef5ff 0%, #e3eefc 100%);
    color: #334155;
}
#adminNav .offcanvas-header {
    background: rgba(255,255,255,.45);
    border-bottom: 1px solid #d7e3f4;
}
#adminNav .offcanvas-title {
    font-weight: 700;
    letter-spacing: .02em;
    color: #0f3d68;
}
#adminNav a {
    color: #334155;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .72rem .9rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color .22s ease, background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
#adminNav a:hover {
    background: #fff3e6;
    color: #e67e22;
    transform: translateX(4px);
    box-shadow: inset 3px 0 0 #f39c12;
}
#adminNav a:hover i { color: #e67e22; }
#adminNav a.active {
    background: #fff7ed;
    color: #d97706;
    box-shadow: inset 3px 0 0 #f39c12;
}
#adminNav a i {
    font-size: 1rem;
    opacity: .95;
    transition: color .22s ease, transform .22s ease;
}
#adminNav .admin-nav-heading {
    color: #64748b;
    padding: 1rem .9rem .35rem;
}
#adminNav .admin-nav-heading:first-child { padding-top: .2rem; }
#adminNav .badge { font-size: .7rem; }

.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    background: #f8fafb;
    white-space: nowrap;
}
.stat-card .num-xs { font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.empty-state { padding: 48px 20px; text-align: center; color: #6b7280; }
.empty-state i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .5; }
.form-section-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid #eceff2;
}
.receipt-share { word-break: break-all; }
.quick-actions .btn { text-align: left; }

/* ---- Reporting centre --------------------------------------------- */
.report-print-head { display: none; }

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    align-items: center;
    padding: .6rem .9rem;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 10px;
    font-size: .8rem;
    color: #4b5563;
}
.report-meta i { color: var(--brand-green); margin-right: .25rem; }

.report-tile {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    height: 100%;
    padding: .8rem .9rem;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.report-tile:hover { border-color: var(--brand-gold); box-shadow: 0 6px 18px rgba(6,34,26,.08); transform: translateY(-1px); color: inherit; }
.report-tile.active { border-color: var(--brand-green); box-shadow: 0 0 0 1px var(--brand-green) inset; background: #f7faf8; }
.report-tile-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(var(--brand-green-rgb), .08);
    color: var(--brand-green);
    font-size: 1rem;
}
.report-tile.active .report-tile-icon { background: var(--brand-green); color: #fff; }
.report-tile-body { display: flex; flex-direction: column; min-width: 0; }
.report-tile-title { font-weight: 700; font-size: .88rem; line-height: 1.2; }
.report-tile-desc { font-size: .72rem; color: #6b7280; line-height: 1.3; margin-top: .15rem; }

.report-kpi {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    height: 100%;
    padding: .9rem 1rem;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(6,34,26,.04);
}
.report-kpi-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1.05rem;
}
.report-kpi-body { min-width: 0; }
.report-kpi-value { font-size: 1.15rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.report-kpi-label { font-size: .75rem; color: #4b5563; margin-top: .1rem; }
.report-kpi-note { font-size: .7rem; color: #6b7280; margin-top: .1rem; }

.report-panel {
    height: 100%;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(6,34,26,.04);
}
.report-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #eef1f4;
}
.report-bar-row { margin-bottom: .65rem; }
.report-bar-row:last-child { margin-bottom: 0; }
.report-bar-label { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; margin-bottom: .25rem; }
.report-bar { height: 7px; background: #eef1f4; border-radius: 99px; overflow: hidden; }
.report-bar > span { display: block; height: 100%; border-radius: 99px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 99px;
    border: 1px solid #d7dde3;
    background: #fff;
    color: #374151;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}
.chip:hover { border-color: var(--brand-green); color: var(--brand-green); }
.chip.active { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.chip-static { background: #f3f6f5; border-color: #e2e9e5; font-weight: 500; }

.report-filters {
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(6,34,26,.04);
}

.report-table tbody tr:hover > * { background: rgba(var(--brand-green-rgb), .03); }
.report-table tfoot > tr > * {
    background: #f8fafb;
    border-top: 2px solid #e2e7ec;
    font-weight: 700;
    font-size: .8rem;
    white-space: nowrap;
}
.report-table td, .report-table th { padding: .55rem .7rem; }
.report-table thead th { position: sticky; top: 0; z-index: 1; }
.rp-print-note { display: none; }

/* ---- Admin payment plan templates --------------------------------- */
.plan-admin-table td { padding: .6rem .65rem; }
.plan-admin-table th { padding: .55rem .65rem; }
.plan-admin-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-admin-table .plan-name {
    display: block;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
}
.plan-admin-table .plan-name:hover { color: var(--brand-gold-dark); }
.plan-admin-table .plan-key {
    font-size: .69rem;
    color: #6b7280;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.plan-admin-table .money-main { font-weight: 700; }
.plan-admin-table .money-sub { font-size: .68rem; color: #6b7280; line-height: 1.2; }
.plan-admin-table .monthly-chip { padding: 4px 10px; font-size: .82rem; }
.plan-admin-table tbody tr { transition: background .15s ease; }

.plan-detail-row > td { padding: 0 !important; border-top: 0 !important; background: #f8fafb !important; }
.plan-detail-row:hover > td { background: #f8fafb !important; }
.plan-detail-body { padding: 1rem 1.1rem 1.1rem; border-top: 1px solid #e7ebef; }
.plan-detail-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: .5rem;
}
.plan-detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.plan-detail-stat {
    min-width: 0;
    padding: .55rem .65rem;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 10px;
}
.plan-detail-stat .k { font-size: .68rem; color: #6b7280; line-height: 1.2; }
.plan-detail-stat .v {
    font-size: .88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.plan-detail-table { --bs-table-bg: #fff; }
.plan-detail-table th {
    width: 52%;
    font-weight: 600;
    font-size: .8rem;
    color: var(--brand-green);
    background: #fff;
    border-color: #eef1f4;
}
.plan-detail-table td {
    text-align: right;
    font-weight: 700;
    font-size: .82rem;
    background: #fff;
    border-color: #eef1f4;
    white-space: nowrap;
}
.plan-detail-table tr.highlight-row th,
.plan-detail-table tr.highlight-row td { color: var(--brand-gold-dark); }

@media (max-width: 575.98px) {
    .plan-detail-stats { grid-template-columns: 1fr; }
}

@media print {
    @page { size: A4; margin: 12mm; }
    .report-print-head {
        display: block;
        margin-bottom: 14px;
        padding-bottom: 0;
    }
    .letterhead {
        display: flex; align-items: center; gap: 12px;
        padding: 0 0 8px; border-bottom: 2px solid #0a1f44;
    }
    .lh-logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
    .lh-id { flex: 1 1 auto; min-width: 0; text-align: left; }
    .lh-name {
        font-size: 13px; font-weight: 800; color: #0a1f44;
        line-height: 1.1; text-transform: uppercase; letter-spacing: .03em;
    }
    .lh-legal {
        font-size: 9px; font-weight: 700; color: #0b5ea8;
        text-transform: uppercase; letter-spacing: .1em;
    }
    .lh-contact { font-size: 8px; color: #555; line-height: 1.4; margin-top: 2px; }
    .lh-right { flex: 0 0 auto; text-align: right; }
    .lh-right h2 {
        font-size: 13px; margin: 0 0 2px; color: #0a1f44;
        text-transform: uppercase; letter-spacing: .08em;
    }
    .lh-right div { font-size: 8px; color: #555; line-height: 1.4; }
    .rp-print-meta {
        width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 8.5px;
    }
    .rp-print-meta th {
        text-align: left; text-transform: uppercase; letter-spacing: .06em;
        color: #555; font-weight: 700; padding: 3px 6px 3px 0;
    }
    .rp-print-meta td {
        color: #0a1f44; font-weight: 700; padding: 3px 10px 3px 0;
    }
    .report-meta { display: none !important; }
    .report-tile, .report-filters { display: none !important; }
    .report-panel { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
    .report-kpi {
        border: 1px solid #bbb !important; border-top: 3px solid #0a1f44 !important;
        border-radius: 0 !important; box-shadow: none !important; padding: 7px 8px !important;
    }
    .report-kpi-value { font-size: 13px; }
    .report-kpi-label { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
    .report-kpi-icon { width: 28px; height: 28px; font-size: .85rem; }
    .report-table { width: 100% !important; border: 1px solid #bbb; font-size: 9px; }
    .report-table thead { display: table-header-group; }
    .report-table thead th {
        position: static; background: #0a1f44 !important; color: #fff !important;
        border: 1px solid #0a1f44; text-transform: uppercase; letter-spacing: .04em;
    }
    .report-table tbody td { border: 1px solid #ccc; vertical-align: top; }
    .report-table tbody tr:nth-child(even) > * { background: #f7f9fc !important; }
    .report-table tfoot > tr > * {
        background: #fbf7ec !important; border-top: 2px solid #0a1f44 !important;
        color: #0a1f44 !important; font-weight: 800;
    }
    .report-table tr { page-break-inside: avoid; }
    .report-bar { border: 1px solid #999; }
    body.admin-body .report-panel-head { border-bottom: 1px solid #0a1f44; padding-bottom: 6px; }
    body.admin-body .report-panel-head h3 { color: #0a1f44; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
    .rp-print-note {
        display: block; margin-top: 16px; padding-top: 8px;
        border-top: 1px solid #999; font-size: 8.5px; color: #555; line-height: 1.5;
    }
}


@media print {
    body.admin-body { background: #fff !important; }
    .admin-sidebar, .admin-topbar, .offcanvas, .no-print { display: none !important; }
    .col-lg-10 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    .container-fluid > .row > .col-lg-10 > .p-3 { padding: 0 !important; }
    .stat-card { border: 0 !important; box-shadow: none !important; }
    a { text-decoration: none !important; color: inherit !important; }
    .table { font-size: 12px; }
    .page-break { page-break-before: always; }
}

/* ---- Floor plans / unit inventory ------------------------------ */
.floor-nav {
    display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
    margin-bottom: 1.25rem;
}
.floor-nav .floor-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .9rem; border-radius: 50px;
    border: 1px solid #e2ddcf; background: #fff; color: var(--brand-green);
    font-size: .82rem; font-weight: 600; text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.floor-nav .floor-pill:hover { border-color: var(--brand-gold); color: var(--brand-gold-dark); }
.floor-nav .floor-pill.active { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.floor-nav .floor-pill small { font-weight: 500; opacity: .75; }

.floor-card {
    display: flex; flex-direction: column; gap: .35rem;
    background: #fff; border: 1px solid #ece7db; border-radius: var(--brand-radius);
    padding: 1.1rem 1.15rem; text-decoration: none; color: inherit;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.floor-card:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow); border-color: var(--brand-gold); color: inherit; }
.floor-card .floor-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand-green);
    font-size: 1.35rem; margin-bottom: .15rem;
}
.floor-card .floor-name { font-weight: 800; font-size: 1.02rem; color: var(--brand-green); }
.floor-card .floor-meta { font-size: .8rem; color: var(--brand-muted); }
.floor-card .floor-price { font-size: .85rem; color: var(--brand-gold-dark); font-weight: 700; }
.floor-card .floor-progress { height: 6px; border-radius: 3px; background: #eee9dc; overflow: hidden; }
.floor-card .floor-progress > div { height: 100%; background: var(--brand-green); border-radius: 3px; }
.floor-card .floor-avail { font-size: .78rem; color: var(--brand-muted); }

.unit-tile {
    background: #fff; border: 1px solid #ece7db; border-radius: var(--brand-radius);
    padding: .8rem .9rem; height: 100%;
    display: flex; flex-direction: column; gap: .2rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.unit-tile:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow); border-color: var(--brand-gold); }
.unit-tile.is-taken { background: #faf9f5; border-style: dashed; }
.unit-tile .unit-no { font-weight: 800; font-size: .98rem; color: var(--brand-green); }
.unit-tile .unit-type { font-size: .72rem; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .6px; }
.unit-tile .unit-size { font-size: .8rem; color: var(--brand-muted); }
.unit-tile .unit-price { font-size: .95rem; font-weight: 800; color: var(--brand-gold-dark); }
.unit-tile .unit-actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .45rem; }
.unit-tile .unit-actions .btn { padding: .35rem .7rem; font-size: .78rem; border-radius: 50px; }

.status-dot { display:inline-block; width:.55rem; height:.55rem; border-radius:50%; margin-right:.35rem; vertical-align: baseline; }
.status-dot.available { background: #16a34a; }
.status-dot.reserved { background: #d97706; }
.status-dot.sold { background: #9ca3af; }
