/* ============================================================
   NextGen theme — NextGen Real Estate (dark).
   Base rules come from the spectrum/smcg lineage; the NextGen look is the
   "NEXTGEN DARK LAYER" at the END of this file.
   Palette (from the client's approved design):
     Night   #0C0C0C   page background
     Navy    #092349   panels, gradient start
     Blue    #0399D7   accent, gradient end
     Mist    #8A99A8   secondary text
   Gradients: buttons 108deg navy -> blue; cards navy -> night (top to bottom).
   Type: Manrope.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --sp-navy:       #092349;
    --sp-navy-2:     #0C1A2E;
    --sp-accent:     #0399D7;
    --sp-silver:     #C3CED9;

    --sp-bg:         #0C0C0C;
    --sp-bg-soft:    #0F1216;
    --sp-muted:      #8A99A8;
    --sp-ink:        #FFFFFF;
    --sp-glass:      rgba(255,255,255,0.06);

    --sp-line:       rgba(255,255,255,.10);
    --sp-line-dark:  rgba(255,255,255,.10);

    --sp-sans:       "Manrope", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
    --sp-display:    "Manrope", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
    --sm-serif:      "Manrope", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;   /* headings share the family here */

    --sp-radius:     12px;
    --sp-shadow:     0 20px 50px rgba(0,0,0,.45);

    /* NextGen-only tokens */
    --ng-night:      #0C0C0C;
    --ng-grad-btn:   linear-gradient(108deg, #092349 0%, #0399D7 100%);
    --ng-grad-card:  linear-gradient(180deg, rgba(9,35,73,.62) 0%, #0C0C0C 86%);
    --ng-border:     rgba(255,255,255,.10);
    --ng-glow:       rgba(94,200,245,.45);   /* the moving border light (light blue) */
}

/* ---- Canvas + base ---- */
body {
    background-color: var(--sp-bg) !important;
    color: var(--sp-ink) !important;
    font-family: var(--sp-sans);   /* no !important — let admin Typography panel win if you set a different font */
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
}

/* Neutralize base section bgs so spectrum sections take over */
.flat-section, .flat-section-v5, .flat-recommended,
section, .bg-surface {
    background-color: transparent;
}

p, span, li, .desc { color: var(--sp-ink); }
.text-muted, .sp-muted { color: var(--sp-muted) !important; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6,
.section-title, .title, .box-title, .h7 {
    font-family: var(--sp-sans);   /* no !important — let admin Typography panel win */
    color: var(--sp-ink) !important;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
}

/* Small tracked uppercase label (HANDPICKED FOR YOU, INVESTMENT OPPORTUNITIES) —
   locked in Montserrat + uppercase so every section header is consistent. */
.sp-label,
.text-subtitle {
    font-family: var(--sp-display) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;   /* tight tracking — matches Investment Opportunities */
    color: var(--sp-navy);
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
}
.sp-label::after { display: none !important; }

/* Section headline — admin Typography panel controls size & family;
   we only lock weight + uppercase so all sections stay consistent.
   body prefix → higher specificity than admin Typography <style> injection. */
body .sp-section-title,
body .sp-section-title *,
body .sp-section .sp-section-title,
body .sp-section .sp-section-title *,
body .sp-section .section-title,
body .sp-section h2.section-title,
body .sp-section-head h2.sp-section-title,
body .sp-section-head h2.sp-section-title * {
    font-weight: 500 !important;
    text-transform: uppercase !important;
    margin: 0;
    padding: 0;
}
/* Reset any descendant the WYSIWYG injects (<p>, <span>, <strong>, <br>) so the
   spacing between label and title is identical across ALL sections. Descendant
   selector — not just direct children — so nested <strong> inside <p> is caught. */
.sp-section-title *,
.sp-section-head .sp-label * {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    font: inherit !important;
    line-height: inherit !important;
}
/* Kill <br> entirely — admin's Enter-key turns into a forced line break that
   makes "Move Fast. Save More." render two lines, breaking the rhythm. */
.sp-section-title br,
.sp-section-head .sp-label br { display: none !important; }

/* Section header layout only — typography is controlled by the
   admin Theme Options → Typography panel (Heading 1/2 + body). */
body .sp-section-head .sp-label {
    display: inline-block;
    margin: 0 0 6px 0;
    padding: 0;
}

/* "Explore all → " trailing link in section headers */
.sp-section-link,
a.sp-section-link {
    font-family: var(--sp-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--sp-navy);
    text-decoration: none;
    transition: color .2s ease;
    display: inline-flex;
    align-items: center;
}
.sp-section-link::after {
    content: "→";
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    transition: transform .25s ease;
}
.sp-section-link:hover { color: var(--sp-accent); }
.sp-section-link:hover::after { transform: translateX(5px); }

/* ---- Sections rhythm ---- */
.sp-section { padding: 80px 0; }
/* Two stacked sections (e.g. Hot Deals → Lands) — kill the doubled gap */
.sp-section + .sp-section { padding-top: 40px; }
.sp-section--dark { background: var(--sp-navy); color: #fff; }
.sp-section--dark h2,
.sp-section--dark .sp-section-title,
.sp-section--dark p { color: #fff !important; }
.sp-section--dark .sp-section-link { color: #fff; }
.sp-section--dark .sp-section-link:hover { color: var(--sp-accent); }
/* On dark sections the label is white with NO underline (per design) */
.sp-section--dark .sp-label {
    color: #fff !important;
    padding-bottom: 0 !important;
}
.sp-section--dark .sp-label::after { display: none !important; }
.sp-section--soft { background: var(--sp-bg-soft); }

/* ---- Buttons ---- */
.sp-btn, .tf-btn, .tf-btn.primary,
button.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--sp-navy) !important;
    color: #fff !important;
    border: 1px solid var(--sp-navy) !important;
    border-radius: var(--sp-radius) !important;
    font-family: var(--sp-sans) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 24px !important;
    line-height: 1;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
}
.sp-btn:hover, .tf-btn:hover, .tf-btn.primary:hover {
    background: var(--sp-accent) !important;
    border-color: var(--sp-accent) !important;
    color: var(--sp-navy-2) !important;
}

/* Outline variant (Explore properties / Watch video / Book consultation) */
.sp-btn--outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.55) !important;
}
.sp-btn--outline:hover {
    background: #fff !important;
    color: var(--sp-navy) !important;
    border-color: #fff !important;
}
.sp-btn--outline-dark {
    background: transparent !important;
    color: var(--sp-navy) !important;
    border: 1px solid var(--sp-navy) !important;
}
.sp-btn--outline-dark:hover {
    background: var(--sp-navy) !important;
    color: #fff !important;
}

/* Trailing arrow link "EXPLORE LANDS →" */
.sp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sp-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.6);
    padding: 12px 18px;
    border-radius: var(--sp-radius);
    transition: all .25s ease;
}
.sp-link-arrow:hover { background: #fff; color: var(--sp-navy); border-color: #fff; }

/* ============================================================
   HEADER — solid navy bar, logo / nav / phone + CTA.
   Hide base homzen header to avoid double bars.
   ============================================================ */
.main-header { display: none !important; }

#header.sp-header,
.sp-header {
    background: var(--sp-navy) !important;
    background-color: var(--sp-navy) !important;
    background-image: none !important;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--sp-line-dark);
    font-family: var(--sp-sans);
}
.sp-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 40px;
    max-width: 1500px;
    margin: 0 auto;
}
.sp-header__brand { display: inline-flex; align-items: center; }
.sp-header__brand img { max-height: 64px; display: block; }

/* Nav (centered) */
.sp-header__nav { flex: 1; display: flex; justify-content: center; }
ul.sp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.sp-nav > li { position: relative; }
ul.sp-nav > li > a {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 0;
    transition: color .2s ease;
}
ul.sp-nav > li > a:hover,
ul.sp-nav > li.active > a { color: var(--sp-accent); }

/* Submenu dropdown */
ul.sp-nav__sub {
    position: absolute; top: 100%; left: 0;
    min-width: 220px;
    background: var(--sp-navy);
    border: 1px solid var(--sp-line-dark);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0; visibility: hidden;
    transform: translateY(6px);
    transition: all .2s ease;
    z-index: 10;
}
ul.sp-nav > li.has-sub:hover > ul.sp-nav__sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
ul.sp-nav__sub > li > a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
ul.sp-nav__sub > li > a:hover {
    background: rgba(255,255,255,.05);
    color: var(--sp-accent);
}

/* Right actions */
.sp-header__actions { display: flex; align-items: center; gap: 18px; }
.sp-header__phone,
.sp-header__phone:link,
.sp-header__phone:visited {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff !important; text-decoration: none !important;
    font-size: 14px; font-weight: 500;
    transition: color .2s ease;
}
.sp-header__phone:hover { color: var(--sp-accent) !important; }
.sp-header__phone:hover .sp-header__phone-icon { background: rgba(255,255,255,.16); }
.sp-header__phone-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background .2s ease;
}
.sp-header__phone-icon svg { width: 16px; height: 16px; display: block; }
.sp-header__phone-text { color: #fff !important; }

/* Outline button on navy (Book Consultation) — tall to match hero CTAs, font small like nav */
.sp-btn--outline-light,
.sp-header__actions .sp-btn--outline-light {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    padding: 20px 28px !important;   /* taller pill — matches hero buttons */
    min-height: 56px;
}
.sp-btn--outline-light:hover {
    background: #fff !important;
    color: var(--sp-navy) !important;
    border-color: #fff !important;
}

/* Mobile toggle (hamburger) */
.sp-header__toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent; border: 0;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; cursor: pointer;
}
.sp-header__toggle span {
    width: 24px; height: 2px; background: #fff;
    transition: all .25s ease;
}
.sp-header__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.sp-header__toggle.open span:nth-child(2) { opacity: 0; }
.sp-header__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* Mobile drawer */
.sp-header__mobile { display: none; }
.sp-header__mobile.open { display: flex; flex-direction: column; gap: 16px; padding: 24px 40px 32px; border-top: 1px solid var(--sp-line-dark); }
.sp-nav--mobile { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; }
.sp-nav--mobile > li { width: 100%; border-bottom: 1px solid var(--sp-line-dark); }
.sp-nav--mobile > li > a { padding: 14px 0 !important; }
.sp-header__phone--mobile { padding-top: 8px; }

@media (max-width: 1199px) {
    .sp-header__inner { padding: 14px 24px; gap: 20px; }
    ul.sp-nav { gap: 18px; }
    ul.sp-nav > li > a { font-size: 12px; letter-spacing: 1px; }
    .sp-header__phone-text { display: none; }
}
@media (max-width: 991px) {
    .sp-header__nav { display: none; }
    .sp-header__actions { display: none !important; }
    .sp-header__inner { justify-content: space-between; }
    .sp-header__toggle { display: flex; margin-left: auto; }
}

/* ============================================================
   HERO — full-bleed image + headline + 2 CTAs +
   overlapping white search-bar card.
   ============================================================ */
.sp-hero {
    position: relative;
    min-height: 720px;
    height: 78vh;
    display: flex;
    align-items: flex-start;
    color: #fff;
    overflow: visible;
}
.sp-hero__bg {
    position: absolute; inset: 0; z-index: 1;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.sp-hero__overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(17, 17, 17,.75) 0%, rgba(17, 17, 17,.45) 45%, rgba(17, 17, 17,.15) 100%);
}
.sp-hero__inner {
    position: relative; z-index: 3;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 40px;
}
.sp-hero__content { max-width: 1000px; }
.sp-hero h1.sp-hero__title,
h1.sp-hero__title,
.sp-hero__title.sp-hero__title {
    font-family: var(--sp-sans) !important;
    font-size: clamp(30px, 4.8vw, 74px) !important;   /* 20% smaller per request */
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: -.02em !important;
    line-height: .95 !important;
    margin: 0 0 10px !important;
}
.sp-hero__subtitle {
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 400;
    color: rgba(255,255,255,.92) !important;
    margin: 0 0 72px;
    line-height: 1.5;
}
.sp-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.sp-hero__cta .sp-btn {
    padding: 22px 36px !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    min-height: 64px;
}
.sp-hero__cta .sp-btn--video { display: inline-flex; align-items: center; gap: 12px; }
.sp-btn__play {
    width: 30px; height: 30px;
    background: transparent;
    border: 1.5px solid #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all .25s ease;
}
.sp-btn__play svg { display: block; margin-left: 2px; }
.sp-btn--video:hover .sp-btn__play { background: #fff; color: var(--sp-navy); }

/* ============================================================
   VIDEO MODAL — self-contained, no Fancybox dependency.
   ============================================================ */
.sp-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.sp-video-modal.is-open { display: flex; }
.sp-video-modal__inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.sp-video-modal__inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.sp-video-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
    z-index: 2;
}
.sp-video-modal__close:hover {
    background: #fff;
    color: var(--sp-navy);
    border-color: #fff;
}
@media (max-width: 575px) {
    .sp-video-modal { padding: 16px; }
    .sp-video-modal__close { top: -52px; right: 0; }
}

/* Overlapping white search-bar card — same edges as header & hero content */
.sp-hero__search {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -52px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 6;
}
/* Mobile filters toggle hidden on desktop — re-shown in <768px block */
.sp-hero__filters-toggle { display: none; }
.sp-hero__search-card {
    background: #fff;
    border-radius: var(--sp-radius);
    box-shadow: 0 18px 50px rgba(17, 17, 17,.18);
    padding: 8px;
}

/* ---- Spectrum 5-field horizontal search form ---- */
.sp-search {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
}
.sp-search__field {
    position: relative;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 92px;
}
.sp-search__field + .sp-search__field { border-left: 1px solid var(--sp-line); }
.sp-search__field label {
    font-family: var(--sp-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--sp-muted);
    margin: 0 0 8px;
    line-height: 1;
}

/* Inputs + selects */
.sp-search__field input,
.sp-search__field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--sp-ink);
    font-family: var(--sp-sans);
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    width: 100%;
    height: auto;
    outline: none;
    cursor: pointer;
}
.sp-search__field input { cursor: text; }
.sp-search__field input::placeholder { color: var(--sp-muted); font-weight: 400; }
.sp-search__field input:focus,
.sp-search__field select:focus { outline: none; }

/* Custom select wrapper with chevron */
.sp-search__select {
    position: relative;
    display: flex;
    align-items: center;
}
.sp-search__select::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--sp-muted);
    border-bottom: 2px solid var(--sp-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

/* Location field with map-pin icon on the left */
.sp-search__select--icon { padding-left: 0; }
.sp-search__select--icon select { padding-right: 22px; padding-left: 26px; }
.sp-search__icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sp-accent);
    display: inline-flex;
    align-items: center;
}

/* Search button */
.sp-search__btn,
button.sp-search__btn {
    background: var(--sp-navy) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--sp-radius) !important;
    margin: 6px;
    padding: 0 44px !important;
    min-width: 200px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--sp-sans) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.sp-search__btn span { color: #fff !important; }
.sp-search__btn svg { display: block; stroke: #fff !important; }
.sp-search__btn:hover { background: var(--sp-accent) !important; color: var(--sp-navy) !important; }
.sp-search__btn:hover span { color: var(--sp-navy) !important; }
.sp-search__btn:hover svg { stroke: var(--sp-navy) !important; }

/* Advanced search link below the bar */
.sp-search__advanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0 14px;
    font-family: var(--sp-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sp-navy);
    text-decoration: none;
    transition: color .25s ease;
}
.sp-search__advanced:hover { color: var(--sp-accent); }
.sp-search__advanced svg { transition: transform .25s ease; }

/* Advanced panel — collapsible row of extra filters */
.sp-search__advanced-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--sp-line);
}
.sp-search__advanced-panel[hidden] { display: none; }
.sp-search__advanced-panel .sp-search__field + .sp-search__field { border-left: 1px solid var(--sp-line); }

/* ---- Tom Select tag-style for Location / Property Type ---- */
.sp-search__field .ts-wrapper {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: auto;
    font-family: var(--sp-sans);
}
.sp-search__field .ts-wrapper.focus,
.sp-search__field .ts-wrapper:focus-within {
    box-shadow: none !important;
}
.sp-search__field .ts-control {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: 28px;
    color: var(--sp-ink) !important;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sp-search__field .ts-control::after { display: none !important; }  /* hide tom-select's caret */
/* The "tag" pill for each selected item */
.sp-search__field .ts-wrapper.multi .ts-control > div {
    background: var(--sp-navy) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sp-search__field .ts-wrapper.multi .ts-control > div.active {
    background: var(--sp-accent) !important;
    color: var(--sp-navy) !important;
}
/* × remove icon on tag */
.sp-search__field .ts-wrapper.multi .ts-control > div .remove {
    color: rgba(255,255,255,.85) !important;
    border-left: 0 !important;
    padding: 0 0 0 4px !important;
    margin: 0 !important;
    font-weight: 400;
    text-decoration: none !important;
    box-shadow: none !important;
}
.sp-search__field .ts-wrapper.multi .ts-control > div .remove:hover {
    color: #fff !important;
    background: transparent !important;
}
/* The input for typing */
.sp-search__field .ts-control input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--sp-ink) !important;
    font-family: var(--sp-sans) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 2px 0 !important;
    min-width: 60px !important;
}
.sp-search__field .ts-control input::placeholder { color: var(--sp-muted) !important; font-weight: 400; }

/* The popped-up options menu */
.ts-dropdown {
    border: 1px solid var(--sp-line) !important;
    border-radius: var(--sp-radius) !important;
    box-shadow: 0 14px 30px rgba(17, 17, 17,.14) !important;
    margin-top: 8px !important;
    font-family: var(--sp-sans);
}
.ts-dropdown .option {
    padding: 10px 14px !important;
    color: var(--sp-ink) !important;
    font-size: 14px;
}
.ts-dropdown .option.active,
.ts-dropdown .active {
    background: var(--sp-navy) !important;
    color: #fff !important;
}
.ts-dropdown .option:hover {
    background: var(--sp-bg-soft) !important;
    color: var(--sp-ink) !important;
}

@media (max-width: 1199px) {
    .sp-search { grid-template-columns: repeat(2, 1fr); }
    .sp-search__field + .sp-search__field { border-left: 0; border-top: 1px solid var(--sp-line); }
    .sp-search__field:nth-child(odd) + .sp-search__field { border-top: 1px solid var(--sp-line); border-left: 1px solid var(--sp-line); }
    .sp-search__btn { grid-column: 1 / -1; margin: 8px 4px 4px; padding: 16px 36px; }
}
@media (max-width: 575px) {
    .sp-search { grid-template-columns: 1fr; }
    .sp-search__field + .sp-search__field { border-left: 0 !important; border-top: 1px solid var(--sp-line); }
}

/* Pad the next section after the hero so the floating search card has breathing room.
   Adjacent + general-sibling selectors so it works regardless of any in-between nodes. */
.sp-hero + section,
.sp-hero + .sp-section,
.sp-hero ~ section:first-of-type,
.sp-hero ~ .sp-section:first-of-type { padding-top: 130px !important; }

@media (max-width: 1199px) {
    .sp-hero__inner { padding: 60px 40px; }
}
@media (max-width: 991px) {
    .sp-hero { min-height: 560px; height: auto; padding: 100px 0 60px; }
    .sp-hero__inner { padding: 40px 24px; }
    .sp-hero__title { font-size: clamp(34px, 8vw, 56px); }
    .sp-hero__search {
        position: relative !important;
        left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
        transform: none !important;
        max-width: 100% !important;
        width: calc(100% - 32px) !important;
        padding: 0 !important;
        margin: 32px auto 0 !important;
    }
    .sp-hero + section,
    .sp-hero + .sp-section { padding-top: 64px; }
}

/* ============================================================
   PROPERTY CARD — image / location pin / title / price / CTA.
   ============================================================ */
.sp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    overflow: hidden;
    transition: all .25s ease;
    height: 100%;
}
.sp-card:hover {
    box-shadow: 0 14px 32px rgba(17, 17, 17,.10);
    border-color: transparent;
    transform: translateY(-2px);
}

.sp-card__image {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eef2f7;
}
.sp-card__image img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.sp-card:hover .sp-card__image img { transform: scale(1.06); }
.sp-card__tag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(17, 17, 17,.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 10px;
    border-radius: 4px;
}

.sp-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sp-card__location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sp-muted);
    font-weight: 500;
    letter-spacing: .3px;
}
.sp-card__location i,
.sp-card__location .sp-card__pin { color: var(--sp-accent); flex-shrink: 0; display: block; }
.sp-card__title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}
.sp-card__title a {
    color: var(--sp-ink) !important;
    text-decoration: none;
    transition: color .2s ease;
}
.sp-card__title a:hover { color: var(--sp-navy); }
.sp-card__price {
    font-size: 17px;
    font-weight: 700;
    color: var(--sp-ink);
    margin-top: 4px;
}
.sp-card__cta {
    align-self: flex-start;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--sp-navy) !important;
    text-decoration: none !important;
    border-bottom: 0;
    padding: 0;
    transition: color .2s ease;
    display: inline-flex;
    align-items: center;
}
.sp-card__cta::after {
    content: "→";
    display: inline-block;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    transition: transform .25s ease;
}
.sp-card__cta:hover { color: var(--sp-accent) !important; }
.sp-card__cta:hover::after { transform: translateX(4px); }

/* Neutralize base card hover/overlay effects that would conflict */
.homeya-box, .property-item { background: transparent !important; border: 0 !important; }

/* ============================================================
   SIGNATURE PROPERTIES section — left/right header, 6 cards in a row.
   ============================================================ */
.sp-properties { padding: 80px 0 90px; background: #fff; }
.sp-properties__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}
@media (max-width: 1399px) { .sp-properties__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px)  { .sp-properties__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .sp-properties__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sp-properties__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION shell + heading (used by Properties section and others)
   ============================================================ */
.sp-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 991px) { .sp-container { padding: 0 20px; } }
@media (max-width: 575px) { .sp-container { padding: 0 14px; } }
.sp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.sp-section-head__left { display: flex; flex-direction: column; gap: 2px; }
.sp-section-head__left > .sp-label,
.sp-section-head__left > .sp-section-title { margin: 0 !important; }
.sp-section-head .sp-section-link { white-space: nowrap; }
.sp-section-head .sp-section-link i { margin-left: 6px; transition: transform .25s ease; }
.sp-section-head .sp-section-link:hover i { transform: translateX(4px); }

/* ============================================================
   INVESTMENTS — 4 image-tile cards on dark navy.
   ============================================================ */
.sp-investments { padding: 90px 0 100px; }
.sp-investments .sp-section-head .sp-section-link { color: #fff; }
.sp-investments .sp-section-head .sp-section-link:hover { color: var(--sp-accent); }

.sp-investments__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.sp-tile {
    position: relative;
    display: block;
    aspect-ratio: 3/5;   /* taller portrait — was 4/5, felt squeezed */
    border-radius: var(--sp-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .35s ease, box-shadow .35s ease;
}
.sp-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.sp-tile__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.sp-tile:hover .sp-tile__bg { transform: scale(1.06); }
.sp-tile__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17,.3) 0%, rgba(17, 17, 17,.85) 100%);
    transition: opacity .25s ease;
}
.sp-tile__content {
    position: absolute;
    left: 0; bottom: 0; right: 0;
    padding: 26px 24px;
    color: #fff;
    z-index: 2;
}
.sp-tile__title {
    margin: 0 0 8px !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #fff !important;
    line-height: 1.2;
    text-transform: none !important;
    letter-spacing: 0;
}
.sp-tile__desc {
    font-size: 15px;
    color: rgba(255,255,255,.85) !important;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 300;
}
.sp-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
    padding: 10px 16px;
    border-radius: var(--sp-radius);
    transition: all .25s ease;
}
.sp-tile__cta::after {
    content: "→";
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    transition: transform .25s ease;
}
.sp-tile:hover .sp-tile__cta {
    background: #fff;
    color: var(--sp-navy);
    border-color: #fff;
}
.sp-tile:hover .sp-tile__cta::after { transform: translateX(4px); }

@media (max-width: 1199px) {
    .sp-investments__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .sp-investments__grid { grid-template-columns: 1fr; }
    .sp-tile { aspect-ratio: 16/10; }
}

/* ============================================================
   FOOTER — navy bar, brand, links, contact, social, copyright.
   ============================================================ */
.sp-footer {
    background: var(--sp-navy);
    color: #fff;
    padding: 80px 0 0;
    font-family: var(--sp-sans);
}
.sp-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}
.sp-footer__brand .sp-footer__logo img { max-height: 64px; margin-bottom: 18px; }
.sp-footer__about {
    color: rgba(255,255,255,.7) !important;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}
.sp-footer__heading {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 22px !important;
}
.sp-footer__list { list-style: none; padding: 0; margin: 0; }
.sp-footer__list li { margin-bottom: 12px; font-size: 14px; color: rgba(255,255,255,.75); }
.sp-footer__list a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s ease;
}
.sp-footer__list a:hover { color: var(--sp-accent); }

.sp-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sp-footer__contact li i {
    color: var(--sp-accent);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-footer__social {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    gap: 10px;
}
.sp-footer__social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all .25s ease;
}
.sp-footer__social a:hover {
    background: var(--sp-accent);
    border-color: var(--sp-accent);
    color: var(--sp-navy);
}
.sp-footer__whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.sp-footer__whatsapp i { color: #25D366; font-size: 18px; }
.sp-footer__whatsapp:hover { color: var(--sp-accent); }

.sp-footer__bottom {
    border-top: 1px solid var(--sp-line-dark);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.sp-footer__copy,
.sp-footer__credits {
    margin: 0;
    font-size: 13px;
    color: #fff !important;
}
/* All text inside the copyright/credits line (including inline-styled links) is white;
   any <a> gets an underline so it's clearly clickable. */
.sp-footer__copy,
.sp-footer__copy *,
.sp-footer__credits,
.sp-footer__credits * {
    color: #fff !important;
}
.sp-footer__copy a,
.sp-footer__credits a {
    text-decoration: underline !important;
}
.sp-footer__copy a:hover,
.sp-footer__credits a:hover { color: var(--sp-accent) !important; }

@media (max-width: 991px) {
    .sp-footer__top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .sp-footer__top { grid-template-columns: 1fr; }
    .sp-footer__bottom { flex-direction: column; }
}

/* ============================================================
   MOBILE LAYOUT FIX — header, hero, search-bar.
   Tighter container padding handled above; this block fixes
   the three "terrible" components specifically.
   ============================================================ */
@media (max-width: 767px) {
    /* HEADER — tighter padding, smaller logo, hamburger sized down */
    .sp-header__inner { padding: 10px 14px; gap: 10px; }
    .sp-header__brand img { max-height: 44px !important; }
    .sp-header__toggle { width: 40px; height: 40px; }

    /* Mobile drawer — flush with screen edges */
    .sp-header__mobile.open { padding: 16px 14px 24px; gap: 12px; }

    /* HERO — content stacks: title → subtitle → CTAs → (then search below)
       Bottom padding gives the search/filter card breathing room over the bg image. */
    .sp-hero {
        min-height: 0 !important;
        height: auto !important;
        padding: 32px 0 40px !important;
        display: block !important;
    }
    .sp-hero__inner {
        padding: 24px 16px 24px !important;
        max-width: 100% !important;
    }
    .sp-hero__content { max-width: 100%; }
    .sp-hero h1.sp-hero__title,
    h1.sp-hero__title,
    .sp-hero__title.sp-hero__title {
        font-size: clamp(30px, 9vw, 44px) !important;
        line-height: 1.05 !important;
        margin: 0 0 14px !important;
        text-align: left !important;
    }
    .sp-hero__subtitle {
        font-size: 15px !important;
        line-height: 1.45 !important;
        margin: 0 0 22px !important;
    }
    .sp-hero__cta { gap: 10px; flex-direction: column; align-items: stretch; }
    /* IDENTICAL height for Explore Properties (<a>) and Watch Video (<button>) */
    .sp-hero__cta .sp-btn,
    .sp-hero__cta button.sp-btn,
    .sp-hero__cta a.sp-btn {
        padding: 0 18px !important;
        font-size: 12px !important;
        letter-spacing: 1px !important;
        height: 52px !important;
        min-height: 52px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        justify-content: center;
        align-items: center;
    }

    /* SEARCH BAR — moved BELOW hero image with a Filter Properties toggle.
       Collapsed by default; tapping the toggle expands the card. */
    .sp-hero__search {
        position: relative !important;
        left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 14px !important;
        margin: 28px auto 0 !important;   /* sits at end of hero, just above next section */
        transform: none !important;
    }
    /* Mobile Filters toggle — full-width navy pill, WHITE text + icon forced */
    .sp-hero__filters-toggle,
    button.sp-hero__filters-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 18px;
        background: var(--sp-navy) !important;
        color: #fff !important;
        border: 1px solid var(--sp-navy) !important;
        border-radius: var(--sp-radius);
        font-family: var(--sp-sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background .2s ease;
    }
    .sp-hero__filters-toggle *,
    .sp-hero__filters-toggle span,
    .sp-hero__filters-toggle svg { color: #fff !important; stroke: #fff !important; fill: none !important; }
    .sp-hero__filters-toggle:hover { background: var(--sp-navy-2) !important; }

    /* Mobile drawer (hamburger open) — force WHITE text for the phone block */
    .sp-header__mobile,
    .sp-header__mobile *,
    .sp-header__mobile a,
    .sp-header__mobile span,
    .sp-header__mobile .sp-header__phone,
    .sp-header__mobile .sp-header__phone * { color: #fff !important; }
    .sp-header__mobile .sp-header__phone-icon svg { stroke: #fff !important; }
    .sp-header__mobile .sp-nav > li > a { color: #fff !important; }
    /* Card collapsed by default; reveals when .is-open is added */
    .sp-hero__search-card {
        display: none;
        margin-top: 10px;
        padding: 8px !important;
        box-shadow: 0 8px 24px rgba(17, 17, 17,.18) !important;
    }
    .sp-hero__search.is-open .sp-hero__search-card { display: block; }
    /* 2-column grid: Min Price | Max Price, Bedrooms | Bathrooms, Min Area | Max Area */
    .sp-search {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    /* Full-row fields by default */
    .sp-search > .sp-search__field {
        grid-column: 1 / -1;
        padding: 12px 14px !important;
        border: 1px solid var(--sp-line) !important;
        border-radius: var(--sp-radius);
        min-height: 0 !important;
        background: #fff;
    }
    /* Half-row paired fields — Min/Max price */
    .sp-search > .sp-search__field:has(#sp-min),
    .sp-search > .sp-search__field:has(#sp-max) { grid-column: span 1 !important; }

    /* Advanced panel — always visible on mobile, rendered as 2-col sub-grid
       BEFORE the search button (order: 5 vs button's order: 10). */
    .sp-search__advanced-panel,
    .sp-search__advanced-panel[hidden] {
        display: grid !important;
        grid-column: 1 / -1 !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        order: 5 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    .sp-search__advanced-panel > .sp-search__field {
        padding: 12px 14px !important;
        border: 1px solid var(--sp-line) !important;
        border-radius: var(--sp-radius);
        background: #fff;
        min-height: 0 !important;
    }

    .sp-search__field-label,
    .sp-search__field label { font-size: 11px !important; }

    /* Search button — full-row, AFTER advanced fields, comfortable touch height */
    .sp-search__btn {
        grid-column: 1 / -1 !important;
        order: 10 !important;
        margin: 12px 0 0 !important;
        padding: 0 24px !important;
        height: 52px !important;
        min-height: 52px !important;
        line-height: 1 !important;
        width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Hide the "Advanced Search" toggle link — everything's shown by default on mobile */
    .sp-search__advanced { display: none !important; }

    /* SECTION RHYTHM — shorter vertical padding so it doesn't feel padded out */
    .sp-section { padding: 48px 0; }
    .sp-section + .sp-section { padding-top: 24px; }
    .sp-hero + section,
    .sp-hero + .sp-section,
    .sp-hero ~ section:first-of-type,
    .sp-hero ~ .sp-section:first-of-type { padding-top: 24px !important; }
}

/* ============================================================
   PROPERTIES LISTING PAGE — /properties
   Keeps the basic homzen structure but skins to Spectrum.
   ============================================================ */

/* "PROPERTIES" page title block — tighter top space */
.flat-section-v5.flat-recommended,
.flat-recommended-v2 {
    /* HOMZEN sets margin-top:-400px;padding-top:410px on this for the top-map layout
       (overlapping the map). In without-map there's no map → kill the negative margin. */
    margin-top: 0 !important;
    padding-top: 32px !important;
    padding-bottom: 64px !important;
}
/* Card dips ~55px into white → leave breathing room above the sort row */
.sp-properties-filter + .flat-recommended-v2,
.sp-properties-filter + .flat-recommended { padding-top: 110px !important; }
.box-title-listing { margin-top: 0 !important; margin-bottom: 16px !important; padding-bottom: 16px !important; border-bottom: 1px solid var(--sp-line); }

/* Filter bar styling intentionally removed — using the homzen ORIGINAL.
   We'll rebuild from scratch next iteration. */

/* Listing-top bar (reset / grid-list toggle / per-page / sort) */
.box-title-listing,
.box-title-listing .box-filter-tab {
    border: 0 !important;
    padding: 16px 0 !important;
    background: transparent !important;
}
.box-title-listing .reset-filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--sp-muted) !important;
    font-size: 12px !important; font-weight: 600 !important;
    letter-spacing: 1px !important; text-transform: uppercase !important;
    text-decoration: none !important;
    border: 0 !important;
}
.box-title-listing .reset-filter-btn:hover { color: var(--sp-accent) !important; }
.nav-tab-filter .nav-link-item {
    width: 38px !important; height: 38px !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: var(--sp-radius) !important;
    background: #fff !important;
    color: var(--sp-ink) !important;
    transition: all .2s ease;
}
.nav-tab-filter .nav-link-item.active,
.nav-tab-filter .nav-link-item:hover { background: var(--sp-navy) !important; color: #fff !important; border-color: var(--sp-navy) !important; }
.box-title-listing .list-page,
.box-title-listing .list-sort,
.box-title-listing select.list-page,
.box-title-listing select.list-sort {
    border: 1px solid var(--sp-line) !important;
    border-radius: var(--sp-radius) !important;
    height: 38px !important;
    padding: 0 32px 0 14px !important;
    font-size: 13px !important;
    color: var(--sp-ink) !important;
    background: #fff !important;
}
/* Remove homzen's funnel "btn-filter-mobile" — we have FILTER PROPERTIES button instead */
.btn-filter-mobile { display: none !important; }

/* Reset link — visible on desktop AND mobile whenever filters are active.
   The blade inlines `style="display: none"` only when no query params. */
.box-title-listing .reset-filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.box-title-listing .reset-filter-btn[style*="display: none"] { display: none !important; }

/* Properties grid — 3 per row desktop, 2 tablet, 1 mobile, with vertical breathing room */
.sp-listing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    margin-top: 8px;
}
@media (max-width: 1199px) { .sp-listing__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (max-width: 575px)  { .sp-listing__grid { grid-template-columns: 1fr; gap: 22px; } }

/* Pagination — Spectrum chips */
.flat-pagination,
.wd-navigation .flat-pagination {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 48px auto 0 !important;
}
.wd-navigation { display: flex; justify-content: center; }
.flat-pagination > li { margin: 0 !important; }
.flat-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: var(--sp-radius) !important;
    background: #fff !important;
    color: var(--sp-ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
}
.flat-pagination .page-numbers:hover {
    border-color: var(--sp-navy) !important;
    color: var(--sp-navy) !important;
}
.flat-pagination .page-numbers.current {
    background: var(--sp-navy) !important;
    border-color: var(--sp-navy) !important;
    color: #fff !important;
}

/* (Removed) sp-listing-filter / sp-listing-filter__card overrides —
   restarting with the homzen original. */

/* ---------- Page title (PROPERTIES heading + breadcrumb) — matches SIGNATURE PROPERTIES style ---------- */
/* body.listing-no-map prefix needed to beat homzen's `.listing-no-map .flat-title-page { padding: 50px 0 100px }` */
.sp-page-title,
body.listing-no-map .flat-title-page,
body.listing-no-map .sp-page-title {
    padding: 30px 0 10px !important;
    background: var(--sp-bg-soft);
}
.sp-page-title .breadcrumb {
    justify-content: center;
    font-size: 13px;
    color: var(--sp-muted);
    margin-bottom: 6px;
}
.sp-page-title__heading,
body .sp-page-title__heading {
    font-family: var(--sp-display) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    line-height: 1.2 !important;
    font-size: clamp(28px, 2.6vw, 38px) !important;   /* same as .sp-section-title */
    margin: 0 !important;
    padding: 0 !important;
    color: var(--sp-ink) !important;
}

/* Listing-top — vertically center the sort/per-page row.
   IMPORTANT: do NOT force display on the raw <select> — nice-select.js hides it
   and shows a .nice-select replacement. Forcing it visible duplicates the dropdown. */
.box-title-listing,
.box-title-listing .box-filter-tab,
.box-title-listing .box-filter-tab .d-flex {
    display: flex !important;
    align-items: center !important;
}
.box-title-listing .box-filter-tab { gap: 12px; flex-wrap: wrap; }
.box-title-listing .nice-select.list-page,
.box-title-listing .nice-select.list-sort {
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 32px 0 14px !important;
    border-radius: var(--sp-radius) !important;
    box-sizing: border-box !important;
}

/* MOBILE — only the page title visibility lock remains. */
@media (max-width: 991px) {
    body.listing-no-map .sp-page-title,
    body.listing-no-map .flat-title-page,
    body.listing-no-map .sp-page-title__heading {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .sp-page-title { padding: 24px 0 18px !important; }
    .sp-page-title__heading { font-size: 22px !important; }
}

/* ============================================================
   /properties FILTER — Plan B: keep homzen DOM, just skin it.
   No layout fights. Just colors, fonts, radius, padding.
   ============================================================ */
/* Kill the black bg on all filter wrappers, force white card */
.search-box-offcanvas,
.search-box-offcanvas-content,
.wrap-filter-search,
.wrap-filter-search .flat-tab,
.wrap-filter-search .flat-tab-form,
.wrap-filter-search .form-sl,
.wrap-filter-search .wd-find-select {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
}
.wrap-filter-search {
    border: 1px solid var(--sp-line) !important;
    border-radius: var(--sp-radius) !important;
    box-shadow: 0 4px 16px rgba(17, 17, 17,.06);
    padding: 6px !important;
}
.wrap-filter-search .wd-find-select {
    border: 0 !important;
    box-shadow: none !important;
}

/* MOBILE — force page title + filter bar visible on phones.
   Homzen's offcanvas hides the wrapper via fixed-positioning at <768px. */
@media (max-width: 991px) {
    .flat-title-page,
    .sp-page-title { display: block !important; visibility: visible !important; }
}
@media (max-width: 767px) {
    .search-box-offcanvas {
        position: static !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        z-index: auto !important;
    }
    .search-box-offcanvas-content {
        position: static !important;
        transform: none !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
}

.wrap-filter-search label,
.wrap-filter-search .form-group-2 label,
.wrap-filter-search .control-label {
    font-family: var(--sp-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--sp-ink) !important;
    margin-bottom: 6px !important;
}

.wrap-filter-search .tf-btn.primary,
.wrap-filter-search button.tf-btn.primary {
    background: var(--sp-navy) !important;
    border-color: var(--sp-navy) !important;
    color: #fff !important;
    border-radius: var(--sp-radius) !important;
    font-family: var(--sp-sans) !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}
.wrap-filter-search .tf-btn.primary:hover {
    background: var(--sp-accent) !important;
    border-color: var(--sp-accent) !important;
}
.wrap-filter-search .tf-btn.secondary {
    border-radius: var(--sp-radius) !important;
    font-family: var(--sp-sans) !important;
}

/* /properties — search card sits at the bottom of the gray section and
   visually dips ~25% into the white listing section below.
   Achieved with position:relative + bottom: -X (real visual overlap, unlike margin-bottom). */
.sp-properties-filter {
    padding: 0;
    background: var(--sp-bg-soft);
    position: relative;
    z-index: 5;
}
.sp-properties-filter__card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: 0 18px 40px rgba(17, 17, 17,.12);
    padding: 8px;
    position: relative;
    bottom: -55px;
    z-index: 6;
}

/* Mobile filter toggle — full-width navy pill, only visible on phones */
.sp-filters-toggle { display: none; }
@media (max-width: 767px) {
    /* PAGE TITLE — kill bg-image so PROPERTIES heading is readable on mobile */
    body.listing-no-map .flat-title-page,
    body.listing-no-map .sp-page-title {
        background-image: none !important;
        background-color: var(--sp-bg-soft) !important;
        padding: 20px 14px 14px !important;
        display: block !important;
        visibility: visible !important;
        min-height: 0 !important;
        height: auto !important;
    }
    body.listing-no-map .sp-page-title__heading,
    body.listing-no-map .sp-page-title h2 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: var(--sp-ink) !important;
        font-size: 22px !important;
        text-align: center !important;
        margin: 0 !important;
    }
    body.listing-no-map .sp-page-title .breadcrumb { display: none !important; }

    /* FILTER section — collapsed by default, expands on tap; NO desktop overlap on mobile */
    .sp-properties-filter { padding: 8px 0 16px; }
    .sp-properties-filter__card {
        margin-bottom: 0 !important;
        bottom: 0 !important;
        position: static !important;
        display: none;
        padding: 6px !important;
    }
    .sp-properties-filter.is-open .sp-properties-filter__card { display: block; margin-top: 10px; }

    .sp-filters-toggle {
        display: flex !important;
        align-items: center; justify-content: center; gap: 8px;
        width: 100%;
        padding: 14px 18px;
        background: var(--sp-navy) !important;
        color: #fff !important;
        border: 1px solid var(--sp-navy);
        border-radius: var(--sp-radius);
        font-family: var(--sp-sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        cursor: pointer;
    }
    .sp-filters-toggle *,
    .sp-filters-toggle span,
    .sp-filters-toggle svg { color: #fff !important; stroke: #fff !important; }

    /* No dip-overlap on mobile — clear breathing room before sort row + cards */
    .sp-properties-filter + .flat-recommended-v2,
    .sp-properties-filter + .flat-recommended { padding-top: 24px !important; }

    /* Force sort row visible — homzen hides .box-title-listing on mobile */
    body.listing-no-map .box-title-listing {
        display: flex !important;
        visibility: visible !important;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px !important;
    }
    body.listing-no-map .box-title-listing .box-filter-tab {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
}

/* ============================================================
   PROPERTY DETAIL — Style 5 (Spectrum Modern)
   ============================================================ */

/* --- TITLE BAND (compact, gray) --- */
.sp-detail-titlebar {
    background: var(--sp-bg-soft);
    padding: 22px 0 24px;
    border-bottom: 1px solid var(--sp-line);
}
.sp-detail-titlebar__back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sp-muted) !important;
    text-decoration: none !important;
    transition: color .2s ease;
}
.sp-detail-titlebar__back:hover { color: var(--sp-navy) !important; }
/* Back link sits ABOVE the gallery slider */
.sp-detail-gallery__back { display: inline-flex; margin: 0 0 14px; }
.sp-detail-titlebar__row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.sp-detail-titlebar__main { min-width: 0; flex: 1 1 auto; }
.sp-detail-titlebar__location {
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sp-muted);
    margin-bottom: 6px;
}
.sp-detail-titlebar__title {
    font-family: var(--sp-display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: .01em;
    color: var(--sp-ink) !important;
    margin: 0;
}
.sp-detail-titlebar__price {
    font-family: var(--sp-display);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
    color: var(--sp-navy);
    white-space: nowrap;
}

/* --- PHOTO GALLERY (multi-image slider) --- */
.sp-detail-gallery {
    background: var(--sp-bg);
    padding: 22px 0;
    position: relative;
}
.sp-detail-gallery__slider {
    overflow: visible !important;   /* let peeked-off slides bleed past container edges */
}
.sp-detail-gallery .swiper-wrapper { align-items: stretch; }
.sp-detail-gallery .swiper-slide { height: auto; }
.sp-detail-gallery__slide {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--sp-bg-soft);
    border-radius: var(--sp-radius);
    transition: transform .25s ease;
}
.sp-detail-gallery__slide:hover { transform: translateY(-2px); }

/* Nav arrows — bigger tap target, sit OUTSIDE the gallery so they're easy to thumb on mobile */
.sp-detail-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--sp-line);
    color: var(--sp-navy);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(17, 17, 17,.18);
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.sp-detail-gallery__nav:hover { background: var(--sp-navy); color: #fff; border-color: var(--sp-navy); }
.sp-detail-gallery__nav--prev { left: 8px; }
.sp-detail-gallery__nav--next { right: 8px; }

@media (max-width: 575px) {
    .sp-detail-gallery { padding: 14px 0; }
    .sp-detail-gallery__nav {
        width: 40px; height: 40px;
        background: rgba(255,255,255,.95);
    }
    .sp-detail-gallery__nav--prev { left: 4px; }
    .sp-detail-gallery__nav--next { right: 4px; }
}
.sp-detail-hero__inner {
    position: relative; z-index: 3;
    height: 100%; min-height: inherit;
    display: flex; flex-direction: column; justify-content: space-between;
    padding-top: 24px; padding-bottom: 40px;
}
.sp-detail-hero__back {
    display: inline-flex; align-items: center; gap: 8px;
    align-self: flex-start;
    color: #fff !important;
    font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none !important;
    padding: 8px 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    transition: background .2s ease;
}
.sp-detail-hero__back:hover { background: rgba(255,255,255,.22); }

.sp-detail-hero__content { max-width: 880px; }
.sp-detail-hero__location {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    opacity: .9;
}
.sp-detail-hero__title {
    font-family: var(--sp-display);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: #fff !important;
    margin: 0 0 14px;
    text-transform: uppercase;
}
.sp-detail-hero__price {
    font-family: var(--sp-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    color: #fff;
    letter-spacing: .01em;
}

/* Thumb strip under hero */
.sp-detail-thumbs { padding: 14px 0 0; background: var(--sp-bg); }
.sp-detail-thumbs__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}
.sp-detail-thumbs__item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--sp-radius);
    background: var(--sp-bg-soft);
    display: block;
    transition: transform .2s ease;
}
.sp-detail-thumbs__item:hover { transform: translateY(-2px); }
.sp-detail-thumbs__item img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    display: block;
}
.sp-detail-thumbs__more {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 18px;
    background: var(--sp-navy);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    border-radius: var(--sp-radius);
}
.sp-detail-thumbs__more:hover { background: var(--sp-accent); }

/* --- META BAR (specs) --- */
.sp-detail-meta { padding: 28px 0; background: var(--sp-bg); }
.sp-detail-meta__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 6px 0;
}
.sp-detail-meta__item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    border-right: 1px solid var(--sp-line);
}
.sp-detail-meta__item:last-child { border-right: 0; }
.sp-detail-meta__icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sp-bg-soft);
    color: var(--sp-navy);
    border-radius: 50%;
    flex-shrink: 0;
}
.sp-detail-meta__text { display: flex; flex-direction: column; min-width: 0; }
.sp-detail-meta__value {
    font-family: var(--sp-display);
    font-size: 17px; font-weight: 600; color: var(--sp-ink);
    line-height: 1.2;
}
.sp-detail-meta__label {
    font-size: 11px; font-weight: 500; color: var(--sp-muted);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 2px;
}

/* --- BODY (2-col) --- */
.sp-detail { padding: 40px 0 80px; background: var(--sp-bg); }
.sp-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: start;
}
.sp-detail__main { min-width: 0; }
.sp-detail__aside { position: sticky; top: 24px; }

.sp-detail-section { margin-bottom: 48px; }
.sp-detail-section__head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.sp-detail-section__head .sp-label { color: var(--sp-muted); }
.sp-detail-section__head .sp-section-title { font-size: clamp(22px, 2vw, 28px) !important; }
.sp-detail-section__body { color: var(--sp-ink); }

/* Prose typography for description */
.sp-prose {
    font-family: var(--sp-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sp-ink);
}
.sp-prose p { margin: 0 0 16px; }
.sp-prose ul, .sp-prose ol { margin: 0 0 16px 20px; }
.sp-prose strong { font-weight: 600; color: var(--sp-ink); }

/* Amenity chips */
.sp-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0; margin: 0;
}
.sp-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    background: var(--sp-bg-soft);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    font-size: 14px;
    color: var(--sp-ink);
}
.sp-chip svg { color: var(--sp-accent); flex-shrink: 0; }

/* --- AGENT / CONTACT CARD --- */
.sp-detail-agent {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(17, 17, 17,.06);
}
.sp-detail-agent__top {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sp-line);
}
.sp-detail-agent__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent !important;
    border: 1px solid var(--sp-ink);
    padding: 4px;
    box-sizing: border-box;
}
.sp-detail-agent__avatar--placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--sp-muted);
}
.sp-detail-agent__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-detail-agent__role {
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--sp-muted);
}
.sp-detail-agent__name {
    font-family: var(--sp-display);
    font-size: 17px; font-weight: 600; color: var(--sp-ink);
    line-height: 1.2;
}

.sp-detail-agent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
}
.sp-detail-agent__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px;
    border-radius: var(--sp-radius);
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none !important;
    transition: all .2s ease;
}
.sp-detail-agent__btn--primary,
.sp-detail-agent__btn--primary span,
.sp-detail-agent__btn--primary svg {
    color: #fff !important; stroke: #fff !important;
}
.sp-detail-agent__btn--primary {
    background: var(--sp-navy); border: 1px solid var(--sp-navy);
    grid-column: 1 / -1;
}
.sp-detail-agent__btn--primary:hover { background: var(--sp-accent); border-color: var(--sp-accent); }

.sp-detail-agent__btn--whatsapp,
.sp-detail-agent__btn--whatsapp span,
.sp-detail-agent__btn--whatsapp svg {
    color: #fff !important; fill: #fff !important;
}
.sp-detail-agent__btn--whatsapp {
    background: #25D366; border: 1px solid #25D366;
}
.sp-detail-agent__btn--whatsapp:hover { background: #1da851; border-color: #1da851; }

.sp-detail-agent__btn--outline {
    background: #fff; border: 1px solid var(--sp-line);
}
.sp-detail-agent__btn--outline,
.sp-detail-agent__btn--outline span,
.sp-detail-agent__btn--outline svg {
    color: var(--sp-ink) !important; stroke: var(--sp-ink) !important;
}
.sp-detail-agent__btn--outline:hover,
.sp-detail-agent__btn--outline:hover span,
.sp-detail-agent__btn--outline:hover svg {
    border-color: var(--sp-navy);
    color: var(--sp-navy) !important;
    stroke: var(--sp-navy) !important;
}

.sp-detail-agent__form {
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--sp-line);
}
.sp-detail-agent__field { display: flex; flex-direction: column; gap: 6px; }
.sp-detail-agent__field label {
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--sp-ink);
}
.sp-detail-agent__field input,
.sp-detail-agent__field textarea {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    font-family: var(--sp-sans);
    font-size: 14px;
    color: var(--sp-ink);
    transition: border-color .2s ease;
}
.sp-detail-agent__field input:focus,
.sp-detail-agent__field textarea:focus {
    outline: 0;
    border-color: var(--sp-navy);
}
.sp-detail-agent__field textarea { resize: vertical; min-height: 80px; }
/* Dark-bg button: ALSO force white on children — global span color reset
   makes the inner <span> dark on dark otherwise. See memory: feedback_dark_button_text. */
.sp-detail-agent__submit,
.sp-detail-agent__submit span,
.sp-detail-agent__submit svg { color: #fff !important; stroke: #fff !important; }
.sp-detail-agent__submit {
    margin-top: 4px;
    padding: 14px 20px;
    background: var(--sp-navy);
    border: 0;
    border-radius: var(--sp-radius);
    font-family: var(--sp-sans);
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease;
}
.sp-detail-agent__submit:hover { background: var(--sp-accent); }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .sp-detail__grid { grid-template-columns: 1fr; gap: 32px; }
    .sp-detail__aside { position: static; }
    .sp-detail-meta__row { grid-template-columns: repeat(3, 1fr); }
    .sp-detail-meta__item:nth-child(3n) { border-right: 0; }
    .sp-detail-meta__item:nth-child(-n+3) { border-bottom: 1px solid var(--sp-line); }
    .sp-detail-thumbs__row { grid-template-columns: repeat(4, 1fr) auto; }
    .sp-detail-thumbs__row a:nth-child(n+5) { display: none; }
    .sp-detail-thumbs__row a:nth-child(n+5).sp-detail-thumbs__more { display: inline-flex; }
}
@media (max-width: 575px) {
    .sp-detail-hero { min-height: 380px; height: 55vh; }
    .sp-detail-hero__title { font-size: clamp(24px, 7vw, 36px); }
    .sp-detail-hero__price { font-size: 24px; }
    .sp-detail-meta__row {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
    .sp-detail-meta__item {
        padding: 14px 16px;
        border-right: 1px solid var(--sp-line);
        border-bottom: 1px solid var(--sp-line);
    }
    .sp-detail-meta__item:nth-child(2n) { border-right: 0; }
    .sp-detail-meta__item:nth-last-child(-n+2) { border-bottom: 0; }
    .sp-detail-meta__icon { width: 36px; height: 36px; }
    .sp-detail-meta__value { font-size: 15px; }
    .sp-detail-meta__label { font-size: 10px; }
    .sp-detail-thumbs__row { grid-template-columns: repeat(3, 1fr); }
    .sp-detail-thumbs__row a:nth-child(n+4) { display: none; }
    .sp-detail { padding: 24px 0 48px; }
    .sp-detail-section { margin-bottom: 32px; }
    .sp-chips { grid-template-columns: 1fr 1fr; }
    .sp-detail-agent { padding: 18px; }
    .sp-detail-agent__actions { grid-template-columns: 1fr; }
    .sp-detail-agent__btn--primary { grid-column: 1; }
}

/* ============================================================
   CMS content pages (About Us, etc.) — align container,
   typography to the rest of the Spectrum theme.
   ============================================================ */
.ck-content .flat-section,
.ck-content .flat-banner-about {
    padding: 60px 0;
}
.ck-content .flat-section > .container,
.ck-content .flat-banner-about > .container,
.flat-banner-about > .container {
    max-width: 1500px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box;
}
@media (max-width: 991px) {
    .ck-content .flat-section > .container,
    .ck-content .flat-banner-about > .container,
    .flat-banner-about > .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .ck-content .flat-section { padding: 40px 0; }
}
@media (max-width: 575px) {
    .ck-content .flat-section > .container,
    .ck-content .flat-banner-about > .container,
    .flat-banner-about > .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* Headings inside CMS content — Spectrum display font, uppercase, weight 500.
   :not(.sm-block *):not(.sp-card *) (NextGen) also skips everything inside NextGen blocks.
   :not([class*="sp-"]) excludes Spectrum-classed elements (.sp-card__title, .sp-hero__title etc.)
   so the homepage's <div class="ck-content"> wrapper doesn't bleed into our components. */
.ck-content h1:not([class*="sp-"]):not(.sm-block *):not(.sp-card *),
.ck-content h2:not([class*="sp-"]):not(.sm-block *):not(.sp-card *),
.ck-content h3:not([class*="sp-"]):not(.sm-block *):not(.sp-card *),
.ck-content h4:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) {
    font-family: var(--sp-display) !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    letter-spacing: .02em !important;
    line-height: 1.15 !important;
    color: var(--sp-ink) !important;
    margin: 0 0 18px !important;
}
.ck-content h1:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { font-size: clamp(28px, 3vw, 40px) !important; }
.ck-content h2:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { font-size: clamp(24px, 2.6vw, 34px) !important; }
.ck-content h3:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { font-size: clamp(22px, 2.2vw, 30px) !important; }
.ck-content h4:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { font-size: clamp(18px, 1.8vw, 24px) !important; }

/* Body text — same :not() scope so Spectrum components keep their own styling */
.ck-content p:not([class*="sp-"]):not(.sm-block *):not(.sp-card *),
.ck-content li:not([class*="sp-"]):not(.sm-block *):not(.sp-card *),
.ck-content blockquote:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) {
    font-family: var(--sp-sans) !important;
    color: var(--sp-ink) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 0 0 14px;
}
.ck-content ul:not([class*="sp-"]):not(.sm-block *):not(.sp-card *),
.ck-content ol:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { margin: 0 0 18px 22px; }
.ck-content a:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { color: var(--sp-accent); }
.ck-content a:not([class*="sp-"]):not(.sm-block *):not(.sp-card *):hover { color: var(--sp-navy); }
.ck-content strong:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { font-weight: 600; color: var(--sp-ink); }
.ck-content img:not([class*="sp-"]):not(.sm-block *):not(.sp-card *) { max-width: 100%; height: auto; border-radius: var(--sp-radius); }

/* Consult form status (success/error message under the submit button) */
.sp-detail-agent__status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--sp-radius);
    font-size: 13px;
    line-height: 1.4;
}
.sp-detail-agent__status--ok  { background: rgba(37,211,102,.10); color: #1a7d3c; border: 1px solid rgba(37,211,102,.25); }
.sp-detail-agent__status--err { background: rgba(217,48,37,.08);  color: #9a2118; border: 1px solid rgba(217,48,37,.25); }
.sp-detail-agent__submit:disabled { opacity: .65; cursor: progress; }

/* ============================================================
   /contact-us — hide the form column, elevate the info card.
   ============================================================ */
.flat-contact .col-lg-8 { display: none !important; }
.flat-contact .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}
.flat-contact .row { justify-content: center; }

.flat-contact .contact-info {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: 0 8px 28px rgba(17, 17, 17,.08);
    padding: 48px 52px;
}
.flat-contact .contact-info h5 {
    font-family: var(--sp-display) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    font-size: clamp(22px, 2vw, 28px) !important;
    text-align: center;
    margin: 0 0 28px !important;
    color: var(--sp-ink) !important;
}
.flat-contact .contact-form-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 22px;
}
.flat-contact .contact-form-list li {
    text-align: center;
    padding: 0;
    border: 0;
}
.flat-contact .contact-form-list .label,
.flat-contact .contact-form-list b,
.flat-contact .contact-form-list strong {
    display: block;
    font-family: var(--sp-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--sp-muted) !important;
    margin-bottom: 4px;
}
.flat-contact .contact-form-list a,
.flat-contact .contact-form-list p,
.flat-contact .contact-form-list span:not(.label) {
    font-family: var(--sp-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--sp-ink);
    text-decoration: none;
}
.flat-contact .contact-form-list a:hover { color: var(--sp-accent); }

/* Hide the duplicate "Contact Us" h5 inside the card (page title already says it) */
.flat-contact .contact-info > h5 { display: none !important; }

/* Follow Us — center the icons, swap Tabler's chunky brand SVGs for thin ones,
   kill homzen's hover effects (no scale, no fill flip, no animation). */
.flat-contact .box-social {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
}
.flat-contact .box-social > li { padding: 0 !important; border: 0 !important; background: transparent !important; }
.flat-contact .box-social .item {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: transparent !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: 50% !important;
    color: var(--sp-ink) !important;
    transition: color .2s ease, border-color .2s ease !important;
    transform: none !important;
    box-shadow: none !important;
}
.flat-contact .box-social .item:hover,
.flat-contact .box-social .item:focus {
    background: transparent !important;
    color: var(--sp-accent) !important;
    border-color: var(--sp-accent) !important;
    transform: none !important;
    box-shadow: none !important;
}
/* Hide the chunky inline Tabler SVGs; draw thin custom ones via CSS mask */
.flat-contact .box-social .item svg { display: none !important; }
.flat-contact .box-social .item::before {
    content: "";
    display: block;
    width: 18px; height: 18px;
    background-color: currentColor;
    -webkit-mask-position: center;  mask-position: center;
    -webkit-mask-size: contain;     mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.flat-contact .box-social .item[title="Facebook" i]::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M16 6h-3a2 2 0 0 0-2 2v3H8v3h3v8h3v-8h3l1-3h-4V8a1 1 0 0 1 1-1h3z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M16 6h-3a2 2 0 0 0-2 2v3H8v3h3v8h3v-8h3l1-3h-4V8a1 1 0 0 1 1-1h3z'/></svg>");
}
.flat-contact .box-social .item[title="Instagram" i]::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='2.5' width='19' height='19' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='.75' fill='black'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='2.5' width='19' height='19' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='.75' fill='black'/></svg>");
}
.flat-contact .box-social .item[title="LinkedIn" i]::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='2.5' width='19' height='19' rx='2'/><line x1='8' y1='10' x2='8' y2='17'/><circle cx='8' cy='7' r='.6' fill='black'/><path d='M12 17v-7M12 13a3 3 0 0 1 6 0v4'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='2.5' width='19' height='19' rx='2'/><line x1='8' y1='10' x2='8' y2='17'/><circle cx='8' cy='7' r='.6' fill='black'/><path d='M12 17v-7M12 13a3 3 0 0 1 6 0v4'/></svg>");
}

@media (max-width: 575px) {
    .flat-contact .contact-info { padding: 28px 22px; }
}

/* ============================================================
   SIGNATURE PROPERTIES SLIDER (shortcode: signature-slider)
   Full-width horizontal Swiper. Each slide = one property.
   Cover image bg, navy L→R gradient, white overlay text.
   ============================================================ */
.sp-signature-slider { position: relative; background: var(--sp-navy); }
.sp-signature-slider__head {
    padding: 44px 40px 22px;
    display: flex; flex-direction: column; gap: 4px;
    text-align: left;
}
.sp-signature-slider__head .sp-label { color: #fff !important; opacity: .85; }
.sp-signature-slider__head .sp-section-title { color: #fff !important; }

.sp-signature-slider__slider {
    position: relative;
    overflow: hidden;
}

.sp-signature-card {
    position: relative;
    width: 100%;
    height: 76vh;              /* was 85vh — search bar now fits above the fold */
    min-height: 520px;
    max-height: 720px;
    overflow: hidden;
    color: #fff;
}
.sp-signature-card__bg {
    position: absolute; inset: 0; z-index: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--sp-navy-2);
}
/* Left-to-right navy gradient so white overlay text is always readable */
.sp-signature-card__gradient {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(17, 17, 17,.85) 0%,
        rgba(17, 17, 17,.72) 30%,
        rgba(17, 17, 17,.4) 55%,
        rgba(17, 17, 17,.05) 80%,
        rgba(17, 17, 17,0) 100%
    );
    pointer-events: none;
}
.sp-signature-card__content {
    position: absolute; z-index: 3;
    left: 0; right: 0;
    bottom: 240px;                  /* +40px lift */
    color: #fff;
}
.sp-signature-card__body {
    max-width: 620px;
    display: flex; flex-direction: column;
}
.sp-signature-card__location,
.sp-signature-card__location * { color: #fff !important; }
.sp-signature-card__location {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sp-sans);
    font-size: 16px; font-weight: 500;
    letter-spacing: .5px;
    margin-bottom: 14px;
    opacity: .95;
}
.sp-signature-card__title {
    font-family: var(--sp-display);
    font-size: 24px; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.15;
    color: #fff !important;
    margin: 0 0 12px !important;
}
.sp-signature-card__price {
    font-family: var(--sp-display);
    font-size: 20px; font-weight: 600;
    color: #fff !important;
    letter-spacing: .01em;
    margin-bottom: 18px;
}
.sp-signature-card__divider {
    width: 80px; height: 1px;
    background: rgba(255,255,255,.6);
    margin: 4px 0 18px;
}
/* Force white on all descendants (defeats the global span/li color reset) */
.sp-signature-card__specs,
.sp-signature-card__specs *,
.sp-signature-card__specs li,
.sp-signature-card__specs span,
.sp-signature-card__specs svg { color: #fff !important; stroke: #fff !important; }
.sp-signature-card__specs {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-wrap: wrap; gap: 22px;
}
.sp-signature-card__specs li {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sp-sans);
    font-size: 14px; font-weight: 500;
    letter-spacing: .5px;
}
.sp-signature-card__specs svg { opacity: .9; }
.sp-signature-card__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons — mirror hero .sp-btn--outline pattern.
   Explicit white on children to defeat global span color reset. */
.sp-signature-card__cta .sp-btn,
.sp-signature-card__cta .sp-btn span,
.sp-signature-card__cta .sp-btn svg { color: #fff !important; stroke: #fff !important; }
.sp-signature-card__cta .sp-btn--outline {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    padding: 14px 24px !important;
}
.sp-signature-card__cta .sp-btn--outline:hover {
    background: #fff !important;
    border-color: #fff !important;
}
.sp-signature-card__cta .sp-btn--outline:hover,
.sp-signature-card__cta .sp-btn--outline:hover span,
.sp-signature-card__cta .sp-btn--outline:hover svg { color: var(--sp-navy) !important; stroke: var(--sp-navy) !important; }

/* Arrows — LEFT/RIGHT sides but pushed vertically DOWN so they clear the content stack.
   Sit in the horizontal band between the property info (above) and the search bar (below). */
.sp-signature-slider__nav {
    position: absolute;
    top: auto; bottom: 140px; transform: none;
    z-index: 10;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.sp-signature-slider__nav:hover { background: rgba(255,255,255,.28); }
.sp-signature-slider__nav--prev { left: 40px;  right: auto; }
.sp-signature-slider__nav--next { right: 40px; left: auto; }

/* Pagination dots */
.sp-signature-slider__pagination {
    position: absolute; z-index: 10;
    bottom: 24px; left: 0; right: 0;
    text-align: center;
}
.sp-signature-slider__pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,.5) !important;
    opacity: 1;
    margin: 0 4px !important;
    border-radius: 999px;
    transition: all .25s ease;
}
.sp-signature-slider__pagination .swiper-pagination-bullet-active {
    background: #fff !important;
    width: 28px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .sp-signature-card { height: 68vh; min-height: 460px; }
    .sp-signature-card__content { bottom: 210px; }
    .sp-signature-card__body { max-width: 500px; }
    .sp-signature-card__title  { font-size: 22px; }
    .sp-signature-slider__nav { width: 44px; height: 44px; bottom: 130px; }
    .sp-signature-slider__nav--prev { left: 20px;  right: auto; }
    .sp-signature-slider__nav--next { right: 20px; left: auto; }
}
@media (max-width: 575px) {
    .sp-signature-card { height: 62vh; min-height: 440px; }
    .sp-signature-card__content { bottom: 190px; }
    .sp-signature-card__body { max-width: 100%; }
    .sp-signature-card__location { font-size: 14px; }
    .sp-signature-card__title   { font-size: 20px; }
    .sp-signature-card__price   { font-size: 18px; }
    .sp-signature-card__specs   { gap: 14px; margin-bottom: 18px; }
    .sp-signature-card__specs li { font-size: 13px; }
    .sp-signature-card__cta     { flex-direction: column; align-items: stretch; }
    .sp-signature-card__cta .sp-btn--outline { padding: 12px 18px !important; text-align: center; justify-content: center; }
    .sp-signature-slider__nav   { width: 40px; height: 40px; bottom: 120px; }
    .sp-signature-slider__nav--prev { left: 14px;  right: auto; }
    .sp-signature-slider__nav--next { right: 14px; left: auto; }
    .sp-signature-slider__pagination { bottom: 20px; }
}


/* ============================================================================
   ============================================================================
   NextGen DESIGN LAYER
   Everything above is the spectrum base (recoloured). Everything below is what
   makes NextGen look like NextGen: white header + navy top strip, serif headings,
   Buy/Rent search tabs, spec-row cards, 4-up grids, why-us + request-cta blocks.
   ============================================================================
   ============================================================================ */

/* ---- Global type: serif headings, light sans body ---- */
body { font-weight: 400; }
body .sp-section-title,
body .sp-section .sp-section-title,
body .sp-section-head h2.sp-section-title,
.sm-heading {
    font-family: var(--sm-serif) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: -.01em !important;
    line-height: 1.15 !important;
    color: var(--sp-navy) !important;
}
body .sp-section-head h2.sp-section-title { font-size: clamp(28px, 2.6vw, 40px) !important; }

/* Eyebrow label: steel blue, tracked, with a short rule before it */
.sp-label,
.text-subtitle,
.sm-eyebrow {
    font-family: var(--sp-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    color: var(--sp-accent) !important;
}
.sm-eyebrow,
body .sp-section-head .sp-label {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px !important;
}
.sm-eyebrow::before,
body .sp-section-head .sp-label::before {
    content: "";
    width: 28px; height: 1px;
    background: currentColor;
    display: inline-block;
}
.sp-section--dark .sp-label { color: var(--sp-silver) !important; }
.sp-section--dark .sp-section-title { color: #fff !important; }

/* Section head — bottom hairline under the title row */
.sp-section-head {
    padding-bottom: 22px;
    margin-bottom: 36px !important;
    border-bottom: 1px solid var(--sp-line);
    align-items: flex-end !important;
}
.sp-section--dark .sp-section-head { border-bottom-color: var(--sp-line-dark); }
.sp-section-link,
a.sp-section-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--sp-accent);
}
.sp-section-link::after { content: " →"; }
.sp-section-link:hover { color: var(--sp-navy); }

/* Soft alternating sections: a "dark" pick in the builder becomes deep navy,
   transparent/white stays white — NextGen uses far fewer navy bands than spectrum. */
.sp-section { padding: 96px 0; }

/* ---- Buttons ---- */
.sm-btn,
a.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--sp-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: var(--sp-radius);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer;
}
.sm-btn--solid { background: var(--sp-navy); color: #fff !important; border-color: var(--sp-navy); }
.sm-btn--solid:hover { background: var(--sp-accent); border-color: var(--sp-accent); }
.sm-btn--outline { background: transparent; color: var(--sp-navy) !important; border-color: var(--sp-navy); }
.sm-btn--outline:hover { background: var(--sp-navy); color: #fff !important; }
.sm-btn--light { background: #fff; color: var(--sp-navy) !important; border-color: #fff; }
.sm-btn--light:hover { background: transparent; color: #fff !important; }
/* Global span reset in the base makes inner spans dark — force them to follow the button */
.sm-btn span, .sm-btn svg { color: inherit !important; }

.sm-link,
a.sm-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--sp-accent) !important;
    text-decoration: none !important;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}
.sm-link span { color: inherit !important; }
.sm-link:hover { color: var(--sp-navy) !important; }

/* ---- Header: navy strip + white bar ---- */
/* #header prefix: the base rule is `#header.sp-header` (ID specificity) */
#header.sp-header.sm-header {
    background: #fff !important;
    background-color: #fff !important;
    border-bottom: 1px solid var(--sp-line);
    box-shadow: 0 2px 18px rgba(17, 17, 17,.05);
}
.sm-topbar { background: var(--sp-navy); color: #fff; font-size: 13px; }
.sm-topbar__inner {
    max-width: 1500px; margin: 0 auto; padding: 9px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sm-topbar__contact { display: flex; gap: 28px; flex-wrap: wrap; }
.sm-topbar a,
.sm-topbar a span,
.sm-topbar a i { color: rgba(255,255,255,.85) !important; text-decoration: none !important; }
.sm-topbar__contact a { display: inline-flex; align-items: center; gap: 8px; }
.sm-topbar a:hover,
.sm-topbar a:hover span,
.sm-topbar a:hover i { color: #fff !important; }
.sm-topbar__list { letter-spacing: 1px; text-transform: uppercase; font-size: 12px; font-weight: 500; }

.sm-header .sp-header__inner { padding: 14px 40px; }
.sm-header .sp-header__brand img { max-height: 58px; }
.sm-header ul.sp-nav { gap: 34px; }
.sm-header ul.sp-nav > li > a {
    color: var(--sp-navy);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    position: relative;
}
.sm-header ul.sp-nav > li > a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 4px;
    height: 1px; background: var(--sp-accent);
    transition: right .25s ease;
}
.sm-header ul.sp-nav > li > a:hover,
.sm-header ul.sp-nav > li.active > a { color: var(--sp-accent); }
.sm-header ul.sp-nav > li > a:hover::after,
.sm-header ul.sp-nav > li.active > a::after { right: 0; }
.sm-header ul.sp-nav__sub { background: #fff; border-color: var(--sp-line); box-shadow: var(--sp-shadow); }
.sm-header ul.sp-nav__sub > li > a { color: var(--sp-navy); }
.sm-header ul.sp-nav__sub > li > a:hover { background: var(--sp-bg-soft); color: var(--sp-accent); }
.sm-header .sp-header__toggle span { background: var(--sp-navy) !important; }
.sm-header .sp-header__mobile.open { border-top-color: var(--sp-line); padding: 24px 20px 32px; }
.sm-header .sp-nav--mobile > li { border-bottom-color: var(--sp-line); }
.sm-header .sp-header__phone--mobile,
.sm-header .sp-header__phone--mobile span { color: var(--sp-navy) !important; }
/* Sticky header (homzen adds .is-fixed / .fixed-header) keeps white bg */
.sm-header.is-fixed, .sm-header.fixed-header { background: #fff !important; }

@media (max-width: 991px) {
    .sm-topbar__inner { padding: 8px 20px; }
    .sm-topbar__contact a:not(:first-child) { display: none; }
    .sm-header .sp-header__inner { padding: 12px 20px; }
}

/* ---- Hero: left-aligned serif headline, lighter overlay, tabbed search ---- */
.sp-hero { min-height: 620px; height: min(80vh, 780px); align-items: center; }
.sp-hero__overlay {
    background: linear-gradient(90deg, rgba(17, 17, 17,.82) 0%, rgba(17, 17, 17,.55) 42%, rgba(17, 17, 17,.10) 100%);
}
.sp-hero__inner { padding: 0 40px 120px; }
.sp-hero__content { max-width: 720px; }
.sp-hero h1.sp-hero__title,
h1.sp-hero__title,
.sp-hero__title.sp-hero__title {
    font-family: var(--sm-serif) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    font-size: clamp(36px, 4.4vw, 64px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.01em !important;
    margin-bottom: 20px !important;
}
.sp-hero__subtitle {
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 300;
    max-width: 560px;
    margin-bottom: 36px;
}
.sp-hero__cta .sp-btn { min-height: 0; padding: 16px 30px !important; font-size: 13px !important; }

.sp-hero__search { bottom: -70px; }
.sp-hero__search-card { padding: 0; border-radius: var(--sp-radius); }

/* Search grid: tabs row on top, then 4 fields + button */
.sp-search { grid-template-columns: repeat(4, 1fr) auto; }
.sm-search__tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--sp-line);
    padding: 0 18px;
}
.sm-search__tab { margin: 0; cursor: pointer; position: relative; }
.sm-search__tab input { position: absolute; opacity: 0; pointer-events: none; }
.sm-search__tab span {
    display: inline-block;
    padding: 16px 22px 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sp-muted) !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s ease, border-color .2s ease;
}
.sm-search__tab input:checked + span { color: var(--sp-navy) !important; border-bottom-color: var(--sp-accent); }
.sm-search__tab input:focus-visible + span { outline: 2px solid var(--sp-accent); outline-offset: -2px; }
/* The first field now sits after the tabs row — drop its left divider */
.sm-search__tabs + .sp-search__field { border-left: 0 !important; }
button.sp-search__btn { background: var(--sp-navy) !important; border-radius: var(--sp-radius) !important; margin: 10px !important; }
button.sp-search__btn:hover { background: var(--sp-accent) !important; }
.sp-search__advanced { padding: 12px 26px 14px !important; color: var(--sp-accent) !important; }
.sp-search__advanced span { color: inherit !important; }

@media (max-width: 1199px) {
    .sp-search { grid-template-columns: repeat(2, 1fr); }
    .sp-search__field { border-left: 0 !important; border-top: 1px solid var(--sp-line); }
    .sm-search__tabs + .sp-search__field { border-top: 0; }
    .sp-search__field:nth-of-type(odd) { border-left: 1px solid var(--sp-line) !important; }
    button.sp-search__btn { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .sp-search { grid-template-columns: 1fr; }
    .sp-search__field:nth-of-type(odd) { border-left: 0 !important; }
}
/* first section after the hero clears the overlapping search card */
.sp-hero + section, .sp-hero + .sp-section { padding-top: 150px !important; }

/* ---- Property grid: 4-up, roomier cards ---- */
.sp-properties__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 28px !important; }
@media (max-width: 1199px) { .sp-properties__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 991px)  { .sp-properties__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 575px)  { .sp-properties__grid { grid-template-columns: 1fr !important; } }

.sp-card { border-color: var(--sp-line); border-radius: var(--sp-radius); }
.sp-card:hover { box-shadow: 0 18px 40px rgba(17, 17, 17,.12); transform: translateY(-4px); }
.sp-card__image { aspect-ratio: 3/2; }
.sp-card__body { padding: 22px 22px 20px; gap: 8px; }
.sp-card__location,
.sp-card__location span {
    font-size: 11px !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sp-accent) !important;
}
.sp-card__title { font-family: var(--sm-serif) !important; font-size: 19px !important; font-weight: 500 !important; }
.sp-card__title a { color: var(--sp-navy) !important; }
.sp-card__title a:hover { color: var(--sp-accent) !important; }
.sp-card__price { font-size: 18px; font-weight: 500; color: var(--sp-navy); }
.sm-card__specs {
    list-style: none; margin: 6px 0 0; padding: 14px 0 0;
    border-top: 1px solid var(--sp-line);
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px;
    text-align: left;
}
.sm-card__specs li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; color: var(--sp-muted); margin: 0; }
.sm-card__specs li span { color: var(--sp-muted) !important; }
.sm-card__specs svg { color: var(--sp-accent); flex-shrink: 0; }
.sp-card__cta { font-size: 12px !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; color: var(--sp-accent) !important; margin-top: 10px !important; }

/* ---- Why us ---- */
.sm-why { padding: 110px 0; background: var(--sp-bg-soft); }
.sm-why__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.sm-why .sm-heading { font-size: clamp(30px, 2.8vw, 44px); margin: 0 0 20px; }
.sm-why__desc { font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--sp-ink); margin: 0 0 32px; }
.sm-why__image { aspect-ratio: 4/3; background-size: cover; background-position: center; margin-bottom: 32px; border-radius: var(--sp-radius); }
.sm-why__points { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sm-why__points li {
    display: grid; grid-template-columns: 64px 1fr; gap: 12px;
    padding: 28px 0;
    border-bottom: 1px solid #DCE3EA;
}
.sm-why__points li:first-child { padding-top: 0; }
.sm-why__num { font-family: var(--sm-serif); font-size: 30px; line-height: 1; color: var(--sp-accent) !important; }
.sm-why__points h3 { font-family: var(--sm-serif) !important; font-size: 22px !important; font-weight: 500 !important; margin: 0 0 6px !important; color: var(--sp-navy) !important; }
.sm-why__points p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--sp-muted); }
.sm-why__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 0; }
.sm-why__stats dt { font-family: var(--sm-serif); font-size: clamp(34px, 3vw, 48px); font-weight: 500; color: var(--sp-navy); line-height: 1; }
.sm-why__stats dd { margin: 10px 0 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sp-muted); }
@media (max-width: 991px) {
    .sm-why { padding: 72px 0; }
    .sm-why__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 575px) { .sm-why__stats { grid-template-columns: 1fr; } }

/* ---- Request / list CTA band ---- */
.sm-cta { padding: 0 0 110px; }
.sm-why + .sm-cta, section:not(.sm-why) + .sm-cta { padding-top: 0; }
.sm-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sm-cta__panel { background: var(--sp-navy); padding: 64px 56px; color: #fff; }
.sm-cta__panel--alt { background: var(--sp-accent); }
.sm-cta__panel .sm-heading { color: #fff !important; font-size: clamp(26px, 2.4vw, 36px); margin: 0 0 14px; }
.sm-cta__panel p { color: rgba(255,255,255,.82) !important; font-size: 16px; font-weight: 300; line-height: 1.7; margin: 0 0 30px; max-width: 460px; }
@media (max-width: 767px) {
    .sm-cta__grid { grid-template-columns: 1fr; }
    .sm-cta__panel { padding: 44px 28px; }
}

/* ---- Footer ---- */
.sp-footer { background: var(--sp-navy) !important; }
.sp-footer__heading { font-family: var(--sm-serif) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 18px !important; font-weight: 500 !important; color: #fff !important; }
.sp-footer__list a:hover { color: #fff !important; }
.sp-footer__bottom { border-top-color: var(--sp-line-dark) !important; }

/* ---- Property detail / listing page titles: serif, sentence case ---- */
body h1.sp-detail-titlebar__title,
body .sp-page-title__heading {
    font-family: var(--sm-serif) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: -.01em !important;
    color: var(--sp-navy) !important;
}

/* ---- Services (homzen "Services" block, NextGen template) ---- */
.sm-services { background: #fff; }
.sm-services__intro { max-width: 640px; margin: -12px 0 40px; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--sp-muted); }
.sm-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--sp-line); }
.sm-service { padding: 44px 38px 40px; display: flex; flex-direction: column; gap: 14px; background: #fff; transition: background .25s ease; }
.sm-service + .sm-service { border-left: 1px solid var(--sp-line); }
.sm-service:hover { background: var(--sp-bg-soft); }
.sm-service__icon { margin-bottom: 14px; color: var(--sp-accent) !important; line-height: 0; }
.sm-service__icon svg { width: 40px; height: 40px; stroke-width: 1.4; color: var(--sp-accent) !important; }
.sm-service__icon img { height: auto; display: block; }
.sm-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 44px 0 0; }
.sm-counters dt { font-family: var(--sm-serif); font-size: clamp(34px, 3vw, 48px); font-weight: 500; color: var(--sp-navy); line-height: 1; }
.sm-counters dd { margin: 10px 0 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sp-muted); }
.sm-service__title { font-family: var(--sm-serif) !important; font-size: 24px !important; font-weight: 500 !important; color: var(--sp-navy) !important; margin: 0 !important; text-transform: none !important; }
.sm-service__desc { margin: 0 0 8px; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--sp-muted) !important; flex: 1; }
.sm-service .sm-link { align-self: flex-start; }
@media (max-width: 991px) {
    .sm-services__grid { grid-template-columns: 1fr; }
    .sm-service + .sm-service { border-left: 0; border-top: 1px solid var(--sp-line); }
    .sm-service { padding: 32px 24px; }
}

/* ---- Testimonials ---- */
.sm-testimonials { background: var(--sp-bg-soft); }
.sm-testimonials__head { position: relative; }
.sm-testimonials__head .sp-section-head { padding-right: 120px; }
.sm-arrows { position: absolute; right: 0; bottom: 22px; display: flex; gap: 8px; }
.sm-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--sp-navy); background: transparent; color: var(--sp-navy);
    font-size: 18px; line-height: 1; cursor: pointer; transition: all .2s ease;
}
.sm-arrow:hover { background: var(--sp-navy); color: #fff; }
.sm-testimonials__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3);
    gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 4px;
}
.sm-testimonials__track::-webkit-scrollbar { display: none; }
.sm-quote {
    scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--sp-line);
    padding: 36px 34px 30px; display: flex; flex-direction: column; gap: 18px; border-radius: var(--sp-radius);
}
.sm-quote blockquote { margin: 0; flex: 1; font-family: var(--sm-serif); font-size: 18px; line-height: 1.6; color: var(--sp-navy); }
.sm-quote blockquote * { font: inherit !important; color: inherit !important; margin: 0 !important; }
.sm-quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--sp-line); }
.sm-quote__avatar img { width: 48px !important; height: 48px !important; border-radius: 50%; object-fit: cover; display: block; }
.sm-quote figcaption strong { display: block; font-weight: 500; color: var(--sp-navy); font-size: 15px; }
.sm-quote figcaption small { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--sp-muted); margin-top: 2px; }
@media (max-width: 991px) { .sm-testimonials__track { grid-auto-columns: calc((100% - 28px) / 2); } }
@media (max-width: 575px) {
    .sm-testimonials__track { grid-auto-columns: 88%; }
    .sm-testimonials__head .sp-section-head { padding-right: 0; }
    .sm-arrows { display: none; }
}

/* ---- Clients / partners logo grid ---- */
.sm-logos { background: #fff; }
.sm-logos__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--sp-line); border-left: 1px solid var(--sp-line);
}
.sm-logos__grid li {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 3 / 2; padding: 26px;
    border-right: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line);
}
.sm-logos__grid a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sm-logos__grid img {
    max-width: 100%; max-height: 56px; width: auto !important; height: auto !important; object-fit: contain;
    transition: transform .25s ease;
}
.sm-logos__grid li:hover img { transform: scale(1.06); }
@media (max-width: 991px) { .sm-logos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .sm-logos__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Blog teaser ---- */
.sm-blog { background: var(--sp-bg-soft); }
.sm-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sm-post { background: #fff; border: 1px solid var(--sp-line); display: flex; flex-direction: column; border-radius: var(--sp-radius); overflow: hidden; }
.sm-post__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eef2f7; }
.sm-post__image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sm-post:hover .sm-post__image img { transform: scale(1.05); }
.sm-post__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sm-post__date { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sp-accent); }
.sm-post__title { font-family: var(--sm-serif) !important; font-size: 21px !important; font-weight: 500 !important; line-height: 1.3 !important; margin: 0 !important; text-transform: none !important; }
.sm-post__title a { color: var(--sp-navy) !important; text-decoration: none; }
.sm-post__title a:hover { color: var(--sp-accent) !important; }
.sm-post__excerpt { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--sp-muted) !important; flex: 1; }
.sm-post .sm-link { align-self: flex-start; margin-top: 6px; }
@media (max-width: 991px) { .sm-blog__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .sm-blog__grid { grid-template-columns: 1fr; } }

/* The request band follows a grey blog section — give it room on top */
.sm-blog + .sm-cta, .sm-block + .sm-cta { padding-top: 96px; }

/* Dark (navy) properties band — beat the navy title colour set by `body .sp-section-head h2.sp-section-title` */
body .sp-section--dark .sp-section-head h2.sp-section-title,
body .sp-section--dark .sp-section-head h2.sp-section-title * { color: #fff !important; }
body .sp-section--dark .sp-section-link { color: #fff !important; }

/* ---- Card spacing: compact specs + CTA (homepage cards used to inherit CMS list margins) ---- */
.sp-card__body { gap: 6px; padding-bottom: 18px; }
ul.sm-card__specs { margin: 8px 0 0 !important; padding: 12px 0 0 !important; list-style: none !important; }
ul.sm-card__specs li { margin: 0 !important; padding: 0 !important; font-size: 12.5px !important; line-height: 1.4 !important; }
.sp-card .sp-card__cta { margin-top: 12px !important; }

/* ---- Footer: brand + N menu columns (N = assigned "Footer column" menus) + Get in touch ---- */
.sm-footer { padding-top: 88px; }
.sm-footer__top {
    grid-template-columns: 1.6fr 1.3fr;                                           /* no menus assigned */
    grid-template-columns: 1.6fr repeat(var(--sm-footer-menus), minmax(0, 1fr)) 1.3fr;
    gap: 56px;
    padding-bottom: 64px;
}
.sm-footer .sp-footer__about { max-width: 340px; margin-top: 6px; color: rgba(255,255,255,.72) !important; font-size: 15px; line-height: 1.7; }
.sm-footer .sp-footer__social { margin: 26px 0 0; }
.sm-footer .sp-footer__heading { margin-bottom: 24px !important; }
.sm-footer .sp-footer__list li { margin-bottom: 13px; }
.sm-footer .sp-footer__list a { color: rgba(255,255,255,.72) !important; font-size: 14.5px; }
.sm-footer .sp-footer__list a:hover { color: #fff !important; }
.sm-footer__contact .sp-footer__contact { margin-bottom: 22px; }
.sm-footer__cta.sm-btn { padding: 12px 22px; font-size: 12px; }
.sm-footer__cta.sm-btn:hover { border-color: #fff; }
.sm-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0 !important; }
.sm-footer__bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.6) !important; }
.sm-footer__bottom p * { color: inherit !important; }
.sm-footer .sp-footer__credits a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.sm-footer .sp-footer__credits a:hover { color: #fff !important; }
@media (max-width: 1199px) {
    .sm-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm-footer__top .sp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .sm-footer { padding-top: 60px; }
    .sm-footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .sm-footer__top .sm-footer__contact { grid-column: 1 / -1; }
    .sm-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Header dropdown: chevron on parent items + roomier panel ---- */
.sm-header ul.sp-nav > li.has-sub > a {
    padding-right: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right center / 10px no-repeat;
}
.sm-header ul.sp-nav > li.has-sub > a::after { right: 100%; }
.sm-header ul.sp-nav > li.has-sub:hover > a::after { right: 16px; }
.sm-header ul.sp-nav__sub { min-width: 230px; padding: 10px 0; border-top: 2px solid var(--sp-accent); }
.sm-header ul.sp-nav__sub > li > a { font-size: 13px; letter-spacing: .3px; padding: 11px 22px; }

/* ---- Property detail Style 3: photo mosaic inside the page container ---- */
.sm-detail-grid { max-width: 1500px; margin: 32px auto 0; padding: 0 40px; }
.sm-detail-grid .flat-gallery-single { margin: 0 !important; padding: 0 !important; gap: 12px !important; }
.sm-detail-grid .flat-gallery-single .box-img { border-radius: var(--sp-radius) !important; }
@media (max-width: 991px) { .sm-detail-grid { padding: 0 20px; } }

/* ---- Property detail: "Property details" key/value grid + media ---- */
.sm-details { margin-bottom: 48px; }
.sm-details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; border-top: 1px solid var(--sp-line); }
.sm-details__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sp-line); }
.sm-details__row dt { font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--sp-muted); margin: 0; }
.sm-details__row dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--sp-navy); text-align: right; }
.sm-details__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sm-details__media { margin-bottom: 48px; }
.sm-details__video, .sm-details__map { position: relative; aspect-ratio: 16 / 9; background: var(--sp-bg-soft); border-radius: var(--sp-radius); overflow: hidden; }
.sm-details__video iframe, .sm-details__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .sm-details__grid { grid-template-columns: 1fr; } }


/* ============================================================================
   NEXTGEN DARK LAYER
   Dark page, navy->night gradient cards with a thin light running round the
   border, navy->blue gradient buttons, pill header menu, fade-up on scroll.
   ============================================================================ */

/* ---- Page ---- */
html, body { background: var(--ng-night) !important; }
body, body p, body li, body span, body label, body dd, body dt { color: #fff; }
body { font-family: var(--sp-sans) !important; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .section-title, .title, .box-title, .h7 { color: #fff !important; font-family: var(--sp-sans) !important; }
a { color: #fff; }
a:hover { color: var(--sp-accent); }
#wrapper, .main-content, .page-content, .flat-section, .flat-section-v5, .flat-section-v6, section, .bg-surface { background-color: transparent; }
.text-variant-1, .text-muted, .sp-muted { color: var(--sp-muted) !important; }
hr, .line { border-color: var(--ng-border) !important; }
::selection { background: var(--sp-accent); color: #fff; }

.ng-container { max-width: 1340px; margin: 0 auto; padding: 0 24px; }
.sp-container { max-width: 1340px; padding: 0 24px; }
.ng-section { padding: 110px 0; position: relative; }
.sp-section { padding: 110px 0; position: relative; }
/* soft coloured glow behind some sections (the design's faint green/blue haze) */
.ng-section--glow::before,
.sp-properties::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(60% 55% at 12% 0%, rgba(3,153,215,.10) 0%, transparent 70%),
        radial-gradient(45% 40% at 95% 10%, rgba(9,35,73,.40) 0%, transparent 70%);
}
.ng-section > .ng-container, .sp-section > .sp-container { position: relative; z-index: 1; }

/* ---- Type ---- */
.ng-title,
body .sp-section-title,
body .sp-section .sp-section-title,
body .sp-section-head h2.sp-section-title,
.sm-heading {
    font-family: var(--sp-sans) !important;
    font-weight: 700 !important;
    font-size: clamp(30px, 3.1vw, 45px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
    color: #fff !important;
    margin: 0;
}
.ng-lead, .ng-head__text { font-size: 18px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,.82) !important; margin: 18px 0 0; }
.sp-label, .text-subtitle, .sm-eyebrow { color: var(--sp-accent) !important; letter-spacing: 2px !important; }
.sm-eyebrow::before, body .sp-section-head .sp-label::before { display: none; }
.ng-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.ng-head__text { max-width: 420px; margin: 0; }

/* ---- Buttons / links ---- */
.ng-btn, a.ng-btn,
.sm-btn--solid, a.sm-btn--solid,
button.sp-search__btn,
.tf-btn.primary, .sp-agent__submit, .sm-btn--light {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 30px;
    background: var(--ng-grad-btn) !important; background-size: 160% 100% !important; background-position: 0 0 !important;
    border: 0 !important; border-radius: 8px !important;
    color: #fff !important; font-family: var(--sp-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
    text-decoration: none !important; cursor: pointer;
    box-shadow: 0 8px 24px rgba(3,153,215,.18);
    transition: background-position .45s ease, transform .25s ease, box-shadow .25s ease;
}
.ng-btn:hover, .sm-btn--solid:hover, button.sp-search__btn:hover, .tf-btn.primary:hover, .sm-btn--light:hover {
    background-position: 100% 0 !important; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(3,153,215,.32); color: #fff !important;
}
.ng-btn span, .ng-btn svg, .sm-btn--solid span, button.sp-search__btn span, button.sp-search__btn svg { color: #fff !important; stroke: currentColor; }
.ng-btn--sm { padding: 12px 20px; font-size: 14px; }
.ng-link, a.ng-link, .sm-link, a.sm-link, .sp-section-link, a.sp-section-link, .sp-card__cta {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff !important; font-size: 15px; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important;
    text-decoration: none !important; border: 0 !important; padding: 0;
}
.ng-arrow { transition: transform .25s ease; flex-shrink: 0; }
.ng-btn:hover .ng-arrow, .ng-link:hover .ng-arrow { transform: translateX(5px); }
.ng-link:hover, .sm-link:hover, .sp-section-link:hover { color: var(--sp-accent) !important; }
.sm-link span, .sp-section-link::after { color: inherit !important; }

/* ---- Card + moving border light ---- */
.ng-card {
    position: relative;
    background: var(--ng-grad-card);
    border: 1px solid var(--ng-border);
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
}
.ng-card__body { position: relative; z-index: 2; padding: 30px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.ng-card__title { font-size: 20px !important; font-weight: 700 !important; line-height: 1.3 !important; margin: 0 !important; color: #fff !important; }
.ng-card__text { font-size: 16px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,.82) !important; margin: 0; }
.ng-card--image::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: var(--ng-card-img) center / cover no-repeat;
    opacity: .55; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.ng-card--image::after { z-index: 1; }
.ng-card--image:hover::before { transform: scale(1.05); opacity: .7; }

@property --ng-angle { syntax: "<angle>"; initial-value: 0turn; inherits: false; }
@keyframes ng-border-run { to { --ng-angle: 1turn; } }
.ng-glow { position: relative; }
.ng-glow::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 3;
    padding: 1px;
    background: conic-gradient(from var(--ng-angle), transparent 86%, var(--ng-glow) 96%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: ng-border-run 7s linear infinite;
}
.ng-glow:nth-child(2n)::after { animation-delay: -2.3s; }
.ng-glow:nth-child(3n)::after { animation-delay: -4.6s; }

/* ---- Scroll reveal ---- */
.ng-motion [data-ng-reveal], .ng-motion .sp-card, .ng-motion .sm-quote, .ng-motion .sm-post {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.ng-motion [data-ng-reveal].is-in, .ng-motion .sp-card.is-in, .ng-motion .sm-quote.is-in, .ng-motion .sm-post.is-in { opacity: 1; transform: none; }
.ng-motion .sp-properties__grid .sp-card:nth-child(4n+2), .ng-motion .ng-bento__item:nth-child(2) { transition-delay: .08s; }
.ng-motion .sp-properties__grid .sp-card:nth-child(4n+3), .ng-motion .ng-bento__item:nth-child(3) { transition-delay: .16s; }
.ng-motion .sp-properties__grid .sp-card:nth-child(4n+4), .ng-motion .ng-bento__item:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .ng-glow::after { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* ---- Header ---- */
#header.sp-header.sm-header.ng-header {
    background: rgba(12,12,12,.72) !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ng-border); box-shadow: none;
    position: sticky; top: 0; z-index: 200;
}
/* on pages that open with the hero, the header floats transparently over it */
body:has(.ng-hero) #header.sp-header.sm-header.ng-header {
    position: absolute; left: 0; right: 0; top: 0;
    background: transparent !important; border-bottom-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ng-header .sp-header__inner { max-width: 1340px; padding: 22px 24px; }
.ng-header .sp-header__brand img { max-height: 46px; width: auto; }
.ng-header .sp-header__nav { justify-content: flex-start; padding-left: 40px; }
.ng-header ul.sp-nav { gap: 6px; }
.ng-header ul.sp-nav > li > a {
    color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
    padding: 11px 16px; border-radius: 8px; background: transparent;
    transition: background .25s ease, color .25s ease;
}
.ng-header ul.sp-nav > li > a::after { display: none; }
.ng-header ul.sp-nav > li > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.ng-header ul.sp-nav > li.active > a { color: #fff; background: rgba(9,35,73,.95); }
.ng-header ul.sp-nav > li.has-sub > a { padding-right: 30px; background-position: right 12px center; }
.ng-header ul.sp-nav__sub { background: #0F1216; border: 1px solid var(--ng-border); border-radius: 10px; box-shadow: var(--sp-shadow); }
.ng-header ul.sp-nav__sub > li > a { color: #fff; }
.ng-header ul.sp-nav__sub > li > a:hover { background: rgba(255,255,255,.06); color: var(--sp-accent); }
.ng-header .sp-header__toggle span { background: #fff !important; }
.ng-header .sp-header__mobile.open { background: #0C0C0C; border-top: 1px solid var(--ng-border); }
.ng-header .sp-nav--mobile > li { border-bottom-color: var(--ng-border); }
.ng-header .sp-nav--mobile > li > a { color: #fff !important; }
.ng-header .sp-header__phone--mobile, .ng-header .sp-header__phone--mobile span { color: #fff !important; }
.ng-header .sm-btn--outline { color: #fff !important; border: 1px solid var(--ng-border) !important; border-radius: 8px; }

/* ---- Hero ---- */
.ng-hero { position: relative; padding: 190px 0 90px; overflow: hidden; }
.ng-hero__bg { position: absolute; inset: 0; background: #0C0C0C center / cover no-repeat; z-index: 0; transform: scale(1.04); animation: ng-hero-drift 24s ease-in-out infinite alternate; }
@keyframes ng-hero-drift { to { transform: scale(1.12) translateY(-1.5%); } }
.ng-hero__shade { position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.62) 55%, #0C0C0C 100%),
        linear-gradient(100deg, rgba(3,153,215,.10) 0%, transparent 45%),
        linear-gradient(260deg, rgba(9,35,73,.55) 0%, transparent 55%);
}
.ng-hero > .ng-container { position: relative; z-index: 2; }
.ng-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.ng-hero h1.ng-hero__title { font-size: clamp(40px, 5vw, 68px) !important; font-weight: 700 !important; line-height: 1.14 !important; letter-spacing: -.025em !important; margin: 0 0 24px !important; color: #fff !important; text-transform: none !important; }
.ng-hero__text { font-size: 20px; font-weight: 300; line-height: 1.6; color: rgba(255,255,255,.86) !important; max-width: 640px; margin: 0 0 36px; }
.ng-hero__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.ng-hero__trust { margin: 44px 0 0; font-size: 14px; color: rgba(255,255,255,.75) !important; }
.ng-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ng-stat {
    background: var(--ng-grad-card); border: 1px solid var(--ng-border); border-radius: 12px;
    padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
    overflow: hidden; isolation: isolate; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ng-stat--tall { min-height: 250px; }
.ng-stat--image { background: var(--ng-grad-card), var(--ng-stat-img) center bottom / cover no-repeat; background-blend-mode: normal; }
.ng-stat--image { background: linear-gradient(180deg, rgba(9,35,73,.92) 0%, rgba(9,35,73,.35) 55%, rgba(12,12,12,.2) 100%), var(--ng-stat-img) center / cover no-repeat; }
.ng-stat__value { font-size: clamp(34px, 3.4vw, 50px); font-weight: 700; line-height: 1.1; color: #fff !important; font-variant-numeric: tabular-nums; }
.ng-stat__label { font-size: 17px; font-weight: 500; color: #fff !important; max-width: 150px; line-height: 1.5; }
.ng-hero__search { margin-top: 64px; }

/* ---- Search bar: dark glass ---- */
.ng-hero__search,
.sp-hero__search-card, body.listing-no-map .sp-page-search .sp-hero__search-card {
    background: rgba(12,16,22,.72) !important; border: 1px solid var(--ng-border); border-radius: 14px !important;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--sp-shadow) !important; padding: 0 !important;
}
.sp-search { background: transparent; }
.sm-search__tabs { border-bottom-color: var(--ng-border); }
.sm-search__tab span { color: var(--sp-muted) !important; }
.sm-search__tab input:checked + span { color: #fff !important; border-bottom-color: var(--sp-accent); }
.sp-search__field { border-color: var(--ng-border) !important; }
.sp-search__field label { color: var(--sp-muted) !important; }
.sp-search__field input, .sp-search__field select,
.sp-search .ts-control, .sp-search .ts-control input { background: transparent !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
.sp-search__field input::placeholder, .sp-search .ts-control input::placeholder { color: rgba(255,255,255,.55) !important; }
.sp-search .ts-control .item { background: rgba(3,153,215,.22) !important; color: #fff !important; border-radius: 6px; }
.ts-dropdown { background: #0F1216 !important; border: 1px solid var(--ng-border) !important; color: #fff !important; border-radius: 10px; }
.ts-dropdown .option { color: #fff !important; }
.ts-dropdown .option.active, .ts-dropdown .option:hover { background: rgba(3,153,215,.22) !important; color: #fff !important; }
button.sp-search__btn { margin: 10px !important; }
.sp-search__advanced { color: #fff !important; }
.sp-search__advanced-panel { border-top-color: var(--ng-border) !important; }

/* ---- Counters ---- */
.ng-counters { padding: 30px 0 90px; }
.ng-counters__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; align-items: start; padding-bottom: 70px; border-bottom: 1px solid var(--ng-border); }
.ng-counters__title { font-size: clamp(26px, 2.6vw, 36px) !important; font-weight: 700 !important; line-height: 1.4 !important; max-width: 340px; margin: 0 !important; }
.ng-counter { display: flex; flex-direction: column; gap: 10px; }
.ng-counter__value { font-size: clamp(54px, 6vw, 86px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff !important; font-variant-numeric: tabular-nums; }
.ng-counter__label { font-size: 18px; font-weight: 500; color: #fff !important; }

/* ---- Property cards: tall photo, text below ---- */
.sp-section-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 44px !important; align-items: flex-end !important; }
.sp-properties__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 40px 18px !important; }
.sp-card, .sp-section--dark .sp-card { background: transparent !important; border: 0 !important; border-radius: 0; overflow: visible; }
.sp-card:hover { box-shadow: none; transform: none; }
.sp-card__image { aspect-ratio: 4 / 5; border-radius: 12px; border: 1px solid var(--ng-border); background: #0B1620; overflow: hidden; }
.sp-card:hover .sp-card__image img { transform: scale(1.05); }
.sp-card__body { padding: 16px 8px 0; gap: 6px; }
.sp-card__title { order: 1; font-size: 16px !important; font-weight: 600 !important; line-height: 1.35 !important; }
.sp-card__title a { color: #fff !important; }
.sp-card__title a:hover { color: var(--sp-accent) !important; }
.sp-card__location { order: 2; }
.sp-card__location, .sp-card__location span { color: var(--sp-muted) !important; font-size: 13px !important; letter-spacing: 0; text-transform: none; }
ul.sm-card__specs { order: 3; border-top: 0; padding: 4px 0 0 !important; margin: 4px 0 0 !important; gap: 6px 18px; }
ul.sm-card__specs li, ul.sm-card__specs li span { color: var(--sp-muted) !important; font-size: 13px !important; }
.sm-card__specs svg { color: var(--sp-muted); }
.sp-card__price { order: 4; font-size: 17px; font-weight: 700; color: #fff !important; margin-top: 8px; }
.sp-card .sp-card__cta { display: none; }
@media (max-width: 1199px) { .sp-properties__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 860px)  { .sp-properties__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px)  { .sp-properties__grid { grid-template-columns: 1fr !important; } }

/* ---- Services bento ---- */
.ng-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.ng-bento__item { min-height: 350px; }
.ng-bento__item--1 { grid-column: span 2; min-height: 450px; }
.ng-bento__item--2 { min-height: 450px; }
.ng-bento__item--2 .ng-card__body, .ng-bento__item--4 .ng-card__body { justify-content: flex-end; }
.ng-bento__item--1 .ng-card__text { max-width: 420px; }
.ng-bento__item--1.ng-card--image::before { background-position: right center; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 60%); mask-image: linear-gradient(90deg, transparent 18%, #000 60%); }
.ng-bento__number { font-size: clamp(64px, 7vw, 100px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff !important; font-variant-numeric: tabular-nums; }
.ng-bento__note { margin: auto 0 0; padding-top: 24px; border-top: 1px solid var(--ng-border); font-size: 14px; color: rgba(255,255,255,.8) !important; }

/* ---- Features + promo ---- */
.ng-features__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.ng-features__grid--promo { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: stretch; }
.ng-features__main { display: flex; flex-direction: column; gap: 48px; justify-content: space-between; }
.ng-features__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ng-feature { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.ng-feature__icon { width: 60px; height: 60px; border-radius: 50%; background: #092349; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 26px; position: relative; z-index: 2; }
.ng-feature__icon svg { width: 22px; height: 22px; color: #fff !important; }
.ng-feature .ng-card__title, .ng-feature .ng-card__text { position: relative; z-index: 2; }
.ng-promo { min-height: 490px; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(9,35,73,.5) 0%, rgba(12,12,12,.85) 100%), var(--ng-card-img, none) center / cover no-repeat; }
.ng-promo__body { position: relative; z-index: 2; padding: 40px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.ng-promo__title { font-size: 22px !important; font-weight: 700 !important; line-height: 1.5 !important; max-width: 220px; margin: 0 !important; }

/* ---- Photos + text ---- */
.ng-split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ng-split__grid--noimg { grid-template-columns: 1fr; }
.ng-split__photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 30px; height: 630px; }
.ng-split__photos--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ng-split__photo { border-radius: 12px; overflow: hidden; border: 1px solid var(--ng-border); }
.ng-split__photos--3 .ng-split__photo:first-child, .ng-split__photos--2 .ng-split__photo { grid-row: span 2; }
.ng-split__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.ng-split__photo:hover img { transform: scale(1.05); }
.ng-split__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; padding-top: 50px; border-top: 1px solid var(--ng-border); }
.ng-split__cols > div { display: flex; flex-direction: column; gap: 14px; }
.ng-split__col-title { font-size: 17px !important; font-weight: 700 !important; margin: 0 !important; }

/* ---- Inherited blocks, dark ---- */
.sm-why, .sm-services, .sm-testimonials, .sm-blog, .sm-logos, .pf-contact { background: transparent !important; }
.sm-service, .sm-quote, .sm-post, .pf-contact__card, .sm-logos__grid li {
    background: var(--ng-grad-card) !important; border: 1px solid var(--ng-border) !important; border-radius: 12px !important;
}
.sm-services__grid, .sm-logos__grid { border: 0; gap: 24px; }
.sm-service__title, .sm-why__points h3, .sm-post__title a, .sm-quote blockquote, .sm-quote figcaption strong,
.sm-why__stats dt, .sm-counters dt, .pf-contact__value, a.pf-contact__value { color: #fff !important; font-family: var(--sp-sans) !important; }
.sm-service__desc, .sm-why__points p, .sm-why__desc, .sm-post__excerpt, .sm-services__intro, .sm-quote figcaption small,
.sm-why__stats dd, .sm-counters dd, .pf-contact__label, .pf-contact__intro { color: rgba(255,255,255,.75) !important; }
.sm-why__points li, .sm-quote figcaption { border-color: var(--ng-border) !important; }
.sm-why__num, .sm-service__icon, .sm-service__icon svg, .sm-post__date { color: var(--sp-accent) !important; }
.sm-arrow { border-color: var(--ng-border); color: #fff; }
.sm-arrow:hover { background: var(--sp-accent); border-color: var(--sp-accent); }
.sm-cta { padding-bottom: 110px; }
.sm-cta__grid { gap: 30px; }
.sm-cta__panel, .sm-cta__panel--alt { background: var(--ng-grad-card) !important; border: 1px solid var(--ng-border); border-radius: 12px; }
.sm-cta__panel--alt { background: linear-gradient(180deg, rgba(3,153,215,.30) 0%, #0C0C0C 90%) !important; }
.sm-cta__panel p, .sm-cta__panel--alt p { color: rgba(255,255,255,.82) !important; }
.sm-cta__panel--alt .sm-heading { color: #fff !important; }

/* contact info cards */
.pf-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.pf-contact__card { padding: 30px 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.pf-contact__icon, .pf-contact__icon svg { color: var(--sp-accent) !important; line-height: 0; margin-bottom: 8px; }
.pf-contact__label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.pf-contact__value, a.pf-contact__value { font-size: 18px; line-height: 1.4; text-decoration: none; word-break: break-word; }
a.pf-contact__value:hover { color: var(--sp-accent) !important; }
.pf-contact__intro { max-width: 620px; margin: 0 auto 44px; text-align: center; font-size: 17px; line-height: 1.7; }
.pf-contact__empty { text-align: center; color: var(--sp-muted) !important; }
.pf-contact__social { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pf-contact__social a { display: inline-block; padding: 10px 20px; border: 1px solid var(--ng-border); border-radius: 8px; color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.pf-contact__social a:hover { background: var(--sp-accent); border-color: var(--sp-accent); }

/* ---- Inner page title band, listings, property detail ---- */
.sp-page-title, .sp-detail-titlebar, body.listing-no-map .sp-page-title { background: linear-gradient(180deg, rgba(9,35,73,.55) 0%, #0C0C0C 100%) !important; border-bottom: 1px solid var(--ng-border) !important; }
body h1.sp-detail-titlebar__title, body .sp-page-title__heading { color: #fff !important; font-family: var(--sp-sans) !important; font-weight: 700 !important; text-transform: none !important; }
.sp-detail-titlebar__location, .sp-detail-titlebar__back { color: var(--sp-muted) !important; }
.sp-detail-titlebar__price { color: #fff !important; }
.sp-detail, .sp-detail-meta, .sp-detail-gallery, .sp-related { background: transparent !important; }
.sp-detail-meta__row, .sp-agent, .sp-amenity, .sm-details__grid, .sp-detail-section { border-color: var(--ng-border) !important; }
.sp-detail-meta__row, .sp-agent { background: var(--ng-grad-card) !important; border: 1px solid var(--ng-border) !important; border-radius: 12px !important; box-shadow: none !important; }
.sp-detail-meta__item { border-color: var(--ng-border) !important; }
.sp-detail-meta__icon { background: #092349 !important; color: #fff !important; }
.sp-detail-meta__value, .sm-details__row dd, .sp-agent__name, .sp-amenity, .sp-amenity span { color: #fff !important; }
.sp-detail-meta__label, .sm-details__row dt { color: var(--sp-muted) !important; }
.sm-details__row { border-bottom-color: var(--ng-border); }
.sp-amenity { background: rgba(255,255,255,.04) !important; border: 1px solid var(--ng-border) !important; border-radius: 8px; }
.sp-prose, .sp-prose * { color: rgba(255,255,255,.85) !important; }
.sp-agent input, .sp-agent textarea, .sp-agent select,
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
    background: rgba(255,255,255,.04) !important; border: 1px solid var(--ng-border) !important; color: #fff !important; border-radius: 8px !important;
}
.sp-agent input::placeholder, .sp-agent textarea::placeholder, .form-control::placeholder { color: rgba(255,255,255,.45) !important; }
.sp-agent label, .sp-agent__label { color: var(--sp-muted) !important; }
.sp-agent__btn, .sp-agent a.sp-agent__btn { border-color: var(--ng-border) !important; color: #fff !important; background: rgba(255,255,255,.04) !important; border-radius: 8px !important; }
.sp-detail-gallery__slide { border-radius: 12px; }
.sm-btn--outline { color: #fff !important; border: 1px solid var(--ng-border) !important; border-radius: 8px; background: transparent; }
.sm-btn--outline:hover { background: rgba(255,255,255,.08) !important; }
/* pagination + listing toolbar */
.pagination .page-link, .wg-pagination a, .sp-pagination a { background: transparent !important; color: #fff !important; border-color: var(--ng-border) !important; border-radius: 8px !important; }
.pagination .active .page-link, .wg-pagination .active a { background: var(--ng-grad-btn) !important; border-color: transparent !important; }
/* generic CMS content */
.ck-content, .ck-content p, .ck-content li { color: rgba(255,255,255,.85) !important; }
.flat-banner-about, .flat-contact .contact-info { background: transparent !important; }
.flat-contact .contact-info { border: 1px solid var(--ng-border) !important; background: var(--ng-grad-card) !important; }

/* ---- Footer ---- */
.sp-footer, .sm-footer { background: #0C0C0C !important; border-top: 1px solid var(--ng-border); position: relative; overflow: hidden; }
.sm-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 80% at 50% 0%, rgba(3,153,215,.10) 0%, transparent 70%), radial-gradient(40% 70% at 85% 0%, rgba(9,35,73,.40) 0%, transparent 70%); }
.sm-footer > .sp-container { position: relative; }
.sm-footer .sp-footer__brand .sp-footer__logo img { max-height: 48px; width: auto; }
.sp-footer__heading { font-family: var(--sp-sans) !important; font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.sm-footer .sp-footer__list a, .sm-footer .sp-footer__contact li, .sm-footer .sp-footer__contact li span, .sm-footer .sp-footer__about { color: rgba(255,255,255,.72) !important; }
.sm-footer .sp-footer__list a:hover { color: var(--sp-accent) !important; }
.sm-footer__bottom { border-top-color: var(--ng-border) !important; }
.sm-footer__cta.ng-btn { padding: 12px 20px; font-size: 14px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .ng-hero__grid { grid-template-columns: 1fr; gap: 50px; }
    .ng-features__grid--promo, .ng-split__grid { grid-template-columns: 1fr; }
    .ng-counters__grid { grid-template-columns: repeat(3, 1fr); }
    .ng-counters__title { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 860px) {
    .ng-section, .sp-section { padding: 72px 0; }
    .ng-hero { padding: 140px 0 60px; }
    .ng-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
    .ng-bento { grid-template-columns: 1fr; gap: 18px; }
    .ng-bento__item, .ng-bento__item--1, .ng-bento__item--2 { grid-column: auto; min-height: 280px; }
    .ng-features__cards { grid-template-columns: 1fr; gap: 16px; }
    .ng-split__photos { height: 420px; gap: 14px; }
    .ng-split__cols { grid-template-columns: 1fr; gap: 28px; }
    .ng-header .sp-header__inner { padding: 14px 18px; }
    .ng-header .sp-header__nav { padding-left: 0; }
}
@media (max-width: 560px) {
    .ng-counters__grid { grid-template-columns: 1fr; gap: 26px; }
    .ng-hero__stats { gap: 12px; }
    .ng-stat { padding: 20px 12px; }
    .ng-stat--tall { min-height: 170px; }
    .ng-hero__actions { gap: 18px; }
}

/* ---- Fixes after first review ---- */
/* failsafe: anything still waiting for the scroll reveal shows by itself after 2.5s (lazy-loaded cards, no-JS) */
@keyframes ng-failsafe { to { opacity: 1; transform: none; } }
.ng-motion [data-ng-reveal]:not(.is-in), .ng-motion .sp-card:not(.is-in), .ng-motion .sm-quote:not(.is-in), .ng-motion .sm-post:not(.is-in) { animation: ng-failsafe .8s ease 2.5s forwards; }
/* search fields sit flush inside the glass bar (no inner boxes) */
.sp-search .sp-search__field input,
.sp-search .sp-search__field select,
.sp-search .ts-wrapper .ts-control,
.sp-search .ts-wrapper .ts-control input { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding-left: 0 !important; color: #fff !important; }
/* photo cards: darker image + a shade behind the text so it always reads */
.ng-card--image::before { opacity: .5; }
.ng-bento__item--2.ng-card--image .ng-card__body,
.ng-bento__item--3.ng-card--image .ng-card__body,
.ng-bento__item--4.ng-card--image .ng-card__body { background: linear-gradient(180deg, rgba(12,12,12,0) 25%, rgba(12,12,12,.88) 78%); }
.ng-bento__item--1.ng-card--image .ng-card__body { background: linear-gradient(90deg, rgba(9,20,40,.92) 0%, rgba(9,20,40,.55) 38%, transparent 62%); }
.ng-promo { background: linear-gradient(180deg, rgba(9,35,73,.45) 0%, rgba(12,12,12,.9) 78%), var(--ng-card-img, none) center / cover no-repeat; }

/* ---- Listings page: glass search card + dark sort controls ---- */
.sp-properties-filter__card {
    background: rgba(12,16,22,.72) !important; border: 1px solid var(--ng-border) !important; border-radius: 14px !important;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--sp-shadow) !important; padding: 0 !important;
}
.sp-filters-toggle { background: var(--ng-grad-btn) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; }
.sp-filters-toggle span, .sp-filters-toggle svg { color: #fff !important; }
.sp-listing-wrap select, .sp-listing-wrap .nice-select, .sp-listing-wrap .form-select,
.flat-recommended select, .flat-recommended .nice-select {
    background-color: rgba(255,255,255,.04) !important; color: #fff !important; border: 1px solid var(--ng-border) !important; border-radius: 8px !important;
}
.nice-select .current, .nice-select .option, .nice-select:after { color: #fff !important; border-color: #fff !important; }
.nice-select .list { background: #0F1216 !important; border: 1px solid var(--ng-border) !important; }
.nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus { background: rgba(3,153,215,.22) !important; }
select option { background: #0F1216; color: #fff; }

/* ---- Property page: title size + dark contact card ---- */
body h1.sp-detail-titlebar__title { font-size: clamp(28px, 3vw, 44px) !important; line-height: 1.2 !important; }
.sp-detail-agent {
    background: var(--ng-grad-card) !important; border: 1px solid var(--ng-border) !important; border-radius: 12px !important; box-shadow: none !important;
}
.sp-detail-agent__top, .sp-detail-agent__actions, .sp-detail-agent__form { border-color: var(--ng-border) !important; }
.sp-detail-agent__name, .sp-detail-agent__name * { color: #fff !important; }
.sp-detail-agent__role, .sp-detail-agent__status, .sp-detail-agent__field label { color: var(--sp-muted) !important; }
.sp-detail-agent__avatar { background: #fff; border-radius: 50%; overflow: hidden; }
.sp-detail-agent__field input, .sp-detail-agent__field textarea {
    background: rgba(255,255,255,.04) !important; border: 1px solid var(--ng-border) !important; color: #fff !important; border-radius: 8px !important;
}
.sp-detail-agent__btn { background: rgba(255,255,255,.04) !important; border: 1px solid var(--ng-border) !important; color: #fff !important; border-radius: 8px !important; }
.sp-detail-agent__btn span, .sp-detail-agent__btn svg, .sp-detail-agent__btn i { color: #fff !important; }
.sp-detail-agent__submit {
    background: var(--ng-grad-btn) !important; background-size: 160% 100% !important; border: 0 !important; border-radius: 8px !important; color: #fff !important;
    transition: background-position .45s ease;
}
.sp-detail-agent__submit:hover { background-position: 100% 0 !important; }
.sp-detail-agent__submit span { color: #fff !important; }

/* ---- Moving border light: drawn INSIDE the card edge (cards have overflow:hidden, which clipped the
        original outside ring), on every card-like container ---- */
.ng-glow::after,
.ng-stat::after, .ng-card::after, .ng-promo::after,
.sm-service::after, .sm-quote::after, .pf-contact__card::after, .sp-detail-agent::after, .sp-detail-meta__row::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
    padding: 1.5px;
    background: conic-gradient(from var(--ng-angle), transparent 0%, transparent 78%, rgba(94,200,245,.15) 86%, rgba(94,200,245,.95) 95%, rgba(190,232,255,1) 98%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: ng-border-run 7s linear infinite;
}
.sm-service, .sm-quote, .pf-contact__card, .sp-detail-agent, .sp-detail-meta__row { position: relative; }
/* stagger so the lights don't all move in step */
.ng-hero__stats > :nth-child(2)::after, .ng-bento > :nth-child(2)::after, .ng-features__cards > :nth-child(2)::after { animation-delay: -1.8s; }
.ng-hero__stats > :nth-child(3)::after, .ng-bento > :nth-child(3)::after, .ng-features__cards > :nth-child(3)::after { animation-delay: -3.6s; }
.ng-hero__stats > :nth-child(4)::after, .ng-bento > :nth-child(4)::after { animation-delay: -5.2s; }
.ng-bento > :nth-child(5)::after, .ng-promo::after { animation-delay: -2.7s; }
/* the photo layer of image cards stays under the light */
.ng-card--image::before { z-index: 0; }
@media (prefers-reduced-motion: reduce) {
    .ng-stat::after, .ng-card::after, .ng-promo::after, .sm-service::after, .sm-quote::after, .pf-contact__card::after, .sp-detail-agent::after, .sp-detail-meta__row::after { animation: none; }
}

/* ---- The design's own images in their blocks ---- */
/* stat cards 1-2: 3D shape sits at the bottom of the card, number on top */
.ng-stat--image {
    background:
        linear-gradient(180deg, rgba(9,35,73,.96) 0%, rgba(9,35,73,.55) 42%, rgba(9,35,73,0) 70%),
        var(--ng-stat-img) center bottom / 100% auto no-repeat,
        var(--ng-grad-card) !important;
    justify-content: flex-start;
}
.ng-stat--tall.ng-stat--image { min-height: 400px; }
.ng-hero__stats { align-items: start; }
.ng-hero__stats > :nth-child(3) { margin-top: 0; }
/* services card 1: cut-out photo (handshake) on the right, text top-left */
.ng-bento__item--1.ng-card--image::before {
    background-position: right bottom; background-size: auto 92%; opacity: 1;
    -webkit-mask-image: none; mask-image: none;
}
.ng-bento__item--1.ng-card--image .ng-card__body { background: none; }
/* small white badge (e.g. "AI") */
.ng-badge { align-self: flex-start; background: #fff; color: #0C0C0C !important; font-size: 12px; font-weight: 700; line-height: 1; padding: 9px 8px; border-radius: 6px; margin-bottom: 14px; }
/* card 4: text on a frosted glass panel over the photo */
.ng-bento__item--4.ng-card--image::before { opacity: .95; }
.ng-bento__item--4.ng-card--image .ng-card__body { background: none; padding: 24px; }
.ng-bento__item--4.ng-card--image .ng-card__body > * { position: relative; z-index: 1; }
.ng-bento__item--4.ng-card--image .ng-card__body::before {
    content: ""; position: absolute; left: 24px; right: 24px; bottom: 24px; height: 150px; border-radius: 10px;
    background: rgba(40,70,90,.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14);
}
.ng-bento__item--4.ng-card--image .ng-card__body { padding: 24px 50px 46px; }


/* ---- Hero stat cards: two columns of unequal heights (matches the design) ---- */
.ng-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.ng-hero__stats-col { display: flex; flex-direction: column; gap: 20px; }
.ng-hero__stats .ng-stat { min-height: 0; padding: 34px 20px 24px; justify-content: flex-start; }
.ng-stat--1 { height: 480px; }                 /* tall, with the 3D shape */
.ng-stat--3 { height: 70px; }                  /* one-line strip */
.ng-stat--2 { height: 400px; }                 /* shorter */
.ng-stat--4 { height: 150px; }                 /* medium */
.ng-hero__stats .ng-stat--1, .ng-hero__stats .ng-stat--2 { min-height: 0; }
.ng-stat--1 .ng-stat__value, .ng-stat--2 .ng-stat__value { font-size: clamp(38px, 3.6vw, 52px); }
.ng-stat--1 .ng-stat__label, .ng-stat--2 .ng-stat__label { font-size: 18px; max-width: 150px; }
/* strip: number and label on one line, same size */
.ng-hero__stats .ng-stat--3 { flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; }
.ng-stat--3 .ng-stat__value, .ng-stat--3 .ng-stat__label { font-size: 18px; font-weight: 600; max-width: none; line-height: 1; }
.ng-hero__stats .ng-stat--4 { justify-content: center; padding: 20px; gap: 4px; }
.ng-stat--4 .ng-stat__value { font-size: clamp(38px, 3.6vw, 50px); }
.ng-stat--4 .ng-stat__label { font-size: 20px; font-weight: 600; max-width: none; }
/* the 3D shape fills the lower part of cards 1 and 2 */
.ng-hero__stats .ng-stat--image {
    background:
        linear-gradient(180deg, rgba(9,35,73,.97) 0%, rgba(9,35,73,.75) 30%, rgba(9,35,73,0) 58%),
        var(--ng-stat-img) center bottom / cover no-repeat,
        var(--ng-grad-card) !important;
}
.ng-hero__stats .ng-stat--1.ng-stat--image { background-size: auto, 135% auto, auto; }
.ng-hero__stats .ng-stat--2.ng-stat--image { background-size: auto, 120% auto, auto; }
/* each card keeps its own moving light */
.ng-hero__stats-col:nth-child(2) .ng-stat:nth-child(1)::after { animation-delay: -1.8s; }
.ng-hero__stats-col:nth-child(1) .ng-stat:nth-child(2)::after { animation-delay: -3.6s; }
.ng-hero__stats-col:nth-child(2) .ng-stat:nth-child(2)::after { animation-delay: -5.2s; }
@media (max-width: 560px) {
    .ng-stat--1 { height: 300px; } .ng-stat--2 { height: 240px; } .ng-stat--4 { height: 110px; } .ng-stat--3 { height: 60px; }
    .ng-hero__stats { gap: 12px; } .ng-hero__stats-col { gap: 12px; }
}
/* AI card (2): show more of the interior photo, shade only behind the text */
.ng-bento__item--2.ng-card--image::before { opacity: .85; }
.ng-bento__item--2.ng-card--image .ng-card__body { background: linear-gradient(180deg, rgba(12,12,12,0) 35%, rgba(12,12,12,.80) 85%); }

/* ---- Photo cards: the photo must be clearly visible (AI card, promo card) ---- */
/* AI card: full-strength photo, slightly brightened; shade only the lower part behind the text */
.ng-bento__item--2.ng-card--image { background: #0C0C0C; }
.ng-bento__item--2.ng-card--image::before { opacity: 1; filter: brightness(1.55) saturate(1.1); }
.ng-bento__item--2.ng-card--image:hover::before { opacity: 1; }
.ng-bento__item--2.ng-card--image .ng-card__body { background: linear-gradient(180deg, rgba(12,12,12,0) 45%, rgba(12,12,12,.72) 80%, rgba(12,12,12,.82) 100%); }
/* promo card: photo on its own layer (brightened), light navy tint on top, text shade at the bottom */
.ng-promo { background: #0C0C0C !important; }
.ng-promo::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: var(--ng-card-img, none) center / cover no-repeat;
    filter: brightness(1.6) saturate(1.1);
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.ng-promo:hover::before { transform: scale(1.05); }
.ng-promo__body { background: linear-gradient(180deg, rgba(9,35,73,0) 0%, rgba(9,35,73,.18) 40%, rgba(12,12,12,.78) 100%); height: 100%; justify-content: flex-end; padding-top: 220px; }


/* ---- Page background pattern (the design's own images, unchanged): faint layered chevron bands
        from the top of the page to the footer, on every page ---- */
html { background: #0C0C0C !important; }
body {
    background-color: #0C0C0C !important;
    background-image: url("../images/bg-pattern.jpg") !important;
    background-repeat: repeat-y !important;
    background-position: center top !important;
    background-size: 100% auto !important;
}
/* sections stay see-through so the pattern runs behind them; drop the blue haze I had added */
.ng-section--glow::before, .sp-properties::before { display: none; }
#wrapper, .main-content, .page-content, .ng-section, .sp-section, .sp-detail, .sm-why, .sm-services, .sm-testimonials, .sm-blog, .sm-logos, .pf-contact, .ng-counters { background-color: transparent !important; }
/* the hero photo fades into the page background at its bottom edge */
.ng-hero__shade { background:
    linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.62) 55%, #0C0C0C 100%),
    linear-gradient(260deg, rgba(9,35,73,.55) 0%, transparent 55%); }
/* footer: their upright chevron bands */
.sp-footer, .sm-footer { background: #0C0C0C url("../images/bg-footer.jpg") center top / cover no-repeat !important; }
.sm-footer::before { display: none; }

/* ---- Hero: the same chevron bands laid lightly over the photo (as in the design) ---- */
.ng-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: url("../images/bg-pattern.jpg") center top / 100% auto no-repeat;
    mix-blend-mode: screen; opacity: .9;
}
.ng-hero__shade { z-index: 1; }
/* pattern sits ABOVE the dark photo overlay (below the text/cards) and is lifted a little so it reads */
.ng-hero::before { z-index: 2; opacity: 1; filter: brightness(2.4) saturate(1.1); }
.ng-hero > .ng-container { z-index: 3; }
.ng-hero::before { filter: brightness(1.6) saturate(1.05); opacity: .85; }

/* ---- Pagination (listings, blog): dark buttons, white numbers, gradient on the current page ---- */
ul.flat-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 48px 0 0; }
ul.flat-pagination li { margin: 0 !important; }
ul.flat-pagination .page-numbers,
ul.flat-pagination li a, ul.flat-pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 12px;
    background: rgba(255,255,255,.04) !important; border: 1px solid var(--ng-border) !important; border-radius: 8px !important;
    color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease;
}
ul.flat-pagination .page-numbers:hover, ul.flat-pagination li a:hover { background: rgba(3,153,215,.22) !important; border-color: var(--sp-accent) !important; color: #fff !important; }
ul.flat-pagination .page-numbers.current, ul.flat-pagination li.active a, ul.flat-pagination li.active span { background: var(--ng-grad-btn) !important; border-color: transparent !important; color: #fff !important; }
ul.flat-pagination .page-numbers i, ul.flat-pagination .page-numbers svg, ul.flat-pagination .page-numbers span { color: #fff !important; }
ul.flat-pagination .disabled .page-numbers, ul.flat-pagination .page-numbers.disabled { opacity: .4; pointer-events: none; }
/* the "…" gap is a <span class="page-numbers current"> in this theme — show it as plain dots, not as the active page */
ul.flat-pagination li span.page-numbers.current { background: transparent !important; border-color: transparent !important; min-width: 24px; padding: 0; color: var(--sp-muted) !important; }

/* ============================================================
   Property page — one centred panel, as in the client's listing design
   ============================================================ */
.ng-listing { padding: 130px 16px 90px; }
.ng-listing__panel { max-width: 720px; margin: 0 auto; background: #0B1620; border: 1px solid var(--ng-border); border-radius: 10px; overflow: hidden; }
.ng-gallery__main { position: relative; aspect-ratio: 3 / 2; background: #000; }
.ng-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ng-pill { position: absolute; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(0,0,0,.7); color: #fff !important; font-family: var(--sp-sans); font-size: 12px; font-weight: 600; line-height: 1; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ng-pill--top { top: 14px; cursor: pointer; }
.ng-pill--bottom { bottom: 14px; }
.ng-pill svg { color: #fff; }
.ng-gallery__thumbs { display: flex; gap: 3px; padding: 3px; background: #000; overflow-x: auto; scrollbar-width: thin; }
.ng-gallery__thumbs button { flex: 0 0 80px; height: 54px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s; }
.ng-gallery__thumbs button.is-active, .ng-gallery__thumbs button:hover { opacity: 1; }
.ng-gallery__thumbs button.is-active { border-color: var(--sp-accent); }
.ng-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ng-listing__content { padding: 32px 30px 10px; }
.ng-listing__ref { margin: 0 0 6px; font-size: 11px; color: var(--sp-muted) !important; letter-spacing: .03em; text-transform: uppercase; }
body h1.ng-listing__title { margin: 0 0 6px !important; font-size: 26px !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: 0 !important; color: #fff !important; text-transform: none !important; }
.ng-listing__subtitle { margin: 0 0 22px; font-size: 13px; font-weight: 500; color: var(--sp-muted) !important; }
.ng-listing__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.ng-listing__price strong { font-size: 28px; font-weight: 700; color: #fff; }
.ng-listing__period { font-size: 13px; color: var(--sp-muted) !important; }
.ng-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 3px; background: rgba(37,211,102,.15); color: #3DDC84 !important; }
.ng-status--sold, .ng-status--rented, .ng-status--not-available { background: rgba(255,90,90,.15); color: #FF7A7A !important; }
.ng-status--reserved, .ng-status--pending { background: rgba(255,190,60,.15); color: #FFC24D !important; }
.ng-listing__section { margin-bottom: 34px; }
.ng-listing__label, h2.ng-listing__label { margin: 0 0 14px !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--sp-muted) !important; line-height: 1.4 !important; }
.ng-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-tags span { font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 4px; background: #0F1D2A; border: 1px solid var(--ng-border); color: #fff !important; }
.ng-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 12px; }
.ng-spec { display: flex; align-items: flex-start; gap: 10px; }
.ng-spec svg { color: var(--sp-accent); margin-top: 2px; flex-shrink: 0; }
.ng-spec strong { display: block; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.ng-spec small { display: block; font-size: 11px; color: var(--sp-muted) !important; margin-top: 4px; }
.ng-listing__desc { font-size: 14px; line-height: 1.75; color: #C3CED9 !important; font-weight: 400; }
.ng-listing__desc *, .ng-listing__desc b { color: #C3CED9 !important; font-weight: 400; }
.ng-listing__desc strong, .ng-listing__desc h2, .ng-listing__desc h3, .ng-listing__desc h4 { color: #fff !important; font-weight: 700; }
.ng-listing__desc p { margin: 0 0 14px; }
.ng-listing__desc a { color: var(--sp-accent) !important; }
.ng-listing__links { display: flex; flex-wrap: wrap; gap: 10px; }
.ng-listing__video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.ng-listing__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ng-listing__contact { text-align: center; padding: 34px 24px 38px; background: #0F1D2A; border-top: 1px solid var(--ng-border); }
.ng-listing__contact .ng-listing__label { color: #fff !important; }
.ng-listing__contact h3 { margin: 0 0 6px !important; font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.ng-listing__mail, a.ng-listing__mail { font-size: 13px; color: var(--sp-accent) !important; text-decoration: none; }
.ng-listing__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 520px; margin: 22px auto 0; }
.ng-cbtn, a.ng-cbtn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none !important; color: #fff !important; transition: filter .2s; }
.ng-cbtn span, .ng-cbtn svg { color: #fff !important; }
.ng-cbtn:hover { filter: brightness(1.15); color: #fff !important; }
.ng-cbtn--call { background: var(--ng-grad-btn); }
.ng-cbtn--wa { background: #25D366; }
.ng-cbtn--mail { background: transparent; border: 1px solid var(--ng-border); }
@media (max-width: 600px) {
    .ng-listing { padding-top: 100px; }
    .ng-listing__content { padding: 24px 18px 6px; }
    body h1.ng-listing__title { font-size: 22px !important; }
    .ng-specs { grid-template-columns: repeat(2, 1fr); }
    .ng-listing__btns { grid-template-columns: 1fr; }
}
/* inner pages have a sticky (not floating) header, so the panel needs less space above it */
.ng-listing { padding-top: 48px; }
/* description lines follow their own language direction (Arabic = right-to-left, aligned right) */
.ng-listing__desc p { margin: 0 0 12px; text-align: start; unicode-bidi: plaintext; }
.ng-listing__desc p[dir="auto"]:lang(ar), .ng-listing__desc p:dir(rtl) { text-align: right; font-size: 15px; line-height: 1.9; }

/* ---- Arabic text: IBM Plex Sans Arabic (Manrope has no Arabic letters) ---- */
:root { --ng-arabic: "IBM Plex Sans Arabic"; }
/* not applied to span/a/i, so icon fonts (FontAwesome, theme icons) keep their own font; those inherit from body */
body, h1, h2, h3, h4, h5, h6, p, input, textarea, button, select { font-family: "Manrope", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif !important; }
.ng-listing__desc p:dir(rtl) { font-size: 15.5px; line-height: 2; font-weight: 400; }

/* ---- Testimonials (NextGen style, no client photos) ---- */
.ng-eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sp-accent) !important; }
.ng-testimonials__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3); gap: 30px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px;
}
.ng-testimonials__track::-webkit-scrollbar { display: none; }
.ng-quote { scroll-snap-align: start; margin: 0; padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 22px; min-height: 300px; }
.ng-quote__mark { color: var(--sp-accent); opacity: .9; flex-shrink: 0; position: relative; z-index: 2; }
.ng-quote blockquote { margin: 0; flex: 1; position: relative; z-index: 2; font-size: 17px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,.9) !important; border: 0; padding: 0; background: none; text-align: start; }
.ng-quote figcaption { position: relative; z-index: 2; padding-top: 20px; border-top: 1px solid var(--ng-border); display: flex; flex-direction: column; gap: 4px; }
.ng-quote figcaption strong { font-size: 16px; font-weight: 700; color: #fff; }
.ng-quote figcaption small { font-size: 13px; color: var(--sp-muted) !important; }
.ng-testimonials__track > :nth-child(2)::after { animation-delay: -1.8s; }
.ng-testimonials__track > :nth-child(3)::after { animation-delay: -3.6s; }
.ng-testimonials__track > :nth-child(4)::after { animation-delay: -5.2s; }
.ng-testimonials__nav { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.ng-round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ng-border); background: rgba(255,255,255,.04); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.ng-round:hover { background: var(--ng-grad-btn); border-color: transparent; transform: translateY(-2px); }
.ng-round svg { color: #fff; }
@media (max-width: 1100px) { .ng-testimonials__track { grid-auto-columns: calc((100% - 30px) / 2); } }
@media (max-width: 700px)  { .ng-testimonials__track { grid-auto-columns: 88%; gap: 16px; } .ng-quote { min-height: 0; padding: 26px 22px; } }

/* ---- About block (no image/video panel) ---- */
.ng-about { padding: 90px 0 60px; }
.ng-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.ng-about__text { margin: 0; }
.ng-about__link { margin-top: 28px; }
@media (max-width: 860px) { .ng-about__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Search bar with the Reference field: 5 fields + button ---- */
.sp-search { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
@media (max-width: 1199px) { .sp-search { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .sp-search { grid-template-columns: 1fr; } }
.ng-search-section { padding: 10px 0 30px; }
.ng-search-section .ng-hero__search { margin-top: 0; }
.ng-search-section__title { font-size: 22px !important; font-weight: 700 !important; margin: 0 0 18px !important; }

/* ---- Get in touch (contact form) ---- */
.ng-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.ng-contact__list { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ng-contact__list li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #fff; }
.ng-contact__list a { color: #fff !important; text-decoration: none; }
.ng-contact__list a:hover { color: var(--sp-accent) !important; }
.ng-contact__icon { width: 42px; height: 42px; border-radius: 50%; background: #092349; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ng-contact__icon svg { color: #fff; }
.ng-contact__form { padding: 34px 32px; }
.ng-contact__form form { position: relative; z-index: 2; }
.ng-contact__form label, .ng-contact__form .form-label, .ng-contact__form .control-label { color: var(--sp-muted) !important; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.ng-contact__form .form-control:not([type="checkbox"]):not([type="radio"]), .ng-contact__form input:not([type="checkbox"]):not([type="radio"]), .ng-contact__form textarea, .ng-contact__form select { background: rgba(255,255,255,.05) !important; border: 1px solid var(--ng-border) !important; color: #fff !important; border-radius: 8px !important; padding: 13px 14px !important; }
.ng-contact__form textarea { min-height: 130px; }
.ng-contact__form button[type="submit"], .ng-contact__form .tf-btn, .ng-contact__form .btn-primary { background: var(--ng-grad-btn) !important; border: 0 !important; border-radius: 8px !important; color: #fff !important; padding: 15px 30px !important; font-weight: 600; width: 100%; }
.ng-contact__form .text-danger, .ng-contact__form .invalid-feedback { color: #FF7A7A !important; }
.ng-contact__form .alert, .ng-contact__form .contact-message { border-radius: 8px; }
@media (max-width: 960px) { .ng-contact__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---- About: photo row ---- */
.ng-about__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-top: 54px; height: 440px; }
.ng-about__photos--1 { grid-template-columns: 1fr; }
.ng-about__photos--2 { grid-template-columns: 2fr 1fr; }
.ng-about__photo { border-radius: 12px; overflow: hidden; border: 1px solid var(--ng-border); }
.ng-about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.ng-about__photo:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .ng-about__photos { grid-template-columns: 1fr 1fr; height: auto; } .ng-about__photo { aspect-ratio: 4 / 5; } .ng-about__photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }

/* contact form: real checkbox for "I agree to the Terms and Privacy Policy" */
.ng-contact__form input[type="checkbox"], .ng-contact__form .form-check-input {
    -webkit-appearance: auto !important; appearance: auto !important;
    width: 18px !important; height: 18px !important; padding: 0 !important; margin: 2px 10px 0 0 !important;
    background: transparent !important; border: 0 !important; accent-color: #0399D7; cursor: pointer; flex-shrink: 0;
}
.ng-contact__form .form-check { display: flex; align-items: flex-start; padding-left: 0; gap: 0; }
.ng-contact__form .form-check-label { cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; font-weight: 400 !important; color: rgba(255,255,255,.8) !important; }
.ng-contact__form .form-check-label a { color: var(--sp-accent) !important; }

/* ---- Search fields: dark at EVERY width (the base theme turns them into white boxes on phones,
        which made the white typed text invisible) ---- */
.sp-search .sp-search__field,
.sp-search__advanced-panel .sp-search__field { background: transparent !important; }
@media (max-width: 1199px) {
    .sp-search .sp-search__field,
    .sp-search__advanced-panel .sp-search__field { background: rgba(255,255,255,.03) !important; border-color: var(--ng-border) !important; }
}
.sp-search .sp-search__field input,
.sp-search .sp-search__field select,
.sp-search .ts-control, .sp-search .ts-control input { color: #fff !important; -webkit-text-fill-color: #fff; caret-color: #fff; }
.sp-search .sp-search__field input::placeholder, .sp-search .ts-control input::placeholder { color: rgba(255,255,255,.5) !important; -webkit-text-fill-color: rgba(255,255,255,.5); }
/* mobile "Filter Properties" toggle + the collapsed card */
.sp-hero__filters-toggle, .sp-filters-toggle { background: var(--ng-grad-btn) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; }
.sp-hero__filters-toggle span, .sp-hero__filters-toggle svg { color: #fff !important; }
.sp-hero__search-card, .sp-properties-filter__card { background: rgba(12,16,22,.92) !important; }
@media (max-width: 1199px) { button.sp-search__btn { width: auto !important; justify-self: stretch; margin: 10px !important; box-sizing: border-box; } }

/* ---- Hero rotating word (Home → Office → Shop …): flips up, blue gradient text ---- */
.ng-rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.ng-rotator__word {
    grid-area: 1 / 1; white-space: nowrap;
    background: linear-gradient(108deg, #5EC8F5 0%, #0399D7 60%, #2E6FD0 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.ng-rotator__word.is-out { animation: ng-word-out .6s cubic-bezier(.6,0,.4,1) forwards; }
.ng-rotator__word.is-in  { animation: ng-word-in  .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ng-word-out { to { transform: translateY(-100%) rotateX(70deg); opacity: 0; } }
@keyframes ng-word-in  { from { transform: translateY(100%) rotateX(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* slightly smaller headline so most words keep "in Lebanon" on the same line */
.ng-hero h1.ng-hero__title, h1.ng-hero__title { font-size: clamp(38px, 4.4vw, 62px) !important; }

/* "View map" link under the office address (Theme Options → Google Maps link) */
.ng-map-link { display: inline-block; margin-top: 4px; font-size: .9em; color: var(--sp-accent) !important; text-decoration: underline; text-underline-offset: 3px; }
.ng-map-link { white-space: nowrap; margin-top: 6px; }
