/* ===== Quid & Stones — brochure brand + Serhant-inspired polish ===== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --qs-navy: #003060;
  --qs-navy-deep: #001f40;
  --qs-navy-mid: #0a4570;
  --qs-gold: #f8a818;
  --qs-gold-deep: #d48c0a;
  --qs-ink: #0f1419;
  --qs-ink-soft: #3d4a57;
  --qs-muted: #6b7a8a;
  --qs-line: #e2e5e7;
  --qs-sand: #f4f1eb;
  --qs-cream: #fbfaf7;
  --qs-white: #ffffff;
  --qs-max: 1200px;
  --qs-font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --qs-display: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --e-global-color-lprimary1: #003060 !important;
  --e-global-color-lprimary2: #f8a818 !important;
  --e-global-color-lcolor1: #003060 !important;
  --e-global-color-e582d85: #003060 !important;
}

html { scroll-behavior: smooth; }
body.qs-brand {
  font-family: var(--qs-font) !important;
  color: var(--qs-ink);
  -webkit-font-smoothing: antialiased;
  background: var(--qs-cream);
}
body.qs-brand h1, body.qs-brand h2, body.qs-brand h3, body.qs-brand h4,
body.qs-brand .qs-display,
body.qs-brand .elementor-heading-title {
  font-family: var(--qs-display) !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.qs-container { width: min(var(--qs-max), calc(100% - 2.75rem)); margin-inline: auto; }

.qs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; font-family: var(--qs-font); font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer; transition: .2s ease;
}
.qs-btn-gold { background: var(--qs-gold); color: var(--qs-navy); }
.qs-btn-gold:hover { background: var(--qs-gold-deep); color: #fff; }
.qs-btn-navy { background: var(--qs-navy); color: #fff; }
.qs-btn-navy:hover { background: var(--qs-navy-mid); }
.qs-btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.qs-btn-outline:hover { border-color: var(--qs-gold); color: var(--qs-gold); }
.qs-btn-whatsapp { background: #25D366; color: #fff; }
.qs-btn-whatsapp:hover { filter: brightness(.95); }

/* MyHome / Elementor primary remaps */
.myhome-button--primary-1,
.myhome-button-primary-1-colors-selector,
.elementor-button,
button.myhome-button--primary-1 {
  background-color: var(--qs-navy) !important;
  border-color: var(--qs-navy) !important;
  color: #fff !important;
  border-radius: 2px !important;
}
.myhome-button--secondary,
a.myhome-button--secondary {
  background-color: var(--qs-gold) !important;
  border-color: var(--qs-gold) !important;
  color: var(--qs-navy) !important;
}
.myhome-listing-card__price,
.mh-estate__estate-price {
  color: var(--qs-gold-deep) !important;
}

/* Hide duplicate MyHome/Elementor chrome */
body.qs-brand header.myhome-menu,
body.qs-brand .myhome-menu--simple,
body.qs-brand .myhome-menu--dark,
body.qs-brand .elementor-location-header {
  display: none !important;
}
body.qs-brand .qs-topbar,
body.qs-brand header.qs-nav {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10000 !important;
}

/* ===== Cinematic hero (Serhant-inspired structure, Q&S brand) ===== */
.qs-hero-cinema {
  position: relative; min-height: 88vh;
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background: var(--qs-navy) center/cover no-repeat;
}
.qs-hero-cinema__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,48,96,.45) 0%, rgba(0,32,64,.55) 40%, rgba(0,24,48,.92) 100%);
}
.qs-hero-cinema__inner {
  position: relative; z-index: 1;
  padding: 8rem 0 4.5rem; max-width: 820px;
}
.qs-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--qs-gold);
  margin-bottom: .85rem;
}
.qs-eyebrow--light { color: var(--qs-gold); }
.qs-hero-cinema h1 {
  font-family: var(--qs-display) !important;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 500; line-height: 1.05; margin: 0 0 1.1rem; color: #fff;
}
.qs-hero-cinema .qs-lead {
  font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 36rem;
  margin: 0 0 2rem; line-height: 1.65;
}
.qs-hero-cinema__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.qs-hero-cinema__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.qs-hero-cinema__meta span { position: relative; padding-left: 1rem; }
.qs-hero-cinema__meta span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--qs-gold);
}

/* Elementor home restore — hide demo prime slider; tighten first section as search band */
.qs-elementor-home .elementor-element-a4caed4 { display: none !important; }
.qs-elementor-home .elementor-element-d2c671f {
  background: var(--qs-sand) !important;
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
.qs-elementor-home .elementor-element-d2c671f .elementor-heading-title {
  color: var(--qs-navy) !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
}
.qs-elementor-home .myhome-search-form--wrapper {
  max-width: 1100px; margin-inline: auto;
  background: #fff; padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(0,48,96,.1);
}
.qs-elementor-home .elementor-section,
.qs-elementor-home .e-con {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.qs-elementor-home .elementor-heading-title {
  color: var(--qs-navy) !important;
}

/* Sections helpers */
.qs-section { padding: 5rem 0; }
.qs-section-head { margin-bottom: 2.25rem; }
.qs-section-head--row {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap;
}
.qs-section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem); margin: 0; color: var(--qs-navy);
}
.qs-section-head p { color: var(--qs-muted); max-width: 36rem; margin: .5rem 0 0; }

.qs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.qs-card {
  background: #fff; border: 1px solid var(--qs-line); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qs-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,48,96,.1); }
.qs-card a { color: inherit; display: block; }
.qs-card-media {
  aspect-ratio: 4/3; background: var(--qs-navy) center/cover no-repeat;
}
.qs-card-body { padding: 1.25rem 1.3rem 1.5rem; }
.qs-card-body h3 {
  font-family: var(--qs-font) !important; font-size: 1.02rem; font-weight: 600;
  margin: .35rem 0 0; line-height: 1.35; color: var(--qs-navy);
}
.qs-card-body time { color: var(--qs-muted); font-size: .82rem; }

.qs-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.qs-faq-item {
  border: 1px solid var(--qs-line); background: #fff; padding: 1.1rem 1.25rem; margin-bottom: .75rem;
}
.qs-faq-item summary {
  font-weight: 600; color: var(--qs-navy); cursor: pointer; list-style: none;
  font-family: var(--qs-font);
}
.qs-faq-item summary::-webkit-details-marker { display: none; }
.qs-faq-item p { color: var(--qs-ink-soft); margin: .75rem 0 0; line-height: 1.65; }

.qs-talk {
  position: relative; color: #fff; padding: 5.5rem 0;
  background: var(--qs-navy) center/cover no-repeat;
}
.qs-talk::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,48,96,.94) 0%, rgba(0,48,96,.75) 55%, rgba(0,48,96,.4) 100%);
}
.qs-talk-inner { position: relative; z-index: 1; max-width: 540px; }
.qs-talk h2 {
  font-family: var(--qs-display) !important;
  font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 500;
  color: var(--qs-gold) !important; margin: 0 0 1.25rem;
}
.qs-talk address {
  font-style: normal; line-height: 1.75; color: rgba(255,255,255,.92); margin-bottom: 1.75rem;
}
.qs-talk a { color: #fff; }
.qs-talk a:hover { color: var(--qs-gold); }
.qs-talk-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Footer */
.qs-footer {
  background: var(--qs-navy-deep); color: rgba(255,255,255,.78);
  padding: 4rem 0 2rem; font-family: var(--qs-font);
}
.qs-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.qs-footer-brand {
  display: inline-flex; align-items: center; gap: .65rem; color: #fff;
  margin-bottom: 1rem; font-weight: 600;
}
.qs-footer-brand img { height: 40px; width: auto; }
.qs-footer-brand span { font-family: var(--qs-display); font-size: 1.2rem; }
.qs-footer h4 {
  color: #fff; margin: 0 0 1rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--qs-font) !important; font-weight: 700;
}
.qs-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.qs-footer a { color: rgba(255,255,255,.75); }
.qs-footer a:hover { color: var(--qs-gold); }
.qs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem;
}
.qs-footer-gold { color: var(--qs-gold); }

/* Inner pages polish */
body.qs-brand .elementor-top-section:first-of-type .elementor-heading-title,
body.qs-brand .page-header h1 {
  color: #fff !important;
}
body:not(.qs-brochure-home) .elementor-top-section:first-of-type {
  /* leave Elementor; brand vars handle colors */
}
body.qs-brand .wpcf7 input,
body.qs-brand .wpcf7 textarea,
body.qs-brand .wpcf7 select {
  border-radius: 2px !important;
  border-color: var(--qs-line) !important;
}
body.qs-brand .wpcf7 input[type="submit"] {
  background: var(--qs-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 2px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .9rem 1.5rem !important;
}

/* Listing cards spacing */
body.qs-brand .myhome-listing-card,
body.qs-brand .mh-estate-vertical {
  border-radius: 2px !important;
  overflow: hidden;
  border: 1px solid var(--qs-line);
}

@media (max-width: 960px) {
  .qs-grid-3, .qs-split, .qs-footer-grid { grid-template-columns: 1fr 1fr; }
  .qs-hero-cinema { min-height: 78vh; }
  .qs-hero-cinema__inner { padding: 5.5rem 0 3rem; }
}
@media (max-width: 640px) {
  .qs-grid-3, .qs-split, .qs-footer-grid { grid-template-columns: 1fr; }
  .qs-hero-cinema { min-height: 85vh; }
  .qs-wa-float { right: .85rem; bottom: .85rem; }
}

/* Hide Elementor demo prime slider on home */
body.qs-serhant .elementor-element-a4caed4,
body.qs-brochure-home .elementor-widget-prime-slider-isolate {
  display: none !important;
}

/* Single listing polish */
body.single-myhome_listing .myhome-listing-single,
body.single-estate .mh-estate {
  max-width: 1200px;
}
body.qs-brand .myhome-gallery,
body.qs-brand .swiper {
  border-radius: 2px;
  overflow: hidden;
}

/* ===== Reference-aligned buttons (gold / ghost / sizes) ===== */
body.qs-brand .qs-btn,
body.qs-brand a.qs-btn,
body.qs-brand .elementor-button,
body.qs-brand .myhome-button,
body.qs-brand .myhome-button--primary-1,
body.qs-brand .myhome-search-form__button,
body.qs-brand input.wpcf7-submit,
body.qs-brand .wpcf7 input[type="submit"] {
  min-height: 44px !important;
  height: auto !important;
  padding: 0 18px !important;
  border-radius: 2px !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
body.qs-brand .qs-btn-gold,
body.qs-brand .elementor-button[style*="f8a818"],
body.qs-brand .myhome-button--secondary {
  background: #f8a818 !important;
  border: 1px solid #f8a818 !important;
  color: #000 !important;
  box-shadow: 0 8px 20px rgba(248,168,24,.28);
}
body.qs-brand .qs-btn-gold:hover,
body.qs-brand .myhome-button--secondary:hover {
  background: #003060 !important;
  border-color: #003060 !important;
  color: #fff !important;
}
body.qs-brand .qs-btn-outline {
  min-height: 44px !important;
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.65) !important;
  color: #fff !important;
}
body.qs-brand .qs-btn-navy,
body.qs-brand .myhome-button--primary-1,
body.qs-brand .elementor-button {
  background: #003060 !important;
  border: 1px solid #003060 !important;
  color: #fff !important;
}
body.qs-brand .qs-btn-whatsapp {
  background: #25D366 !important;
  border: 1px solid #25D366 !important;
  color: #fff !important;
}

/* Hero CTAs stack on mobile */
.qs-hero-cinema__actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.qs-hero-cinema__actions .qs-btn {
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: .82rem !important;
}

/* ===== Fit-to-screen root causes (v2.2.2) =====
   MyHome/runtime leaves body as display:flex;flex-direction:row, so
   qs-topbar + qs-nav + Elementor + qs-footer laid out SIDE BY SIDE
   (footer left ~750–5400px). Force column stack + full width.
   Also clip swiper slides and kill absurd Elementor fixed widths. */
html {
  max-width: 100%;
  overflow-x: clip;
}
body.qs-brand,
body.qs-brand.elementor-page,
body.qs-brand.elementor-default {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip;
  box-sizing: border-box;
}
/* Direct body children must span the viewport (not shrink-wrap in a row) */
body.qs-brand > .qs-topbar,
body.qs-brand > .qs-nav,
body.qs-brand > #qs-nav,
body.qs-brand > .qs-mob-overlay,
body.qs-brand > .qs-footer,
body.qs-brand > .elementor,
body.qs-brand > .qs-elementor-home,
body.qs-brand > main,
body.qs-brand > #page,
body.qs-brand > #wrapper,
body.qs-brand > .site,
body.qs-brand > div:not(.myhome-compare-preview-wrapper):not(#wpadminbar):not(.qs-wa-float) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}
body.qs-brand > .myhome-compare-preview-wrapper,
body.qs-brand > #wpadminbar {
  width: auto !important;
  max-width: none;
}
body.qs-brand > .qs-wa-float,
a.qs-wa-float {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  min-width: 56px !important;
  right: 12px !important;
  bottom: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden;
}
.qs-topbar,
.qs-nav,
.qs-footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.qs-container,
.qs-nav > .qs-container,
.qs-topbar .qs-container,
.qs-footer .qs-container {
  width: min(var(--qs-max), calc(100% - 2rem)) !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
/* Elementor / MyHome width containment */
body.qs-brand .elementor,
body.qs-brand .elementor-section,
body.qs-brand .elementor-top-section,
body.qs-brand .e-con,
body.qs-brand .elementor-container,
body.qs-brand .elementor-row,
body.qs-brand .elementor-widget-wrap,
body.qs-brand .elementor-column,
body.qs-brand .myhome-app,
body.qs-brand .mh-layout,
body.qs-brand .mh-layout__content {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
body.qs-brand .elementor,
body.qs-brand .elementor-section.elementor-top-section,
body.qs-brand .elementor-section.elementor-inner-section {
  width: 100% !important;
}
body.qs-brand img,
body.qs-brand video,
body.qs-brand iframe,
body.qs-brand table {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}
/* Header logo — never use height:auto blow-up */
body.qs-brand header.qs-nav .qs-brand img,
body.qs-brand .qs-nav .qs-brand img,
header.qs-nav a.qs-brand img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: 64px !important;
  object-fit: contain !important;
}
@media (max-width: 960px) {
  body.qs-brand header.qs-nav .qs-brand img,
  body.qs-brand .qs-nav .qs-brand img,
  header.qs-nav a.qs-brand img {
    height: 44px !important;
    max-height: 48px !important;
    max-width: 52px !important;
  }
  body.qs-brand .qs-nav > .qs-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: .5rem !important;
    min-height: 56px;
    padding: .55rem 0 !important;
  }
  body.qs-brand a.qs-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px);
    gap: .4rem !important;
  }
  body.qs-brand .qs-nav-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  body.qs-brand a.qs-brand > span { display: none !important; }
}

body.qs-brand iframe {
  height: auto;
}
/* Swipers: keep slides off the document scroll width */
body.qs-brand .swiper,
body.qs-brand .swiper-container,
body.qs-brand .elementor-swiper,
body.qs-brand .elementor-main-swiper,
body.qs-brand .myhome-swiper,
body.qs-brand .myhome-swiper-wrapper,
body.qs-brand [class*="swiper"] {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
body.qs-brand .swiper,
body.qs-brand .swiper-container,
body.qs-brand .elementor-swiper,
body.qs-brand .elementor-main-swiper,
body.qs-brand .myhome-swiper {
  overflow: hidden !important;
}
body.qs-brand .swiper-wrapper,
body.qs-brand .myhome-swiper-wrapper {
  /* allow transform track, but parent clips */
  box-sizing: content-box;
}
/* Compare bar must not invent a >viewport width */
body.qs-brand .myhome-compare-preview-wrapper,
body.qs-brand .myhome-compare-preview-wrapper__container {
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box;
}
body.qs-brand .myhome-compare-preview {
  max-width: min(670px, 100vw) !important;
}
/* Prime Slider / BDT 100vw offcanvas — avoid scrollbar-fed overflow */
body.qs-brand .bdt-offcanvas-overlay {
  width: 100% !important;
  max-width: 100% !important;
}

/* MyHome search usable on mobile */
@media (max-width: 960px) {
  .qs-hero-cinema {
    min-height: 78vh;
    align-items: end;
  }
  .qs-hero-cinema__inner {
    padding: 5rem 0 2.5rem;
    max-width: 100%;
  }
  .qs-hero-cinema h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem) !important;
  }
  .qs-hero-cinema__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .qs-hero-cinema__actions .qs-btn {
    width: 100%;
    justify-content: center !important;
  }
  .qs-elementor-home .myhome-search-form--wrapper {
    padding: .75rem !important;
    margin: 0 .5rem;
  }
  .qs-elementor-home .myhome-search-form,
  .qs-elementor-home .myhome-search-form__fields {
    display: flex !important;
    flex-direction: column !important;
    gap: .65rem !important;
  }
  .qs-elementor-home .myhome-search-form__button,
  .qs-elementor-home .myhome-button {
    width: 100% !important;
    min-height: 48px !important;
  }
  .qs-grid-3,
  .qs-split,
  .qs-footer-grid,
  .qs-focus-grid {
    grid-template-columns: 1fr !important;
  }
  .qs-section { padding: 3rem 0; }
  .qs-talk { padding: 3.5rem 0; }
  .qs-talk-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .qs-talk-actions .qs-btn { width: 100%; }
  .qs-card-body h3 { font-size: 1rem !important; }
  /* Listing cards */
  body.qs-brand .myhome-listing-card,
  body.qs-brand .mh-estate-vertical__content {
    max-width: 100%;
  }
  /* Forms */
  body.qs-brand .wpcf7 input,
  body.qs-brand .wpcf7 textarea,
  body.qs-brand .wpcf7 select {
    font-size: 16px !important; /* prevent iOS zoom */
    min-height: 44px;
    width: 100% !important;
    max-width: 100%;
  }
  body.qs-brand .wpcf7 input[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
  }
  /* Elementor columns stack */
  body.qs-brand .elementor-column {
    width: 100% !important;
  }
  .qs-wa-float {
    width: 52px; height: 52px;
    right: .75rem; bottom: .75rem;
  }
  .qs-topbar .qs-container > div:first-child {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .qs-container {
    width: calc(100% - 1.5rem) !important;
  }
  .qs-nav > .qs-container {
    width: calc(100% - 1.5rem) !important;
  }
  .qs-hero-cinema__meta {
    gap: .75rem;
    font-size: .65rem;
  }
}


/* Contain carousels / related listings so slides never widen the document */
body.qs-brand .myhome-swiper,
body.qs-brand .swiper,
body.qs-brand .swiper-container,
body.qs-brand .elementor-swiper,
body.qs-brand .elementor-main-swiper,
body.qs-brand .elementor-testimonials-wrapper,
body.qs-brand .elementor-image-carousel-wrapper,
body.qs-brand .myhome-listing-card-row,
body.qs-brand .myhome-listings,
body.qs-brand .myhome-listing-single,
body.qs-brand .myhome-related,
body.qs-brand [class*="myhome-listing"] [class*="swiper"],
body.qs-brand .owl-carousel,
body.qs-brand .slick-list,
body.qs-brand .slick-slider {
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}
body.qs-brand .myhome-swiper-slide,
body.qs-brand .swiper-slide {
  max-width: 100vw;
  box-sizing: border-box;
}
/* Off-canvas MyHome mobile menu must not contribute to scroll width */
body.qs-brand .myhome-menu-mobile,
body.qs-brand .myhome-mobile-menu,
body.qs-brand .myhome-menu-mobile__content,
body.qs-brand aside.myhome-menu-mobile {
  max-width: 100% !important;
}
/* Footer brand / grids never spill */
body.qs-brand .qs-footer,
body.qs-brand .qs-footer-grid,
body.qs-brand .qs-footer-brand {
  max-width: 100% !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.qs-brand .qs-footer-brand img {
  max-width: 48px !important;
  height: auto !important;
}
/* Listing card absolute labels that poke past (right:-20px) */
body.qs-brand .myhome-listing-card {
  overflow: hidden !important;
  max-width: 100% !important;
}


/* Listing carousel + tabs: was expanding page ~57–170px past viewport */
body.qs-brand .myhome-listing-carousel-with-tabs,
body.qs-brand .myhome-listing-carousel-with-tabs__content,
body.qs-brand .myhome-listing-carousel,
body.qs-brand .myhome-listings-carousel,
body.qs-brand .myhome-carousel,
body.qs-brand .myhome-testimonials,
body.qs-brand .myhome-testimonial-card,
body.qs-brand .elementor-widget-myhome_listing_carousel,
body.qs-brand .elementor-widget-wrap {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}
body.qs-brand .myhome-listing-carousel-with-tabs__tabs,
body.qs-brand .myhome-tabs,
body.qs-brand .myhome-tab-v2 {
  max-width: 100%;
  box-sizing: border-box;
}
body.qs-brand .myhome-listing-carousel-with-tabs__tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .35rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
}
body.qs-brand .myhome-listing-carousel-with-tabs__tab,
body.qs-brand .myhome-tab-v2 {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  white-space: nowrap;
}
body.qs-brand .myhome-listing-card,
body.qs-brand .myhome-listing-card__content,
body.qs-brand .myhome-listing-card__bottom,
body.qs-brand .myhome-listing-card-user {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}
/* Wrapper around Elementor home content */
body.qs-brand .qs-elementor-home,
body.qs-brand .elementor {
  overflow-x: clip !important;
  max-width: 100% !important;
}

/* LOGO HARD CAP (2.2.5) — wins over body.qs-brand img height:auto */
header.qs-nav a.qs-brand img,
.qs-nav a.qs-brand > img,
body.qs-brand header.qs-nav a.qs-brand img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: 72px !important;
  object-fit: contain !important;
}
@media (max-width: 960px) {
  header.qs-nav a.qs-brand img,
  .qs-nav a.qs-brand > img,
  body.qs-brand header.qs-nav a.qs-brand img {
    height: 44px !important;
    max-height: 48px !important;
    max-width: 52px !important;
  }
}

/* 2.2.6 burger + CTA + hero clean */
body.qs-brand .qs-nav-toggle > span{display:block!important;width:20px!important;height:2px!important;background:#003060!important;opacity:1}
@media (max-width:960px){ body.qs-brand .qs-nav-cta{display:inline-flex!important;min-height:40px;padding:0 12px;font-size:.7rem} }
@media (max-width:340px){ body.qs-brand .qs-nav-cta{display:none!important} }
.qs-hero-cinema{background-position:center 30%!important}
.qs-hero-cinema__veil{background:linear-gradient(180deg,rgba(0,32,64,.72) 0%,rgba(0,32,64,.78) 45%,rgba(0,24,48,.95) 100%)!important}

/* ===== Premium 2.3.0 — typography, dark mode, lazy reveals ===== */

:root {
  --qs-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --qs-display: "Cormorant Garamond", "Didot", Georgia, serif;
  --qs-bg: var(--qs-cream);
  --qs-surface: #ffffff;
  --qs-text: var(--qs-ink);
  --qs-text-muted: var(--qs-muted);
  --qs-border: var(--qs-line);
  --qs-nav-bg: rgba(251, 250, 247, 0.97);
  --qs-card-bg: #fff;
  --qs-input-bg: #fff;
  --qs-shadow: 0 12px 40px rgba(0, 48, 96, 0.08);
}

html[data-qs-theme="dark"] {
  color-scheme: dark;
  --qs-navy: #7eb6e8;
  --qs-navy-deep: #060e1a;
  --qs-navy-mid: #3d7ab0;
  --qs-gold: #f0b43a;
  --qs-gold-deep: #d49a1a;
  --qs-ink: #e8eef5;
  --qs-ink-soft: #b8c4d4;
  --qs-muted: #8a9bb0;
  --qs-line: rgba(255, 255, 255, 0.1);
  --qs-sand: #121c2c;
  --qs-cream: #0a1628;
  --qs-white: #122033;
  --qs-bg: #0a1628;
  --qs-surface: #122033;
  --qs-text: #e8eef5;
  --qs-text-muted: #8a9bb0;
  --qs-border: rgba(255, 255, 255, 0.1);
  --qs-nav-bg: rgba(10, 22, 40, 0.94);
  --qs-card-bg: #122033;
  --qs-input-bg: #0e1a2c;
  --qs-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --e-global-color-lprimary1: #7eb6e8 !important;
  --e-global-color-lprimary2: #f0b43a !important;
  --e-global-color-lcolor1: #e8eef5 !important;
  --e-global-color-e582d85: #7eb6e8 !important;
}

body.qs-brand {
  background: var(--qs-bg) !important;
  color: var(--qs-text) !important;
  font-family: var(--qs-font) !important;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
}
body.qs-brand h1, body.qs-brand h2, body.qs-brand h3, body.qs-brand h4,
body.qs-brand .qs-display, body.qs-brand .elementor-heading-title {
  font-family: var(--qs-display) !important;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
body.qs-brand h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 500; }
body.qs-brand h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); font-weight: 500; }
body.qs-brand h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }

/* Dark surfaces */
html[data-qs-theme="dark"] body.qs-brand .qs-nav {
  background: var(--qs-nav-bg) !important;
  border-bottom-color: var(--qs-border);
}
html[data-qs-theme="dark"] body.qs-brand .qs-topbar {
  background: #060e1a;
}
html[data-qs-theme="dark"] body.qs-brand .qs-footer {
  background: #060e1a;
}
html[data-qs-theme="dark"] body.qs-brand .qs-card,
html[data-qs-theme="dark"] body.qs-brand .qs-faq-item,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card,
html[data-qs-theme="dark"] body.qs-brand .mh-estate-vertical,
html[data-qs-theme="dark"] body.qs-brand .elementor-widget-wrap {
  background: var(--qs-card-bg) !important;
  border-color: var(--qs-border) !important;
  color: var(--qs-text);
  box-shadow: var(--qs-shadow);
}
html[data-qs-theme="dark"] body.qs-brand .qs-section,
html[data-qs-theme="dark"] body.qs-brand .elementor-section {
  background-color: transparent;
}
html[data-qs-theme="dark"] body.qs-brand a.qs-brand,
html[data-qs-theme="dark"] body.qs-brand .qs-nav-links a,
html[data-qs-theme="dark"] body.qs-brand .qs-section-head h2,
html[data-qs-theme="dark"] body.qs-brand .elementor-heading-title {
  color: var(--qs-text) !important;
}
html[data-qs-theme="dark"] body.qs-brand .qs-nav-links a { color: var(--qs-ink-soft) !important; }
html[data-qs-theme="dark"] body.qs-brand .qs-nav-links a:hover { color: var(--qs-gold) !important; }
html[data-qs-theme="dark"] body.qs-brand input,
html[data-qs-theme="dark"] body.qs-brand textarea,
html[data-qs-theme="dark"] body.qs-brand select,
html[data-qs-theme="dark"] body.qs-brand .wpcf7 input,
html[data-qs-theme="dark"] body.qs-brand .wpcf7 textarea,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form,
html[data-qs-theme="dark"] body.qs-brand .myhome-select,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form--wrapper {
  background: var(--qs-input-bg) !important;
  color: var(--qs-text) !important;
  border-color: var(--qs-border) !important;
}
html[data-qs-theme="dark"] body.qs-brand .qs-btn-outline {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card__name,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card__value,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card-user__name {
  color: var(--qs-text) !important;
}
html[data-qs-theme="dark"] body.qs-brand .qs-theme-toggle,
html[data-qs-theme="dark"] body.qs-brand .qs-nav-toggle {
  border-color: rgba(255,255,255,.25);
  color: #e8eef5;
}
html[data-qs-theme="dark"] body.qs-brand .qs-nav-toggle > span {
  background: #e8eef5 !important;
}
/* Keep hero cinematic dark in both modes */
body.qs-brand .qs-hero-cinema { color: #fff; }
body.qs-brand .qs-hero-cinema h1 { color: #fff !important; }

.qs-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px;
  padding: 0; border: 1px solid var(--qs-border, #d0d5da);
  border-radius: 2px; background: transparent;
  color: var(--qs-navy); cursor: pointer;
}
.qs-theme-toggle .qs-icon-moon { display: none; }
html[data-qs-theme="dark"] .qs-theme-toggle .qs-icon-sun { display: none; }
html[data-qs-theme="dark"] .qs-theme-toggle .qs-icon-moon { display: block; }

/* Lazy image reveal — no layout shift */
img.qs-img-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.01);
  transition: opacity .55s ease, filter .55s ease, transform .55s ease;
}
img.qs-img-reveal.qs-img-loaded {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.qs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.qs-reveal.qs-reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  img.qs-img-reveal, .qs-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Fancier polish */
body.qs-brand .qs-card {
  border-radius: 4px;
  transition: transform .35s ease, box-shadow .35s ease;
}
body.qs-brand .qs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--qs-shadow);
}
body.qs-brand .qs-btn {
  letter-spacing: .1em;
}
body.qs-brand .qs-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

html.qs-reduce-motion img.qs-img-reveal,html.qs-reduce-motion .qs-reveal{opacity:1!important;filter:none!important;transform:none!important}


/* ===== 2.3.1 logo blend + burger above menu + dark search ===== */
body.qs-brand a.qs-brand {
  gap: .55rem !important;
  align-items: center !important;
}
body.qs-brand a.qs-brand img,
body.qs-brand .qs-footer-brand img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
body.qs-brand .qs-footer-brand img {
  width: 40px !important;
  height: 40px !important;
}
body.qs-brand a.qs-brand > span {
  font-family: var(--qs-display) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--qs-navy);
}
html[data-qs-theme="dark"] body.qs-brand a.qs-brand > span {
  color: #f3f6fa !important;
}
html[data-qs-theme="dark"] body.qs-brand .qs-footer-brand span {
  color: #f3f6fa !important;
}
/* Keep burger clickable above full-screen menu */
body.qs-brand .qs-nav-toggle {
  position: relative;
  z-index: 10070 !important;
}
body.qs-menu-open .qs-nav {
  z-index: 10070 !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}
body.qs-menu-open .qs-nav-actions,
body.qs-menu-open .qs-nav-toggle {
  pointer-events: auto;
}
body.qs-menu-open .qs-nav-toggle {
  border-color: rgba(255,255,255,.45) !important;
  background: rgba(0,31,64,.55) !important;
}
body.qs-menu-open .qs-nav-toggle > span {
  background: #fff !important;
}
body.qs-menu-open a.qs-brand,
body.qs-menu-open .qs-theme-toggle,
body.qs-menu-open .qs-nav-cta {
  visibility: hidden;
}

/* MyHome search / filters — full dark mode */
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form--wrapper,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__inner,
html[data-qs-theme="dark"] body.qs-brand .myhome-map-search,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-filters,
html[data-qs-theme="dark"] body.qs-brand .myhome-app {
  background: var(--qs-surface, #122033) !important;
  color: var(--qs-text, #e8eef5) !important;
  border-color: var(--qs-border) !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form input,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form select,
html[data-qs-theme="dark"] body.qs-brand .myhome-select,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__control,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__menu,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__option,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__single-value,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__placeholder,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__input,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__multi-value,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters input,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters select,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters label,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__label,
html[data-qs-theme="dark"] body.qs-brand .myhome-attribute,
html[data-qs-theme="dark"] body.qs-brand .myhome-attribute__value {
  background: var(--qs-input-bg, #0e1a2c) !important;
  color: #e8eef5 !important;
  border-color: rgba(255,255,255,.12) !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-select__placeholder,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__label {
  color: #8a9bb0 !important;
  background: transparent !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form__button,
html[data-qs-theme="dark"] body.qs-brand .myhome-button,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__button {
  background: var(--qs-gold, #f0b43a) !important;
  color: #0a1628 !important;
  border-color: var(--qs-gold, #f0b43a) !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-select__option--is-focused,
html[data-qs-theme="dark"] body.qs-brand .myhome-select__option:hover {
  background: #1a2d48 !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card__content {
  background: #122033 !important;
  color: #e8eef5 !important;
  border-color: rgba(255,255,255,.1) !important;
}

body.qs-menu-open #qs-nav-toggle{z-index:10100!important;pointer-events:auto!important}
body.qs-menu-open #qs-mob-overlay{z-index:10050!important}


/* 2.3.2b — force MyHome listings chrome dark (white wrappers) */
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form--wrapper,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form__fields,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__inner,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__container,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-filters,
html[data-qs-theme="dark"] body.qs-brand .myhome-sidebar,
html[data-qs-theme="dark"] body.qs-brand .myhome-listings,
html[data-qs-theme="dark"] body.qs-brand .myhome-listings__sidebar,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card__content,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card-row,
html[data-qs-theme="dark"] body.qs-brand .elementor-widget-container,
html[data-qs-theme="dark"] body.qs-brand .elementor-section.elementor-section-boxed > .elementor-container {
  background-color: #122033 !important;
  background: #122033 !important;
  color: #e8eef5 !important;
  border-color: rgba(255,255,255,.1) !important;
  box-shadow: none !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form input,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form textarea,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form .myhome-select__control,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters input,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters .myhome-select__control {
  background: #0e1a2c !important;
  color: #e8eef5 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card__name,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card-name-selector,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card__value,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__title,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters label,
html[data-qs-theme="dark"] body.qs-brand h1, 
html[data-qs-theme="dark"] body.qs-brand .elementor-heading-title {
  color: #e8eef5 !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-card {
  background: #15263d !important;
}
body.qs-brand a.qs-brand img {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}


/* 2.3.3 final — target real MyHome listings class names */
html[data-qs-theme="dark"] body.qs-brand .myhome-main-search-form,
html[data-qs-theme="dark"] body.qs-brand .myhome-autocomplete-input,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-sidebar,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-row__inner,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-row__gallery,
html[data-qs-theme="dark"] body.qs-brand .myhome-image-placeholder,
html[data-qs-theme="dark"] body.qs-brand .myhome-compare-button,
html[data-qs-theme="dark"] body.qs-brand .myhome-compare-preview__content,
html[data-qs-theme="dark"] body.qs-brand .elementor-element-1877210 {
  background: #122033 !important;
  background-color: #122033 !important;
  color: #e8eef5 !important;
  border-color: rgba(255,255,255,.1) !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-autocomplete-input input,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-sidebar label,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-sidebar .myhome-filters__label,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-row__inner * {
  color: #e8eef5 !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-row__inner a {
  color: #7eb6e8 !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-autocomplete-input {
  border: 1px solid rgba(255,255,255,.12) !important;
}


/* ===== 2.3.5 watermark-style brand mark ===== */
body.qs-brand a.qs-brand img,
body.qs-brand .qs-footer-brand img {
  opacity: 0.42 !important;
  mix-blend-mode: multiply;
  filter: saturate(0.85) contrast(0.95);
  transition: opacity .25s ease;
}
body.qs-brand a.qs-brand:hover img,
body.qs-brand .qs-footer-brand:hover img {
  opacity: 0.72 !important;
}
html[data-qs-theme="dark"] body.qs-brand a.qs-brand img,
html[data-qs-theme="dark"] body.qs-brand .qs-footer-brand img {
  opacity: 0.48 !important;
  mix-blend-mode: screen;
  filter: saturate(0.9) brightness(1.05);
}
html[data-qs-theme="dark"] body.qs-brand a.qs-brand:hover img,
html[data-qs-theme="dark"] body.qs-brand .qs-footer-brand:hover img {
  opacity: 0.78 !important;
}
/* Wordmark stays solid/readable */
body.qs-brand a.qs-brand > span,
body.qs-brand .qs-footer-brand span {
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}
/* Large faint hero watermark */
.qs-hero-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/logo-header.png") center 42%/min(42vw, 320px) no-repeat;
  opacity: 0.055;
  mix-blend-mode: soft-light;
}
.qs-hero-cinema__inner { position: relative; z-index: 1; }
html[data-qs-theme="dark"] .qs-hero-cinema::after {
  opacity: 0.07;
  mix-blend-mode: soft-light;
}


/* ===== 2.3.6 full seal from user logo — watermark ===== */
body.qs-brand a.qs-brand img.qs-logo,
body.qs-brand .qs-footer-brand img.qs-logo {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0.58 !important;
  mix-blend-mode: normal;
  filter: none;
}
body.qs-brand .qs-logo--dark { display: none !important; }
html[data-qs-theme="dark"] body.qs-brand .qs-logo--light { display: none !important; }
html[data-qs-theme="dark"] body.qs-brand .qs-logo--dark {
  display: inline-block !important;
  opacity: 0.55 !important;
  mix-blend-mode: soft-light;
}
body.qs-brand a.qs-brand:hover img.qs-logo,
body.qs-brand .qs-footer-brand:hover img.qs-logo {
  opacity: 0.7 !important;
}
body.qs-brand .qs-brand-text {
  font-family: var(--qs-display) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
  color: var(--qs-navy);
}
html[data-qs-theme="dark"] body.qs-brand .qs-brand-text { color: #f3f6fa !important; }
@media (max-width: 520px) {
  body.qs-brand .qs-brand-text { display: none !important; }
  body.qs-brand a.qs-brand img.qs-logo {
    width: 56px !important; height: 56px !important;
  }
}
/* Large faint full-seal watermark in hero */
.qs-hero-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("logo-seal-white.png") center 40% / min(48vw, 380px) no-repeat;
  opacity: 0.08;
  mix-blend-mode: soft-light;
}
.qs-hero-cinema__veil { z-index: 0; }
.qs-hero-cinema__inner { position: relative; z-index: 1; }
html[data-qs-theme="dark"] .qs-hero-cinema::after { opacity: 0.09; }

/* ===== 2.4.0 — featured cascade, recent, Instagram, trust, 404 ===== */
.qs-featured-cascade { padding-top: 3.5rem; }
.qs-cascade {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.qs-cascade .qs-cascade-item {
  grid-column: span 4;
  margin: 0;
}
.qs-cascade .qs-cascade-item--1 { margin-top: 0; }
.qs-cascade .qs-cascade-item--2 { margin-top: 1.75rem; }
.qs-cascade .qs-cascade-item--3 { margin-top: 0.85rem; }
.qs-cascade .qs-cascade-item:nth-child(1) { grid-column: span 5; }
.qs-cascade .qs-cascade-item:nth-child(2) { grid-column: span 4; }
.qs-cascade .qs-cascade-item:nth-child(3) { grid-column: span 3; }
.qs-cascade .qs-cascade-item:nth-child(4) { grid-column: span 3; }
.qs-cascade .qs-cascade-item:nth-child(5) { grid-column: span 5; }
.qs-cascade .qs-cascade-item:nth-child(6) { grid-column: span 4; }
.qs-cascade .qs-cascade-item:nth-child(1) .qs-card-media,
.qs-cascade .qs-cascade-item:nth-child(5) .qs-card-media { padding-top: 72%; }
.qs-cascade .qs-cascade-item:nth-child(3) .qs-card-media,
.qs-cascade .qs-cascade-item:nth-child(4) .qs-card-media { padding-top: 110%; }
.qs-listing-card .qs-card-price {
  font-family: var(--qs-font);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--qs-gold-deep, #d48c0a);
  margin-bottom: .35rem;
}
.qs-listing-card .qs-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--qs-muted);
}
.qs-card-loc::before { content: "📍 "; font-size: .75em; }
html[data-qs-theme="dark"] .qs-listing-card .qs-card-price { color: var(--qs-gold); }
html[data-qs-theme="dark"] .qs-listing-card .qs-card-meta { color: #9aabbd; }

.qs-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.qs-ig-card {
  display: block;
  border-radius: var(--qs-radius, 4px);
  overflow: hidden;
  background: var(--qs-card-bg, #fff);
  border: 1px solid var(--qs-line, #e2e5e7);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.qs-ig-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,48,96,.12); }
.qs-ig-media {
  background-size: cover;
  background-position: center;
  padding-top: 100%;
}
.qs-ig-caption {
  padding: .75rem .9rem;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--qs-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-qs-theme="dark"] .qs-ig-card {
  background: #122033;
  border-color: rgba(255,255,255,.1);
}
html[data-qs-theme="dark"] .qs-ig-caption { color: #c5d0dc; }

.qs-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.qs-trust-item {
  background: var(--qs-sand, #f4f1eb);
  border: 1px solid var(--qs-line);
  border-radius: var(--qs-radius);
  padding: 1.35rem 1.25rem;
}
.qs-trust-label {
  font-family: var(--qs-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--qs-navy);
  margin-bottom: .45rem;
}
.qs-trust-item p { margin: 0; font-size: .92rem; color: var(--qs-ink-soft); line-height: 1.5; }
.qs-trust-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
html[data-qs-theme="dark"] .qs-trust-item {
  background: #122033;
  border-color: rgba(255,255,255,.1);
}
html[data-qs-theme="dark"] .qs-trust-label { color: var(--qs-gold); }
html[data-qs-theme="dark"] .qs-trust-item p { color: #c5d0dc; }

.qs-footer-cta-row { margin-top: 1rem; }
.qs-404 {
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: var(--qs-cream);
}
.qs-404-inner { max-width: 640px; }
.qs-404 h1 {
  font-family: var(--qs-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--qs-navy);
  margin: .25rem 0 1rem;
}
.qs-404-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
html[data-qs-theme="dark"] .qs-404 { background: #0a1628; }
html[data-qs-theme="dark"] .qs-404 h1 { color: #f3f6fa; }

/* Consistent navy button */
.qs-btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  background: var(--qs-navy);
  color: #fff !important;
  border: 1px solid var(--qs-navy);
  border-radius: 2px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.qs-btn-navy:hover { background: var(--qs-navy-deep, #001f40); border-color: var(--qs-navy-deep); color: #fff !important; }

/* Dark mode — filter label contrast (was too muted on dark panels) */
html[data-qs-theme="dark"] body.qs-brand .myhome-filters label,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__label,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-sidebar label,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-sidebar .myhome-filters__label,
html[data-qs-theme="dark"] body.qs-brand .myhome-attribute__name,
html[data-qs-theme="dark"] body.qs-brand .myhome-filters__title,
html[data-qs-theme="dark"] body.qs-brand .myhome-checkbox-label,
html[data-qs-theme="dark"] body.qs-brand .myhome-search-form label {
  color: #d5dee8 !important;
  opacity: 1 !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-select__placeholder {
  color: #a8b7c8 !important;
}

@media (max-width: 960px) {
  .qs-cascade { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .qs-cascade .qs-cascade-item,
  .qs-cascade .qs-cascade-item:nth-child(n) {
    grid-column: span 1;
    margin-top: 0 !important;
  }
  .qs-cascade .qs-cascade-item:nth-child(odd) { margin-top: 0; }
  .qs-cascade .qs-cascade-item:nth-child(even) { margin-top: 1.25rem; }
  .qs-cascade .qs-cascade-item .qs-card-media { padding-top: 72% !important; }
  .qs-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-ig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .qs-cascade { grid-template-columns: 1fr; }
  .qs-cascade .qs-cascade-item:nth-child(even) { margin-top: 0 !important; }
  .qs-trust-grid { grid-template-columns: 1fr; }
  .qs-ig-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .qs-hero-cinema__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
  .qs-hero-cinema__actions .qs-btn { flex: 1 1 auto; min-width: 42%; }
}

/* ===== 2.4.3 — Premium Properties Selection (home carousel) ===== */
body.qs-brand .elementor-element-936e749 .myhome-listing-carousel-with-tabs,
body.qs-brand .myhome-listing-carousel-with-tabs {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
body.qs-brand .myhome-listing-carousel-with-tabs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1.25rem;
}
body.qs-brand .myhome-listing-carousel-with-tabs__tabs.myhome-tabs,
body.qs-brand .myhome-listing-carousel-with-tabs__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
body.qs-brand .myhome-listing-carousel-with-tabs__tab,
body.qs-brand .myhome-tab-v2 {
  border-radius: 2px !important;
  border: 1px solid var(--qs-line, #e2e5e7) !important;
  padding: .55rem 1rem !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #fff !important;
  color: var(--qs-navy) !important;
}
body.qs-brand .myhome-listing-carousel-with-tabs__tab.is-active,
body.qs-brand .myhome-tab-v2.is-active,
body.qs-brand .myhome-listing-carousel-with-tabs__tab.myhome-tab-v2--active {
  background: var(--qs-navy) !important;
  border-color: var(--qs-navy) !important;
  color: #fff !important;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-swiper-container {
  padding-bottom: 2.5rem;
  overflow: hidden;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card,
body.qs-brand .elementor-element-936e749 .myhome-listing-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  background: #fff !important;
  border: 1px solid rgba(0,48,96,.08) !important;
  border-radius: 4px !important;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,48,96,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,48,96,.12);
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__gallery,
body.qs-brand .elementor-element-936e749 .myhome-listing-card__gallery {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #1a2a3f;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__gallery a,
body.qs-brand .elementor-element-936e749 .myhome-listing-card__gallery a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__gallery img,
body.qs-brand .elementor-element-936e749 .myhome-listing-card__gallery img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  max-width: none !important;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__content,
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__details {
  padding: 1rem 1.1rem 1.2rem !important;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__price,
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__value {
  order: -1;
  color: var(--qs-gold-deep, #d48c0a) !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  letter-spacing: .02em;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__name,
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card-name-selector {
  font-family: var(--qs-display), Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--qs-navy) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-box-arrows,
body.qs-brand .myhome-listing-carousel-with-tabs__nav {
  gap: .5rem;
}
body.qs-brand .myhome-listing-carousel-with-tabs .myhome-box-arrow {
  width: 42px !important;
  height: 42px !important;
  border-radius: 2px !important;
  border: 1px solid var(--qs-line) !important;
  background: #fff !important;
  color: var(--qs-navy) !important;
}
body.qs-brand .myhome-listing-carousel-with-tabs__pagination .swiper-pagination-bullet-active {
  background: var(--qs-gold) !important;
}
/* Force balanced slides: 1 / 2 / 3 via CSS where Swiper allows width */
@media (min-width: 768px) {
  body.qs-brand .elementor-element-936e749 .myhome-swiper-slide {
    width: calc((100% - 24px) / 2) !important;
  }
}
@media (min-width: 1024px) {
  body.qs-brand .elementor-element-936e749 .myhome-swiper-slide {
    width: calc((100% - 48px) / 3) !important;
  }
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card {
  background: #122033 !important;
  border-color: rgba(255,255,255,.1) !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card__name,
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-carousel-with-tabs .myhome-listing-card-name-selector {
  color: #f3f6fa !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-carousel-with-tabs__tab,
html[data-qs-theme="dark"] body.qs-brand .myhome-tab-v2 {
  background: #0e1a2c !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #e8eef5 !important;
}
html[data-qs-theme="dark"] body.qs-brand .myhome-listing-carousel-with-tabs__tab.is-active,
html[data-qs-theme="dark"] body.qs-brand .myhome-tab-v2.is-active {
  background: var(--qs-gold) !important;
  border-color: var(--qs-gold) !important;
  color: #0a1628 !important;
}

/* ===== 2.4.5 — replace Elementor premium carousel with QS grid ===== */
body.qs-brand .elementor-element-936e749,
body.qs-brand .elementor-element-f23aa5a,
body.qs-brand .elementor-element-27a93bb {
  display: none !important;
}
/* If parent section only held premium widgets, tighten empty gap */
body.qs-brand .elementor-element-e60ab62 {
  display: none !important;
}

.qs-section-head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.qs-section-head--center .qs-eyebrow { justify-content: center; }
.qs-premium { background: var(--qs-sand, #f4f1eb); }
html[data-qs-theme="dark"] .qs-premium { background: #0d1828; }
.qs-premium-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: 1.25rem 0 1.75rem;
}
.qs-premium-tab {
  min-height: 40px; padding: 0 1.1rem; border-radius: 2px;
  border: 1px solid var(--qs-line, #e2e5e7); background: #fff;
  color: var(--qs-navy); font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.qs-premium-tab.is-active {
  background: var(--qs-navy); border-color: var(--qs-navy); color: #fff;
}
html[data-qs-theme="dark"] .qs-premium-tab {
  background: #122033; border-color: rgba(255,255,255,.12); color: #e8eef5;
}
html[data-qs-theme="dark"] .qs-premium-tab.is-active {
  background: var(--qs-gold); border-color: var(--qs-gold); color: #0a1628;
}
.qs-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.qs-premium-card {
  background: #fff; border: 1px solid rgba(0,48,96,.08); border-radius: 4px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,48,96,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.qs-premium-card.is-hidden { display: none !important; }
.qs-premium-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,48,96,.12); }
.qs-premium-card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.qs-premium-card__media {
  position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background-color: #1a2a3f;
}
.qs-premium-card__badge {
  position: absolute; left: .75rem; top: .75rem;
  background: var(--qs-navy); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 2px;
}
.qs-premium-card__body { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.qs-premium-card__price { color: var(--qs-gold-deep, #d48c0a); font-weight: 700; font-size: .92rem; }
.qs-premium-card__title {
  font-family: var(--qs-display), Georgia, serif; font-size: 1.2rem; font-weight: 600;
  color: var(--qs-navy); line-height: 1.3; margin: 0;
}
.qs-premium-card__meta {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem; color: var(--qs-muted); font-size: .82rem; margin-top: .15rem;
}
.qs-premium-card__cta {
  margin-top: auto; padding-top: .85rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--qs-navy);
}
.qs-premium-more { text-align: center; margin-top: 1.75rem; }
html[data-qs-theme="dark"] .qs-premium-card { background: #122033; border-color: rgba(255,255,255,.1); }
html[data-qs-theme="dark"] .qs-premium-card__title,
html[data-qs-theme="dark"] .qs-premium-card__cta { color: #f3f6fa; }
html[data-qs-theme="dark"] .qs-premium-card__meta { color: #9aabbd; }
html[data-qs-theme="dark"] .qs-premium-card__price { color: var(--qs-gold); }
@media (max-width: 960px) {
  .qs-premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 560px) {
  .qs-premium-grid { grid-template-columns: 1fr; }
}

/* ===== Single listing ===== */
.qs-single-listing{padding:1.5rem 0 3rem}
.qs-sl-crumb{display:flex;flex-wrap:wrap;gap:.4rem;font-size:.82rem;color:var(--qs-muted);margin-bottom:1rem}
.qs-sl-crumb a{color:var(--qs-navy);text-decoration:none}
.qs-sl-grid{display:grid;grid-template-columns:minmax(0,1fr) min(340px,100%);gap:2rem;align-items:start}
.qs-sl-gallery{margin-bottom:1.25rem;width:100%}
.qs-sl-gallery-main{width:100%}
.qs-sl-gallery-main button.qs-sl-gallery-open{display:block!important;width:100%!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;cursor:zoom-in;position:relative;border-radius:4px;overflow:hidden;min-height:220px}
.qs-sl-gallery-main img{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/10;object-fit:cover;display:block!important;margin:0!important}
.qs-sl-gallery-count{position:absolute;right:.75rem;bottom:.75rem;background:rgba(0,48,96,.88);color:#fff;font-size:.75rem;padding:.35rem .65rem;border-radius:2px}
.qs-sl-gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:.5rem}
.qs-sl-gallery-thumbs button{padding:0;border:0;background:transparent;cursor:pointer;border-radius:3px;overflow:hidden}
.qs-sl-gallery-thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.qs-sl-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.75rem;padding:1rem;background:var(--qs-sand);border:1px solid var(--qs-line);border-radius:4px;margin-bottom:1.5rem}
.qs-sl-fact{display:flex;flex-direction:column;gap:.2rem}
.qs-sl-fact-l{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:var(--qs-muted)}
.qs-sl-fact strong{font-size:.95rem;color:var(--qs-navy)}
.qs-sl-title{font-family:var(--qs-display);font-size:clamp(1.6rem,3vw,2.2rem);margin:0 0 .75rem;color:var(--qs-navy)}
.qs-sl-section{margin:1.75rem 0}
.qs-sl-section h2{font-family:var(--qs-display);font-size:1.45rem;color:var(--qs-navy);margin:0 0 .75rem}
.qs-sl-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.4rem .85rem;margin:0;padding:0;list-style:none}
.qs-sl-features li{padding:.4rem .6rem;background:var(--qs-cream);border:1px solid var(--qs-line);border-radius:2px;font-size:.9rem}
.qs-sl-map,.qs-sl-video{position:relative;width:100%;aspect-ratio:16/9;border-radius:4px;overflow:hidden;border:1px solid var(--qs-line)}
.qs-sl-map iframe,.qs-sl-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.qs-sl-map-note{font-size:.85rem;color:var(--qs-muted);margin:.5rem 0 0}
.qs-sl-sticky{position:sticky;top:5.5rem}
.qs-sl-cta-card{background:#fff;border:1px solid var(--qs-line);border-radius:4px;padding:1.25rem;box-shadow:0 12px 40px rgba(0,48,96,.08)}
.qs-sl-cta-card h2{font-family:var(--qs-display);font-size:1.35rem;margin:0 0 .35rem;color:var(--qs-navy)}
.qs-sl-cta-sub{font-size:.9rem;color:var(--qs-muted);margin:0 0 1rem}
.qs-sl-cf7 .wpcf7-form p{margin:.55rem 0}
.qs-sl-cf7 input[type=text],.qs-sl-cf7 input[type=email],.qs-sl-cf7 input[type=tel],.qs-sl-cf7 input[type=url],.qs-sl-cf7 textarea,.qs-sl-cf7 select,
.qs-footer-lead input[type=text],.qs-footer-lead input[type=email],.qs-footer-lead input[type=tel],
.qs-lead-form input[type=text],.qs-lead-form input[type=email],.qs-lead-form input[type=tel]{
  width:100%;max-width:100%;box-sizing:border-box;padding:.65rem .75rem;border:1px solid var(--qs-line);border-radius:2px;font:inherit}
.qs-sl-cf7 input[type=submit],.qs-lead-form input[type=submit],.qs-footer-lead input[type=submit]{
  width:100%;background:var(--qs-gold);color:#000;border:1px solid var(--qs-gold);font-weight:600;padding:.75rem 1rem;cursor:pointer;border-radius:2px;text-transform:uppercase;letter-spacing:.04em;font-size:.78rem}
.qs-sl-quick{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}
.qs-btn-wa{background:#25D366!important;border-color:#25D366!important;color:#fff!important;text-align:center}
.qs-btn-call{background:var(--qs-navy)!important;border-color:var(--qs-navy)!important;color:#fff!important;text-align:center}
.qs-sl-similar{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--qs-line)}
.qs-sl-similar h2{font-family:var(--qs-display);color:var(--qs-navy)}
.qs-cards-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.qs-lightbox{position:fixed;inset:0;z-index:20000;background:rgba(0,20,40,.92);display:flex;align-items:center;justify-content:center;padding:2rem}
.qs-lightbox[hidden]{display:none!important}
.qs-lightbox-img{max-width:min(1100px,92vw);max-height:85vh;object-fit:contain}
.qs-lightbox-close,.qs-lightbox-prev,.qs-lightbox-next{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;font-size:2rem;width:48px;height:48px;cursor:pointer;border-radius:2px}
.qs-lightbox-close{top:1rem;right:1rem}
.qs-lightbox-prev{left:1rem}
.qs-lightbox-next{right:1rem}
.qs-lightbox-cap{position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);color:#fff;font-size:.85rem}

/* ===== Smart search ===== */
.qs-smart-search{padding:1.25rem 0;background:var(--qs-cream);border-bottom:1px solid var(--qs-line)}
.qs-search-bar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;background:#fff;border:1px solid var(--qs-line);border-radius:4px;padding:1rem;box-shadow:0 8px 28px rgba(0,48,96,.06)}
.qs-search-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;flex:1 1 280px}
.qs-search-field{display:flex;flex-direction:column;gap:.25rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--qs-muted);font-weight:600}
.qs-search-field select{font:500 .9rem var(--qs-font);text-transform:none;letter-spacing:0;color:var(--qs-ink);padding:.65rem .7rem;border:1px solid var(--qs-line);border-radius:2px;background:#fff;min-height:44px}
.qs-search-submit{flex:0 0 auto;min-height:44px;white-space:nowrap}
.qs-search-note{font-size:.8rem;color:var(--qs-muted);margin:.65rem 0 0}

/* ===== Areas ===== */
.qs-areas-strip-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.65rem}
.qs-area-chip{display:flex;flex-direction:column;gap:.15rem;padding:.85rem 1rem;border:1px solid var(--qs-line);border-radius:4px;text-decoration:none;background:#fff;color:var(--qs-ink);min-height:72px;transition:border-color .15s,box-shadow .15s}
.qs-area-chip:hover{border-color:var(--qs-gold);box-shadow:0 6px 20px rgba(0,48,96,.08)}
.qs-area-chip strong{color:var(--qs-navy);font-size:.95rem}
.qs-area-chip span{font-size:.75rem;color:var(--qs-muted)}
.qs-area-hero{padding:1.5rem 0 1rem}
.qs-area-city{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:var(--qs-gold-deep);font-weight:600;margin:0 0 .35rem}
.qs-area-hero h1{font-family:var(--qs-display);font-size:clamp(1.8rem,4vw,2.6rem);color:var(--qs-navy);margin:0 0 .75rem}
.qs-area-lead{font-size:1.05rem;color:var(--qs-ink-soft);max-width:48rem;margin:0}
.qs-area-grid{display:grid;grid-template-columns:minmax(0,1fr) min(320px,100%);gap:2rem;align-items:start;margin:1.5rem 0}
.qs-price-note{color:var(--qs-muted);font-size:.9rem}
.qs-area-listings{margin:2.5rem 0 1rem}
.qs-area-listings h2{font-family:var(--qs-display);color:var(--qs-navy)}
.qs-areas-index{padding:1.5rem 0 3rem}
.qs-areas-city{margin:2rem 0}
.qs-areas-city h2{font-family:var(--qs-display);color:var(--qs-navy);border-bottom:2px solid var(--qs-gold);display:inline-block;padding-bottom:.25rem}
.qs-areas-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin-top:1rem}
.qs-area-card{display:flex;flex-direction:column;gap:.4rem;padding:1.1rem;border:1px solid var(--qs-line);border-radius:4px;text-decoration:none;background:#fff;color:var(--qs-ink);min-height:120px}
.qs-area-card:hover{border-color:var(--qs-navy)}
.qs-area-card strong{color:var(--qs-navy);font-size:1.1rem}

/* ===== Lead band ===== */
.qs-lead-band{background:var(--qs-navy);color:#e8eef5}
.qs-lead-band .qs-eyebrow{color:var(--qs-gold)}
.qs-lead-band h2{color:#fff;font-family:var(--qs-display)}
.qs-lead-band-inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:2rem;align-items:center}
.qs-lead-form{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);padding:1.1rem;border-radius:4px}
.qs-lead-dl{margin-top:1rem}
.qs-footer-lead-h{margin-top:1.25rem}
.qs-footer-lead .wpcf7-form p{margin:.4rem 0}
.qs-footer-guide{font-size:.85rem;margin-top:.5rem}
.qs-footer-guide a{color:var(--qs-gold)}

/* Dark */
html[data-qs-theme="dark"] .qs-sl-facts,
html[data-qs-theme="dark"] .qs-sl-cta-card,
html[data-qs-theme="dark"] .qs-search-bar,
html[data-qs-theme="dark"] .qs-area-chip,
html[data-qs-theme="dark"] .qs-area-card{background:#122338;border-color:rgba(255,255,255,.1);color:#e8eef5}
html[data-qs-theme="dark"] .qs-sl-fact strong,
html[data-qs-theme="dark"] .qs-sl-title,
html[data-qs-theme="dark"] .qs-sl-section h2,
html[data-qs-theme="dark"] .qs-area-hero h1,
html[data-qs-theme="dark"] .qs-area-chip strong,
html[data-qs-theme="dark"] .qs-area-card strong{color:#f0f4f8}
html[data-qs-theme="dark"] .qs-smart-search{background:#0a1628;border-color:rgba(255,255,255,.08)}
html[data-qs-theme="dark"] .qs-search-field select{background:#0a1628;color:#e8eef5;border-color:rgba(255,255,255,.2)}
html[data-qs-theme="dark"] .qs-sl-features li{background:#0a1628;border-color:rgba(255,255,255,.1)}

@media(max-width:960px){
  .qs-sl-grid,.qs-area-grid,.qs-lead-band-inner{grid-template-columns:1fr}
  .qs-sl-sticky{position:static}
  .qs-search-fields{grid-template-columns:1fr 1fr}
  .qs-cards-3{grid-template-columns:1fr}
}
@media(max-width:520px){
  .qs-search-fields{grid-template-columns:1fr}
  .qs-sl-gallery-thumbs{grid-template-columns:repeat(2,1fr)}
  .qs-sl-facts{grid-template-columns:1fr 1fr}
}
