/* First Properties — public site
   Type: Archivo. Condensed widths for prices and headings (estate-board lettering),
   normal width for reading. Brand colour comes from Settings via --brand. */

:root {
  --brand: #1F3064;
  --ink: #17213D;
  --ink-soft: #4A5570;
  --paper: #FFFFFF;
  --mist: #EEF2F7;
  --line: #D6DDE8;
  --closed: #B8372B;
  --offer: #C9821D;
  --ok: #1E7A4C;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --cond: "Archivo", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--offer); outline-offset: 2px; }
h1, h2, h3 {
  font-family: var(--cond);
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.sr-only, .hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo img { max-height: 56px; width: auto; }
.logo { text-decoration: none; }
.logo-lockup { display: flex; align-items: center; gap: 14px; }
.lockup-rule { width: 1px; height: 44px; background: var(--line); }
.lockup-photo { width: 56px; height: 56px; object-fit: cover; object-position: center 20%; border-radius: 3px; }
@media (max-width: 480px) { .logo-lockup { gap: 10px; } .lockup-photo { width: 42px; height: 42px; } .lockup-rule { height: 34px; } .logo img:first-child { max-height: 44px; } }
.logo-text { font-family: var(--cond); font-stretch: 75%; font-weight: 800; font-size: 1.75rem; color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: var(--radius); }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.site-nav .nav-phone { margin-left: 8px; background: var(--brand); color: #fff; font-weight: 600; }
.site-nav .nav-phone:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: block; font: inherit; font-weight: 600; background: none; color: var(--ink);
    border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 6px 14px; cursor: pointer;
  }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .site-nav .nav-phone { margin: 8px 0 0; text-align: center; }
}

/* ---------- Estate board labels: the signature element ----------
   Small rectangular boards, like the ones staked outside a house. */
.board {
  display: inline-block;
  font-family: var(--cond); font-stretch: 75%; font-weight: 700;
  font-size: .95rem; line-height: 1; padding: 8px 12px 7px;
  border-radius: 2px; color: #fff; background: var(--brand);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.board-let { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand), 0 2px 0 rgba(0,0,0,.18); }
.board-offer { background: var(--offer); }
.board-closed { background: var(--closed); transform: rotate(-4deg); }

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; border-radius: var(--radius);
  padding: 12px 22px; min-height: 48px;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #1F8A4C; width: 100%; margin-bottom: 24px; }
.btn-wa:hover { background: #166B3A; }
.text-link { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.field em { font-style: normal; font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 46px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(31,48,100,.15); }
[aria-invalid="true"] { border-color: var(--closed); }
.field-error { color: var(--closed); font-size: .875rem; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-recaptcha { margin: 4px 0 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 4px solid; }
.flash-success { background: #E8F5EE; border-color: var(--ok); }
.flash-error { background: #FBEAE8; border-color: var(--closed); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(420px, 68vh, 680px); display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,16,34,.55)); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; padding-top: 40px; }
.hero-board {
  display: inline-flex; flex-direction: column; gap: 6px; max-width: 460px;
  background: var(--brand); color: #fff; text-decoration: none;
  padding: 22px 26px 24px; border-radius: 2px; box-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.hero-board:hover { color: #fff; background: var(--ink); }
.hero-kind { font-size: .9rem; font-weight: 600; opacity: .85; }
.hero-price { font-family: var(--cond); font-stretch: 70%; font-weight: 800; font-size: clamp(2.5rem, 6vw, 4rem); line-height: .95; }
.hero-title { font-size: 1.05rem; line-height: 1.35; }
.hero-link { margin-top: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-plain { min-height: 320px; background: var(--brand); color: #fff; }
.hero-plain::after { display: none; }
.hero-heading { color: #fff; }
.hero-plain .lede { color: rgba(255,255,255,.85); }

/* ---------- Slider ---------- */
.slider { display: block; }
.slider .slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slider .slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease, visibility 0s; }
.slider .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,16,34,.55)); }
.slider::after { display: none; }
.slider .hero-inner { padding-bottom: 72px; }
.hero-message { max-width: 520px; }
.hero-message .hero-heading { font-family: var(--cond); font-stretch: 75%; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin: 0 0 6px; color: #fff; }
.hero-message .hero-link { color: #fff; }
.slider-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; pointer-events: none; }
.slider-controls > * { pointer-events: auto; }
.sl-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(10,16,34,.55); color: #fff; font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sl-btn:hover { background: rgba(10,16,34,.8); }
.sl-pause { font-size: .7rem; letter-spacing: -1px; }
.sl-dots { display: flex; gap: 6px; padding: 0 6px; }
.sl-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.sl-dots button[aria-selected="true"] { background: #fff; }
@media (max-width: 600px) { .slider-controls { justify-content: center; } .slider .hero-inner { padding-bottom: 76px; } }

/* ---------- Search band ---------- */
.search-band { background: var(--mist); border-bottom: 1px solid var(--line); }
.search { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding-top: 20px; padding-bottom: 20px; }
.search .field { margin: 0; }
.seg { display: flex; border: 0; padding: 0; margin: 0; align-self: end; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 11px 16px; min-height: 46px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 600; cursor: pointer; background: #fff; }
.seg label + label span { border-left: 0; }
.seg label:first-of-type span { border-radius: var(--radius) 0 0 var(--radius); }
.seg label:last-of-type span { border-radius: 0 var(--radius) var(--radius) 0; }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--offer); outline-offset: 2px; }
.btn-search { min-height: 46px; }
@media (max-width: 1000px) {
  .search { grid-template-columns: 1fr 1fr; }
  .seg { grid-column: 1 / -1; }
  .seg label { flex: 1; text-align: center; }
  .btn-search { grid-column: 1 / -1; }
}

/* ---------- Sections & cards ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.card { display: flex; flex-direction: column; }
.card-photo { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; border-radius: var(--radius); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .board { position: absolute; left: 12px; top: 12px; }
.card.is-closed .card-photo img { filter: saturate(.55); }
.photo-count { position: absolute; right: 10px; top: 12px; background: rgba(10,16,34,.72); color: #fff; font-size: .8rem; padding: 3px 8px; border-radius: 2px; }
.card-body { padding-top: 12px; }
.card-price { font-family: var(--cond); font-stretch: 75%; font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin-bottom: 4px; }
.card-title { font-family: inherit; font-stretch: 100%; font-size: 1rem; font-weight: 500; line-height: 1.4; margin: 0 0 2px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-place { color: var(--ink-soft); font-size: .95rem; margin: 0 0 6px; }
.card-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; font-weight: 600; margin: 0; }
.empty { background: var(--mist); padding: 28px; border-radius: var(--radius); }

/* ---------- Intro / broker ---------- */
.intro { background: var(--mist); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.intro-grid:not(:has(img)) { grid-template-columns: 1fr; }
.intro-text { max-width: 64ch; }
.broker-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.broker-fig { margin: 0; }
.broker-fig figcaption { margin-top: 8px; font-weight: 600; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 24px; }
@media (max-width: 720px) { .intro-grid { grid-template-columns: 1fr; } .broker-photo { max-width: 260px; } }

/* ---------- Listing page ---------- */
.page-head { padding: clamp(28px, 5vw, 48px) 0 8px; }
.page-head h1 { margin-bottom: .2em; }
.listing-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-bottom: 64px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters-title { font-size: 1.25rem; }
.filters .btn { width: 100%; margin-bottom: 10px; }
.results-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.sort select { width: auto; min-height: 40px; padding: 6px 10px; }
.grid-results { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pager { display: flex; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pager span { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 880px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; background: var(--mist); padding: 16px; border-radius: var(--radius); }
}

/* ---------- Property page ---------- */
.preview-bar { background: var(--offer); color: #fff; text-align: center; padding: 8px; font-weight: 600; }
.preview-bar a { color: #fff; }
.property { padding: 20px 0 56px; }
.crumbs { font-size: .9rem; margin-bottom: 14px; display: flex; gap: 8px; }
.crumbs a { color: var(--ink-soft); }
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.prop-head h1 { max-width: 22ch; margin-bottom: .15em; }
.prop-place { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.prop-price-box { text-align: right; }
.prop-price { font-family: var(--cond); font-stretch: 70%; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; margin: 10px 0 0; }
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin-bottom: 36px; }
.gallery button { border: 0; padding: 0; background: var(--mist); cursor: zoom-in; display: block; width: 100%; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--mist); }
.gallery-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.gallery-thumbs li:nth-child(n+5) { display: none; }
.gallery-thumbs img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,16,34,.6); color: #fff; font-weight: 700; font-size: 1.1rem; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .prop-price-box { text-align: left; }
}
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prop-main section { margin-bottom: 36px; }
.prop-main h2 { font-size: 1.5rem; }
.prose { max-width: 68ch; }
.key-facts { list-style: none; padding: 0 0 24px; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 12px 36px; border-bottom: 1px solid var(--line); }
.key-facts li { color: var(--ink-soft); }
.key-facts strong { display: block; font-family: var(--cond); font-stretch: 75%; font-size: 2rem; line-height: 1; color: var(--ink); }
.features { columns: 2 220px; padding-left: 1.1em; margin: 0; }
.features li { margin-bottom: 4px; break-inside: avoid; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.bond { background: var(--mist); padding: 24px; border-radius: var(--radius); }
.bond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bond-out { font-size: 1.1rem; margin: 4px 0 6px; }
.bond-out strong { font-family: var(--cond); font-stretch: 75%; font-size: 2rem; }
@media (max-width: 560px) { .bond-grid { grid-template-columns: 1fr; } }
.prop-side { position: sticky; top: 96px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.agent-box { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.agent-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-box p { margin: 0; }
.agent-name { font-weight: 700; }
.side-title { font-size: 1.35rem; }
.enquiry .btn { width: 100%; }
@media (max-width: 960px) { .prop-layout { grid-template-columns: 1fr; } .prop-side { position: static; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,26,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font: inherit; font-size: 1.6rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 80px); padding-bottom: 72px; padding-top: 16px; }
.contact-list { margin: 0; }
.contact-list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .875rem; color: var(--ink-soft); font-weight: 600; }
.contact-list dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-form .enquiry { max-width: 560px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.82); padding: 48px 0 92px; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot .muted { color: rgba(255,255,255,.6); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.foot-grid p { margin: 0 0 6px; }
.foot-name { font-family: var(--cond); font-stretch: 75%; font-weight: 700; font-size: 1.5rem; color: #fff; }
.foot-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; }
.foot-base a { color: rgba(255,255,255,.75); }
.foot-base a:hover { color: #fff; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #1F8A4C; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-float:hover { background: #166B3A; color: #fff; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Area links (listing pages) */
.area-links { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.area-links h2 { font-size: 1.3rem; }
.area-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.area-links [aria-current] { font-weight: 700; }

.foot-logo { margin: 0 0 14px; }
.foot-logo img { max-height: 64px; max-width: 240px; width: auto; }
