/* ==========================================================================
   Belle Vue Estates — global styles
   Layout rule: flexbox only (maps 1:1 to Elementor flex containers).
   Brand: Blue #0168B3 · Red #EB0303 · White · Grey #EBEBEB · Times New Roman
   ========================================================================== */

:root {
  --blue: #0168B3;
  --blue-deep: #01477A;      /* darker tint of brand blue, for dark sections */
  --blue-night: #012A49;     /* deepest tint, footer / overlays */
  --blue-soft: #E6F0F8;      /* pale tint, light sections */
  --red: #EB0303;
  --red-dark: #C40202;
  --grey: #EBEBEB;
  --paper: #F7F8FA;
  --ink: #1A1A1A;
  --muted: #5C5C5C;
  --white: #FFFFFF;

  --font: "Times New Roman", Times, serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 60px -30px rgba(1, 42, 73, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 12px 18px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -.01em; }
.display { font-size: clamp(3rem, 8vw, 7.4rem); line-height: .95; letter-spacing: -.025em; }
.h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.02em; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.04; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.h4 { font-size: 1.35rem; line-height: 1.2; }
em, .accent { font-style: italic; }
.accent-red { color: var(--red); font-style: italic; }
.accent-blue { color: var(--blue); font-style: italic; }
.on-dark .accent-blue, .page-hero .accent-blue { color: var(--blue); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; color: var(--muted); }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, .82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--blue); }
.eyebrow.red { color: var(--red); }

/* ---------- Layout primitives (flex only) ---------- */
.section { padding: var(--section) 0; position: relative; }
.section.tight { padding: calc(var(--section) * .6) 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; gap: clamp(28px, 4vw, 72px); }
.row.center { align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.row.reverse { flex-direction: row-reverse; }
.col { flex: 1 1 0; min-width: 0; }
.col-40 { flex: 0 0 40%; min-width: 0; }
.col-45 { flex: 0 0 45%; min-width: 0; }
.col-55 { flex: 0 0 55%; min-width: 0; }
.col-60 { flex: 0 0 60%; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.cards { display: flex; flex-wrap: wrap; gap: 28px; }
.cards > * { flex: 1 1 300px; min-width: 0; }
.cards.three > * { flex: 1 1 calc(33.333% - 28px); min-width: 280px; }
.cards.four > * { flex: 1 1 calc(25% - 28px); min-width: 240px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section-head .h2 { max-width: 760px; }
.section-head .lead { max-width: 440px; }
.text-center { text-align: center; }
.centered-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 860px; margin: 0 auto clamp(40px, 5vw, 72px); }
.centered-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

.bg-paper { background: var(--paper); }
.bg-soft { background: var(--blue-soft); }
.bg-blue { background: var(--blue); color: #fff; }
.bg-deep { background: var(--blue-deep); color: #fff; }
.bg-night { background: var(--blue-night); color: #fff; }
.bg-red { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 18px 30px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s;
  line-height: 1; white-space: nowrap;
}
.btn::after { content: "→"; font-size: 1.1em; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(5px); }
.btn.no-arrow::after { display: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--grey); }
.btn-outline { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.on-dark .btn-outline, .btn-outline.light { color: #fff; }
.on-dark .btn-outline:hover, .btn-outline.light:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.text-link { color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; letter-spacing: .04em; }
.text-link:hover { color: var(--red); }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--blue-night); color: rgba(255, 255, 255, .8); font-size: .85rem; letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { text-decoration: none; color: #fff; }
.topbar-links { display: flex; gap: 26px; align-items: center; }
.topbar-award { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.topbar-award span { color: #FFD467; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--blue); color: #fff; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: #fff; text-decoration: none; font-size: 1.02rem; padding: 10px 14px; position: relative; letter-spacing: .02em; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { color: #fff; text-decoration: none; font-size: 1.1rem; letter-spacing: .03em; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-cta .btn { padding: 14px 20px; font-size: .85rem; }
/* Eight menu links: the phone shows as an icon (number kept for screen readers and in the topbar) and links sit closer so everything fits in the 1280px row */
.site-header .wrap { gap: 18px; }
.main-nav { gap: 0; }
.main-nav a { padding: 10px 10px; }
.main-nav a::after { left: 10px; right: 10px; }
.header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--blue-night); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { color: #fff; text-decoration: none; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.25; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); transform: translateY(16px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
.mobile-menu nav a:nth-child(2) { transition-delay: .04s; } .mobile-menu nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu nav a:nth-child(4) { transition-delay: .12s; } .mobile-menu nav a:nth-child(5) { transition-delay: .16s; }
.mobile-menu nav a:nth-child(6) { transition-delay: .2s; } .mobile-menu nav a:nth-child(7) { transition-delay: .24s; }
.mobile-menu nav a:nth-child(8) { transition-delay: .28s; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.mobile-menu-foot a { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--blue-night); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(1, 42, 73, .25) 0%, rgba(1, 42, 73, .45) 45%, rgba(1, 42, 73, .92) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero .h1 { max-width: 980px; }
.page-hero .lead { color: rgba(255, 255, 255, .86); max-width: 680px; margin-top: 26px; }
.page-hero.short { min-height: 52vh; }
.page-hero.plain { min-height: 0; background: var(--blue); }
.page-hero.plain::before { display: none; }
.page-hero.plain .eyebrow { color: #fff; }
.page-hero.plain .eyebrow::before { background: var(--red); }
.page-hero.plain .wrap { padding-top: 110px; padding-bottom: 80px; }
@keyframes heroZoom { to { transform: scale(1); } }
.breadcrumbs { display: flex; gap: 10px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; color: rgba(255, 255, 255, .7); flex-wrap: wrap; }
.breadcrumbs a { color: #fff; text-decoration: none; }

/* ---------- Award strip ---------- */
.award-strip { background: var(--blue-night); color: #fff; }
.award-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.award-strip-item { display: flex; align-items: center; gap: 16px; }
.award-strip-item img { height: 74px; width: auto; }
.award-strip-item strong { display: block; font-weight: 400; font-size: 1.3rem; }
.award-strip-item small { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.rating { display: flex; flex-direction: column; gap: 4px; }
.rating-source { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.rating-value { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; line-height: 1; }
.stars { --pct: 100%; position: relative; display: inline-block; font-size: 1rem; letter-spacing: 3px; line-height: 1; }
.stars::before { content: "★★★★★"; color: rgba(255, 255, 255, .25); }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: #FFC93C; white-space: nowrap; }
.light-stars .stars::before { color: var(--grey); }

/* ---------- Quick search bar ---------- */
.quick-search { position: relative; z-index: 5; margin-top: -64px; }
.quick-search form { display: flex; align-items: stretch; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.qs-field { flex: 1 1 180px; display: flex; flex-direction: column; justify-content: center; padding: 18px 26px; border-right: 1px solid var(--grey); min-width: 0; }
.qs-field label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.qs-field select { font-family: var(--font); font-size: 1.2rem; border: 0; background: transparent; color: var(--ink); padding: 0; appearance: none; cursor: pointer; width: 100%; }
.qs-toggle { display: flex; gap: 6px; }
.qs-toggle label { margin: 0; cursor: pointer; }
.qs-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.qs-toggle span { display: inline-block; padding: 8px 16px; border: 1px solid var(--grey); border-radius: 40px; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); transition: all .25s; }
.qs-toggle input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.qs-toggle input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.quick-search .btn { border-radius: 0; flex: 0 0 auto; padding: 0 40px; min-height: 86px; }

/* ---------- Property cards ---------- */
.property-card { background: #fff; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--grey); transition: transform .5s var(--ease), box-shadow .5s var(--ease); position: relative; text-decoration: none; color: inherit; }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.property-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.property-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.property-card:hover .property-card-media img { transform: scale(1.06); }
.property-status { position: absolute; top: 18px; left: 18px; background: var(--red); color: #fff; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; padding: 8px 12px; border-radius: 2px; }
.property-status.rent { background: var(--blue); }
.property-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-price { font-size: 2rem; line-height: 1; color: var(--blue); }
.property-price small { font-size: .95rem; color: var(--muted); }
.property-title { font-size: 1.25rem; line-height: 1.3; }
.property-title a { text-decoration: none; }
.property-title a::after { content: ""; position: absolute; inset: 0; }
.property-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--grey); color: var(--muted); font-size: .95rem; }
.property-meta span { display: inline-flex; align-items: center; gap: 7px; }
.property-meta svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Media + copy split rows ---------- */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 16 / 10; }
.media-frame.square { aspect-ratio: 1; }
.media-caption { position: absolute; left: 20px; bottom: 20px; background: rgba(1, 42, 73, .82); color: #fff; padding: 10px 16px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; border-radius: 2px; }
.offset-frame { position: relative; }
.offset-frame::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--blue); border-radius: var(--radius); z-index: -1; }
.offset-frame.red::before { border-color: var(--red); }

.feature-row { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--grey); }
.feature-row:first-of-type { border-top: 0; padding-top: 0; }
.feature-num { font-size: 5rem; line-height: .8; color: var(--blue); font-style: italic; opacity: .18; }

/* ---------- Icon boxes ---------- */
.icon-box { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; background: #fff; border-radius: var(--radius); border-top: 3px solid var(--blue); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.icon-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--red); }
.icon-box-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.icon-box-icon svg { width: 26px; height: 26px; }
.icon-box h3 { font-size: 1.5rem; }
.icon-box p { color: var(--muted); }
.on-dark .icon-box { background: rgba(255, 255, 255, .05); border-top-color: rgba(255, 255, 255, .3); }
.on-dark .icon-box .icon-box-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.on-dark .icon-box p { color: rgba(255, 255, 255, .75); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(1, 104, 179, .15); font-size: 1.18rem; line-height: 1.4; }
.checklist li::before { content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 1px; }
.on-dark .checklist li { border-bottom-color: rgba(255, 255, 255, .14); }

/* ---------- Testimonials ---------- */
.testimonials { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; scrollbar-width: thin; }
.testimonial { flex: 0 0 min(420px, 85vw); scroll-snap-align: start; background: #fff; padding: 40px 36px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 22px; position: relative; }
.testimonial::before { content: "“"; position: absolute; top: 6px; right: 26px; font-size: 7rem; line-height: 1; color: var(--blue); opacity: .12; }
.testimonial-text { font-size: 1.25rem; line-height: 1.5; font-style: italic; }
.testimonial-author { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.testimonial-author::before { content: ""; width: 26px; height: 1px; background: var(--red); }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; font-size: 1.3rem; transition: all .25s; }
.carousel-btn:hover { background: var(--blue); color: #fff; }
.ratings-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 46px; padding-top: 34px; border-top: 1px solid rgba(1, 104, 179, .18); align-items: center; }
.ratings-row .rating-source { color: var(--muted); }
.ratings-row .rating-value { color: var(--ink); }

/* ---------- Stat / mission ---------- */
.big-quote { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.2; font-style: italic; }
.mv-card { flex: 1 1 380px; padding: clamp(36px, 4vw, 60px); border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; }
.mv-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.mv-card p { font-size: 1.25rem; line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--blue-night); }
.cta-band-media { position: absolute; inset: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 42, 73, .95) 0%, rgba(1, 42, 73, .6) 60%, rgba(1, 42, 73, .2) 100%); }
.cta-band .wrap { position: relative; z-index: 2; padding-top: clamp(90px, 11vw, 160px); padding-bottom: clamp(90px, 11vw, 160px); }
.cta-band .h1 { max-width: 900px; }

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--grey); }
.accordion details { border-bottom: 1px solid var(--grey); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 1.45rem; line-height: 1.25; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: transform .35s var(--ease), background .3s, color .3s; }
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.accordion summary:hover { color: var(--blue); }
.accordion-body { padding: 0 0 30px; color: #333; max-width: 860px; }
.accordion-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.accordion-body li { margin-bottom: .4em; }
.accordion-body address { font-style: normal; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 860px; overflow-wrap: anywhere; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.4rem; margin: 1.4em 0 .5em; color: var(--blue); }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--blue); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey); vertical-align: top; }
.prose th { background: var(--blue-soft); font-weight: 400; letter-spacing: .06em; }
.prose th, .prose td { overflow-wrap: normal; word-break: normal; }
.legal-dates { padding: 16px 20px; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.cookie-list { display: flex; flex-direction: column; gap: 16px; margin: 26px 0 10px; }
.cookie-item { padding: 24px 26px; border: 1px solid #DDE3EA; border-radius: var(--radius); background: #fff; }
.prose .cookie-item h3 { margin: 0; color: var(--ink); }
.prose .cookie-item p { margin: 0; }
.prose .cookie-item .cookie-where { margin: 4px 0 12px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }

/* ---------- Team: grouped by team; whole card opens a bio pop-up (assets/js/team.js) ---------- */
.team-group + .team-group { margin-top: clamp(56px, 7vw, 90px); }
.team-group-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--grey); }
.team-group-title { margin: 0; }
.team-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.team-card { flex: 0 1 calc(25% - 18px); min-width: 200px; max-width: 240px; }
.team-card--wide { flex-basis: calc(50% - 12px); max-width: 504px; }
.team-card-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; text-align: left; cursor: pointer; font-family: var(--font); color: inherit; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--grey); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.team-card-open:hover, .team-card-open:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card-media { position: relative; width: 100%; aspect-ratio: 940 / 788; overflow: hidden; background: var(--grey); }
.team-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.team-card-open:hover .team-card-media img { transform: scale(1.04); }
.team-card-media--pair { display: flex; gap: 2px; }
.team-card-media--pair img { flex: 1 1 0; min-width: 0; object-position: center 25%; }
.team-card--wide .team-card-media { aspect-ratio: 940 / 394; }
.team-card-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; border-top: 3px solid var(--blue); flex: 1; transition: border-color .3s; }
.team-card-open:hover .team-card-body { border-top-color: var(--red); }
.team-card-name { font-size: 1.3rem; line-height: 1.2; }
.team-card-role { color: var(--muted); font-style: italic; font-size: 1rem; }
.team-card-more { margin-top: 10px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.team-card-more::after { content: " →"; transition: margin .3s var(--ease); }
.team-card-open:hover .team-card-more::after { margin-left: 4px; }
@media (max-width: 1100px) and (min-width: 641px) {
  .team-card { flex-basis: calc(33.333% - 16px); }
  .team-card--wide { flex-basis: calc(66.666% - 8px); }
}
@media (max-width: 640px) {
  .team-grid { gap: 14px; }
  .team-card { flex-basis: calc(50% - 7px); min-width: 0; max-width: none; }
  .team-card--wide { flex-basis: 100%; max-width: none; }
  .team-card-body { padding: 12px 12px 14px; }
  .team-card-name { font-size: 1.05rem; }
  .team-card-role { font-size: .85rem; }
  .team-card-more { font-size: .62rem; letter-spacing: .14em; }
}

/* Bio pop-up */
.team-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(1, 20, 35, .72); opacity: 0; transition: opacity .25s; }
.team-modal[hidden] { display: none; }
.team-modal.is-open { opacity: 1; }
.team-modal-box { position: relative; display: flex; width: min(920px, 100%); max-height: calc(100vh - 48px); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: translateY(16px); transition: transform .35s var(--ease); }
.team-modal.is-open .team-modal-box { transform: none; }
.team-modal-media { flex: 0 0 48%; background: var(--blue-night); display: flex; align-items: center; }
.team-modal-media .team-card-media { aspect-ratio: 940 / 788; height: auto; }
.team-modal--wide .team-modal-media .team-card-media { aspect-ratio: 940 / 600; }
.team-modal-text { flex: 1 1 0; min-width: 0; padding: 40px 40px 36px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.team-modal-team { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.team-modal-name { font-size: 2rem; line-height: 1.1; margin: 4px 0 0; }
.team-modal-role { color: var(--muted); font-style: italic; margin: 0 0 14px; }
.team-modal-bio p { font-size: 1.05rem; line-height: 1.65; }
.team-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .95); color: var(--blue); font-size: 1.7rem; line-height: 1; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.team-modal-close:hover { background: var(--red); color: #fff; }
.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  .team-modal { padding: 12px; align-items: flex-end; }
  .team-modal-box { flex-direction: column; max-height: calc(100vh - 24px); overflow-y: auto; }
  .team-modal-media { flex: 0 0 auto; }
  .team-modal-media .team-card-media { aspect-ratio: 940 / 788; height: auto; }
  .team-modal-text { flex: 0 0 auto; overflow: visible; padding: 22px 20px 24px; }
  .team-modal-name { font-size: 1.5rem; }
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 220px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--font); font-size: 1.1rem; padding: 16px 18px; border: 1px solid #CFD6DE; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 104, 179, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-success { display: none; padding: 26px 28px; background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: var(--radius); font-size: 1.15rem; }
.form.sent .form-success { display: block; }
.form.sent .form-fields { display: none; }
.form-fields { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Contact cards ---------- */
.contact-line { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--grey); }
.contact-line svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--blue); margin-top: 3px; }
.contact-line a { text-decoration: none; color: var(--ink); }
.contact-line a:hover { color: var(--blue); }
.contact-line small { display: block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-line strong { font-weight: 400; font-size: 1.3rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--grey); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Property detail ---------- */
.gallery-main { display: flex; gap: 14px; }
.gallery-main > .media-frame:first-child { flex: 2 1 0; aspect-ratio: 3 / 2; }
.gallery-side { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.gallery-side .media-frame { flex: 1; }
.gallery-main a { display: block; height: 100%; cursor: zoom-in; }
.facts { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.fact { flex: 1 1 120px; padding: 20px; background: var(--paper); border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; }
.fact small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-weight: 400; font-size: 1.7rem; color: var(--blue); line-height: 1; }
.sticky-card { position: sticky; top: 110px; background: var(--blue); color: #fff; padding: 38px 34px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.sticky-card .property-price { color: #fff; font-size: 2.8rem; }
.sticky-card .btn { width: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(1, 20, 35, .94); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; background: none; border: 0; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Footer ---------- */
.prefooter { background: var(--blue); color: #fff; }
.prefooter .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.prefooter .h3 { max-width: 760px; }
.site-footer { background: var(--blue-night); color: rgba(255, 255, 255, .75); font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: flex; gap: 48px; padding-top: 90px; padding-bottom: 60px; flex-wrap: wrap; }
.footer-brand { flex: 1.5 1 300px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 52px; width: auto; align-self: flex-start; }
.footer-tagline { font-size: 1.8rem; line-height: 1.2; color: #fff; font-style: italic; }
.footer-col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-services { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-services .wrap { padding-top: 26px; padding-bottom: 26px; text-align: center; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; font-size: .88rem; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Scroll reveal (generic) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; } .reveal-delay-2 { transition-delay: .24s; } .reveal-delay-3 { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Carousels (assets/js/carousel.js) ---------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-night); }
.carousel-viewport { position: relative; overflow: hidden; width: 100%; height: 100%; }
.carousel-track { display: flex; height: 100%; transition: transform .8s var(--ease); transform: translateX(calc(var(--carousel-index, 0) * -100%)); }
.carousel-slide { flex: 0 0 100%; min-width: 0; margin: 0; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel--contain .carousel-slide img { object-fit: scale-down; position: relative; z-index: 1; }
.carousel-wide { aspect-ratio: 16 / 9; }
/* Who we are: box matches the 4:3 posters so they fill it; dots sit underneath */
.who-carousel { width: 100%; max-width: 720px; margin: 0 auto; }
.who-carousel .carousel { aspect-ratio: auto; overflow: visible; background: none; }
.who-carousel .carousel-viewport { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--blue-night); box-shadow: var(--shadow); }
.who-carousel .carousel-prev, .who-carousel .carousel-next { top: calc((100% - 27px) / 2); }
.who-carousel .carousel-dots { position: static; padding-top: 18px; }
.who-carousel .carousel-dot { border-color: var(--blue); background: rgba(1, 104, 179, .2); }
.who-carousel .carousel-dot.is-active { background: var(--blue); }
/* Fade effect: slides stack, active one fades in */
.carousel[data-effect="fade"] .carousel-track { display: block; position: relative; transform: none; }
.carousel[data-effect="fade"] .carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.carousel[data-effect="fade"] .carousel-slide.is-active { opacity: 1; z-index: 1; }
.carousel[data-effect="fade"] .carousel-slide img { transform: scale(1.06); transition: transform 6s linear; }
.carousel[data-effect="fade"] .carousel-slide.is-active img { transform: scale(1); }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--blue); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.carousel-prev { left: 14px; } .carousel-next { right: 14px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--red); color: #fff; }
.carousel-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .25); cursor: pointer; transition: background .25s, width .3s var(--ease); }
.carousel-dot.is-active { background: #fff; width: 26px; border-radius: 6px; }
.carousel .media-caption { z-index: 4; }
.no-js .carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; }
.no-js .carousel-slide { scroll-snap-align: start; }
.carousel-4x3 { aspect-ratio: 4 / 3; }
.carousel-16x10 { aspect-ratio: 16 / 10; }

/* Ticker (continuous marquee) */
.ticker { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 6px 0 24px; }
.ticker.is-running .ticker-track { animation: tickerScroll var(--ticker-duration, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item { flex: 0 0 340px; }
.ticker.is-static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(calc(var(--ticker-distance, 50%) * -1)); } }
@media (max-width: 640px) {
  .ticker-item { flex-basis: 280px; }
  .carousel-prev, .carousel-next { width: 38px; height: 38px; }
  .carousel-wide { aspect-ratio: 4 / 3; }
}

/* ---------- Property video tours (assets/js/video-tours.js) ---------- */
#property-videos { scroll-margin-top: 110px; }
.video-tours { position: relative; }
.video-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.video-strip::-webkit-scrollbar { display: none; }
/* Three 9:16 tiles across; the video plays inside the same tile at the same size */
.video-card { position: relative; flex: 0 0 calc((100% - 24px) / 3); aspect-ratio: 9 / 16; margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; scroll-snap-align: start; box-shadow: var(--shadow); }
.video-card-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-card-poster[hidden] { display: none; }
.video-card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video-card-poster:hover img { transform: scale(1.04); }
.video-card-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 7px rgba(235, 3, 3, .25); transition: transform .3s var(--ease), box-shadow .3s; }
.video-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.video-card-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 12px rgba(235, 3, 3, .2); }
.video-prev, .video-next { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--blue); font-size: 1.2rem; line-height: 1; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: background .25s, color .25s, opacity .25s; }
.video-prev { left: -14px; } .video-next { right: -14px; }
.video-prev:hover:not(:disabled), .video-next:hover:not(:disabled) { background: var(--red); color: #fff; }
.video-prev:disabled, .video-next:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .video-card { flex-basis: calc((100% - 12px) / 2); }
  .video-play { width: 48px; height: 48px; }
  .video-play::after { left: 19px; top: 14px; border-width: 10px 0 10px 15px; }
  .video-prev { left: 4px; } .video-next { right: 4px; }
  .video-prev, .video-next { width: 36px; height: 36px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav, .header-cta .btn, .topbar-links .hide-md { display: none; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 18px; }
  .row { flex-direction: column; }
  .row.reverse { flex-direction: column; }
  .col-40, .col-45, .col-55, .col-60 { flex: 1 1 auto; width: 100%; }
  .offset-frame::before { inset: 16px -12px -16px 16px; }
  .gallery-main { flex-direction: column; }
  .gallery-main > .media-frame:first-child { flex: none; width: 100%; }
  .gallery-side { flex-direction: row; }
  .gallery-side .media-frame { aspect-ratio: 3 / 2; }
  .sticky-card { position: static; }
  .quick-search { margin-top: -40px; }
  .qs-field { flex: 1 1 45%; border-bottom: 1px solid var(--grey); }
  .quick-search .btn { flex: 1 1 100%; min-height: 64px; }
}
@media (max-width: 640px) {
  /* Phones: keep photos landscape rather than tall, narrow crops */
  .media-frame.tall { aspect-ratio: 4 / 3; }
  .cta-band-media { bottom: auto; height: 62vw; }
  .cta-band-media img { opacity: .8; }
  .cta-band::after { background: linear-gradient(180deg, rgba(1, 42, 73, .15) 0%, rgba(1, 42, 73, .5) 30%, rgba(1, 42, 73, 1) 48%); }
  .cta-band .wrap { padding-top: 46vw; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .site-header .wrap { height: 70px; }
  .brand img { height: 36px; }
  .qs-field { flex: 1 1 100%; border-right: 0; }
  .award-strip .wrap { justify-content: flex-start; }
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { flex: 1 1 100%; }
  .page-hero { min-height: 64vh; }
}
/* ---------- Video portfolio page (videos.html) — reuses .video-card / video-tours.js; filters in portfolio.js ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pf-grid { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; gap: 36px 16px; }
.pf-item { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; display: flex; flex-direction: column; }
.pf-item[hidden] { display: none; }
.pf-item .video-card { flex: none; width: 100%; }
.pf-grid--wide .pf-item { flex-basis: calc((100% - 32px) / 3); }
.video-card--wide { aspect-ratio: 16 / 9; }
.pf-title { font-size: 1.1rem; line-height: 1.3; margin-top: 14px; color: var(--ink); }
.pf-date { margin: 4px 0 0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.pf-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 36px; }
.pf-search { flex: 1 1 320px; }
.pf-month { flex: 0 1 240px; }
.pf-tools input, .pf-tools select { width: 100%; font-family: var(--font); font-size: 1.1rem; padding: 14px 18px; border: 1px solid #CFD6DE; border-radius: var(--radius); background: #fff; color: var(--ink); }
.pf-tools input:focus, .pf-tools select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 104, 179, .15); }
.pf-count { margin: 0 0 0 auto; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.pf-empty { text-align: center; font-size: 1.15rem; color: var(--muted); }
@media (max-width: 1024px) {
  .pf-item { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 640px) {
  .pf-grid { gap: 26px 12px; }
  .pf-item { flex-basis: calc((100% - 12px) / 2); }
  .pf-grid--wide .pf-item { flex-basis: 100%; }
  .pf-title { font-size: .98rem; margin-top: 10px; }
  .pf-date { font-size: .66rem; letter-spacing: .14em; }
  .pf-month { flex: 1 1 100%; }
  .pf-count { margin-left: 0; }
}

/* Google reviews — same card layout as the old site: stars, four-line preview with Read more, photo, name and date */
.gr-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.gr-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; background: #fff; border-radius: 24px; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.gr-stars { display: flex; gap: 2px; }
.gr-star svg { display: block; fill: #FFBF6E; }
.gr-star.is-off svg { fill: #DADDE1; }
.gr-text { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.gr-card.is-open .gr-text { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.gr-more { align-self: center; background: none; border: 0; padding: 4px 8px; font-family: var(--font); font-size: .9rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gr-more:hover, .gr-more:focus-visible { color: var(--blue); }
.gr-more[hidden] { display: none; }
.gr-author { margin-top: auto; padding-top: 18px; border-top: 1px solid #EEF0F2; display: flex; align-items: center; gap: 14px; }
.gr-author > div { flex: 1; min-width: 0; }
.gr-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #EBEBEB; }
.gr-avatar--letter { display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 1.3rem; }
.gr-name { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-date { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.gr-g { flex: none; display: flex; padding: 6px; border-radius: 50%; }
.gr-g:hover, .gr-g:focus-visible { background: #F1F3F4; }
.gr-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 46px; padding-top: 34px; border-top: 1px solid rgba(1, 104, 179, .18); }
.gr-summary-g svg { display: block; width: 30px; height: 30px; }
.gr-score { margin: 0; font-size: 1.25rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gr-score strong { font-size: 1.6rem; }
.gr-summary-stars { display: inline-flex; gap: 1px; }
.gr-summary-stars svg { width: 20px; height: 20px; fill: #FFBF6E; }
.gr-summary .btn { margin-left: auto; }
@media (max-width: 1024px) { .gr-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  .gr-grid { gap: 16px; }
  .gr-card { flex-basis: 100%; padding: 24px 22px 20px; }
  .gr-text { font-size: 1.05rem; }
  .gr-summary .btn { margin-left: 0; }
}

/* Postcode checker — hero card on the home page opening the step-by-step pop-up (assets/js/area-check.js) */
.hero .hero-actions--postcode { margin-top: 32px; transition-delay: .45s, .45s; transition-duration: .8s, .8s; }
.hero-actions--postcode + .hero-sub { margin-top: 26px; }
.hero-postcode { flex: 1 1 100%; max-width: 660px; display: flex; flex-direction: column; gap: 14px; }
.hero-postcode label { display: flex; flex-direction: column; gap: 6px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.15; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-postcode label span { font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.35; color: rgba(255, 255, 255, .92); }
.hero-postcode-bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; background: #fff; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .5); transition: box-shadow .25s; }
.hero-postcode-bar:focus-within { box-shadow: 0 24px 60px rgba(0, 0, 0, .38), 0 0 0 4px rgba(1, 104, 179, .55); }
.hero-postcode-bar > svg { flex: none; color: var(--blue); }
.hero-postcode-bar input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 6px; min-height: 58px; font-family: var(--font); font-size: 1.3rem; letter-spacing: .04em; color: var(--ink); background: transparent; text-transform: uppercase; }
.hero-postcode-bar input::placeholder { text-transform: none; letter-spacing: 0; color: #7A8794; }
.hero-postcode-bar input:focus { outline: none; }
.hero-postcode-bar .btn { flex: 0 0 auto; border-radius: 6px; min-height: 58px; padding: 0 28px; }
.hero-trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .95rem; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li + li::before { content: "✓"; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: .7rem; text-shadow: none; }
.hero-trust-stars { display: inline-flex; gap: 1px; }
.hero-trust-stars svg { width: 14px; height: 14px; }

/* The pop-up */
.ac-dialog { width: min(1060px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(1, 20, 40, .55); overflow: auto; overscroll-behavior: contain; }
.ac-dialog[open] { animation: acPop .35s var(--ease); }
.ac-dialog::backdrop { background: rgba(1, 22, 40, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes acPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ac-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; transition: background .2s; }
.ac-close:hover { background: var(--blue-soft); }
html.ac-open { overflow: hidden; }

.ac { --ac-progress: 25%; display: flex; align-items: stretch; min-height: 560px; }
.ac-aside { flex: 0 0 36%; display: flex; flex-direction: column; gap: 22px; padding: 46px 38px; color: #fff; background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-night) 100%); }
.ac-aside-brand { margin: 0; font-size: 1.05rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ac-aside-title { margin: 0; font-size: 1.85rem; line-height: 1.15; }
.ac-aside-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 1.05rem; line-height: 1.35; }
.ac-aside-points li { display: flex; gap: 12px; align-items: flex-start; }
.ac-aside-points li > span { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: .8rem; }
.ac-aside-points li > span svg { width: 14px; height: 14px; }
.ac-quote { margin: auto 0 0; padding: 22px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.ac-quote-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.ac-quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; font-style: italic; }
.ac-quote figcaption { margin-top: 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

.ac-main { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 46px 48px 40px; }
.ac-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-right: 48px; }
.ac-kicker { margin: 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); }
.ac-stepcount { margin: 0 0 0 auto; font-size: .82rem; color: var(--muted); }
.ac-meter { order: 3; flex: 1 1 100%; height: 4px; border-radius: 4px; background: #E7ECF1; overflow: hidden; }
.ac-meter-fill { display: block; height: 100%; width: var(--ac-progress); border-radius: inherit; background: linear-gradient(90deg, var(--blue), #2D8BD6); transition: width .5s var(--ease); }
.ac-chip { align-self: flex-start; display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--blue-soft); font-size: .95rem; color: var(--ink); }
.ac-chip svg { width: 16px; height: 16px; color: var(--blue); }
.ac-chip-edit { border: 0; background: #fff; border-radius: 999px; padding: 4px 12px; font-family: var(--font); font-size: .85rem; color: var(--blue); cursor: pointer; }
.ac-chip-edit:hover { background: var(--blue); color: #fff; }
.ac-chip[hidden] { display: none; }

.ac-form { display: flex; flex-direction: column; }
.ac-step { display: flex; flex-direction: column; gap: 18px; outline: none; }
.ac-step[hidden], .ac-group[hidden], .ac-done[hidden], .ac-form[hidden], .ac-stay[hidden] { display: none; }
.ac-enter { animation: acIn .4s var(--ease); }
@keyframes acIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ac-title { margin: 0; padding: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; font-weight: 400; color: var(--ink); }
.ac-sub { margin: -8px 0 0; color: var(--muted); font-size: 1.05rem; }
.ac-postcode { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border: 1px solid #CFD6DE; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ac-postcode:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1, 104, 179, .15); }
.ac-postcode > svg { flex: none; color: var(--blue); }
.ac-postcode input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 4px; min-height: 52px; font-family: var(--font); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.ac-postcode input:focus { outline: none; }
.ac-postcode input::placeholder { text-transform: none; letter-spacing: 0; color: #7A8794; }
.ac-postcode .btn { border-radius: 6px; flex: 0 0 auto; min-height: 52px; }
.ac.is-busy .ac-postcode .btn { opacity: .6; pointer-events: none; }
.ac-error { margin: 0; color: var(--red); font-size: 1rem; }
.ac-error[hidden] { display: none; }

.ac-result { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 10px; background: linear-gradient(90deg, var(--blue-soft), #F2F7FB); border: 1px solid #D3E4F2; }
.ac-result strong { display: block; font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.ac-result p { margin: 2px 0 0; color: var(--muted); }
.ac-tick { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.25rem; box-shadow: 0 8px 18px rgba(1, 104, 179, .35); }
.ac.is-outside .ac-tick { background: var(--red); box-shadow: 0 8px 18px rgba(235, 3, 3, .3); }
.ac-options-set, .ac-pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.ac-options-set legend { margin-bottom: 16px; }
.ac-options { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-option { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; position: relative; cursor: pointer; }
.ac-option input, .ac-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-option-box { height: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #DDE3EA; border-radius: 10px; background: #fff; font-size: 1.08rem; line-height: 1.2; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.ac-option-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); transition: background .2s, color .2s; }
.ac-option-icon svg { width: 20px; height: 20px; }
.ac-option:hover .ac-option-box { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(1, 42, 73, .35); }
.ac-option input:focus-visible + .ac-option-box { box-shadow: 0 0 0 3px rgba(1, 104, 179, .3); }
.ac-option input:checked + .ac-option-box { border-color: var(--blue); background: var(--blue-soft); }
.ac-option input:checked + .ac-option-box .ac-option-icon { background: var(--blue); color: #fff; }

.ac-group { display: flex; flex-direction: column; gap: 20px; }
.ac-pills legend { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ac-pills.is-missing legend { color: var(--red); }
.ac-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-pill { position: relative; cursor: pointer; }
.ac-pill span { display: block; padding: 11px 18px; border: 1px solid #CFD6DE; border-radius: 999px; background: #fff; font-size: 1rem; color: var(--ink); transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.ac-pills--small .ac-pill span { min-width: 54px; text-align: center; }
.ac-pill:hover span { border-color: var(--blue); }
.ac-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(1, 104, 179, .3); }
.ac-pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(1, 104, 179, .6); }
.ac-pills.is-missing .ac-pill span { border-color: rgba(235, 3, 3, .5); }
.ac-main .field label small { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.ac-main .field input, .ac-main .field select, .ac-main .field textarea { border-radius: 8px; padding: 14px 16px; }
.ac-main .field textarea { min-height: 84px; }
.ac-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--ink); cursor: pointer; }
.ac-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.ac-consent a { color: var(--blue); }
.ac-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.ac-nav .btn { margin-left: auto; border-radius: 6px; }
.ac-back { background: none; border: 0; padding: 8px 0; font-family: var(--font); font-size: 1rem; color: var(--muted); cursor: pointer; }
.ac-back:hover { color: var(--blue); }
.ac-safe { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; font-size: .9rem; color: var(--muted); }
.ac-safe svg { flex: none; color: var(--blue); }

.ac-done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 1; text-align: center; outline: none; padding: 30px 0; }
.ac-done p { margin: 0; max-width: 460px; font-size: 1.1rem; color: var(--muted); }
.ac-tick--big { width: 72px; height: 72px; font-size: 2rem; margin-bottom: 6px; }
.ac-done-call a { color: var(--blue); }
.ac.is-done { --ac-progress: 100%; }

.ac-stay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px; background: rgba(255, 255, 255, .97); animation: acIn .3s var(--ease); }
.ac-stay p { margin: 0; font-size: 1.1rem; color: var(--muted); }
.ac-stay .ac-title { color: var(--ink); }

@media (max-width: 1180px) { .ac-option { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 960px) {
  .ac-aside { display: none; }
  .ac { min-height: 0; }
  .ac-option { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 640px) {
  .hero-postcode { gap: 12px; }
  .hero-postcode label { font-size: 1.3rem; }
  .hero-postcode label span { font-size: .95rem; }
  .hero-postcode-bar { padding: 6px 6px 6px 12px; gap: 6px; }
  .hero-postcode-bar > svg { width: 18px; height: 18px; }
  .hero-postcode-bar input { min-height: 50px; font-size: 1.1rem; padding: 0 2px; }
  .hero-postcode-bar .btn { min-height: 50px; padding: 0 14px; font-size: .74rem; letter-spacing: .1em; }
  .hero-postcode-bar .btn::after { display: none; }
  .hero-trust { font-size: .82rem; gap: 4px 12px; }
  .hero-trust li + li::before { width: 16px; height: 16px; }
  .ac-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .ac-main { padding: 22px 18px 28px; gap: 18px; }
  .ac-top { padding-right: 44px; }
  .ac-close { top: 12px; right: 12px; }
  .ac-title { font-size: 1.5rem; }
  .ac-result { padding: 14px; gap: 12px; }
  .ac-result strong { font-size: 1.1rem; }
  .ac-result p { font-size: .95rem; }
  .ac-tick { width: 34px; height: 34px; font-size: 1.05rem; }
  .ac-option-box { padding: 12px; gap: 10px; font-size: 1rem; }
  .ac-option-icon { width: 34px; height: 34px; }
  .ac-pill span { padding: 10px 14px; font-size: .95rem; }
  .ac-postcode { padding: 6px 6px 6px 12px; }
  .ac-postcode .btn { padding: 0 18px; }
  .ac-stay { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .ac-enter, .ac-dialog[open], .ac-stay { animation: none; } .ac-option:hover .ac-option-box { transform: none; } }

/* Phones — sized for the narrowest common Androids (360px) and for phones with
   a larger system font, which Android browsers apply as page zoom */
@media (max-width: 640px) {
  html { text-size-adjust: 100%; }
  body { font-size: 17px; }
  .display { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .h2 { font-size: clamp(1.6rem, 7.6vw, 2.1rem); }
  .h3 { font-size: 1.35rem; }
  .lead { font-size: 1.05rem; }
  h1, h2, h3, .h1, .h2, .display { overflow-wrap: break-word; }
  .eyebrow { font-size: .7rem; letter-spacing: .18em; margin-bottom: 16px; }
  .btn { font-size: .82rem; letter-spacing: .06em; padding: 14px 20px; gap: 10px; }
  .btn-row { gap: 10px; margin-top: 26px; }
  .btn-row .btn { flex: 1 1 auto; }
  .cards.three > *, .cards.four > * { min-width: 0; flex-basis: 100%; }
  .icon-box { padding: 28px 22px; }
  .testimonial { padding: 32px 24px; }
  .testimonial-text { font-size: 1.1rem; }
  a[href^="mailto:"] { overflow-wrap: anywhere; }
}
@media (max-width: 400px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; --section: 60px; }
  .btn { padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Cookie consent (assets/js/consent.js) ---------- */
.footer-cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-cookie-btn:hover { text-decoration: underline; }
.cc {
  position: fixed; z-index: 90; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  background: #fff; color: var(--ink); border-radius: 10px; border-top: 4px solid var(--blue);
  box-shadow: 0 24px 60px -18px rgba(1, 42, 73, .45), 0 2px 8px rgba(1, 42, 73, .08);
  padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(16px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cc.is-in { opacity: 1; transform: none; }
.cc[hidden] { display: none; }
.cc-title { margin: 0; font-size: 1.35rem; font-weight: 400; color: var(--blue-night); line-height: 1.2; }
.cc-text { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.cc-text a { color: var(--blue); text-decoration: underline; }
.cc-prefs { display: flex; flex-direction: column; border-top: 1px solid var(--grey); }
.cc-prefs[hidden] { display: none; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--grey); cursor: pointer; }
.cc-row:first-child { cursor: default; }
.cc-row-title { margin: 0; font-size: 1rem; color: var(--ink); }
.cc-row-text { margin: 2px 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.cc-always { flex: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 46px; height: 26px; border-radius: 13px; background: #C9CED6; cursor: pointer; transition: background .2s;
}
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.cc-switch:checked { background: var(--blue); }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-btn {
  flex: 1 1 140px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff; font: inherit; font-size: .98rem; letter-spacing: .02em; cursor: pointer; transition: background .2s, border-color .2s;
}
.cc-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.cc-btn:focus-visible, .cc-link:focus-visible { outline: 2px solid var(--blue-night); outline-offset: 3px; }
.cc-btn[hidden], .cc-link[hidden] { display: none; }
.cc-btn--save { flex-basis: 100%; }
.cc.is-prefs [data-cc-accept], .cc.is-prefs [data-cc-reject] { flex-basis: 120px; background: #fff; color: var(--blue); }
.cc.is-prefs [data-cc-accept]:hover, .cc.is-prefs [data-cc-reject]:hover { background: var(--blue-soft); }
.cc-link { flex: 1 1 100%; background: none; border: 0; padding: 4px 0 0; font: inherit; font-size: .92rem; color: var(--blue); text-decoration: underline; cursor: pointer; text-align: center; }
@media (max-width: 640px) {
  .cc { left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh; border-radius: 12px 12px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
}

/* Google Map waits for consent or a click */
.map-consent { position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(rgba(230, 240, 248, .92), rgba(230, 240, 248, .92)), repeating-linear-gradient(0deg, transparent 0 46px, rgba(1, 104, 179, .08) 46px 47px), repeating-linear-gradient(90deg, transparent 0 46px, rgba(1, 104, 179, .08) 46px 47px); }
.map-consent.is-loaded { display: block; background: var(--grey); }
.map-consent-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; max-width: 460px; }
.map-consent-pin { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.map-consent-pin svg { width: 26px; height: 26px; }
.map-consent-title { margin: 0; font-size: 1.3rem; color: var(--blue-night); }
.map-consent-text { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.map-consent-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
.map-consent-link { color: var(--blue); text-decoration: underline; font-size: .95rem; }
@media (max-width: 640px) { .map-frame.map-consent:not(.is-loaded) { aspect-ratio: auto; min-height: 320px; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: var(--blue-soft); padding: 1px 5px; border-radius: 3px; }

/* Listing status tags added from the admin page */
.property-status.offer { background: #B36B00; }
.property-status.sold { background: #1a1a1a; }
