/* The Dubai pages (website/templates/website/dubai/), on top of site.css:
   the same red and ink, with a little gold for Dubai. Project cards are all
   photo, words on dark gradients at the top and the bottom. */

:root {
    --dx-gold: #c9a24a;
    --dx-gold-soft: #fbf3df;
    --dx-night: #0e1417;
    --dx-glass: rgba(14, 20, 23, .55);
}

.text-brand { color: var(--brand); }

/* =========================================================
   BADGES AND PRICES
   ========================================================= */
.dx-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--ink); color: #fff;
    font-size: .74rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
}
.dx-badge--prelaunch { background: #6d28d9; }
.dx-badge--launch { background: var(--brand); }
.dx-badge--construction { background: #b45309; }
.dx-badge--ready { background: var(--ok); }
.dx-badge--hot { background: #f97316; }
.dx-badge--gold { background: var(--dx-gold); color: #1d1606; }
.dx-badge--glass { background: var(--dx-glass); backdrop-filter: blur(6px); }
.dx-badge--soft { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.dx-badge--muted { background: var(--line); color: var(--muted); }
/* A running pre-launch's time left (partials/countdown_short.html). */
.dx-badge--clock { background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.dx-badge--clock .bi { color: var(--brand); }
.dx-badge--clock.is-ended { display: none; }
.dx-gold { color: #8a6a18; font-weight: 700; }

.dx-price { display: inline-flex; flex-direction: column; line-height: 1.15; }
.dx-price-main { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.dx-price-from { font-size: .72em; font-weight: 600; text-transform: lowercase; opacity: .85; }
.dx-price-alt { font-size: .82rem; font-weight: 600; opacity: .75; }
.dx-price.is-request { font-weight: 700; }
.dx-price.is-short .dx-price-main { font-size: 1rem; }

.dx-chip {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 6px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
    font-size: .78rem; font-weight: 700; color: #fff;
}

/* =========================================================
   PROJECT CARDS: the whole card is the photo
   ========================================================= */
.dx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 576px) { .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .dx-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dx-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 430px; aspect-ratio: 4 / 5;
    border-radius: 16px;
    background: var(--dx-night);
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 40, 45, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.dx-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 40, 45, .22); }
.dx-card-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dx-card:hover .dx-card-img { transform: scale(1.04); }
.dx-card-blank { display: grid; place-items: center; background: linear-gradient(135deg, #24303a, #10161a); color: rgba(255, 255, 255, .25); font-size: 4rem; }
.dx-card::before, .dx-card::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.dx-card::before { top: 0; height: 52%; background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 55%, transparent 100%); }
.dx-card::after { bottom: 0; height: 62%; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 50%, transparent 100%); }

.dx-card-top { padding: 16px 18px 0; }
.dx-card-top .dx-badges { margin-bottom: 12px; }
.dx-card-name { margin: 0 0 4px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.dx-card-link { color: inherit; text-decoration: none; }
.dx-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dx-card-link:hover, .dx-card-link:focus { color: #fff; }
.dx-card-link:focus-visible { outline: none; }
.dx-card:has(.dx-card-link:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.dx-card-sub { color: rgba(255, 255, 255, .85); font-size: .88rem; font-weight: 600; }

.dx-card-bottom { padding: 0 18px 16px; }
.dx-card-price { margin-bottom: 10px; }
.dx-card-price .dx-price-main { font-size: 1.5rem; }
.dx-card-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 10px; }
.dx-card-rooms-note { font-size: .78rem; color: rgba(255, 255, 255, .75); font-weight: 600; margin-left: 2px; }
.dx-card-foot {
    display: flex; flex-wrap: wrap; gap: 6px 14px;
    padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .88);
}
.dx-foot-item { display: inline-flex; align-items: center; gap: 5px; }
.dx-card-foot .dx-gold { color: #f3d27a; }
.dx-card-foot.is-plain { border-top: 0; padding-top: 0; color: var(--muted); }
.dx-card-foot.is-plain .dx-gold { color: #8a6a18; }

/* =========================================================
   UNIT CARDS (a project's units for sale)
   ========================================================= */
.dx-unit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 576px) { .dx-unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .dx-unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
main .dx-unit-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dx-unit { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); transition: box-shadow .15s, border-color .15s; }
.dx-unit:hover { border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(16, 40, 45, .1); }
.dx-unit-img { position: relative; aspect-ratio: 4 / 3; background: #e2e8ea; }
.dx-unit-img img { width: 100%; height: 100%; object-fit: cover; }
.dx-unit-img .dx-badge { position: absolute; top: 10px; left: 10px; }
.dx-unit-body { padding: 12px 14px 14px; }
.dx-unit-price .dx-price-main { font-size: 1.15rem; }
.dx-unit-title { margin: 6px 0; font-size: .95rem; font-weight: 700; line-height: 1.3; }
.dx-unit-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.dx-unit-specs span { display: inline-flex; align-items: center; gap: 4px; }
.dx-unit-specs svg { width: 15px; height: 15px; }
.dx-unit-ref { margin-top: 6px; color: var(--muted); font-size: .75rem; }

/* =========================================================
   HOME
   ========================================================= */
.dx-home-hero {
    position: relative; isolation: isolate;
    padding: 84px 0 48px;
    background: var(--dx-night) var(--hero-img) center / cover no-repeat;
    color: #fff;
}
.dx-home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8, 12, 14, .55) 0%, rgba(8, 12, 14, .35) 40%, rgba(8, 12, 14, .85) 100%);
}
.dx-home-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #f3d27a; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.dx-home-flag { width: 22px; height: 14px; border-radius: 2px; background: linear-gradient(90deg, #ce1126 0 25%, transparent 25%), linear-gradient(180deg, #00732f 0 33.3%, #fff 33.3% 66.6%, #000 66.6%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.dx-home-title { max-width: 18ch; margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.dx-home-lead { max-width: 52ch; color: rgba(255, 255, 255, .88); font-size: 1.12rem; }
.dx-home-search {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end;
    max-width: 920px; margin-top: 28px; padding: 14px;
    background: #fff; border-radius: 16px; color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.dx-home-field label { display: block; margin: 0 0 4px 4px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dx-home-field .form-select { min-height: 48px; border-color: var(--line-strong); font-weight: 600; }
.dx-home-search .btn { min-height: 48px; }
@media (max-width: 767.98px) {
    .dx-home-hero { padding: 48px 0 36px; }
    .dx-home-search { grid-template-columns: minmax(0, 1fr); }
}
.dx-home-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 767.98px) {
    .dx-home-quick { flex-wrap: nowrap; margin-right: calc(var(--bs-gutter-x) * -.5); padding-right: calc(var(--bs-gutter-x) * .5); overflow-x: auto; scrollbar-width: none; }
    .dx-home-quick::-webkit-scrollbar { display: none; }
    .dx-home-quick-link { flex-shrink: 0; }
}
.dx-home-quick-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px);
    color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none;
}
.dx-home-quick-link:hover { background: #fff; color: var(--ink); }

.dx-why {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
    margin-top: -28px; position: relative;
    border-radius: 16px; overflow: hidden; background: var(--line);
    box-shadow: 0 16px 40px rgba(16, 40, 45, .12);
}
.dx-why-item { display: flex; gap: 14px; padding: 20px; background: var(--surface); }
.dx-why-figure { flex-shrink: 0; min-width: 52px; color: var(--brand); font-family: 'Genos', sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; }
.dx-why-item strong { display: block; margin-bottom: 2px; }
.dx-why-item p { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 991.98px) { .dx-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dx-why { grid-template-columns: minmax(0, 1fr); margin-top: 16px; } }

.dx-launch-band { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dx-launch-band .dx-card { min-height: 380px; }

.dx-area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .dx-area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dx-area-tile {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 4 / 3; padding: 14px;
    border-radius: 14px; background: linear-gradient(135deg, #26323b, #10161a);
    color: #fff; text-decoration: none;
}
.dx-area-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dx-area-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0) 65%); }
.dx-area-tile:hover { color: #fff; }
.dx-area-tile:hover img { transform: scale(1.05); }
.dx-area-name { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.dx-area-count { font-size: .82rem; font-weight: 600; opacity: .85; }
.dx-area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dx-area-list a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.dx-area-list a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 575.98px) {
    .dx-area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .dx-area-list a { padding: 9px 10px; font-size: .88rem; min-width: 0; }
    .dx-area-list a .bi { flex-shrink: 0; }
}

.dx-guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dx-guide-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.dx-guide-card .bi { color: var(--brand); font-size: 1.4rem; }
.dx-guide-card span { color: var(--muted); font-size: .88rem; }
.dx-guide-card:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(16, 40, 45, .08); color: var(--ink); }

.dx-nc-banner { min-height: 300px; }

/* =========================================================
   SEARCH PAGES
   ========================================================= */
.dx-search-head { padding: 22px 0 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dx-search-title { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.dx-search-intro { max-width: 70ch; color: var(--muted); }
.dx-search-intro p:last-child { margin-bottom: 0; }
.dx-search-count { color: var(--muted); font-weight: 700; white-space: nowrap; }
.dx-results { padding-top: 24px; padding-bottom: 8px; }

.dx-crumbs .breadcrumb { margin-bottom: 10px; font-size: .82rem; }
.dx-crumbs.is-light .breadcrumb-item, .dx-crumbs.is-light .breadcrumb-item a, .dx-crumbs.is-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .8); }
.dx-crumbs.is-light .breadcrumb-item.active { color: #fff; }

.dx-collections { display: flex; gap: 8px; margin: 18px 0 14px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.dx-collection {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.dx-collection:hover { border-color: var(--brand); color: var(--brand); }
.dx-collection.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.dx-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dx-filter .form-select, .dx-filter .form-control { min-height: 42px; border-color: var(--line-strong); font-size: .9rem; font-weight: 600; }
.dx-filter { flex: 0 1 auto; }
.dx-filter .form-select { min-width: 140px; }
.dx-filter-q { position: relative; flex: 1 1 220px; }
.dx-filter-q .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dx-filter-q .form-control { padding-left: 34px; }
.dx-filter-price { display: flex; gap: 6px; }
.dx-filter-price .form-select { min-width: 120px; }
.dx-filter-toggles { display: flex; gap: 6px; }
.dx-filter-toggles .quick-chip { margin: 0; min-height: 42px; display: inline-flex; align-items: center; gap: 6px; }
.btn-check:checked + .quick-chip { background: var(--ink); border-color: var(--ink); color: #fff; }
.dx-filter-sort { margin-left: auto; }
.dx-rooms-menu { min-width: 260px; }
.dx-active { margin-top: 12px; }
#dx-root.htmx-request .dx-results { opacity: .5; transition: opacity .15s; }
.dx-filters-toggle { display: none; }
@media (max-width: 767.98px) {
    .dx-filter { flex: 1 1 calc(50% - 8px); }
    .dx-filter .form-select { min-width: 0; width: 100%; }
    .dx-filter-q, .dx-filter-price, .dx-filter-toggles { flex: 1 1 100%; }
    .dx-filter-price .form-select { flex: 1; }
    .dx-filter-sort { flex: 1 1 calc(50% - 8px); margin-left: 0; order: 1; }
    .dx-filters-toggle {
        display: inline-flex; flex: 1 1 calc(50% - 8px); order: 1; align-items: center; justify-content: center; gap: 8px;
        min-height: 42px; border: 1px solid var(--line-strong); border-radius: var(--bs-border-radius);
        background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 700;
    }
    .dx-filters-toggle[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
    .dx-filters-toggle .count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .72rem; }
    .dx-filters .is-extra { order: 2; }
    .dx-filters:not(.is-open) .is-extra { display: none; }
}

/* =========================================================
   PROJECT PAGE
   ========================================================= */
.dx-hero {
    position: relative; isolation: isolate;
    padding: 18px 0 22px;
    background: var(--dx-night) var(--hero-img) center / cover no-repeat;
    color: #fff;
}
.dx-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8, 12, 14, .55) 0%, rgba(8, 12, 14, .15) 35%, rgba(8, 12, 14, .55) 65%, rgba(8, 12, 14, .92) 100%);
}
.dx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: end; min-height: 360px; padding-top: 60px; }
.dx-hero-title { margin: 12px 0 6px; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.dx-hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); font-weight: 600; }
.dx-hero-dev { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.dx-hero-dev:hover { color: #fff; text-decoration: underline; }
.dx-hero-tagline { max-width: 60ch; margin: 12px 0 0; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.dx-hero-box { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); }
.dx-hero-price { margin-bottom: 10px; }
.dx-hero-price .dx-price-main { font-size: 1.8rem; }
.dx-hero-strip { display: flex; gap: 10px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; }
.dx-hero-strip::-webkit-scrollbar { display: none; }
/* The photos share the row with the buttons, as large as fits; a phone
   scrolls them, the buttons first. */
.dx-hero-thumb { position: relative; flex: 1 1 0; min-width: 140px; max-width: 220px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; overflow: hidden; background: #222; }
.dx-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dx-hero-thumb:hover { border-color: #fff; }
.dx-hero-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 800; font-size: 1.2rem; }
/* Beside the photos: the videos and all the photos, one above the other. */
.dx-hero-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.dx-hero-all { flex: 1; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.dx-hero-all .bi-play-circle { color: var(--brand); font-size: 1.05rem; }
@media (max-width: 767.98px) { .dx-hero-actions { order: -1; } }
@media (max-width: 991.98px) {
    .dx-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 120px; }
}

.dx-subnav { position: sticky; top: var(--nav-h); z-index: 1010; background: var(--surface); border-bottom: 1px solid var(--line); }
.dx-subnav .container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dx-subnav a { flex-shrink: 0; padding: 14px 12px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.dx-subnav a:hover { color: var(--ink); }
.dx-subnav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 991.98px) { .dx-subnav { top: 60px; } }
.dx-page [id] { scroll-margin-top: calc(var(--nav-h) + 64px); }

.dx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
@media (max-width: 575.98px) { .dx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dx-fact { padding: 10px; } .dx-fact > .bi { display: none; } }
.dx-fact { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); }
.dx-fact > .bi { color: var(--brand); font-size: 1.25rem; }
.dx-fact-label { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.dx-fact-value { font-weight: 700; }
.dx-fact-value .dx-price-main { font-size: 1rem; }
.dx-prose { font-size: 1.02rem; line-height: 1.65; }
.dx-prose ul { padding-left: 1.2rem; }
.dx-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.dx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.dx-units-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dx-unit-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 150px; gap: 12px; align-items: center; padding: 14px 16px; }
.dx-unit-row + .dx-unit-row { border-top: 1px solid var(--line); }
.dx-unit-row.is-sold { opacity: .6; }
.dx-unit-type strong { display: block; font-size: 1.15rem; }
.dx-unit-type span, .dx-unit-size span { color: var(--muted); font-size: .84rem; }
.dx-unit-size strong { display: block; }
.dx-unit-from { display: flex; flex-direction: column; gap: 2px; }
.dx-unit-from .dx-price-main { font-size: 1.05rem; }
.dx-unit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (max-width: 767.98px) {
    .dx-unit-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "type from" "size from" "actions actions"; gap: 4px 12px; align-items: start; }
    .dx-unit-type { grid-area: type; }
    .dx-unit-size { grid-area: size; color: var(--muted); font-size: .88rem; }
    .dx-unit-size strong { display: inline; font-weight: 600; }
    .dx-unit-size strong + span::before { content: " · "; }
    .dx-unit-size span:only-child { display: none; }
    .dx-unit-from { grid-area: from; align-items: flex-end; text-align: right; }
    .dx-unit-actions { grid-area: actions; justify-content: flex-start; margin-top: 6px; }
}

.dx-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.dx-amenities li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.dx-amenities .bi { color: var(--brand); font-size: 1.15rem; }

.dx-small-title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.dx-landmarks { margin: 0; padding: 0; list-style: none; }
.dx-landmarks li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.dx-landmarks span { display: inline-flex; gap: 6px; }
.dx-landmarks .bi { color: var(--brand); }
.dx-landmarks strong { white-space: nowrap; }

.dx-kind-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-kind { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; font-weight: 700; color: var(--muted); }
.dx-kind span { opacity: .7; }
.dx-kind.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr)); gap: 10px; }
.dx-gallery-item { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #e2e8ea; }
.dx-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dx-gallery-item:hover img { transform: scale(1.05); }
.dx-gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); color: #fff; font-size: .75rem; font-weight: 600; text-align: left; }

.dx-dev-logo {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 64px; height: 64px; padding: 8px; border-radius: 12px;
    background: var(--accent, #10161a); box-shadow: inset 0 0 0 1px rgba(16, 40, 45, .06);
}
.dx-dev-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dx-dev-logo.is-small { width: 30px; height: 30px; padding: 4px; border-radius: 7px; }
.dx-dev-logo.is-large { width: 88px; height: 88px; padding: 12px; border-radius: 16px; }
.dx-dev-initial { color: #fff; font-weight: 800; font-size: 1.5rem; }

.dx-part-of { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; }
.dx-part-of-img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e2e8ea; }
.dx-part-of-img img { width: 100%; height: 100%; object-fit: cover; }
.dx-part-of .panel-title a { color: var(--ink); text-decoration: none; }
.dx-part-of .panel-title a:hover { color: var(--brand); }
@media (max-width: 575.98px) { .dx-part-of { grid-template-columns: minmax(0, 1fr); } }
.dx-unit-headprice { text-align: right; }
.dx-unit-headprice .dx-price-main { font-size: 1.7rem; }
.mosaic-badges .img-badge.dx-badge--gold { background: var(--dx-gold); color: #1d1606; }

/* =========================================================
   PAYMENT PLAN
   ========================================================= */
.dx-plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dx-plan-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-plan-tab { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: .86rem; color: var(--muted); }
.dx-plan-tab span { color: var(--brand); }
.dx-plan-tab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.dx-plan-tab.is-active span { color: #f3d27a; }
.dx-plan-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--bg); }
.dx-plan-price-label { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.dx-plan-inputs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.dx-plan-inputs .form-select { flex: 1 1 240px; }
.dx-plan-inputs .input-group { flex: 1 1 200px; }
@media (max-width: 575.98px) {
    .dx-plan-price { flex-direction: column; align-items: stretch; }
    .dx-plan-inputs .form-select, .dx-plan-inputs .input-group { flex: 1 1 100%; }
    .dx-plan-bar .dx-bar-part { padding: 8px; }
    .dx-plan-bar .dx-bar-part small { white-space: normal; line-height: 1.15; }
}
.dx-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.dx-plan-headline { font-family: 'Genos', sans-serif; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); }
.dx-plan-bar { display: flex; gap: 3px; margin-bottom: 18px; }
.dx-bar-part { display: flex; flex-direction: column; justify-content: center; min-width: 56px; padding: 10px 12px; border-radius: 8px; color: #fff; overflow: hidden; }
.dx-bar-part b { font-size: 1.1rem; line-height: 1.1; }
.dx-bar-part small { font-size: .72rem; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-bar--booking { background: #1b262b; }
.dx-bar--construction { background: #b01423; }
.dx-bar--handover { background: #dc1b2e; }
.dx-bar--post_handover { background: #c9a24a; color: #1d1606; }
.dx-steps { margin: 0; padding: 0; list-style: none; position: relative; }
.dx-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); }
.dx-step::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.dx-step--construction::before { background: #b01423; }
.dx-step--handover::before { background: #dc1b2e; }
.dx-step--post_handover::before { background: #c9a24a; }
.dx-step-when strong { display: block; font-size: .95rem; }
.dx-step-when small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.dx-step-pct { font-weight: 800; font-size: 1.05rem; text-align: right; }
.dx-step-amount { text-align: right; font-weight: 700; }
.dx-step-amount small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
@media (max-width: 575.98px) {
    /* When on the left; the share over the amount on the right. */
    .dx-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "when pct" "when amount"; gap: 0 12px; }
    .dx-step-when { grid-area: when; }
    .dx-step-pct { grid-area: pct; color: var(--muted); font-size: .8rem; font-weight: 700; }
    .dx-step-amount { grid-area: amount; }
}

.dx-costs { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--dx-gold-soft); }
.dx-costs-title { font-size: .95rem; font-weight: 800; margin-bottom: 8px; }
.dx-cost-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; }
.dx-cost-row strong { text-align: right; }
.dx-cost-row > span { flex: 1 1 50%; }
.dx-cost-row > strong { flex: 0 1 auto; max-width: 55%; }
.dx-cost-row [data-aed], .dx-cost-row [data-cost] { white-space: nowrap; }
.dx-cost-row.is-total { margin-top: 4px; padding-top: 9px; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 1rem; }

/* =========================================================
   DEVELOPERS, INVEST, THE WAY IN
   ========================================================= */
.dx-dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dx-dev-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.dx-dev-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(16, 40, 45, .08); }
.dx-dev-card-head { display: flex; align-items: center; gap: 14px; }
.dx-dev-card-name { margin: 0; font-size: 1.1rem; font-weight: 800; }
.dx-dev-card-text { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }

.dx-reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dx-reason { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dx-reason .bi { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-size: 1.3rem; }
.dx-reason h3 { font-size: 1.05rem; font-weight: 800; }
.dx-reason p { margin: 0; color: var(--muted); font-size: .92rem; }

.dx-talk {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
    padding: 30px; border-radius: 16px;
    background: linear-gradient(120deg, var(--dx-night) 0%, #2a1416 100%); color: #fff;
}
.dx-talk p { color: rgba(255, 255, 255, .8); max-width: 60ch; }
.dx-talk .promo-kicker { color: #f3d27a; }

/* =========================================================
   MENUS (dubai/partials/nav.html)
   ========================================================= */
.dx-mega-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dx-mega-project { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.dx-mega-photo { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e2e8ea; margin-bottom: 4px; }
.dx-mega-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dx-mega-project:hover .dx-mega-photo img { transform: scale(1.05); }
.dx-mega-name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.dx-mega-project:hover .dx-mega-name { color: var(--brand); }
.dx-mega-meta { color: var(--muted); font-size: .8rem; font-weight: 600; }
.dx-mega-cols { columns: 3 180px; column-gap: 24px; }
.dx-mega-cols li { break-inside: avoid; }
.dx-dev-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dx-dev-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.dx-dev-chip .dx-dev-logo { width: 40px; height: 40px; padding: 5px; border-radius: 9px; }
.dx-dev-chip .ct { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .82rem; }
.dx-dev-chip:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 991.98px) {
    .dx-mega-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dx-mega-cols { columns: 2; }
}

/* The floor plans, on screen (partials/floor_plan.html, dubai.js): the plan
   on white, fitted; a tap zooms in on that spot and the plan scrolls. */
.fp { overflow: hidden; border: 0; border-radius: 16px; }
.fp-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fp-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fp-title { margin: 2px 0 0; font-size: 1.1rem; font-weight: 800; }
.fp-count { margin-left: auto; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-count:empty { display: none; }
.fp-top .btn-close { flex-shrink: 0; }
.fp-count:empty + .btn-close { margin-left: auto; }
.fp-body { position: relative; }
.fp-stage { display: flex; align-items: center; justify-content: center; height: min(74vh, 760px); padding: 18px 64px; overflow: auto; background: #fff; overscroll-behavior: contain; }
.fp-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.fp-stage.is-zoomed { display: block; padding: 0; }
.fp-stage.is-zoomed img { width: 220%; max-width: none; max-height: none; cursor: zoom-out; }
.fp-btn {
    position: absolute; top: 50%; z-index: 1; display: grid; place-items: center;
    width: 42px; height: 42px; margin-top: -21px; border: 1px solid var(--line); border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(16, 40, 45, .12);
}
.fp-btn:hover { border-color: var(--brand); color: var(--brand); }
.fp-prev { left: 12px; }
.fp-next { right: 12px; }
.fp-hint { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
@media (max-width: 767.98px) {
    .fp { border-radius: 0; }
    .fp-stage { height: calc(100dvh - 128px); padding: 12px 8px; }
    .fp-stage.is-zoomed img { width: 300%; }
    .fp-btn { top: auto; bottom: 12px; margin-top: 0; }
}

/* =========================================================
   AN AREA: its photos and videos as a strip, then what it is like there
   (partials/area_about.html, dubai.js). Each tile is the strip's height
   and as wide as its picture: a phone's video tall and narrow.
   ========================================================= */
.dx-area-band {
    margin-bottom: 28px; padding: 22px 24px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
@media (max-width: 575.98px) { .dx-area-band { padding: 18px 16px; } }
.dx-area-projects { margin-bottom: 16px; }

.dx-area-about-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 16px; }
.dx-area-about-head .link-quiet { font-weight: 700; font-size: .92rem; }

.dx-reel-wrap { position: relative; margin-bottom: 18px; }
.dx-reel {
    --h: 300px;
    display: flex; gap: 10px; margin: 0; padding: 0; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.dx-reel::-webkit-scrollbar { display: none; }
.dx-reel > li { flex: none; height: var(--h); max-width: min(86vw, 720px); aspect-ratio: var(--ratio, 1.333); scroll-snap-align: start; }
@media (max-width: 575.98px) { .dx-reel { --h: 250px; } }
.dx-reel-item {
    position: relative; display: block; width: 100%; height: 100%; padding: 0;
    border: 0; border-radius: 14px; overflow: hidden; background: var(--dx-night); cursor: pointer;
}
.dx-reel-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dx-reel-item:hover img { transform: scale(1.04); }
.dx-reel-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dx-reel-item.is-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55)); }
.dx-reel-play {
    position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s;
}
.dx-reel-play .bi { margin-left: 3px; line-height: 1; }
.dx-reel-item:hover .dx-reel-play { transform: translate(-50%, -50%) scale(1.08); }
.dx-reel-time {
    position: absolute; z-index: 1; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dx-reel-caption {
    position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); color: #fff;
    font-size: .82rem; font-weight: 700; line-height: 1.25; text-align: left;
}
.dx-reel-arrow {
    position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink);
    box-shadow: 0 4px 14px rgba(16, 40, 45, .15);
}
.dx-reel-arrow:hover { border-color: var(--brand); color: var(--brand); }
.dx-reel-arrow.is-prev { left: -14px; }
.dx-reel-arrow.is-next { right: -14px; }
@media (hover: none) { .dx-reel-arrow { display: none !important; } }

.dx-area-text { line-height: 1.65; }
.dx-area-text p:last-child, .dx-area-text ul:last-child { margin-bottom: 0; }
.dx-area-text.is-clamped:not(.is-open) {
    max-height: 11.5em; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.dx-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 700; }

/* A project's construction progress (partials/progress.html): a strip a
   month, under its month in small capitals. */
.dx-progress-head { margin-bottom: 18px; }
.dx-progress + .dx-progress, .dx-progress-older { margin-top: 22px; }
.dx-progress-month {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
    color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.dx-progress-month::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dx-progress .dx-reel-wrap { margin-bottom: 0; }
.dx-progress-older summary { color: var(--brand); font-weight: 700; cursor: pointer; }
.dx-progress-older[open] summary { margin-bottom: 18px; }

/* In a project's panel, under its title's size. */
.panel .dx-reel { --h: 260px; }
@media (max-width: 575.98px) { .panel .dx-reel { --h: 240px; } }

/* On a pre-launch's page: its big headings and text. */
.pl-area { padding-top: 0; }
.pl-films .dx-reel { --h: 420px; gap: 14px; }
@media (max-width: 575.98px) { .pl-films .dx-reel { --h: 320px; } }
.pl-films .dx-progress-head { margin-bottom: 32px; }
.pl-films .dx-progress .dx-reel { --h: 300px; }
@media (max-width: 575.98px) { .pl-films .dx-progress .dx-reel { --h: 250px; } }
.pl-films .dx-progress-month { font-size: .9rem; }
.dx-area-about.is-pl .dx-area-about-head { display: block; margin-bottom: 32px; }
.dx-area-about.is-pl .dx-area-about-head .link-quiet { display: inline-block; margin-top: 14px; }
.dx-area-about.is-pl .dx-reel { --h: 420px; gap: 14px; }
@media (max-width: 575.98px) { .dx-area-about.is-pl .dx-reel { --h: 320px; } }
.dx-area-about.is-pl .dx-area-text { max-width: 62em; font-size: 17px; }

/* The viewer a tile opens (dubai.js): a photo or a video, fitted. */
.dx-viewer-item { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.dx-viewer-item img,
.dx-viewer-item video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #000; }
.dx-viewer-caption { margin: 0; min-height: 48px; padding: 10px 16px 18px; color: rgba(255, 255, 255, .85); font-weight: 600; text-align: center; }
@media (max-width: 575.98px) {
    .dx-viewer-item img,
    .dx-viewer-item video { border-radius: 0; }
}
