/* ============================================================
   KASANA - page component layer
   Loaded after style.css. Tokens, reset, header, footer and the
   home hero all live in style.css; everything below is the
   multi-page component set.

   CONTENTS
   01  Shared primitives (page hero, breadcrumb, bands, reveal)
   02  Footer additions + back to top
   03  Home: suburbs, direction band, testimonials
   04  Properties: filters, results, listing cards, pagination
   05  Property details
   06  About
   07  Services
   08  Agents
   09  Pricing
   10  FAQ
   11  Contact
   12  Responsive
   13  Reduced motion
   ============================================================ */


/* ============================================================
   01  SHARED PRIMITIVES
   ============================================================ */

/* --- Interior page hero --------------------------------------
   The same object as the home hero, one size down. Full height,
   photograph behind, everything centred, and a scroll cue at the
   bottom acknowledging that the first screen is deliberately all
   picture. An inner page arrives the same way the home page does,
   which is the whole point - a visitor landing on /pricing from a
   search result should not get a different website.

   Two things sit under the lede, and a page picks one:

     .page-hero-actions   a centred row of buttons
     .page-hero-stats     a navy slab of three figures

   Pages that are asking for something use the buttons; pages that
   are establishing something use the figures. Nothing carries both. */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Full screen, the same as the home hero. These used to stop at 82svh
     so an inner page showed the top edge of what followed; every page
     now opens on the same full frame instead.

     vh first, svh second, and not the other way round: the two lines
     are a fallback pair, so whichever an engine understands last is the
     one it keeps. Written svh-then-vh - which is how this rule used to
     read - every modern browser lands on vh, and on a phone vh is the
     viewport with the address bar *ignored*, so the hero ran taller
     than the screen and the bottom of it sat under the chrome. */
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 72px) 0 128px;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

/* The photograph, at full strength.

   It used to sit at opacity .5 over a navy ground, which is a way of
   dimming a picture that also drains it: half of every colour in the
   frame is replaced by the same flat navy, so a sunset and a kitchen
   come out the same muddy blue and the whole thing reads as though it
   were out of focus. The scrim below is what makes the text legible,
   and it is shaped to do that - dark where the words are, open where
   they are not - so the picture itself does not have to be turned down
   to help.

   The filter is the last few per cent. Photographs used behind text are
   almost always flattened by the scrim sitting on them; a little
   contrast and saturation put back what the wash takes out. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  filter: saturate(1.16) contrast(1.08);
}

/* The scrim. This used to carry a gold hairline as a second background
   layer, pinned at var(--header-h); see the note inside.

   The wash is vertical now rather than diagonal. A diagonal gradient
   is built for a headline sitting in the left third; this one is
   centred, and it needs the top and the bottom dark and the middle
   open, not the left dark and the right open. */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
      /* The gold hairline that used to be the first layer here sat on
         the header's bottom edge, which is the one mark that stops the
         bar blending into the hero. Removed with its twin on the home
         hero; the wash under the header carries the top of the frame
         now. */
      /* Neutral black, not navy, and clear through the middle. The wash
         used to be mixed from the brand navy, which pulled every pixel
         it covered a few degrees toward it, and a second navy ellipse
         sat behind the words at up to 58% - the heaviest tint over the
         best part of the frame. The ellipse is gone and black darkens
         without colouring. Legibility comes from the type below, which
         carries a contrast halo, rather than from dimming the picture. */
      /* A pool of shade under the words, and nothing anywhere else.

         The wash below opens up to 4% through the middle of the frame,
         which is exactly the band the headline and lede sit in - the
         hero centres its column. That was survivable while the heroes
         were dim interiors and dusk streets. They are sunlit harbours
         and blue sky now, and white type on 4% of black over a bright
         sky is the blending you can see.

         An ellipse fixes it where a heavier linear wash cannot. Adding
         the density to the linear gradient would dim the whole frame,
         corners included, to solve a problem that only exists behind
         about 60% of the width. This darkens that part and leaves the
         picture alone everywhere else. It is black, not navy: the navy
         version of this ellipse was removed from both heroes for
         pulling every pixel it covered toward blue, and neutral black
         darkens without colouring. */
      radial-gradient(ellipse 78% 60% at 50% 46%,
          rgba(0, 0, 0, .46) 0%,
          rgba(0, 0, 0, .30) 46%,
          rgba(0, 0, 0, 0) 78%),
      /* The middle no longer drops to nothing. It carries a floor of
         26% so that the type has a known ground under it even where
         the ellipse has fallen away. */
      linear-gradient(to bottom,
          rgba(0, 0, 0, .66) 0%,
          rgba(0, 0, 0, .34) 18%,
          rgba(0, 0, 0, .26) 40%,
          rgba(0, 0, 0, .34) 58%,
          rgba(0, 0, 0, .54) 82%,
          rgba(0, 0, 0, .74) 100%);
}

.page-hero > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
}

.page-hero h1 {
  /* Wide enough that the first of the two lines does not wrap on its
     own. The <br> in the markup decides where the gold starts; letting
     the measure break the line before it as well gives three lines of
     which one is two words long. */
  max-width: 26ch;
  margin: 0;
  font-size: clamp(38px, 1.6rem + 3.4vw, 64px);
  font-weight: 400;
  /* Capitals need more leading than lowercase at the same size: there
     is no descender in the line to separate one row from the next. */
  line-height: 1.12;
  letter-spacing: .014em;
  color: #fff;
  text-wrap: initial;        /* the line splitter does the balancing */
  /* Three passes, not two: a tight dark edge that holds the letterform
     against a bright sky, a mid spread, and a wide soft one that
     separates the block as a whole from the picture. */
  text-shadow:
      0 1px 2px rgba(0, 0, 0, .72),
      0 3px 12px rgba(0, 0, 0, .52),
      0 10px 34px rgba(0, 0, 0, .46);
}

/* The accent phrase. Same treatment as the home headline: an <em>
   that carries no slant, only the gold. */
.page-hero h1 em {
  font-style: normal;
  color: var(--stone-500);
}

.page-hero .lede {
  max-width: 52ch;
  margin: 30px 0 0;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .012em;
  /* 82% white was a quiet grey over a dim photograph and an invisible
     one over a bright harbour. The lede is a full sentence of real
     information; it can be quieter than the headline without being
     faint. */
  color: rgba(255, 255, 255, .94);
  text-shadow:
      0 1px 2px rgba(0, 0, 0, .90),
      0 2px 10px rgba(0, 0, 0, .70),
      0 6px 26px rgba(0, 0, 0, .50);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* --- The figures slab ----------------------------------------
   Navy on the photograph rather than glass. The hero behind it is
   already a blurred wash of whatever the picture is doing, and three
   figures set in gold have to be read at a glance from across a
   room - so the slab is opaque and the gold sits on a known ground
   instead of on a sunset. */
.page-hero-stats {
  display: inline-flex;
  align-items: center;
  margin: 44px auto 0;
  padding: 20px 26px;
  border: 1px solid rgba(240, 192, 72, .26);
  border-radius: var(--r-lg);
  background: var(--basalt-900);
  box-shadow: 0 22px 50px rgba(2, 10, 26, .46);
}

.page-hero-stats li {
  position: relative;
  min-width: 9rem;
  padding: 0 22px;
}

/* A hairline that fades out at both ends, so it reads as a seam in
   one object rather than as a border between three. */
.page-hero-stats li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 46px;
  transform: translateY(-50%);
  background: linear-gradient(to bottom,
      transparent, rgba(240, 192, 72, .55), transparent);
}

.phs-value {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--stone-500);
}

.phs-label {
  display: block;
  margin-top: 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
}

/* --- Breadcrumb ---------------------------------------------- */
/* The breadcrumb appears on two very different grounds: the dark
   page hero, and the light .pd-top band on a listing. The base is
   written for light, and the dark variant is scoped to the hero -
   the other way round left the listing breadcrumb as white text on
   a sandstone background, which was almost invisible. */
.breadcrumb { margin-bottom: 22px; font-size: 13.5px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--body); }
.breadcrumb li + li::before { content: "/"; color: var(--muted); }
.breadcrumb a { color: var(--ink); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--gold-ink); }
.breadcrumb [aria-current] { color: var(--gold-ink); font-weight: 600; }

/* Centred, because the hero is. The list is a flex row already, so
   this is the only thing that has to change for it. */
.page-hero .breadcrumb {
  margin-bottom: 26px;
  /* 13.5px over a photograph is the smallest type in any hero, so it
     gets the same contrast halo the lede does. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 2px 10px rgba(0, 0, 0, .55);
}
.page-hero .breadcrumb ol { justify-content: center; }
/* The breadcrumb sits above the headline, which on most of these
   photographs is open sky - the brightest part of the frame and the
   furthest from the ellipse. It needs its own halo and more weight in
   the ink than it did over a dusk street. */
.page-hero .breadcrumb { text-shadow: 0 1px 3px rgba(0, 0, 0, .78), 0 2px 12px rgba(0, 0, 0, .52); }
.page-hero .breadcrumb li { color: rgba(255, 255, 255, .80); }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, .50); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .92); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb [aria-current] { color: var(--gold); }

/* --- Section scaffolding ------------------------------------- */
.band { padding: var(--sp-section) 0; }
.band-page { background: var(--page); }
.band-white { background: #fff; }

.band-navy {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .74);
}
.band-navy h2, .band-navy h3 { color: #fff; }

.section-lede {
  max-width: 58ch;
  margin-top: 16px;
  font-size: 17px;
}

.head-stack { max-width: 62ch; margin-bottom: var(--sp-7); }
.head-stack .section-title { max-width: 20ch; margin-top: 6px; }

/* --- Reveal on scroll ---------------------------------------- */
/* Sequence communicates reading order: cards arrive in the order you
   would read them, so the eye is led rather than ambushed. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--ease-out), transform var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Visible to screen readers only. Used where a control is already
   obvious by shape but still needs a programmatic label. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Pills, tags, small parts -------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
}
.band-navy .pill {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .82);
}

.tag-gold {
  display: inline-block;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(240, 192, 72, .14);
  color: var(--gold-ink);
  font-size: 12.5px;
  font-weight: 600;
}

/* --- CTA band ------------------------------------------------ */
.cta-band {
  position: relative;
  padding: 84px 0;
  background: var(--navy-900);
  isolation: isolate;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 88% 0%, rgba(240, 192, 72, .26), transparent 62%),
    radial-gradient(50% 110% at 8% 100%, rgba(240, 192, 72, .12), transparent 60%);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.35fr auto;
  align-items: center;
  gap: 40px;
}
.cta-inner h2 { font-size: 36px; color: #fff; }
.cta-inner p { max-width: 46ch; margin-top: 14px; color: rgba(255, 255, 255, .72); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }


/* ============================================================
   02  FOOTER ADDITIONS + BACK TO TOP
   ============================================================ */
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: rgba(255, 255, 255, .78);
  transition: background-color var(--ease), border-color var(--ease),
              color var(--ease), transform var(--ease);
}
.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--navy-900);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(11, 27, 43, .3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), background-color var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--gold-soft); }


/* ============================================================
   03  HOME: SUBURBS, DIRECTION BAND, TESTIMONIALS
   ============================================================ */

/* --- Place strip --------------------------------------------- */
/* A single line of Tasmanian place names drifting across the page,
   between the listings and the editorial block. It does no work
   except to say, quietly, where this agency operates. */
.place-strip {
  padding: 34px 0;
  background: var(--basalt-950);
  border-block: 1px solid rgba(240, 192, 72, .16);
}
.place {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .30);
  white-space: nowrap;
  transition: color 500ms var(--curve-out);
}
.place-strip:hover .place { color: rgba(255, 255, 255, .42); }
.place-dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--stone-500);
  opacity: .7;
}

/* --- Editorial split ----------------------------------------- */
/* Three photographs at three parallax depths. The grid is the frame;
   the depth is what makes it feel composed rather than stacked. */
.island-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.island-media {
  position: relative;
  /* Room at the bottom for the inset to hang below the plate. */
  padding-bottom: 96px;
}

.island-plate {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.island-inset {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 56%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  /* A paper border, so the inset reads as a print laid on top of the
     larger plate rather than as a hole cut into it. */
  border: 8px solid #fff;
  box-shadow: var(--shadow-lift);
}

/* The figure is set in the display serif at a size nothing else on the
   page reaches, and it sits half off the plate so the block has an
   edge that is not a rectangle. */
.island-stamp {
  position: absolute;
  left: -6%;
  top: 8%;
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  background: var(--basalt-900);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-deep);
}
.island-stamp-num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--stone-400);
  font-variant-numeric: tabular-nums lining-nums;
}
.island-stamp-label {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .62);
}

.island-facts {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}
.island-facts li {
  padding-left: 20px;
  border-left: 2px solid var(--line);
  font-size: 15.5px;
  line-height: 1.6;
  transition: border-color 420ms var(--curve-out);
}
.island-facts li:hover { border-left-color: var(--gold); }
.island-facts strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
}

/* --- Suburb bento -------------------------------------------- */
/* Six suburbs, six cells, deliberately uneven so it reads as a
   composition rather than a grid of equal boxes. The image lives in
   its own .img-frame so it gets the same clip-and-settle reveal as
   every other photograph on the site. */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}
.suburb {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--r-card);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
/* A 4x3 field with no holes in it:
     row 1-2  |  Battery Point (2x2)  |  Sandy Bay  |  West Hobart |
     row 2    |         "             |     Launceston (2x1)       |
     row 3    |  Kingston Beach (2x1) |     Coles Bay (2x1)        |
   Every cell is occupied, which is the difference between a bento
   and a grid with a gap someone forgot about. */
.suburb:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.suburb:nth-child(4),
.suburb:nth-child(5),
.suburb:nth-child(6) { grid-column: span 2; }

.suburb-media { position: absolute; inset: 0; z-index: -2; border-radius: inherit; }
.suburb-media img { width: 100%; height: 100%; object-fit: cover; }

/* Two stops rather than three: the label needs a solid floor, and the
   top of the tile should stay as close to the photograph as it can. */
.suburb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
      rgba(5, 19, 23, .92) 0%,
      rgba(5, 19, 23, .34) 46%,
      rgba(5, 19, 23, .04) 100%);
}

/* Deliberately not position:relative. The tile title carries the only
   anchor and its ::after stretches to cover the whole card; a
   positioned wrapper here would have made it the containing block and
   shrunk the click target down to the caption. The body still paints
   above the scrim because .suburb isolates and the scrim sits at
   z-index -1. */
.suburb-body {
  padding: 24px;
  transition: transform 620ms var(--curve-out);
}
.suburb h3 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.suburb h3 a::after { content: ""; position: absolute; inset: 0; }
.suburb span {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .74);
}
.suburb:nth-child(1) h3 { font-size: clamp(24px, 2.2vw, 32px); }

.suburb:hover .suburb-media img { transform: scale(1.07); }
.suburb:hover .suburb-body { transform: translateY(-4px); }

/* A sandstone rule that draws across the base of the tile on hover -
   the same gesture as the footer links, at tile scale. */
.suburb::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms var(--curve-out);
}
.suburb:hover::before,
.suburb:focus-within::before { transform: scaleX(1); }

/* ============================================================
   DIRECTION BAND

   A full-bleed photograph with the ask centred on it and three
   figures along the bottom. It sits between the suburb grid and the
   testimonials, and it is the only place on the home page below the
   hero where the page goes dark and full width - which is the whole
   reason it works there. Two light bands, one dark interruption, two
   light bands.

   It shares the hero's grammar deliberately: same scrim shape, same
   centred column, same gold <em> in the heading, same Ken Burns drift
   on the photograph. A visitor should read it as the hero's answer
   rather than as a new kind of block.
   ============================================================ */
.direction {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 11vw, 168px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--basalt-950);
  text-align: center;
}

.direction-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/hero-home.jpg");
  background-size: cover;
  /* The house and the lit deck sit right of centre and low in the
     frame, so a narrow viewport should crop the sky, not the house. */
  background-position: 62% 64%;
  background-repeat: no-repeat;
  background-color: var(--basalt-950);
  filter: saturate(1.16) contrast(1.08);
}

/* The same two-part scrim the heroes use: a vertical pass that is
   heavy top and bottom and open through the middle, and an ellipse
   sitting behind the words with nothing either side of it. Dark
   where the text is, clear where the photograph is worth seeing. */
.direction-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
      linear-gradient(to bottom,
          rgba(0, 0, 0, .58) 0%,
          rgba(0, 0, 0, .20) 22%,
          rgba(0, 0, 0, .14) 50%,
          rgba(0, 0, 0, .32) 80%,
          rgba(0, 0, 0, .62) 100%);
}

.direction-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.direction-eyebrow {
  color: rgba(255, 255, 255, .72);
  margin-bottom: 22px;
}
/* The eyebrow's leading rule is gold on light grounds; on this one it
   would be the brightest thing above the headline. */
.direction-eyebrow::before { background: rgba(255, 255, 255, .42); }

.direction-title {
  margin: 0;
  /* Two lines, broken in the markup rather than by the measure. The
     phrase is 23 characters of small caps and lands within a few pixels
     of the container width at desktop sizes, so leaving the break to
     the browser meant it flipped between one line and two as the
     viewport moved - and when it wrapped, it wrapped mid-phrase and
     stranded "next?" on its own. An explicit <br> puts the gold on its
     own line at every width, which is the same shape the hero and the
     seven page heroes use. */
  max-width: 22ch;
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .014em;
  color: #fff;
  text-wrap: initial;        /* the line splitter does the balancing */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 8px 30px rgba(0, 0, 0, .40);
}

.direction-title em {
  font-style: normal;
  color: var(--stone-500);
}

.direction-text {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  text-shadow:
      0 1px 2px rgba(0, 0, 0, .86),
      0 2px 10px rgba(0, 0, 0, .62),
      0 6px 26px rgba(0, 0, 0, .42);
}

.direction-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

/* --- The three figures ---------------------------------------
   A rule above them rather than a box around them. The reference for
   this block puts its figures on a hairline, and that is the right
   call here too: a slab would be a second object competing with the
   buttons directly above it, where a rule just says "and here is the
   evidence". */
.direction-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(100%, 680px);
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .20);
}

.direction-stats li { min-width: 0; }

.ds-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--stone-500);
}

.ds-label {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 640px) {
  .direction { padding: 76px 0; }
  .direction-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .direction-actions .btn { width: 100%; justify-content: center; }

  /* Three figures across a phone would be three stacked fragments.
     They keep the row - the labels are short enough - but the gap
     comes right in and the type drops a step. */
  .direction-stats { gap: 14px; justify-content: space-between; }
  .direction-stats li { flex: 1; }

  /* Two of the three values are short numbers and one is a phrase.
     Left to wrap, "Same day" goes to two lines and drags its label a
     row below the other two, which reads as a mistake rather than as
     a long word. 20px is the size at which the longest of the three
     still fits a third of a 390px screen on one line. */
  .ds-value { font-size: 20px; white-space: nowrap; }
  .ds-label { margin-top: 7px; font-size: 9.5px; letter-spacing: .04em; }
}


/* --- Process: numbered rail ----------------------------------
   Not used on the home page any more - the four-step band came off it
   - but services, agents and pricing all still open a section with
   this rail, so it lives here rather than going with the rest of the
   home page blocks that were removed with it. */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { position: relative; padding: 0 26px 0 0; }
.process-step + .process-step { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .12); }
.process-step .num {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
}
.process-step h3 { margin-top: 12px; font-size: 20px; }
.process-step p { margin-top: 8px; font-size: 15.5px; }

/* The numbered rail is designed for the dark band. On a light one the
   dividers and the body colour have to come back to the light palette. */
.process-light { color: var(--body); }
.process-light .process-step + .process-step { border-left-color: var(--line); }
.process-light h3 { color: var(--ink); }

/* --- Process: cards ------------------------------------------
   The same four steps, but on a white band the hairline rail has
   nothing to sit against and the steps read as one loose paragraph.
   Boxing each one gives the eye four things to count, which is the
   whole point of a numbered sequence. Gap replaces the dividers. */
.process-cards { gap: 22px; }
.process-cards .process-step {
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid rgba(6, 26, 59, .14);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease-out), box-shadow var(--ease-out), border-color var(--ease-out);
}
/* The rail's dividers and its asymmetric padding both have to go, or
   the first card keeps a 26px hole on its right and the rest carry a
   line down their left edge inside the box. */
.process-cards .process-step + .process-step { padding-left: 26px; border-left: 0; }
.process-cards .process-step:hover {
  transform: translateY(-6px);
  border-color: var(--stone-500);
  box-shadow: var(--shadow-lift);
}
.process-cards .process-step h3 { color: var(--ink); }
.process-cards .process-step p { color: var(--body); }
/* The rail's bright gold is meant for a navy ground. On white the
   week label needs the darker gold that clears contrast. */
.process-cards .process-step .num { color: var(--gold-ink); }

/* --- Testimonials -------------------------------------------- */

/* --- Testimonials -------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.quote .stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.quote blockquote { flex: 1; font-size: 16px; line-height: 1.6; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote .who { font-size: 15px; font-weight: 600; color: var(--ink); }
.quote .where { font-size: 13.5px; }


/* ============================================================
   04  PROPERTIES: FILTERS, RESULTS, CARDS
   ============================================================ */
.listing-layout {
  display: grid;
  grid-template-columns: 296px 1fr;
  align-items: start;
  gap: 34px;
}

/* --- Filter panel -------------------------------------------- */
.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.filter-panel h2 { font-size: 17px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-reset {
  padding: 0;
  background: none;
  border: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-reset:hover { color: #A87620; }

.filter-group { padding: 18px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > h3 {
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.filter-group legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.filter-group fieldset { margin: 0; padding: 0; border: 0; }

.check-list { display: grid; gap: 10px; }
.check {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.check .count { font-size: 13px; color: #9AA3AD; }

/* --- Maximum price control ----------------------------------- */
/* Typed entry, slider and presets all drive one value. The slider
   shows real progress rather than a flat accent bar, because the
   fill is what tells you where you are in the range at a glance. */
.price-filter { margin: 0; padding: 0; border: 0; }

.price-input {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.price-input:hover { border-color: #CBD2DA; }
.price-input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 72, .16);
}

.price-symbol { font-size: 16px; font-weight: 600; color: var(--body); }

.price-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 2px;
  background: none;
  border: 0;
  outline: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-input input::placeholder { color: #6b7480; font-weight: 500; }

.price-unit { flex-shrink: 0; font-size: 13px; color: var(--body); }
.price-unit[hidden] { display: none; }

/* Range: the track is painted with a gradient stop at --fill, which
   JavaScript keeps in step with the value. */
.price-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 18px 0 0;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.price-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(to right,
      var(--gold) 0 var(--fill, 100%),
      var(--line) var(--fill, 100%) 100%);
}
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(11, 27, 43, .24);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.price-range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.price-range:active::-webkit-slider-thumb {
  transform: scale(1.06);
  box-shadow: 0 0 0 7px rgba(240, 192, 72, .18);
}
.price-range:focus-visible { outline: none; }
.price-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(240, 192, 72, .38);
}

/* Firefox paints progress with its own pseudo element */
.price-range::-moz-range-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
}
.price-range::-moz-range-progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--gold);
}
.price-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(11, 27, 43, .24);
}
.price-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 5px rgba(240, 192, 72, .38);
}

.price-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}

.price-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.preset {
  padding: 7px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--ease), border-color var(--ease),
              color var(--ease), transform var(--ease);
}
.preset:hover { border-color: #CBD2DA; color: var(--ink); transform: translateY(-1px); }
.preset[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .price-range::-webkit-slider-thumb,
  .preset { transition: none; }
}

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.seg label:hover { border-color: #CBD2DA; }
.seg input:checked + label {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.seg input:focus-visible + label { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

/* --- Results bar --------------------------------------------- */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.results-count { font-size: 15px; }
.results-count strong { color: var(--ink); font-weight: 700; }
.results-tools { display: flex; align-items: center; gap: 12px; }

.sort-wrap { position: relative; }
.sort-wrap select {
  height: 42px;
  padding: 0 38px 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-size: 14.5px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--body) 50%),
    linear-gradient(135deg, var(--body) 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.view-toggle { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-input); }
.view-toggle button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--body);
  transition: background-color var(--ease), color var(--ease);
}
.view-toggle button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }

/* --- Active filter chips ------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  background: rgba(240, 192, 72, .12);
  border: 1px solid rgba(240, 192, 72, .34);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gold-ink);
}
.chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: rgba(240, 192, 72, .22);
  border: 0;
  border-radius: 50%;
  color: var(--gold-ink);
  font-size: 13px;
  line-height: 1;
}
.chip button:hover { background: var(--gold); color: #fff; }

/* --- Mobile filter disclosure -------------------------------- */
/* Hidden on desktop, where the panel is always open in the sidebar. */
.filter-toggle { display: none; }

/* --- Results grid -------------------------------------------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.results[hidden] { display: none; }
.results[data-view="list"] { grid-template-columns: 1fr; gap: 18px; }

.results[data-view="list"] .property-card { flex-direction: row; }
/* In a row the photograph is a fixed-width column and takes its height
   from the body beside it, so the 300px height the card carries in the
   grid has to come off - otherwise a long listing grows its text past
   the bottom of its own picture. */
.results[data-view="list"] .card-media { flex: 0 0 320px; height: auto; }
.results[data-view="list"] .card-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.results[data-view="list"] .card-title { font-size: 22px; }
.results[data-view="list"] .meta { margin-top: auto; }

/* The blurb used to be hidden in the grid and shown only in list view,
   back when the grid card was a price, a title and three figures and
   had no room for a sentence. The card carries it now on both pages,
   so the only thing left to set is its size. */
.card-blurb { font-size: 14px; }

.property-card.is-hidden { display: none; }

.card-agent {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.card-agent img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* --- Empty state --------------------------------------------- */
.empty-state {
  display: none;
  padding: 64px 32px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-card);
}
.empty-state.is-shown { display: block; }
.empty-state .ico {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--page);
  color: var(--gold);
}
.empty-state h2 { font-size: 22px; }
.empty-state p { max-width: 42ch; margin: 10px auto 24px; }

/* --- Load more ----------------------------------------------- */
.load-more { display: flex; justify-content: center; margin-top: 40px; }
.load-more[hidden] { display: none; }


/* ============================================================
   05  PROPERTY DETAILS
   ============================================================ */
.pd-top { padding: calc(var(--header-h) + 34px) 0 0; background: var(--page); }

.pd-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.pd-heading h1 { font-size: clamp(30px, 3.4vw, 42px); }
.pd-address { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15.5px; }
.pd-address svg { color: var(--gold); }
.pd-price { text-align: right; }
.pd-price strong { display: block; font-family: var(--display); font-size: 37px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.pd-price span { font-size: 14px; }

/* Gallery: one lead frame plus a thumbnail rail. */
.pd-gallery { display: grid; grid-template-columns: 1fr 216px; gap: 12px; }
.pd-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--navy-800);
}
.pd-stage img { width: 100%; height: 100%; object-fit: cover; }
.pd-stage figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 14px;
  background: rgba(4, 18, 43, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: #fff;
}
/* Full screen affordance, sitting over the lead photo */
.pd-expand {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: rgba(4, 18, 43, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color var(--ease), transform var(--ease);
}
.pd-expand:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-2px); }

.lightbox {
  width: min(1180px, 94vw);
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 14, 22, .88); }
.lightbox img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-card);
}
.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .82);
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--ease);
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

.pd-thumbs { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.pd-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color var(--ease), opacity var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.pd-thumb[aria-pressed="true"] { border-color: var(--gold); }
.pd-thumb:hover { opacity: .88; }

/* Key facts strip */
.pd-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.pd-fact { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; }
.pd-fact .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(240, 192, 72, .13);
  color: var(--gold);
}
.pd-fact strong { display: block; font-size: 17px; color: var(--ink); }
.pd-fact span { font-size: 13.5px; }

/* Body layout */
.pd-layout { display: grid; grid-template-columns: 1fr 350px; align-items: start; gap: 40px; }
.pd-main > section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.pd-main h2 { font-size: 25px; margin-bottom: 16px; }
.pd-main p + p { margin-top: 14px; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.feature-list svg { flex-shrink: 0; color: var(--gold); }

.pd-inspect { display: grid; gap: 12px; }
.inspect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.inspect-when { font-size: 15.5px; color: var(--ink); font-weight: 600; }
.inspect-note { font-size: 14px; }

/* Sidebar */
.pd-aside { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 18px; }

.agent-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.agent-card .who { display: flex; align-items: center; gap: 14px; }
.agent-card .who img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.agent-card h2 { font-size: 18px; }
.agent-card .role { font-size: 13.5px; }
.agent-card .agent-actions { display: grid; gap: 10px; margin-top: 20px; }

.calc { padding: 26px; background: var(--navy-900); border-radius: var(--r-card); color: rgba(255, 255, 255, .74); }
.calc h2 { font-size: 18px; color: #fff; }
.calc p.hint { margin-top: 6px; font-size: 13.5px; }
.calc .field { margin-top: 16px; }
.calc label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.calc input[type="number"] {
  width: 100%;
  height: 44px;
  margin-top: 7px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-input);
  color: #fff;
  font-size: 15px;
}
.calc input[type="number"]:focus { border-color: var(--gold); outline: none; }
/* Browsers give range inputs a 2px side margin, which pushes a
   width:100% slider past its container. Zero the sides. */
.calc input[type="range"] { width: 100%; margin: 10px 0 0; accent-color: var(--gold); }
.calc .range-row { display: flex; justify-content: space-between; margin-top: 7px; font-size: 13px; }
.calc-out {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.calc-out strong { display: block; font-family: var(--display); font-size: 35px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--gold); }
.calc-out span { font-size: 13.5px; }


/* Small carriers for what used to be inline style attributes on the
   property detail page. Keeping them here means the page can be
   restyled without touching markup, and the CSP has no reason to
   allow inline styles. */
.pd-body { padding-top: 56px; }
.pd-title { margin-top: 12px; }
.inspect-private { margin-top: 12px; }
.pd-map { margin-top: 18px; }
.pd-map-note { margin-top: 10px; }

/* The gallery stage is an .img-frame, so it needs its own ratio and
   the caption has to sit above the frame's clipping. */
.pd-stage.img-frame { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.pd-stage.img-frame > figcaption,
.pd-stage.img-frame > .pd-expand { z-index: 3; }


/* ============================================================
   06  ABOUT
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

/* A tall plate down the left, two smaller frames stacked beside it.
   Each is its own .img-frame so each gets its own wipe and its own
   parallax depth; the depths are set in the markup, not here. */
.story-media { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.story-media .img-frame { border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.story-media .img-frame:first-child { grid-row: span 2; border-radius: var(--r-lg); }
/* Square, not 4:3. Two 4:3 frames left the media column roughly half
   the height of the copy beside it, and a centred pair of columns that
   far apart reads as a layout accident rather than a composition. */
.story-media .img-frame:not(:first-child) { aspect-ratio: 1 / 1; }

/* Running prose, not a lede. --fs-lead is for the one-sentence
   introduction under a heading; three paragraphs at that size run the
   column to twice the height of the photographs. */
.story-copy .prose { display: grid; gap: 18px; margin: 24px 0 30px; }
.story-copy .prose p { max-width: 54ch; font-size: var(--fs-body); line-height: 1.68; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.timeline-item:first-child { border-top: 0; }
.timeline-year {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold);
}
.timeline-item h3 { font-size: 19px; }
.timeline-item p { margin-top: 7px; font-size: 15.5px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value {
  padding-top: 24px;
  border-top: 2px solid var(--line);
  transition: border-top-color 520ms var(--curve-out);
}
/* The rule at the top of each value fills with sandstone as the row
   arrives, one after another, so the three read as a sequence. */
html.motion .value[data-reveal].is-in,
.value:hover { border-top-color: var(--gold); }
.value h3 { font-size: 19px; }
.value p { margin-top: 10px; font-size: 15.5px; }


/* ============================================================
   07  SERVICES
   ============================================================ */
/* Five services, five cells. The lead cell carries a photograph so the
   grid is not five identical text boxes. */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.svc .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(240, 192, 72, .13);
  color: var(--gold);
}
.svc h3 { font-size: 20px; }
.svc p { margin-top: 10px; font-size: 15.5px; }
/* Scoped to .more, not to .svc .more. The feature cell is
   <article class="svc-feature"> and carries no .svc class, so the
   descendant version never reached it: the link stayed display:inline
   and its arrow - a block level svg - dropped onto its own line. */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.more svg { flex: 0 0 auto; transition: transform var(--ease); }
.svc:hover .more svg,
.svc-feature:hover .more svg,
.more:hover svg,
.more:focus-visible svg { transform: translateX(4px); }

.svc-feature {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: 300px;
}
.svc-feature .img-frame,
.svc-feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.svc-feature .img-frame { border-radius: 0; }
.svc-feature .img-frame img { position: static; }
/* Three stops rather than two. A straight .9-to-.25 ramp buried the
   bottom half of the photograph; this holds the same contrast under
   the text and lets the top two thirds of the image through. */
.svc-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
      rgba(5, 19, 23, .92) 0%,
      rgba(5, 19, 23, .58) 38%,
      rgba(5, 19, 23, .12) 100%);
}
.svc-feature h3 { font-size: 25px; color: #fff; }
.svc-feature p { color: rgba(255, 255, 255, .8); max-width: 46ch; }
.svc-feature .more { color: var(--gold); }


/* ============================================================
   08  AGENTS
   ============================================================ */
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agent {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.agent {
  transition: transform 520ms var(--curve-out),
              box-shadow 520ms var(--curve-out),
              border-color 520ms var(--curve-out);
}
.agent:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 192, 72, .34);
  box-shadow: var(--shadow-lift);
}

.agent-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 0; background: var(--page); }
.agent-photo img { transition: transform 900ms var(--curve-out), filter 700ms var(--curve-soft); }
/* Portraits sit slightly desaturated until the card is hovered, which
   keeps eight faces from competing with the listings elsewhere on the
   page and gives the hover something to do. */
html.motion .agent-photo img { filter: saturate(.82) contrast(1.02); }
.agent:hover .agent-photo img { transform: scale(1.05); filter: none; }

.agent-body { padding: 22px; }
.agent-body h3 { font-size: 18px; font-weight: 500; letter-spacing: -.012em; }
.agent-body .role {
  margin-top: 4px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.agent-patch { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }

.agent-stats {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.agent-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}

.agent-phone { margin-top: 14px; font-size: 14px; }
.agent-phone a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color var(--ease);
}
.agent-phone a:hover { color: var(--gold-ink); }


/* ============================================================
   09  PRICING
   ============================================================ */
.billing-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); }
.billing-toggle button {
  padding: 9px 20px;
  background: none;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
  transition: background-color var(--ease), color var(--ease);
}
.billing-toggle button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.plan.is-featured {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow-card);
}
.plan.is-featured h3, .plan.is-featured .price-row strong { color: #fff; }
.plan-tag { align-self: flex-start; margin-bottom: 16px; }
.plan h3 { font-size: 21px; }
.plan > p { margin-top: 8px; font-size: 15px; }
.price-row { display: flex; align-items: flex-end; gap: 8px; margin: 24px 0; }
.price-row strong { font-family: var(--display); font-size: 45px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.price-row span { font-size: 14px; padding-bottom: 4px; }
.plan-features { display: grid; gap: 12px; margin-bottom: 28px; font-size: 15px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; }
.plan-features svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.plan-features li.is-off { opacity: .48; }
.plan .btn { margin-top: auto; }


/* ============================================================
   10  FAQ
   ============================================================ */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 4px; }
.faq-nav a {
  padding: 11px 16px;
  border-radius: var(--r-input);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--ease), color var(--ease);
}
.faq-nav a:hover { background: #fff; color: var(--navy-900); }

.faq-set + .faq-set { margin-top: 44px; }
.faq-set h2 { font-size: 23px; margin-bottom: 18px; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--ease);
}
.acc-trigger:hover { color: var(--gold-ink); }
.acc-trigger .sign {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease);
}
.acc-trigger[aria-expanded="true"] .sign { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: #fff; }
.acc-panel { overflow: hidden; height: 0; transition: height 320ms cubic-bezier(.4, 0, .2, 1); }
.acc-panel > div { padding: 0 4px 22px; max-width: 72ch; font-size: 15.5px; }


/* ============================================================
   11  CONTACT
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

.form-card {
  position: relative;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
/* Same gold hairline as the search panel, so the two forms on
   the site are visibly the same object in two places. */
.form-card::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stone-500), transparent);
  border-radius: 2px;
}

/* The section-title scale is for section headings; a card heading is a
   step down from that, and these two classes carry it instead of the
   inline font-size overrides that used to be in the markup. */
.form-card-title,
.offices-title {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.form-card-lede { max-width: 52ch; margin: 10px 0 26px; font-size: var(--fs-lead); }
.offices-title { margin-bottom: 20px; }
.form-submit { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field .req { color: #b4442f; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6b7480; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 72, .20);
  outline: none;
}
.form-hint { font-size: 13px; color: var(--body); }
.form-error { display: none; font-size: 13px; font-weight: 500; color: #b4442f; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #b4442f; }
.form-field.has-error .form-error { display: block; }

.form-note {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(46, 125, 87, .1);
  border: 1px solid rgba(46, 125, 87, .3);
  border-radius: var(--r-input);
  font-size: 15px;
  color: #24603f;
}
.form-note.is-shown { display: block; }

.office { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.office + .office { margin-top: 16px; }
.office h3 { font-size: 17px; }
.office address { margin-top: 8px; font-style: normal; font-size: 15px; line-height: 1.55; }
.office .office-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.office address a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.office .office-links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.office .office-links a:hover { color: var(--gold-ink); }

.map-frame {
  margin-top: 16px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}


/* ============================================================
   12  RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .band { padding: 84px 0; }
  .listing-layout { grid-template-columns: 260px 1fr; gap: 26px; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-aside { position: static; grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  /* Mobile drawer: the active underline sits under the label, not the header */
  .nav-list .nav-link::after { bottom: 4px; right: auto; width: 26px; }

  .band { padding: 72px 0; }
  /* Height comes from the base rule now - only the padding changes. */
  .page-hero { padding: calc(var(--header-h) + 54px) 0 104px; }
  .page-hero-stats li { min-width: 0; padding: 0 16px; }
  .phs-value { font-size: 30px; }

  .suburb-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .suburb:nth-child(1) { grid-column: span 2; }

  /* The editorial split stacks: photographs first, then the argument.
     The inset comes back into the flow of the plate rather than
     hanging off its corner, and the figure moves inside the frame so
     it cannot push the page sideways on a phone. */
  .island-grid { grid-template-columns: 1fr; }
  .island-media { padding-bottom: 0; }
  .island-plate { aspect-ratio: 4 / 3; }
  .island-inset {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    border-width: 6px;
  }
  .island-stamp { left: 16px; top: 16px; }

  .process { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .process-step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .process-step:nth-child(even) { padding-left: 26px; }
  /* Cards keep their own box on every side, so the rail's odd/even
     padding dance does not apply to them. */
  .process-cards { gap: 22px; }
  .process-cards .process-step:nth-child(odd),
  .process-cards .process-step:nth-child(even) { padding: 28px 26px 30px; }

  .quote-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 22px; }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-feature { grid-column: span 2; }
  .plan-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 26px; }
  .faq-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .pd-facts { grid-template-columns: repeat(2, 1fr); }

  /* Filters collapse into a disclosure above the results */
  .listing-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel[data-collapsed="true"] .filter-body { display: none; }
  .filter-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .band { padding: 58px 0; }

  /* The hero used to take its height from its contents below 640 rather
     than chasing the viewport. It is full screen on a phone too now, to
     match every other width. min-height is a floor, not a ceiling, so a
     hero whose headline, lede and slab run past one screen still grows
     to fit them. */
  .page-hero {
    /* The bottom padding is the cue's room. It is pinned 30px off the
       bottom of the hero, so anything less than about 110px here and
       the ring lands on the slab under the lede. */
    padding: calc(var(--header-h) + 44px) 0 118px;
  }
  .page-hero h1 { font-size: 32px; }
  .page-hero .lede { font-size: 15.5px; }

  .page-hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .page-hero-actions .btn { width: 100%; justify-content: center; }

  /* Three figures will not sit across a phone at 9rem each. They keep
     the row - three short numbers is exactly what a row is for - but
     the minimum width goes and the seams come in. */
  .page-hero-stats {
    width: 100%;
    justify-content: space-between;
    margin-top: 34px;
    padding: 16px 6px;
  }
  .page-hero-stats li { min-width: 0; flex: 1; padding: 0 8px; }
  .page-hero-stats li + li::before { height: 38px; }
  .phs-value { font-size: 24px; }
  .phs-label { margin-top: 6px; font-size: 9.5px; letter-spacing: .06em; }

  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .results[data-view="list"] { grid-template-columns: 1fr; }
  .results[data-view="list"] .property-card { flex-direction: column; }
  .results[data-view="list"] .card-media { flex: none; height: 260px; }
  .card-agent { gap: 6px; font-size: 11px; }
  .card-agent img { width: 24px; height: 24px; flex-shrink: 0; }

  .suburb-grid { grid-template-columns: 1fr; }
  /* Every span has to be reset, not just the first two. A leftover
     `span 2` in a single column grid makes the browser invent a second
     implicit column and the section scrolls sideways. */
  .suburb { grid-column: span 1 !important; grid-row: span 1 !important; }
  .process { grid-template-columns: 1fr; }
  .process-step:nth-child(even) { padding-left: 0; }
  .process-cards .process-step:nth-child(even) { padding: 28px 26px 30px; }
  .svc-grid, .agent-grid { grid-template-columns: 1fr; }
  .svc-feature { grid-column: span 1; }
  .story-media { grid-template-columns: 1fr; }
  .story-media .img-frame:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .feature-list { grid-template-columns: 1fr; }
  .pd-facts, .pd-aside { grid-template-columns: 1fr; }
  .pd-heading { flex-direction: column; align-items: flex-start; }
  .pd-price { text-align: left; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-inner h2 { font-size: 27px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .to-top { right: 16px; bottom: 16px; }
}


/* ============================================================
   13  REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .acc-panel { transition: none; }
  .suburb img, .agent-photo img { transition: none; }
}
