/* =========================================================================
   Alsknaldaym — site styles
   Replaces newstyle.css and all inline <style> blocks that lived in the views.
   ========================================================================= */

:root {
    --brand: #c2976c;
    --brand-dark: #a87c52;
    --gold: #c2976c; /* same gold; used where a rule is decorative (lines, icons, tints) */
    --brand-soft: rgba(194, 151, 108, 0.12);
    --brown: #72583f;
    --ink: #2b2521;
    --text: #4b4a4a;
    --muted: #8a8580;
    --line: #eee6dc;
    --bg-soft: #f8f5f1;
    --green: #1f9d55;
    --red: #c9413b;
    --indigo: #5b5bd6;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(43, 37, 33, 0.08);
    --shadow-lg: 0 14px 40px rgba(43, 37, 33, 0.14);
}

html, body { overflow-x: hidden; font-family: "Alexandria", sans-serif !important; color: var(--text); }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
a { transition: color .2s ease; }
img { max-width: 100%; }
.text-brand { color: var(--brand) !important; }
.bg-soft { background: var(--bg-soft); }
.ltr { direction: ltr; }
.text-justify { text-align: justify; }

/* ---------- Buttons ---------- */
.btn-brand,
.btn-outline-brand,
.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none; transition: all .25s ease;
}
.btn-brand { background: var(--brand); color: #fff !important; border: 1px solid var(--brand); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { background: transparent; color: var(--brand) !important; border: 1px solid var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff !important; }
.btn-whatsapp { background: #25d366; color: #fff !important; border: 1px solid #25d366; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-sm-pill { min-height: 40px; padding: .4rem 1.1rem; font-size: .9rem; }
.btn-brand[disabled], .btn-brand[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn-block { width: 100%; }

/* Legacy template button used by the hero */
.btn-primary {
    font-size: 20px; text-align: center; background-color: var(--brand) !important; border: 1px solid var(--brand) !important;
    color: #fff !important; box-shadow: 0 3px 5px rgba(0,0,0,.1); padding: 0 1.5rem; height: 56px; line-height: 54px; font-weight: 600;
}
.btn-primary:hover { background-color: var(--brand-dark) !important; border-color: var(--brand-dark) !important; }

/* ---------- Section titles ---------- */
.sec-title { position: relative; display: inline-block; font-size: 32px; font-weight: 700 !important; color: var(--brand) !important; margin-bottom: 1.5rem; padding-bottom: 14px; }
.sec-title::after { content: ""; position: absolute; left: 50%; bottom: 6px; height: 2px; width: 120px; background: var(--gold); transform: translateX(-50%); }
.sec-title::before { content: ""; position: absolute; left: 50%; bottom: 0; height: 2px; width: 60px; background: var(--gold); transform: translateX(-50%); }
.sec-title--start { display: block; text-align: start; }
.sec-title--start::after, .sec-title--start::before { left: 0; transform: none; }
[dir="rtl"] .sec-title--start::after, [dir="rtl"] .sec-title--start::before { left: auto; right: 0; }
.sec-intro { max-width: 44rem; margin: 0 auto 2rem; color: var(--muted); line-height: 1.9; font-size: 1rem; }
/* legacy names still used by the template css */
.project_title { font-size: 32px !important; font-weight: 700 !important; color: var(--brand) !important; }
.title_color { color: var(--brand); }
.news_title { font-weight: 600 !important; color: var(--brand) !important; }

/* ---------- Hero ---------- */
.swiper-slider-hero, .swiper-container, .swiper-slide, .slide-inner { height: 100vh; min-height: 100vh; width: 100%; }
.swiper-container { height: 100% !important; }
.slide-inner { position: relative; background-size: cover; background-position: center; }
.hero-dark-overlay { position: absolute; inset: 0; background: rgba(38, 25, 0, .28); z-index: 1; }
.title-heading { position: relative; z-index: 2; }
.text-white-50 { --bs-text-opacity: 1; color: #e3e3e3 !important; }
.hero-cta { width: 250px; }

/* ---------- About block on home ---------- */
.about-intro { max-width: 44rem; margin: 0 auto; font-size: 1.05rem !important; line-height: 2; text-align: center; }
.about .btn-primary {
    display: inline-block; font-size: 15px; background: transparent !important; border: 1px solid var(--brand) !important;
    color: var(--brand) !important; width: 220px; height: auto; line-height: 54px; font-weight: 600; border-radius: 30px; transition: all .4s ease;
}
.about .btn-primary:hover { background: var(--brand) !important; color: #fff !important; }

/* ---------- Status badges ---------- */
.badge-status { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; line-height: 1.4; white-space: nowrap; }
.badge-status.is-available { background: var(--green); }
.badge-status.is-sold { background: var(--red); }
.badge-status.is-coming { background: var(--indigo); }
.badge-status.is-offplan { background: var(--brand); }
.badge-status.is-ready { background: var(--brown); }
.badge-status--lg { font-size: .95rem; padding: .5rem 1.1rem; }
.badge-status.is-soft { background: var(--bg-soft); color: var(--brown); }

/* ---------- Prices & the riyal symbol ---------- */
.riyal { height: .85em; width: auto; display: inline-block; vertical-align: -.06em; flex: 0 0 auto; }
.price { display: inline-flex; flex-direction: column; line-height: 1.25; }
.price__label { font-size: .78rem; font-weight: 500; color: var(--muted); }
.price__value { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; }
.price__num { font-weight: inherit; }

/* ---------- Project card ---------- */
.pcard { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(100deg, var(--bg-soft) 35%, #f2ede6 50%, var(--bg-soft) 65%); background-size: 240% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.pcard--sold .pcard__media::after { content: ""; position: absolute; inset: 0; background: rgba(43, 37, 33, .35); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; gap: .65rem; }
.pcard__title { font-size: 1.15rem; font-weight: 700; color: var(--brown); text-decoration: none; line-height: 1.5; }
.pcard__title:hover { color: var(--brand); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--muted); font-size: .86rem; }
.pcard__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pcard__specs { display: flex; flex-wrap: wrap; gap: .4rem; }
.spec { display: inline-flex; align-items: center; gap: .35rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font-size: .82rem; color: var(--text); }
.spec i { color: var(--gold); }
/* Footer never wraps: the price shrinks with the card (container query) and the button keeps one line. */
.pcard { container-type: inline-size; }
.pcard__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .75rem; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.pcard__price { font-weight: 700; color: var(--brand); font-size: clamp(.95rem, 4.2cqw, 1.1rem); min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pcard__price small, .pcard__price .price__label { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; margin-bottom: .1rem; }
.pcard__price .price__value { white-space: nowrap; }
.pcard__price.is-sold { color: var(--red); }
.pcard__btn { flex: 0 0 auto; white-space: nowrap; font-size: clamp(.78rem, 3.4cqw, .9rem); padding: .4rem clamp(.7rem, 3.5cqw, 1.1rem); min-height: 40px; }
@container (max-width: 300px) {
    .pcard__footer { flex-direction: column; align-items: stretch; }
    .pcard__btn { width: 100%; }
}

/* ---------- Media card (news, initiatives, off-plan, brochures) ---------- */
.mcard { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(100deg, var(--bg-soft) 35%, #f2ede6 50%, var(--bg-soft) 65%); background-size: 240% 100%; animation: shimmer 1.6s linear infinite; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mcard:hover .mcard__media img { transform: scale(1.04); }
.mcard__media--poster { aspect-ratio: 4 / 3; }
.mcard__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.2rem 1.2rem; gap: .5rem; }
/* Fixed text geometry: 2-line title and 3-line excerpt, so every card in a row/slider is the same height. */
.mcard__title { font-size: 1.05rem; font-weight: 700; color: var(--brown); text-decoration: none; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.05rem * 1.6 * 2); }
.mcard__title:hover { color: var(--brand); }
.mcard__excerpt { color: var(--muted); font-size: .9rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(.9rem * 1.8 * 3); }
.mcard .article-date { min-height: 1.4rem; }
.tiny-slide-three .tns-item, .tiny-three-item .tns-item { display: inline-flex !important; vertical-align: top; }
.tiny-slide-three .tiny-slide > .mcard, .tiny-slide-three .tiny-slide { width: 100%; }
.mcard__footer { margin-top: auto; padding-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.mcard__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; }
.mcard__link:hover { color: var(--brand-dark); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; margin-bottom: 1.5rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .92rem; font-weight: 500; text-decoration: none; transition: all .2s ease; }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-select { min-width: 190px; border-radius: 999px; border: 1px solid var(--line); padding: .45rem 1rem; color: var(--text); background: #fff; }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius); }

/* ---------- Project page ---------- */
.pp-head { padding-top: 1.5rem; }
.pp-breadcrumb { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.pp-breadcrumb a { color: var(--muted); text-decoration: none; }
.pp-breadcrumb a:hover { color: var(--brand); }
.pp-title { font-size: 2rem; font-weight: 700; color: var(--brown); margin: .4rem 0 .3rem; }
.pp-tagline { color: var(--muted); font-size: 1.05rem; margin: 0; }
.pp-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.pp-gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); direction: ltr; }
.pp-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.pp-gallery .tns-outer { padding-bottom: 0 !important; }
.pp-gallery .tns-controls { position: absolute; inset: 50% 12px auto; display: flex; justify-content: space-between; width: calc(100% - 24px); transform: translateY(-50%); }
.pp-gallery .tns-controls button { transform: none; background: rgba(255,255,255,.9); border: none; width: 42px; height: 42px; font-size: 26px; color: var(--brown); }
.pp-gallery .tns-nav { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pp-gallery .tns-nav button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); padding: 0; }
.pp-gallery .tns-nav button.tns-nav-active { background: #fff; }
.pp-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.pp-thumbs a { flex: 0 0 84px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.pp-thumbs a.active { border-color: var(--gold); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; display: flex; gap: .7rem; align-items: center; }
.fact i { font-size: 1.35rem; color: var(--gold); }
.fact small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .1rem; }
.fact strong { color: var(--ink); font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.35; }
.fact > div { min-width: 0; }

.pp-summary { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pp-summary .chip { background: var(--brand-soft); color: var(--brown); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .9rem; }
.pp-summary .chip b { color: var(--brand); margin-inline-end: .3rem; font-weight: 800; }

.pp-nav { position: sticky; top: 74px; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 999px; display: flex; gap: .25rem; padding: .35rem; margin: 1.5rem 0; overflow-x: auto; scrollbar-width: none; }
.pp-nav::-webkit-scrollbar { display: none; }
.pp-nav a { flex: 0 0 auto; padding: .45rem .95rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.pp-nav a.active, .pp-nav a:hover { background: var(--brand-soft); color: var(--brand); }

.pp-section { padding: 2rem 0 1rem; scroll-margin-top: 140px; }
.pp-section__title { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.875rem) !important; line-height: 1.4; font-weight: 700; color: var(--brown); margin: 0 0 calc(1rem + 8px) !important; display: flex; align-items: center; gap: .8rem; }
.pp-section__title i { color: var(--gold); font-size: .85em; }
.pp-desc { line-height: 2; color: var(--text); font-size: 1rem; }

.pp-side { position: sticky; top: 90px; }
.pp-cta { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }
.pp-cta__price { font-size: 1.5rem; font-weight: 700; color: var(--brand); text-align: center; }
.pp-cta__price small, .pp-cta__price .price__label { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.pp-cta__price .price { align-items: center; width: 100%; }
.pp-cta__cheapest { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: .25rem; }
.pp-cta__models { list-style: none; margin: .9rem 0 0; padding: .25rem 0 0; border-top: 1px solid var(--line); }
.pp-cta__models li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; color: var(--text); }
.pp-cta__models li:last-child { border-bottom: none; }
.pp-cta__models li span { min-width: 0; text-align: start; }
.pp-cta__model { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; color: inherit; text-decoration: none; border-radius: 8px; }
.pp-cta__model:hover { color: var(--brand); }
.pp-cta__models li b, .pp-cta__models li .price { color: var(--brand-dark); font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.pp-cta__models li.is-sold { color: var(--muted); }
.pp-cta__models li.is-sold b { color: var(--red); }
.pp-cta .btn-brand, .pp-cta .btn-outline-brand, .pp-cta .btn-whatsapp { width: 100%; }
.pp-cta__links { display: flex; flex-direction: column; gap: .6rem; margin-top: .9rem; }
.pp-cta__note { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; line-height: 1.7; }
.pp-cta__closed { background: var(--bg-soft); border-radius: 10px; padding: .9rem; text-align: center; color: var(--red); font-weight: 600; }

/* Success message above the gallery: the only confirmation that is visible on every screen size */
.pp-flash { margin: 1rem auto 0; max-width: 720px; scroll-margin-top: 110px; }

/* Phones: price and the way to the models, directly under the gallery (the sidebar is hidden there) */
.pp-mobile-price { display: none; margin-top: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); text-align: start; }
.pp-mobile-price__main { display: flex; flex-direction: column; font-size: 1.45rem; font-weight: 800; color: var(--brand); line-height: 1.2; }
.pp-mobile-price__main .price { align-items: flex-start; }
.pp-mobile-price__main .price__label, .pp-mobile-price__main > .price__label { font-size: .8rem; font-weight: 500; color: var(--muted); }
.pp-mobile-price__model { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: .2rem; }
.pp-mobile-price__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.pp-mobile-price__links a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; }
.pp-mobile-price__links a i { color: var(--gold); }
.pp-mobile-price .pp-cta__note { text-align: start; margin-top: .6rem; }

/* Register prompt after the models, where the decision is made */
.pp-units-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.5rem; padding: 1.1rem 1.4rem; background: var(--brand-soft); border: 1px solid rgba(194,151,108,.35); border-radius: var(--radius); text-align: start; }
.pp-units-cta__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pp-units-cta__text strong { color: var(--brown); font-size: 1.05rem; }
.pp-units-cta__text span { color: var(--text); font-size: .92rem; line-height: 1.7; }
.pp-units-cta .btn-brand { flex: 0 0 auto; }

/* Unit models: one compact row each (name + type, area, price); street, features and plans fold under "details". */
.unit-list { display: flex; flex-direction: column; gap: .6rem; }
.unit-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; grid-template-areas: "main stats price" "more more more"; align-items: center; gap: .4rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1.1rem; scroll-margin-top: 150px; text-align: start; transition: border-color .3s ease, box-shadow .3s ease; }
.unit-row--sold { background: var(--bg-soft); opacity: .8; }
.unit-row:target { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.unit-row__main { grid-area: main; min-width: 0; }
.unit-row__name { font-size: 1rem !important; font-weight: 700; color: var(--brown); margin: 0 0 .2rem !important; line-height: 1.4 !important; }
.unit-row__tags { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.unit-row__type { font-size: .8rem; color: var(--muted); background: var(--bg-soft); border-radius: 6px; padding: .15rem .55rem; }
.unit-row__stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin: 0; }
.unit-row__stats > div { min-width: 0; }
.unit-row__stats dt { font-size: .74rem; color: var(--muted); font-weight: 500; margin: 0; }
.unit-row__stats dd { margin: 0; font-weight: 700; color: var(--ink); font-size: .98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-row__stats dd span { font-size: .74rem; font-weight: 500; color: var(--muted); }
.unit-row__price { grid-area: price; text-align: end; color: var(--brand-dark); font-weight: 800; }
.unit-row__price .price { align-items: flex-end; }
.unit-row__price .price__value, .unit-row__price .price__num { font-size: 1.15rem; white-space: nowrap; }
.unit-row__price.is-sold .price__num { color: var(--red); }
.unit-row__more { grid-area: more; border-top: 1px dashed var(--line); padding-top: .45rem; margin-top: .2rem; }
.unit-row__more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--brand); }
.unit-row__more summary::-webkit-details-marker { display: none; }
.unit-row__more summary i { transition: transform .2s ease; }
.unit-row__more[open] summary i { transform: rotate(180deg); }
.unit-row__body { display: flex; flex-direction: column; gap: .6rem; padding-top: .6rem; }
.unit-row__note, .unit-row__street { margin: 0; font-size: .85rem; color: var(--text); }
.unit-row__street i { color: var(--gold); }
.unit-card__features { display: flex; flex-wrap: wrap; gap: .35rem; }
.unit-card__features span { font-size: .78rem; background: var(--bg-soft); border-radius: 6px; padding: .22rem .5rem; color: var(--text); }
.unit-card__plans { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .2rem; }
.unit-card__plans a { flex: 0 0 110px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.unit-card__plans img { width: 100%; height: 100%; object-fit: cover; }
.unit-card__plans a::after { content: "\F341"; font-family: "bootstrap-icons"; position: absolute; inset-inline-end: 6px; bottom: 4px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); font-size: .9rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.feature-item { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; font-weight: 600; color: var(--text); font-size: .92rem; }
.feature-item i { font-size: 1.3rem; color: var(--gold); flex: 0 0 auto; }

.nearby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.nearby-item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; }
.nearby-item span { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; }
.nearby-item span i { color: var(--gold); }
.nearby-item b { color: var(--brand); white-space: nowrap; font-weight: 700; direction: ltr; }

.warranty-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.warranty-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.warranty-table tr:last-child td { border-bottom: none; }
.warranty-table td:last-child { width: 120px; font-weight: 700; color: var(--brand); white-space: nowrap; text-align: start; }
.warranty-table td i { color: var(--gold); margin-inline-end: .4rem; }

.pp-brochure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.pp-brochure iframe { width: 100%; height: 34rem; border: 0; display: block; }
.pp-brochure__actions { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem; }
.pp-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pp-map iframe { width: 100%; height: 400px; border: 0; display: block; }
.pp-map__legacy iframe { width: 100% !important; height: 400px !important; border: 0; }

/* Fixed bottom action bar on phones */
.pp-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: none; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.pp-cta-bar__inner { display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 1110px; margin: 0 auto; }
.pp-cta-bar__info { display: none; }
.pp-cta-bar .btn-brand { flex: 1; }
.pp-cta-bar .btn-whatsapp, .pp-cta-bar .btn-outline-brand { flex: 0 0 48px; min-height: 48px; padding: 0; border-radius: 50%; font-size: 1.3rem; }
@media (min-width: 768px) {
    .pp-cta-bar.is-visible { display: block; animation: cta-bar-in .35s cubic-bezier(.2,.8,.2,1); }
    .pp-cta-bar__info { display: flex; align-items: center; gap: 1.25rem; margin-inline-end: auto; min-width: 0; }
    .pp-cta-bar__info strong { color: var(--brown); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pp-cta-bar__info .price { flex-direction: row; align-items: baseline; gap: .4rem; color: var(--brand); font-weight: 800; font-size: 1.15rem; }
    .pp-cta-bar .btn-brand { flex: 0 0 auto; padding-inline: 1.6rem; }
    body.cta-bar-visible .wa-float { display: none; }
    body.cta-bar-visible { padding-bottom: 76px; }
}
@keyframes cta-bar-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Rich text produced by the dashboard editor */
.rich-text { line-height: 2; color: var(--text); font-size: 1rem; overflow-wrap: anywhere; }
.rich-text p { margin-bottom: 1rem; }
.rich-text h2, .rich-text h3, .rich-text h4 { color: var(--brown); font-weight: 700; margin: 1.5rem 0 .75rem; }
.rich-text h2 { font-size: 1.5rem; } .rich-text h3 { font-size: 1.3rem; } .rich-text h4 { font-size: 1.1rem; }
.rich-text img { max-width: 100%; height: auto; border-radius: 12px; margin: .75rem 0; }
.rich-text ul, .rich-text ol { padding-inline-start: 1.5rem; margin-bottom: 1rem; }
.rich-text blockquote { border-inline-start: 4px solid var(--gold); background: var(--bg-soft); padding: .9rem 1.2rem; border-radius: 8px; color: var(--brown); }
.rich-text a { color: var(--brand); }
.rich-text iframe, .rich-text .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.rich-text table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.rich-text td, .rich-text th { border: 1px solid var(--line); padding: .5rem .75rem; }
.ql-align-center { text-align: center; } .ql-align-right { text-align: right; } .ql-align-left { text-align: left; } .ql-align-justify { text-align: justify; }
.ql-direction-rtl { direction: rtl; } .ql-direction-ltr { direction: ltr; }
.ql-indent-1 { padding-inline-start: 3em; } .ql-indent-2 { padding-inline-start: 6em; }
.ql-size-small { font-size: .8em; } .ql-size-large { font-size: 1.4em; } .ql-size-huge { font-size: 2em; }
.legacy-embed iframe { max-width: 100%; }

/* ---------- Article (news / initiative / off-plan report) ---------- */
.article-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.article-title { font-size: 1.75rem; font-weight: 700; color: var(--brown); margin: 1.5rem 0 .5rem; line-height: 1.6; }
.article-date { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.article-body { max-width: 900px; margin: 1.5rem auto 0; }

/* ---------- Interactive map (home) ---------- */
.map-section { margin-top: 80px; }
#projects-map { height: 480px; width: 100%; z-index: 0; }
.map-wrapper { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.map-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; max-height: 480px; }
.map-sidebar-inner { padding: 16px; }
.map-sidebar-label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; font-weight: 600; margin-bottom: 12px; }
.map-project-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; margin-bottom: 4px; font-size: .9rem; color: var(--text); font-weight: 500; }
.map-project-item:hover, .map-project-item.active { background: var(--brand-soft); color: var(--brand); }
.map-dot { width: 12px; height: 12px; min-width: 12px; border-radius: 50%; display: inline-block; margin-top: 4px; }
.map-item-content { flex: 1; min-width: 0; }
.map-item-name { display: block; line-height: 1.3; }
.map-item-badges, .map-popup-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.map-marker-custom { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; }
.leaflet-popup-content-wrapper { border-radius: 8px !important; border-top: 3px solid var(--gold) !important; }
.map-popup-title { font-weight: 700; font-size: .9rem; color: #1e293b; margin-bottom: 5px; }
.map-popup-link { font-size: .8rem; color: var(--brand); text-decoration: underline; display: inline-block; margin-top: 4px; }
.map-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 30px; color: #fff; white-space: nowrap; line-height: 1.6; }
.map-badge.available { background: var(--green); }
.map-badge.offplan { background: var(--brand); }
.map-badge.coming { background: var(--indigo); }
.map-badge.sold { background: #9ca3af; }
.map-action-btn { display: block; width: 100%; padding: 13px 16px; border-radius: 10px; text-align: center; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; border: none; }
.map-action-btn.bookable { background: var(--brand); color: #fff !important; }
.map-action-btn.bookable:hover { background: var(--brand-dark); }
.map-action-btn.sold-out { background: #e5e7eb; color: #9ca3af !important; cursor: not-allowed; pointer-events: none; }

/* ---------- Services ---------- */
.title_services { color: var(--brand) !important; font-size: 22px !important; font-weight: 600; transition: all .4s ease; }
.services_text a:hover { color: var(--brown) !important; }
.service-desc { text-align: center; font-size: 1rem; line-height: 1.9; }

/* ---------- Team & sliders ---------- */
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.team-card img { width: 100%; aspect-ratio: 370/420; object-fit: cover; }
.team-card .teamnm { font-size: 1.05rem; font-weight: 700; color: var(--brown); margin: .9rem 0 .2rem; }
.team-card span { display: block; color: var(--muted); padding-bottom: 1rem; font-size: .9rem; }
.tns-visually-hidden { display: none; }
.tns-outer { position: relative; width: 100%; padding-bottom: 40px !important; }
.tns-controls { display: flex; justify-content: center; gap: 10px; position: absolute; bottom: 0; width: 100%; }
.tns-controls button { border-radius: 50%; transform: rotate(180deg); color: var(--brand); border: 2px solid var(--brand); display: flex; justify-content: center; align-items: center; height: 44px !important; width: 44px !important; font-size: 30px; background: transparent; }
.back-to-top { width: 44px !important; height: 44px !important; line-height: 42px !important; }
/* Project pages: the action bar owns the bottom edge, so the floating button yields to the one inside the bar. */
body.has-cta-bar .back-to-top { display: none !important; }
.pp-cta-bar__top { display: none; }
@media (min-width: 768px) { .pp-cta-bar__top { display: inline-flex; } }
.slider-ltr { direction: ltr; }
.slider-ltr .tiny-slide { padding: 0 .75rem 1rem; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ic { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.4rem; }
.contact-item h6 { margin: 0 0 .2rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-item a { color: var(--brown); font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--brand); }
.contact-map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.form-card .form-label { font-weight: 600; color: var(--brown); font-size: .92rem; }
.form-card .form-control, .form-card .form-select { min-height: 48px; border-radius: 10px; border-color: var(--line); }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-soft); }
.form-card textarea.form-control { min-height: 120px; }
.invalid-feedback { font-size: .84rem; color: var(--red); margin-top: .35rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--red); background-image: none; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(201,65,59,.15); }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.g-recaptcha { display: flex; justify-content: center; }
.g-recaptcha > div { max-width: 100%; }
.modal-content { border-radius: var(--radius); border: none; }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-title { font-size: 1.05rem; font-weight: 700; color: var(--brown); }
.modal .form-label { font-weight: 600; color: var(--brown); font-size: .9rem; }
.modal .form-control, .modal .form-select { min-height: 46px; border-radius: 10px; }
.modal-footer { border-top: 1px solid var(--line); justify-content: flex-start; gap: .5rem; }

/* ---------- Careers ---------- */
.careers-head { text-align: center; max-width: 860px; margin: 0 auto 2.25rem; }
.careers-head h1 { font-size: 2rem; font-weight: 700; color: var(--brand); margin-bottom: 1rem; position: relative; display: inline-block; padding-bottom: 14px; }
.careers-head h1::after { content: ""; position: absolute; left: 50%; bottom: 6px; height: 2px; width: 120px; background: var(--gold); transform: translateX(-50%); }
.careers-head h1::before { content: ""; position: absolute; left: 50%; bottom: 0; height: 2px; width: 60px; background: var(--gold); transform: translateX(-50%); }
.careers-head p { color: var(--muted); line-height: 2; font-size: 1.02rem; text-align: center; margin: 0; max-width: 44rem; margin-inline: auto; }
.careers-form__head { text-align: center; margin-bottom: 1.5rem; }
.careers-form__head h2 { font-size: 1.3rem; font-weight: 700; color: var(--brown); margin-bottom: .35rem; }
.careers-grid .form-label { min-height: 1.6rem; display: flex; align-items: center; gap: .25rem; margin-bottom: .35rem; }
.careers-grid .form-control, .careers-grid .form-select { min-height: 50px; }
.careers-grid textarea.form-control { min-height: 110px; }
.type-switch { border: 0; padding: 0; margin: 1.5rem auto 2rem; max-width: 560px; text-align: center; }
.type-switch legend { float: none; width: 100%; font-size: 1rem; margin-bottom: .75rem; text-align: center; }
.type-switch__options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.type-switch .type-option { justify-content: center; }
.type-option { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; margin: 0; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option i { font-size: 1.5rem; color: var(--muted); flex: 0 0 auto; transition: color .2s; }
.type-option span { display: flex; flex-direction: column; min-width: 0; }
.type-option strong { color: var(--brown); font-size: .95rem; }
.type-option small { color: var(--muted); font-size: .8rem; }
.type-option:hover { border-color: var(--brand); }
.type-option.active { border-color: var(--brand); background: var(--brand-soft); }
.type-option.active i { color: var(--brand); }
.file-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 1.2rem; text-align: center; color: var(--muted); background: var(--bg-soft); transition: border-color .2s; cursor: pointer; }
.file-drop:hover, .file-drop.is-active { border-color: var(--brand); }
.file-drop input { display: none; }
.file-drop i { font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: .3rem; }
.file-drop .file-name { color: var(--brown); font-weight: 600; margin-top: .4rem; word-break: break-all; }
.file-drop--compact { display: flex; align-items: center; gap: .9rem; text-align: start; padding: .55rem .9rem; min-height: 50px; }
.file-drop--compact i { margin: 0; font-size: 1.5rem; }
.file-drop--compact > div { min-width: 0; line-height: 1.4; }
.file-drop--compact .file-drop__text { font-size: .85rem; color: var(--text); }
.file-drop--compact small { font-size: .8rem; }
.file-drop--compact .file-name { margin-top: .15rem; font-size: .82rem; }

/* ---------- Join the team (about page) ---------- */
.join-cta .sec-intro { margin-bottom: 1.5rem; }

/* ---------- Brochure viewer page ---------- */
.brochure-page__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.brochure-page__head h1 { font-size: 1.6rem; font-weight: 700; color: var(--brown); margin: 0; }
.brochure-page__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.brochure-page__viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: var(--shadow); }
.brochure-page__viewer object { width: 100%; height: min(82vh, 1100px); display: block; }
.brochure-page__fallback { padding: 2rem; text-align: center; color: var(--muted); }
.brochure-page__fallback img { max-width: 420px; width: 100%; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.brochure-page__mobile { display: none; text-align: center; }
.brochure-page__mobile img { width: 100%; max-width: 420px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.brochure-page__mobile .btn-brand, .brochure-page__mobile .btn-outline-brand { width: 100%; max-width: 420px; margin: 0 auto .6rem; }

/* ---------- Interest form modal ---------- */
.req-modal .modal-content { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.req-modal__head { position: relative; background: linear-gradient(135deg, var(--brown), var(--brand)); color: #fff; padding: 1.75rem 1.5rem 1.4rem; text-align: center; }
.req-modal__head .btn-close { position: absolute; top: 14px; inset-inline-end: 14px; filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
.req-modal__icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: .6rem; }
.req-modal__title { font-size: 1.25rem; font-weight: 700; margin: 0; color: #fff; }
.req-modal__project { margin: .25rem 0 0; opacity: .9; font-size: .95rem; }
.req-modal__price { margin-top: .6rem; align-items: center; background: rgba(255,255,255,.14); border-radius: 999px; padding: .35rem 1rem; display: inline-flex; flex-direction: row; gap: .5rem; font-weight: 700; }
.req-modal__price .price__label { color: rgba(255,255,255,.85); font-size: .8rem; }
.req-modal__body { padding: 1.4rem 1.5rem .5rem; }
.req-modal__hint { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; line-height: 1.7; }
.req-modal .form-label { font-size: .85rem; font-weight: 600; color: var(--brown); margin-bottom: .3rem; }
.req-field { position: relative; }
.req-field > i { position: absolute; top: 24px; transform: translateY(-50%); inset-inline-start: .9rem; color: var(--muted); font-size: 1rem; pointer-events: none; }
.req-field .form-control, .req-field .form-select { padding-inline-start: 2.5rem; min-height: 48px; border-radius: 12px; border-color: var(--line); background-color: #fcfbf9; }
.req-field .form-control:focus, .req-field .form-select:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-soft); }
.req-field .form-control[dir="ltr"] { text-align: left; padding-inline-start: .9rem; padding-left: 2.5rem; }
.req-field .form-control[dir="ltr"] ~ i, .req-field:has(.form-control[dir="ltr"]) > i { inset-inline-start: auto; left: .9rem; }
.req-modal textarea.form-control { border-radius: 12px; border-color: var(--line); background-color: #fcfbf9; }
.req-modal__foot { padding: .75rem 1.5rem 1.5rem; }
.req-modal__foot .btn-brand { min-height: 52px; font-size: 1.05rem; }
.req-modal__privacy { text-align: center; color: var(--muted); font-size: .8rem; margin: .8rem 0 0; line-height: 1.6; }

/* ---------- Project page: centred typography ---------- */
.pp-full { max-width: 1040px; margin: 0 auto; }
.pp-full .row { justify-content: center; }
.pp-page .pp-side { position: static; }
.pp-page .pp-head { text-align: center; }
.pp-page .pp-badges, .pp-page .pp-summary, .pp-page .pp-nav, .pp-page .pp-thumbs { justify-content: center; }
.pp-page .pp-intro { max-width: 900px; margin: 0 auto; }
.pp-page .pp-section__title { justify-content: center; text-align: center; }
.pp-page .pp-desc, .pp-page .rich-text, .pp-page .legacy-embed { text-align: center; }
.pp-page .rich-text ul, .pp-page .rich-text ol { display: inline-block; text-align: start; }
.pp-page .fact { flex-direction: column; text-align: center; gap: .35rem; }
.pp-page .feature-item { justify-content: center; text-align: center; }
.pp-page .nearby-item { flex-direction: column; text-align: center; gap: .25rem; }
.pp-page .warranty-table td { text-align: start; }
.pp-page .pp-brochure__actions { justify-content: center; }
.pp-page #sec-location { text-align: center; }
.pp-page .pp-cta { text-align: center; }
.pp-page .pp-cta__links .btn-brand, .pp-page .pp-cta__links .btn-outline-brand, .pp-page .pp-cta__links .btn-whatsapp { justify-content: center; }
.pp-page .pp-cta__note { text-align: center; }

/* ---------- Brochure cards ---------- */
.brochure-actions { display: flex; gap: .5rem; }
.brochure-actions a { flex: 1; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; width: 58px; height: 58px; bottom: 22px; inset-inline-end: 22px; background: #25d366; color: #fff !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 1020; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- Footer ---------- */
footer .footer-head { font-size: 1rem !important; line-height: 1.5; font-weight: 700; color: #fff; margin: 0 0 1rem !important; letter-spacing: 0 !important; }
footer .footer-list li { margin-bottom: .5rem; }
footer .footer-list a { display: inline-flex; align-items: center; gap: .3rem; }
footer .fal-badge { width: 200px; margin-top: 30px; }
.lang-link { color: var(--text); font-weight: 700; font-size: 1rem; letter-spacing: .03em; text-decoration: underline; }
/* The template's arrow icons are drawn for Arabic; mirror them when the page reads left to right. */
[dir="ltr"] a > i.mdi-arrow-left, [dir="ltr"] a > i.mdi-chevron-left { display: inline-block; transform: scaleX(-1); }
.lang-link:hover { color: var(--brand); }
#topnav .buy-button { margin: 0 60px; }
[dir="ltr"] #topnav .logo { float: left !important; }
[dir="ltr"] #topnav .buy-button, [dir="ltr"] #topnav .menu-extras { float: right !important; }

/* Keep the 7-item menu on one line on desktops (the template caps the list width) */
@media (min-width: 992px) {
    #topnav .navigation-menu > li { margin: 0 4px; }
    #topnav .navigation-menu > li > a { padding-left: 8px !important; padding-right: 8px !important; white-space: nowrap; }
}
/* ...and tighter still on laptops */
@media (min-width: 992px) and (max-width: 1399px) {
    #topnav .navigation-menu > li > a { padding: 0 6px !important; font-size: 13px !important; letter-spacing: 0 !important; white-space: nowrap; }
    #topnav .buy-button { margin: 0 12px; }
    #topnav .logo img { max-height: 46px; }
}

/* ---------- Pagination tweak ---------- */
.text-center nav .text-muted, .pagination-wrap nav p { display: none !important; }
.pagination-wrap { display: flex; justify-content: center; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
.page-link { color: var(--brand); }

/* ---------- Privacy ---------- */
.privacy-content { text-align: justify; line-height: 2; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1199px) {
    .pp-side { position: static; }
}

@media (max-width: 991px) {
    #topnav .navbar-toggle .lines { width: 25px; display: block; position: relative; margin: 30px 10px 26px 0; height: 18px; }
    #navigation { display: none; }
    #navigation.open { display: block; }
    #topnav .navigation-menu { list-style: none; margin: 0; padding: 15px 0 30px; display: flex; flex-direction: column; width: 100%; gap: 20px; }
    #topnav { position: fixed; left: 0; right: 0; top: 0; width: 100%; z-index: 999; background: #fff; border: 0; margin: 0 auto; border-radius: 0 0 20px 20px; transition: all .5s ease; }
    #topnav .buy-button { margin: 0 20px; }
    .title-heading { text-align: center; }
    .title-heading .heading { width: 100%; }
    .swiper-slider-hero .title-heading { margin-top: 18vh !important; }
    .swiper-slider-hero .swiper-container .swiper-button-prev:before { content: "\f0142"; }
    .swiper-slider-hero .swiper-container .swiper-button-next:before { content: "\f0141"; }
    .swiper-slider-hero .swiper-container .swiper-button-prev:before, .swiper-slider-hero .swiper-container .swiper-button-next:before { font-family: "Material Design Icons"; color: #fff; font-size: 30px; border: 1px solid; border-radius: 50%; }
    .swiper-button-prev, .swiper-container-rtl .swiper-button-next { background-image: none !important; }
    .swiper-slide, .slide-inner { width: 100vw !important; height: 100vh !important; overflow: hidden; }
    .swiper-slide .container { padding-left: 0; padding-right: 0; max-width: 100% !important; }
    .features .feature-icon .hexagon { color: transparent !important; fill: rgba(56,189,248,.05) !important; height: 102px !important; width: 102px !important; }
    footer { color: #fff !important; }
    footer .footer-py-60 { padding: 60px 0; }
    footer .text-foot { color: #fff; }
    footer .footer-border, footer .footer-bar { border-top: 1px solid #ccc; }
    footer .footer-py-30 { padding: 30px 0; }

    /* Map on tablets/phones: list below the map, horizontal chips */
    .map-section { margin-top: 48px; }
    #projects-map { height: 340px; }
    .map-sidebar { max-height: none; }
    .map-sidebar-inner { padding: 10px; }
    #map-project-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    #map-project-list::-webkit-scrollbar { display: none; }
    .map-project-item { flex: 0 0 auto; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; align-items: center; }
    .map-item-badges { display: none; }
    .map-sidebar-label { display: none; }
}

@media (max-width: 767px) {
    .sec-title, .project_title { font-size: 26px !important; }
    .pp-title { font-size: 1.5rem; }
    .pp-facts { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .fact { padding: .65rem .7rem; }
    .fact i { font-size: 1.15rem; }
    .pp-nav { top: 66px; margin: 1rem 0; }
    .pp-section { padding-top: 1.5rem; scroll-margin-top: 125px; }
    .pp-brochure iframe { display: none; }
    .pp-cta-bar { display: flex; }
    body.has-cta-bar { padding-bottom: 76px; }
    body.has-cta-bar .wa-float { display: none; } /* the action bar already has WhatsApp */
    .pp-head { padding-top: 84px; } /* the header is fixed on phones */
    .pp-side .pp-cta { display: none; }
    .pp-mobile-price { display: block; }
    .pp-units-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .pp-units-cta__text { text-align: center; }
    .pp-flash { margin-top: .5rem; }
    .nearby-list, .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-item { font-size: .85rem; padding: .65rem .7rem; }
    .pp-map iframe, .pp-map__legacy iframe { height: 300px !important; }
    .filter-bar { gap: .6rem; }
    .pill { padding: .4rem .8rem; font-size: .85rem; }
    .careers-head h1 { font-size: 1.6rem; }
    .careers-head p { font-size: .95rem; }
    .type-switch__options { grid-template-columns: 1fr; }
    .form-card { padding: 1.25rem; }
    .brochure-page__viewer { display: none; }
    .brochure-page__mobile { display: block; }
    .brochure-page__head { justify-content: center; text-align: center; }
    .brochure-page__head h1 { font-size: 1.3rem; width: 100%; }
    .brochure-page__actions { justify-content: center; }
    .pp-cta__models li { font-size: .84rem; }
    .req-modal .modal-content { border-radius: 0; min-height: 100%; }
    .req-modal__head { padding: 1.4rem 1.25rem 1.1rem; }
    .req-modal__body { padding: 1.1rem 1.25rem .25rem; }
    .req-modal__foot { padding: .6rem 1.25rem 1.25rem; }
    .unit-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main price" "stats stats" "more more"; gap: .4rem .75rem; padding: .7rem .9rem; }
    .unit-row__stats { gap: .25rem .9rem; }
    .map-section { display: none !important; }
    .btn-primary { font-size: 16px; height: 50px; line-height: 48px; }
    .hero-cta { width: 220px; }
    .article-title { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    .nearby-list, .feature-grid { grid-template-columns: 1fr; }
    .pcard__body { padding: .9rem 1rem 1rem; }
}
