/* =========================================================================
   All Property Matters: stylesheet
   Brand: Midnight Navy #19253F, Champagne Gold #CBA671, Soft Ivory #F4EFE5
   Type:  Georgia for editorial headlines, Arial for body copy and controls
   Rule:  gold is never used as text on ivory or white (1.98:1). Gold is for fills,
          rules and dots, or for text on navy (6.7:1). Navy text on gold is 6.7:1.
   ========================================================================= */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Brand (from the brand guidelines) */
  --navy:  #19253F;
  --gold:  #CBA671;
  --ivory: #F4EFE5;

  /* Derived tokens (not in the guidelines; tuned for contrast and depth) */
  --navy-deep: #111A2E;
  --navy-soft: #243453;
  --gold-hover: #D9BC8C;
  --ivory-deep: #EBE3D2;
  --white: #FFFFFF;
  --muted: #3F4961;          /* 7.8:1 on ivory, 7.0:1 on ivory-deep, 9:1 on white */
  --line: #DDD4C3;
  --field-border: #8A8270;   /* 3:1+ against ivory and white for form controls */
  --ok-bg: #E4F0E8;  --ok-ink: #1B4D36;
  --err-bg: #FBE9E6; --err-ink: #8A1F11;

  --font-head: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(25, 37, 63, .06), 0 8px 24px rgba(25, 37, 63, .08);
  --container: 1200px;
  --focus: var(--navy);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- 2. Reset and base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--navy);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-top: 1.6em; }
h3, .h3 { font-size: 1.25rem; }
h1 + p, h2 + p, h3 + p { margin-top: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.site-header, .site-footer, .hero, .section--navy, .cta-band, .listing-panel, .cookie-banner { --focus: var(--gold); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.centered { text-align: center; }
.mt { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 200; background: var(--gold); color: var(--navy); padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: .75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */

/* ---- 3. Header and navigation -------------------------------------------- */
.site-header { background: var(--navy); color: var(--ivory); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(203, 166, 113, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
/* The logo artwork carries its own navy field, so it sits on the navy header without cropping or recolouring. */
.brand { display: block; line-height: 0; }
.brand img { height: 72px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--ivory); border: 1px solid rgba(244, 239, 229, .5); border-radius: var(--radius-sm); padding: .65rem .8rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; position: relative; transition: transform .2s var(--ease); }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(203, 166, 113, .35); }
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav__list a { display: block; padding: .8rem 0; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 229, .12); font-weight: 600; }
.site-nav__list a[aria-current="page"] { color: var(--gold); }
.header-actions { display: grid; gap: .6rem; }

@media (min-width: 1000px) {
  .brand img { height: 88px; }
  .header-inner { min-height: 88px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.75rem; position: static; padding: 0; border: 0; background: none; }
  .site-nav__list { display: flex; gap: 1.5rem; margin: 0; }
  .site-nav__list a { border: 0; padding: .4rem 0; font-size: .95rem; position: relative; }
  .site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s var(--ease); }
  .site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { display: flex; gap: .6rem; }
}

/* ---- 4. Buttons, labels, chips ------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: var(--radius-sm); border: 2px solid transparent; font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); text-align: center; }
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--ivory); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(244, 239, 229, .7); }
.btn-outline-light:hover { background: var(--ivory); color: var(--navy); }
.btn-text-light { background: transparent; color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn-row--center { justify-content: center; }
.text-link { font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }

.label { display: inline-block; padding: .3rem .8rem; border-radius: 6px; font: 700 .75rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.label--sale { background: var(--gold); color: var(--navy); }
.label--rent { background: var(--gold); color: var(--navy); }   /* reserved for the future rentals phase */

.chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font: 600 .8rem/1.3 var(--font-body); border: 1.5px solid var(--navy); }
.chip--available { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.chip--enquiry   { background: var(--navy); color: var(--ivory); }
.chip--education { background: var(--white); color: var(--navy); }
.chip--planned   { background: transparent; color: var(--navy); border-style: dashed; }

/* ---- 5. Hero and page hero ----------------------------------------------- */
.eyebrow { font: 600 .95rem/1.3 var(--font-body); color: var(--gold); margin: 0 0 1rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 62ch; }

/* Fine vertical rules echo the colonnade in the logo's building mark */
.hero, .page-hero { background-color: var(--navy); color: var(--ivory); background-image: repeating-linear-gradient(90deg, rgba(203, 166, 113, .07) 0 1px, transparent 1px 88px); }
.hero { padding: 3.5rem 0 4rem; border-bottom: 4px solid var(--gold); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--ivory); }
.page-hero { padding: 3.25rem 0 3rem; border-bottom: 4px solid var(--gold); }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lead { margin-bottom: 0; color: rgba(244, 239, 229, .92); }
.byline { color: var(--gold); font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
@media (min-width: 960px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

.search-panel { background: var(--ivory); color: var(--navy); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); border-top: 4px solid var(--gold); --focus: var(--navy); }
.search-panel h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.helper { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---- 6. Sections and layout helpers -------------------------------------- */
.section { padding: 3.25rem 0; }
.section--tight { padding: 2rem 0 3rem; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2 { color: var(--ivory); margin-top: 0; }
.section h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-cta { margin-top: 2rem; }
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .section { padding: 5rem 0; } .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.cta-band { background: var(--navy); color: var(--ivory); padding: 3rem 0; border-top: 4px solid var(--gold); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { margin: 0 0 .4em; color: var(--ivory); }
.cta-band p { margin: 0; max-width: 60ch; }
@media (min-width: 800px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 3rem; } }

.closing-text, .closing-line { font-family: var(--font-head); }
.closing-text { font-size: 1.15rem; max-width: 62ch; margin: 2.5rem 0 1.25rem; }
.closing-line { font-size: 1.5rem; margin: 2rem 0; padding-left: 1rem; border-left: 4px solid var(--gold); }

/* Lists: gold dots and numbered gold circles, as in the brand guidelines */
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding: .45rem 0 .45rem 1.75rem; }
.tick-list li::before { content: ""; position: absolute; left: .15rem; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tick-list--compact li { padding-block: .2rem; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: step; position: relative; padding: .15rem 0 .15rem 3.2rem; min-height: 2.4rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 .8rem/2.3rem var(--font-body); text-align: center; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; }

/* ---- 7. Cards ------------------------------------------------------------ */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.type-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.type-tile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; font: 700 1.05rem/1.3 var(--font-head); text-decoration: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.type-tile:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.type-tile__arrow { color: var(--navy); background: var(--gold); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; flex: none; }

.listing-card, .service-card, .article-card, .info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing-card { display: flex; flex-direction: column; transition: box-shadow .2s var(--ease); }
.listing-card:hover { box-shadow: var(--shadow); }
.listing-card__media { position: relative; display: block; aspect-ratio: 16 / 11; background: var(--navy); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__media .label { position: absolute; left: .9rem; top: .9rem; }
.listing-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font: 700 1.2rem var(--font-head); border: 1px solid rgba(203, 166, 113, .4); margin: .6rem; }
.listing-card__body { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem; flex: 1; }
.listing-card__meta { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.listing-card__title { font-size: 1.2rem; margin: .2rem 0; }
.listing-card__title a { text-decoration: none; }
.listing-card__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.listing-card__price { margin: 0; font: 700 1.4rem var(--font-head); }
.listing-card__feature { margin: .25rem 0 0; }
.listing-card__checked { margin: .25rem 0 1rem; font-size: .82rem; color: var(--muted); }
.listing-card .btn { margin-top: auto; }

.service-card { padding: 1.5rem; border-top: 4px solid var(--gold); display: flex; flex-direction: column; gap: .25rem; }
.service-card h3 { margin: .25rem 0 .4rem; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; }
.card-grid--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.article-card { padding: 1.5rem; }
.article-card__cat { font: 600 .85rem var(--font-body); color: var(--muted); margin: 0 0 .5rem; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.article-card__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.info-card { padding: 1.5rem; margin-bottom: 1.25rem; }
.info-card h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.info-card dt { font-weight: 700; margin-top: .75rem; }
.info-card dd { margin: 0; }
.status-key { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 2rem; }
.status-key__title { font-weight: 700; margin-right: .5rem; }

/* ---- 8. Search results and filters --------------------------------------- */
.results-layout { display: grid; gap: 2rem; align-items: start; }
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--gold); }
.filter-panel h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.filter-clear { text-align: center; margin: 1rem 0 0; font-size: .9rem; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.results-count { margin: 0; }
.sort-form { display: flex; align-items: center; gap: .6rem; }
.sort-form label { font-size: .9rem; font-weight: 700; }
.sort-form select { width: auto; min-width: 190px; }
.card-grid--results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.pagination { display: flex; justify-content: center; gap: 1.5rem; align-items: center; margin-top: 2.5rem; font-weight: 700; }
.empty-state { background: var(--white); border: 1px dashed var(--field-border); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; }
.empty-state h2 { margin-top: 0; font-size: 1.5rem; }
.trust-note { border-left: 4px solid var(--gold); padding-left: 1rem; color: var(--muted); font-size: .92rem; max-width: 70ch; }
@media (min-width: 1000px) {
  .results-layout { grid-template-columns: 290px 1fr; gap: 2.5rem; }
  .filter-panel { position: sticky; top: 108px; }
}

/* ---- 9. Property detail --------------------------------------------------- */
.breadcrumbs { padding: 1.25rem 0 0; font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--field-border); }
.detail-layout { display: grid; gap: 2.5rem; align-items: start; }
.detail-price { font: 700 clamp(1.8rem, 3.5vw, 2.4rem) var(--font-head); margin: 0 0 .5rem; }
.detail-facts { color: var(--muted); font-weight: 700; font-size: .9rem; }
.detail-checked { font-size: .92rem; background: var(--ivory-deep); border-left: 4px solid var(--gold); padding: .7rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.detail-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.detail-list li { display: grid; gap: .1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.detail-list span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.review-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.gallery { margin: 1.5rem 0 2rem; }
.gallery__main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--navy); }
.gallery__thumbs { list-style: none; display: flex; gap: .6rem; padding: 0; margin: .75rem 0 0; overflow-x: auto; }
.gallery__thumbs button { border: 2px solid transparent; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; line-height: 0; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery__thumbs img { width: 96px; height: 66px; object-fit: cover; }
@media (min-width: 640px) { .detail-list li { grid-template-columns: 220px 1fr; gap: 1rem; } }
@media (min-width: 1000px) {
  .detail-layout { grid-template-columns: 1fr 390px; gap: 3.5rem; }
  .detail-aside { position: sticky; top: 108px; }
}

/* The navy listing card from the brand guidelines' "Property listing template" */
.listing-panel { background: var(--navy); color: var(--ivory); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.listing-panel__kicker { font: 600 .85rem var(--font-body); color: var(--gold); margin: 0 0 .9rem; }
.listing-panel__title { font: 700 1.35rem/1.25 var(--font-head); margin: .9rem 0 .3rem; }
.listing-panel__sub { font-size: .9rem; color: rgba(244, 239, 229, .75); margin: 0 0 .9rem; }
.listing-panel__checked { font-size: .9rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(244, 239, 229, .2); }
.listing-panel__list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.listing-panel__list li { position: relative; padding: .25rem 0 .25rem 1.4rem; font-size: .92rem; }
.listing-panel__list li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.listing-panel__alt { display: grid; gap: .5rem; margin: 1.25rem 0 0; font-size: .92rem; }
.listing-panel a { color: var(--ivory); }
.listing-panel .btn-primary { color: var(--navy); }
.listing-panel .notice { color: var(--navy); }
.stack { display: grid; gap: .9rem; }

/* ---- 10. Forms ------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; color: var(--navy); background: var(--white);
  border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 120px; }
input[type="file"] { font: inherit; padding: .6rem; background: var(--white); border: 1.5px dashed var(--field-border); border-radius: var(--radius-sm); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.search-panel input, .search-panel select, .filter-panel input, .filter-panel select { background: var(--white); }
.field--dark label { color: var(--ivory); }
.field--dark input, .field--dark textarea { background: var(--ivory); }
.optional, .hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
.hint { margin: 0; }
.check { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--navy); }
.check--dark a { color: var(--gold); }
.field-error { margin: .15rem 0 0; color: var(--err-ink); font-size: .88rem; font-weight: 700; }
.listing-panel .field-error { color: #FFC9C0; }
.checklist { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 1rem 1.5rem 1.25rem; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.checklist legend { font: 700 1.2rem var(--font-head); padding: 0 .5rem; }
.search-bar { display: flex; gap: .6rem; max-width: 640px; margin-bottom: 2rem; }

.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.25rem 0; border-left: 5px solid; }
.notice--success { background: var(--ok-bg); color: var(--ok-ink); border-color: #2F7D55; }
.notice--error { background: var(--err-bg); color: var(--err-ink); border-color: #B3321F; }
.notice--info { background: var(--ivory-deep); color: var(--navy); border-color: var(--gold); }
.contact-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.4fr .8fr; gap: 4rem; } }

/* ---- 11. Articles, FAQ and pills ------------------------------------------ */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2em; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--gold); font-family: var(--font-head); font-size: 1.2rem; }
.source-note, .source-note-box { font-size: .92rem; color: var(--muted); }
.source-note-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.source-note-box h2 { margin-top: 0; }
.editorial-promise { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--ivory); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 70ch; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 2rem; }
.pill { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500; background: var(--white); }
.pill:hover { background: var(--ivory-deep); }
.pill.is-active { background: var(--navy); color: var(--ivory); }
.pill-list--quiet .pill { border-color: var(--line); font-weight: 400; }
.pill-list--quiet .pill.is-active { border-color: var(--navy); font-weight: 700; }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.25rem; font: 700 1.05rem var(--font-head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 700 1.1rem/1 var(--font-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.25rem 1.25rem; margin: 0; }

/* ---- 12. Footer and cookie banner ----------------------------------------- */
.site-footer { background: var(--navy); color: var(--ivory); padding: 3.5rem 0 1.5rem; border-top: 4px solid var(--gold); }
.site-footer a { color: var(--ivory); text-decoration-color: rgba(203, 166, 113, .6); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2.25rem; }
.footer-brand img { width: 200px; height: auto; margin: 0 0 .75rem -10px; }
.footer-brand p { max-width: 36ch; color: rgba(244, 239, 229, .85); }
.footer-title { font: 600 .9rem var(--font-body); color: var(--gold); margin: 0 0 1rem; }
.footer-title--spaced { margin-top: 1.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-hours { color: rgba(244, 239, 229, .85); font-size: .9rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244, 239, 229, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-line { font: 400 1.1rem var(--font-head); color: var(--gold); margin: 0; }
.footer-copy { margin: 0; font-size: .85rem; color: rgba(244, 239, 229, .75); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }

.cookie-banner { position: fixed; z-index: 100; left: 1rem; right: 1rem; bottom: 1rem; max-width: 960px; margin-inline: auto; background: var(--navy); color: var(--ivory); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner__panel { display: grid; gap: .6rem; margin-bottom: 1rem; padding: 1rem; background: var(--navy-soft); border-radius: var(--radius-sm); }
.cookie-banner__panel[hidden] { display: none; }
.cookie-banner .check input { accent-color: var(--gold); }

/* ---- 13. Motion and print -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .cta-band, .filter-panel, .btn { display: none !important; }
  body { background: #fff; }
  .hero, .page-hero { background: none; color: #000; border: 0; }
}

/* ---- Home hero scene -------------------------------------------------------
   Full-bleed photograph (public/assets/img/hero.jpg) with the headline on the calm left,
   the search as one bar at the bottom of the same screen. If the file is missing the navy shows. */
.hero--scene {
  position: relative; display: flex; flex-direction: column;
  min-height: calc(100svh - 72px);
  padding: 0; border-bottom: 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, var(--navy) 0%, rgba(25, 37, 63, .88) 36%, rgba(25, 37, 63, .3) 70%, rgba(25, 37, 63, .08) 100%),
    linear-gradient(0deg, rgba(25, 37, 63, .85) 0%, rgba(25, 37, 63, 0) 38%),
    url("/assets/img/hero.jpg");
  background-size: cover; background-position: center;
}
.hero--scene .hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding-block: 4rem 2.5rem; }
.hero--scene .hero__copy { max-width: 38rem; margin-block: auto; }
.hero--scene h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.1; }
.hero--scene .lead { color: rgba(244, 239, 229, .92); }
.hero--scene .search-panel {
  display: grid; gap: 1rem; align-items: end; width: 100%;
  border-top: 0; box-shadow: 0 8px 32px rgba(10, 16, 30, .35);
}
.hero--scene .search-panel h2 { grid-column: 1 / -1; margin: 0; font-size: 1.25rem; }
.hero--scene .search-panel .helper { grid-column: 1 / -1; margin: 0; }
@media (min-width: 960px) {
  .hero--scene { min-height: calc(100svh - 88px); }
  .hero--scene .search-panel { grid-template-columns: repeat(3, 1fr) auto; padding: 1.5rem 1.75rem; }
  .hero--scene .search-panel .btn-block { width: auto; }
}
@media (max-width: 959px) {
  .hero--scene { background-image: linear-gradient(180deg, rgba(25, 37, 63, .9), rgba(25, 37, 63, .72)), url("/assets/img/hero-900.jpg"); }
  .hero--scene .hero__inner { padding-block: 3rem 2rem; }
}

/* Hero enters once on load */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
[data-enter] .hero__copy > *, [data-enter] .search-panel { animation: rise .5s cubic-bezier(.22, 1, .36, 1) both; }
[data-enter] .hero__copy > :nth-child(2) { animation-delay: .06s; }
[data-enter] .hero__copy > :nth-child(3) { animation-delay: .12s; }
[data-enter] .search-panel { animation-delay: .2s; }

/* Brand line, set large: the page's one type moment */
.statement { background: var(--ivory-deep); padding: clamp(4rem, 10vw, 7rem) 0; }
.statement__line { font: 700 clamp(2.25rem, 6.5vw, 5rem)/1.05 var(--font-head); letter-spacing: -.02em; margin: 0 0 1.25rem; max-width: 16ch; }
.statement__line::after { content: ""; display: block; width: 72px; height: 4px; background: var(--gold); margin-top: 1.5rem; }
.statement__sub { font-size: 1.15rem; color: var(--muted); max-width: 40ch; margin: 0; }

/* Hover and press: small, quick, one curve */
.btn { transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.type-tile, .listing-card, .service-card, .article-card { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.type-tile:hover, .listing-card:hover, .service-card:hover, .article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.listing-card__media { overflow: hidden; }
.listing-card__media img { transition: transform .4s var(--ease); }
.listing-card:hover .listing-card__media img { transform: scale(1.03); }
.text-link, .site-footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s var(--ease); text-decoration: none; }
.text-link:hover, .site-footer a:hover { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  [data-enter] .hero__copy > *, [data-enter] .search-panel { animation: none; }
}

/* Home fixes: hero copy on the left edge, five type tiles in one row */
.hero--scene .hero__copy { margin-inline: 0; align-self: flex-start; }
@media (min-width: 1100px) { .type-grid { grid-template-columns: repeat(5, 1fr); } }

/* Checks: visible focus on tiles, nav on one line at laptop widths, shorter hero on phones */
a:focus-visible, button:focus-visible, .type-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.type-tile:focus-visible { border-color: var(--navy); }
.site-nav__list a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .site-nav { gap: 1rem; }
  .site-nav__list { gap: 1rem; }
  .site-nav__list a { font-size: .9rem; }
  .header-actions .btn { padding: .55rem .8rem; font-size: .8rem; }
  .brand img { height: 72px; }
}
@media (max-width: 959px) {
  .hero--scene .search-panel { gap: .75rem; padding: 1.25rem; }
  .hero--scene .search-panel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero--scene .search-panel .helper { font-size: .8rem; }
  .hero--scene .hero__inner { gap: 1.5rem; padding-block: 2rem 1.5rem; }
  .hero--scene .lead { font-size: 1rem; margin-bottom: 1rem; }
  .hero--scene .btn-row { margin: 1rem 0 0; }
  .hero--scene .field { gap: .25rem; }
}

/* Touch targets and anchored focus */
html { scroll-padding-top: 120px; }
@media (max-width: 959px) {
  .text-link, .site-footer li a, .link-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer ul { gap: 0; }
}

/* ---- Photographs ------------------------------------------------------------ */
.page-hero--photo {
  background-image:
    linear-gradient(90deg, var(--navy) 0%, rgba(25, 37, 63, .92) 45%, rgba(25, 37, 63, .35) 100%),
    var(--hero-img);
  background-size: cover; background-position: center 35%;
}
@media (max-width: 799px) {
  .page-hero--photo { background-image: linear-gradient(180deg, rgba(25, 37, 63, .92), rgba(25, 37, 63, .8)), var(--hero-img); }
}
.photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); background: var(--ivory-deep); }
.split__side { display: grid; gap: 1.5rem; }
.split--center { align-items: center; }
.section--navy .photo { box-shadow: 0 8px 32px rgba(10, 16, 30, .35); }

/* Property type tiles carry a photograph */
.type-tile { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; overflow: hidden; }
.type-tile__img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--ivory-deep); transition: transform .4s var(--ease); }
.type-tile:hover .type-tile__img { transform: scale(1.03); }
.type-tile__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.type-grid > li { display: flex; }
.type-tile { width: 100%; }
.type-tile__row { min-height: 4.5rem; margin-top: auto; }
@media (min-width: 900px) { .split:has(.split__side) { align-items: center; } }

/* ==========================================================================
   Forms (redesign)
   One field style everywhere: tall controls, a quiet border, a gold focus ring,
   custom select arrow, custom checks, segmented and card choices.
   ========================================================================== */
.form { gap: 1.4rem; }
.field { gap: .5rem; }
.field label, .choice-set legend { font-weight: 600; font-size: .92rem; color: var(--navy); letter-spacing: 0; }
.field.is-required > label::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: .45rem; vertical-align: .15em; }
.optional { font-weight: 400; color: var(--muted); }

input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="date"], select, textarea {
  min-height: 52px; padding: .8rem 1rem; border: 1.5px solid #B9AF99; border-radius: 10px; background-color: var(--white);
  font: 400 1rem/1.4 var(--font-body); color: var(--navy);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: #6F7385; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(203, 166, 113, .45); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
textarea { min-height: 150px; line-height: 1.6; }

/* Custom select arrow */
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2319253F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}

/* Error state */
.field:has(.field-error) input, .field:has(.field-error) select, .field:has(.field-error) textarea { border-color: #B3321F; background-color: #FFF8F6; }
.field-error { display: flex; align-items: center; gap: .4rem; margin: 0; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #B3321F; color: #fff; font: 700 .72rem/1 var(--font-body); }

/* File input */
input[type="file"] { width: 100%; padding: 1.1rem; border: 2px dashed #B9AF99; border-radius: 12px; background: var(--ivory); color: var(--muted); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
input[type="file"]:hover { border-color: var(--navy); background: var(--white); }
input[type="file"]::file-selector-button { margin-right: 1rem; padding: .6rem 1rem; border: 0; border-radius: 8px; background: var(--navy); color: var(--ivory); font: 600 .9rem var(--font-body); cursor: pointer; transition: background-color .15s var(--ease); }
input[type="file"]::file-selector-button:hover { background: var(--navy-soft); }

/* Checkboxes */
.check { gap: .85rem; align-items: flex-start; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: .05rem 0 0; border: 1.5px solid #B9AF99; border-radius: 7px; background: var(--white); display: grid; place-content: center; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.check input::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--ivory); border-bottom: 2.5px solid var(--ivory); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .15s var(--ease); }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::before { transform: rotate(-45deg) scale(1); }
.check input:hover { border-color: var(--navy); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(203, 166, 113, .55); border-color: var(--navy); }
.check--dark input:checked, .listing-panel .check input:checked { background: var(--gold); border-color: var(--gold); }
.check--dark input::before, .listing-panel .check input::before { border-color: var(--navy); }

/* Choice cards (enquiry type) and segmented control (reply method) */
.choice-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-set legend { padding: 0; margin-bottom: .7rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem 1.1rem; border: 1.5px solid #B9AF99; border-radius: 999px; background: var(--white); font-weight: 500; font-size: .95rem; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.choice input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: .55rem; }
.choice input:focus-visible + span, .segmented input:focus-visible + span { box-shadow: 0 0 0 4px rgba(203, 166, 113, .6); border-color: var(--navy); }
.choice span:active { transform: scale(.98); }

.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border: 1.5px solid #B9AF99; border-radius: 12px; background: var(--ivory-deep); max-width: 100%; }
.segmented label { position: relative; display: block; }
.segmented span { display: grid; place-items: center; min-height: 44px; padding: .4rem 1.2rem; border-radius: 9px; font-weight: 500; font-size: .95rem; cursor: pointer; text-align: center; transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease); }
.segmented label:hover span { background: rgba(255, 255, 255, .6); }
.segmented input:checked + span { background: var(--navy); color: var(--ivory); box-shadow: 0 2px 8px rgba(25, 37, 63, .25); }

.form-consent { display: grid; gap: .9rem; padding: 1.1rem 1.2rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.form-consent .check { font-size: .92rem; }

/* Buttons in forms */
.btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1rem; }
.btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.form .btn[disabled] { opacity: .7; cursor: progress; }

/* The card that holds a form */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.form-card__title { margin: 0 0 .35rem; font-size: 1.6rem; }
.form-card__intro { margin: 0 0 1.75rem; color: var(--muted); font-size: .95rem; }
.form-card > .notice:first-child { margin-top: 0; }

/* Forms placed straight on the page (submit property, management interest) get the same card */
.section > .container > .form, .section .narrow > .form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.section > .container > .form fieldset, .section .narrow > .form fieldset, .checklist { border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); }
.checklist legend { font: 700 1.05rem var(--font-head); padding: 0 .6rem; }

/* Forms inside navy panels */
.listing-panel input:not([type]), .listing-panel input[type="text"], .listing-panel input[type="email"], .listing-panel input[type="tel"], .listing-panel select, .listing-panel textarea { background-color: var(--ivory); border-color: transparent; }
.listing-panel select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2319253F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); }
.listing-panel .field label, .listing-panel .check { color: var(--ivory); }
.listing-panel input:focus, .listing-panel select:focus, .listing-panel textarea:focus { border-color: var(--gold); }
.listing-panel .field:has(.field-error) input, .listing-panel .field:has(.field-error) textarea { background-color: #FFF1EE; border-color: #FFC9C0; }
.listing-panel .field-error { color: #FFD3CB; }

/* Search and filter bars */
.search-panel .field label, .filter-panel .field label { font-size: .85rem; }
.search-panel select, .filter-panel select, .filter-panel input { min-height: 48px; background-color: var(--white); }
.search-bar input { min-height: 52px; border-radius: 999px; padding-inline: 1.4rem; }
.search-bar .btn { border-radius: 999px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout { gap: 2rem; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; } }
.contact-panel { background: var(--navy); color: var(--ivory); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; --focus: var(--gold); }
.contact-panel::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 64px, rgba(203, 166, 113, .1) 64px 65px); pointer-events: none; }
.contact-panel > * { position: relative; }
@media (min-width: 960px) { .contact-panel { position: sticky; top: 112px; } }
.contact-panel h2 { font-size: 1.2rem; color: var(--ivory); margin: 0 0 1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.contact-panel h2 + ul { margin-top: .25rem; }
.contact-panel h2:not(:first-child) { margin-top: 2rem; }
.contact-list, .contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.contact-list li { display: grid; gap: .1rem; padding: .85rem 0; border-bottom: 1px solid rgba(244, 239, 229, .15); }
.contact-list span { font-size: .85rem; color: #C5CBD8; }
.contact-panel a { color: var(--ivory); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .2s var(--ease), color .15s var(--ease); }
.contact-panel a:hover { color: var(--gold); background-size: 100% 2px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .6rem 0; border-bottom: 1px solid rgba(244, 239, 229, .15); background: none; }
.contact-links a::after { content: "\2192"; color: var(--gold); transition: transform .2s var(--ease); }
.contact-links a:hover::after { transform: translateX(4px); }
.contact-panel__note { margin: 1.75rem 0 0; font-size: .88rem; color: #C5CBD8; }

@media (max-width: 599px) {
  .segmented { display: grid; grid-auto-flow: row; width: 100%; }
  .choice-grid { gap: .5rem; }
}

/* ==========================================================================
   Page loader and motion
   The loader shows once per browser session, only when JavaScript is on and the visitor
   has not asked for reduced motion. Eight gold rules draw down like a colonnade, the logo
   rises, a gold line fills, then the navy curtain lifts away.
   ========================================================================== */
.loader { display: none; }
html.has-loader .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--navy);
  clip-path: inset(0 0 0 0); pointer-events: all;
  animation: loader-lift .75s cubic-bezier(.76, 0, .24, 1) 1.55s forwards;
}
html.has-loader.loader-done .loader { display: none; }
.loader__cols { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.loader__cols span { width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(203, 166, 113, .55) 20%, rgba(203, 166, 113, .55) 80%, transparent); transform: scaleY(0); transform-origin: top; animation: loader-rule .9s var(--ease) forwards; }
.loader__cols span:nth-child(1) { animation-delay: .00s; } .loader__cols span:nth-child(2) { animation-delay: .06s; }
.loader__cols span:nth-child(3) { animation-delay: .12s; } .loader__cols span:nth-child(4) { animation-delay: .18s; }
.loader__cols span:nth-child(5) { animation-delay: .24s; } .loader__cols span:nth-child(6) { animation-delay: .30s; }
.loader__cols span:nth-child(7) { animation-delay: .36s; } .loader__cols span:nth-child(8) { animation-delay: .42s; }
.loader__mark { position: relative; display: grid; justify-items: center; gap: 1.5rem; width: min(280px, 62vw); }
.loader__mark img { mix-blend-mode: lighten; width: 100%; height: auto; opacity: 0; transform: translateY(14px); animation: loader-logo .8s var(--ease) .35s forwards; }
.loader__bar { width: 100%; height: 2px; background: rgba(244, 239, 229, .16); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: loader-fill 1.05s cubic-bezier(.65, 0, .35, 1) .5s forwards; }

@keyframes loader-rule { to { transform: scaleY(1); } }
@keyframes loader-logo { to { opacity: 1; transform: none; } }
@keyframes loader-fill { to { transform: scaleX(1); } }
@keyframes loader-lift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* Hold the hero entrance until the curtain lifts */
html.has-loader [data-enter] .hero__copy > *, html.has-loader [data-enter] .search-panel { animation-delay: calc(1.9s + var(--d, 0s)); }
html.has-loader [data-enter] .hero__copy > :nth-child(2) { --d: .06s; }
html.has-loader [data-enter] .hero__copy > :nth-child(3) { --d: .12s; }
html.has-loader [data-enter] .search-panel { --d: .2s; }


/* Scroll reveal: only when JavaScript has marked the element, so nothing is ever hidden without it */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--rd, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal--photo { transform: translateY(18px) scale(.985); }
.statement__line::after { transform-origin: left; }
html.js .statement.reveal .statement__line::after { transform: scaleX(0); transition: transform .8s var(--ease) .3s; }
html.js .statement.reveal.in .statement__line::after { transform: scaleX(1); }

/* Header gets a soft shadow once the page scrolls */
.site-header { transition: box-shadow .25s var(--ease), background-color .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 16, 30, .35); }

/* Buttons: a gold sweep on the primary action */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  html.has-loader .loader { display: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .statement.reveal .statement__line::after { transform: none; transition: none; }
  .btn-primary::after { display: none; }
}
.section--white .narrow > .form { background: var(--ivory); }

/* ==========================================================================
   Properties page
   ========================================================================== */
/* Type quick-bar under the hero */
.typebar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 40; }
@media (min-width: 1000px) { .typebar { top: 88px; } }
.typebar__inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .5rem; }
.typebar__inner::-webkit-scrollbar { display: none; }
.typebar__item { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy); transition: background-color .15s var(--ease), color .15s var(--ease); }
.typebar__item:hover { background: var(--ivory-deep); }
.typebar__item.is-active { background: var(--navy); color: var(--ivory); }

/* Filter card */
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 0; border-top: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.filter-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; cursor: pointer; list-style: none; font: 700 1.15rem var(--font-head); background: var(--navy); color: var(--ivory); }
.filter-panel__head::-webkit-details-marker { display: none; }
.filter-panel__head::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); margin: -4px 0 0 .25rem; transition: transform .2s var(--ease); }
.filter-panel[open] .filter-panel__head::after { transform: rotate(-135deg); margin-top: 4px; }
.filter-panel__count { margin-left: auto; font: 500 .85rem var(--font-body); color: var(--gold); }
.filter-form { display: grid; gap: 1.25rem; padding: 1.5rem; }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: .5rem; font-weight: 600; font-size: .92rem; }
.field-group .field-row { gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 999px) { .field-group .field-row { grid-template-columns: 1fr 1fr; } }
.field-group .field label { font-weight: 400; font-size: .85rem; color: var(--muted); }
.affix { position: relative; display: block; }
.affix input { padding-left: 2.4rem; }
.affix__mark { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.affix--end input { padding-left: 1rem; padding-right: 3.5rem; }
.affix--end .affix__mark { left: auto; right: 1rem; font-size: .85rem; font-weight: 500; }
.segmented--tight { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.segmented--tight span { padding: .4rem .2rem; min-height: 42px; }
.filter-form .btn-block { margin-top: .25rem; }
.filter-clear { margin: 0; }

/* Results */
.results-bar { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1.25rem; margin-bottom: 1rem; }
.results-count { font-size: 1rem; }
.results-count strong { font: 700 1.5rem var(--font-head); margin-right: .15rem; }
.sort-form select { min-height: 44px; background-color: var(--ivory); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; }
.chip-remove { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .35rem .5rem .35rem 1rem; border-radius: 999px; background: var(--navy); color: var(--ivory); text-decoration: none; font-size: .9rem; transition: background-color .15s var(--ease); }
.chip-remove:hover { background: var(--navy-soft); }
.chip-remove__x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; line-height: 1; }

.pagination { gap: 1rem; }
.pagination__link { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .5rem 1.25rem; border: 1.5px solid var(--navy); border-radius: 10px; text-decoration: none; font-weight: 600; transition: background-color .15s var(--ease), color .15s var(--ease); }
.pagination__link:hover { background: var(--navy); color: var(--ivory); }
.pagination__now { color: var(--muted); font-weight: 500; }

/* Listing cards */
.card-grid--results { gap: 1.5rem; }
.listing-card { border-radius: 16px; box-shadow: 0 1px 2px rgba(25, 37, 63, .05); }
.listing-card__price { font-size: 1.5rem; }
.listing-card__checked { padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .6rem; }

/* Empty state */
.empty-state--rich { border-style: solid; border-color: var(--line); border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; background: var(--white); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.empty-state--rich::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 56px, rgba(203, 166, 113, .12) 56px 57px); pointer-events: none; }
.empty-state--rich > * { position: relative; }
.empty-state--rich p { max-width: 52ch; margin-inline: auto; color: var(--muted); }
.empty-next { margin-top: 2rem; }
.empty-next h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.empty-next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .empty-next__list { grid-template-columns: repeat(3, 1fr); } }
.empty-next__list a { display: grid; gap: .35rem; height: 100%; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.empty-next__list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.empty-next__list strong { font: 700 1.05rem var(--font-head); }
.empty-next__list span { color: var(--muted); font-size: .92rem; }

@media (min-width: 1000px) { .filter-panel { position: sticky; top: 168px; } }
@media (max-width: 999px) { .filter-panel { margin-bottom: .5rem; } }
.results .trust-note { margin-top: 2rem; }
