/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  --forest-950: #0b2d25;
  --forest-900: #103d31;
  --forest-800: #16513f;
  --forest-700: #1e6450;
  --forest-600: #2b7a62;
  --sage-300: #afc6b7;
  --sage-200: #cfdcd1;
  --sage-100: #e6ede5;
  --paper: #f6f5f0;
  --paper-2: #eeede5;
  --white: #ffffff;
  --ink: #152420;
  --ink-2: #33453d;
  --muted: #5c6a63;
  --line: #dcdbd1;
  --line-strong: #c7c6ba;

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 86px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

/* ------------------------------------------------------------------ reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--forest-800);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--forest-700);
  outline-offset: 3px;
}

.site-footer :focus-visible,
.agent-band :focus-visible,
.aside-card :focus-visible,
.cta-inner :focus-visible {
  outline-color: var(--sage-300);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ------------------------------------------------------------------ utils */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--forest-900);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: var(--od-icon-size, 18px);
  height: var(--od-icon-size, 18px);
  flex: none;
  color: currentColor;
}

.icon-sm {
  --od-icon-size: 15px;
}

.icon-lg {
  --od-icon-size: 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.7;
}

.prose {
  max-width: 66ch;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 18px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  --od-icon-size: 17px;
}

.btn-primary {
  background: var(--forest-800);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest-900);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--forest-700);
  background: var(--white);
}

.btn-light {
  background: var(--paper);
  color: var(--forest-950);
}

.btn-light:hover {
  background: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.btn-wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link .icon {
  --od-icon-size: 15px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--forest-800);
  border-color: var(--forest-800);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------- header */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--forest-600);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled .header-bar {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--forest-900);
  color: var(--paper);
}

.brand-mark .icon {
  --od-icon-size: 22px;
}

.brand-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--forest-800);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s var(--ease);
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav > a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: var(--r-sm);
  background: var(--forest-800);
  color: #fff;
  font-weight: 600;
}

.main-nav .nav-cta:hover {
  background: var(--forest-900);
  color: #fff;
}

.main-nav .nav-cta .icon {
  --od-icon-size: 15px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  --od-icon-size: 20px;
}

.menu-toggle .icon-close {
  display: none;
}

.site-header.nav-open .menu-toggle .icon-menu {
  display: none;
}

.site-header.nav-open .menu-toggle .icon-close {
  display: block;
}

/* ------------------------------------------------------------------- hero */

.hero {
  padding: clamp(36px, 5vw, 68px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--forest-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 13ch;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--forest-700);
}

.hero-copy {
  max-width: 45ch;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .icon {
  --od-icon-size: 14px;
  color: var(--forest-700);
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--sage-200);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.hero-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 36px);
  padding: 11px 15px;
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 44px -28px rgba(11, 45, 37, 0.65);
}

.hero-tag > span:first-child {
  min-width: 0;
}

.hero-tag .tag-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.hero-tag .tag-name {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.15;
}

.hero-tag .tag-price {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-tag:hover .tag-name {
  color: var(--forest-800);
}

/* --------------------------------------------------------------- search */

.hero-search {
  position: relative;
  z-index: 5;
  margin-top: -34px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.05fr auto;
  gap: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 34px 60px -48px rgba(11, 45, 37, 0.55);
}

.search-field {
  min-width: 0;
  padding: 5px 18px;
  border-right: 1px solid var(--line);
}

.search-field label {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-field select {
  width: 100%;
  min-height: 32px;
  padding: 0 22px 0 0;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}

.search-field select:focus-visible {
  outline-offset: 1px;
}

.search-submit {
  align-self: center;
  margin: 0 4px 0 14px;
  min-height: 52px;
  padding-inline: 26px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes .icon {
  --od-icon-size: 14px;
  color: var(--forest-700);
}

/* --------------------------------------------------------------- sections */

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head .section-title {
  max-width: 18ch;
}

.section-head .text-link {
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------ cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 48px) clamp(18px, 2.4vw, 32px);
  align-items: start;
}

.card {
  min-width: 0;
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--sage-100);
}

.card-media img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--forest-900);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-body {
  padding-top: 17px;
}

.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card-title {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.card-title a:hover {
  color: var(--forest-800);
}

.card-price {
  flex: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
}

.card-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.card-facts .icon {
  --od-icon-size: 16px;
  color: var(--forest-700);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--forest-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-link .icon {
  --od-icon-size: 14px;
  transition: transform 0.25s var(--ease);
}

.card-link:hover .icon {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ areas */

.areas {
  padding: clamp(64px, 8vw, 104px) 0;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.areas-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.areas-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.areas-intro .section-title {
  max-width: 12ch;
  margin-top: 14px;
}

.areas-intro .lede {
  margin-top: 20px;
}

.areas-intro .text-link {
  margin-top: 28px;
}

.area-list {
  border-top: 1px solid var(--line-strong);
}

.area-row {
  display: grid;
  grid-template-columns: 84px 1fr auto 26px;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.3s var(--ease), color 0.2s var(--ease);
}

.area-row:hover {
  padding-left: 8px;
  color: var(--forest-800);
}

.area-row img {
  width: 84px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.area-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

.area-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.area-count {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.area-row > .icon {
  --od-icon-size: 20px;
  color: var(--forest-700);
  transition: transform 0.3s var(--ease);
}

.area-row:hover > .icon {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------- process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  color: var(--forest-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.step h3 {
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.15;
}

.step p {
  max-width: 34ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ------------------------------------------------------------------ agent */

.agent-band {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--forest-900);
  color: #fff;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.agent-band .eyebrow {
  color: var(--sage-300);
}

.agent-band h2 {
  max-width: 15ch;
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.agent-band h2 em {
  color: var(--sage-300);
  font-style: italic;
}

.agent-band p:not(.eyebrow) {
  max-width: 46ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.72;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.agent-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 38px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.agent-facts dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-facts dd {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
}

.agent-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--forest-800);
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------- cta */

.cta {
  padding: clamp(64px, 8vw, 104px) 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--r-lg);
  background: var(--forest-800);
  color: #fff;
}

.cta .eyebrow {
  color: var(--sage-300);
}

.cta h2 {
  max-width: 16ch;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.03;
}

.cta p:not(.eyebrow) {
  max-width: 40ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  padding: clamp(48px, 6vw, 78px) 0 26px;
  background: var(--forest-950);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 36px;
}

.site-footer .brand-mark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.footer-col p {
  margin-top: 6px;
  margin-bottom: 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

/* -------------------------------------------------------------- page head */

.page-head {
  padding: clamp(34px, 4.5vw, 58px) 0 clamp(26px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 11.5px;
}

.crumbs a:hover {
  color: var(--forest-800);
}

.crumbs .icon {
  --od-icon-size: 13px;
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.page-head .lede {
  margin-top: 16px;
}

.page-head-aside {
  flex: none;
  padding-bottom: 6px;
  text-align: right;
}

.page-head-aside strong {
  display: block;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  font-family: var(--display);
}

.page-head-aside span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- filters */

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.dd {
  position: relative;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.dd-btn:hover {
  border-color: var(--forest-700);
}

.dd.is-active .dd-btn {
  border-color: var(--forest-800);
  box-shadow: inset 0 0 0 1px var(--forest-800);
}

.dd.is-active .dd-value::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--forest-700);
  vertical-align: 1px;
}

.dd-btn .icon {
  --od-icon-size: 14px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.dd.is-open .dd-btn .icon {
  transform: rotate(180deg);
}

.dd-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 50;
  min-width: 216px;
  max-width: calc(100vw - 40px);
  padding: 6px;
  border-radius: 10px;
  background: var(--forest-950);
  box-shadow: 0 28px 54px -24px rgba(11, 45, 37, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.dd.is-open .dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.dd-option:hover,
.dd-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.dd-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dd-option .icon {
  --od-icon-size: 14px;
  opacity: 0;
  color: var(--sage-300);
}

.dd-option[aria-selected="true"] .icon {
  opacity: 1;
}

.filter-sort {
  margin-left: auto;
}

.filter-sort .dd-btn {
  background: transparent;
}

/* ---------------------------------------------------------------- listing */

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 26px;
}

.results-count {
  font-size: 14px;
  font-weight: 700;
}

.results-summary {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.reset-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--forest-800);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.reset-link:hover {
  border-color: var(--forest-800);
}

.reset-link.is-quiet {
  color: var(--muted);
}

.listing-section {
  padding-bottom: clamp(64px, 8vw, 104px);
}

.listing-card {
  animation: cardIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.related .listing-card {
  animation: none;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(44px, 8vw, 80px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
}

.empty-state h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 400;
  line-height: 1.1;
}

.empty-state p:not(.eyebrow) {
  max-width: 42ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state .btn {
  margin-top: 24px;
}

/* ----------------------------------------------------------------- detail */

.detail {
  padding: clamp(28px, 4vw, 46px) 0 0;
}

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.detail-head .eyebrow {
  margin-bottom: 12px;
}

.detail-head h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.detail-loc {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.detail-loc .icon {
  --od-icon-size: 16px;
  color: var(--forest-700);
}

.detail-price {
  flex: none;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-price small {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery-main,
.gallery-rail figure {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--sage-100);
}

.gallery-main {
  aspect-ratio: 3 / 2;
}

.gallery-rail figure {
  aspect-ratio: 4 / 3;
}

.gallery-main img,
.gallery-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.detail-section .eyebrow {
  margin-bottom: 12px;
}

.detail-section h2 {
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.detail-section .prose {
  margin-top: 16px;
  font-size: 15.5px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.spec {
  padding: 16px 18px;
  background: var(--white);
}

.spec dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.spec dd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.feature-list .icon {
  --od-icon-size: 16px;
  margin-top: 2px;
  color: var(--forest-700);
}

.disclaimer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  padding: clamp(24px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: var(--forest-900);
  color: #fff;
}

.aside-card .eyebrow {
  color: var(--sage-300);
}

.aside-card h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.05;
}

.aside-card > p:not(.eyebrow) {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
}

.agent-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--sage-200);
  color: var(--forest-950);
  font-family: var(--display);
  font-size: 20px;
}

.agent-mini strong {
  display: block;
  font-size: 13.5px;
}

.agent-mini div span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.aside-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 10.5px !important;
  line-height: 1.55 !important;
}

.related {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.detail-bar {
  display: none;
}

.not-found {
  padding: clamp(64px, 10vw, 120px) 0;
}

.not-found h1 {
  max-width: 18ch;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.02;
}

.not-found p:not(.eyebrow) {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--muted);
}

.not-found .btn {
  margin-top: 26px;
}

/* ------------------------------------------------------------------ about */

.about-hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.about-hero h1 {
  max-width: 14ch;
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 86px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.about-hero h1 em {
  font-style: italic;
  color: var(--forest-700);
}

.about-hero .lede {
  margin-top: 24px;
}

.about-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--sage-100);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story {
  padding: clamp(56px, 7vw, 96px) 0;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-story-grid .section-title {
  max-width: 13ch;
}

.about-story-grid .prose {
  font-size: 16px;
}

.pull {
  margin: 30px 0;
  padding-left: 22px;
  border-left: 2px solid var(--forest-700);
  color: var(--forest-900);
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.22;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.about-facts div {
  padding: 16px 18px;
  background: var(--white);
}

.about-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-facts dd {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
}

.about-values {
  padding: clamp(56px, 7vw, 96px) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 44px);
}

.value {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.value h3 {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.value p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.about-areas {
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.about-areas-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.area-links {
  border-top: 1px solid var(--line-strong);
}

.area-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.25s var(--ease), color 0.2s var(--ease);
}

.area-link:hover {
  padding-left: 6px;
  color: var(--forest-800);
}

.area-link .name {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.15;
}

.area-link .note {
  color: var(--muted);
  font-size: 11.5px;
}

/* ----------------------------------------------------------------- dialog */

dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(8, 28, 23, 0.64);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - 40px);
  padding: clamp(24px, 4vw, 34px);
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: var(--paper);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.dialog-close:hover {
  border-color: var(--forest-700);
}

.dialog-close .icon {
  --od-icon-size: 18px;
}

.booking-form h2,
.dialog-success h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
}

.dialog-intro {
  max-width: 38ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-intro span {
  color: var(--ink);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.field {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field .optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b968f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest-700);
  outline: 2px solid var(--forest-700);
  outline-offset: 1px;
}

.field-error {
  display: none;
  color: #9b2c22;
  font-size: 11.5px;
  line-height: 1.4;
}

.field.has-error input,
.field.has-error select {
  border-color: #9b2c22;
}

.field.has-error .field-error {
  display: block;
}

.booking-form .btn-wide {
  margin-top: 20px;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.dialog-success {
  display: none;
}

.dialog-success.is-visible {
  display: block;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--forest-800);
  color: #fff;
}

.success-mark .icon {
  --od-icon-size: 22px;
}

.dialog-success > p:not(.form-note) {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.success-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.success-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px;
  background: var(--white);
}

.success-list dt {
  color: var(--muted);
  font-size: 11px;
}

.success-list dd {
  font-size: 11.5px;
  font-weight: 700;
  text-align: right;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.success-actions .btn {
  flex: 1 1 auto;
}

/* ---------------------------------------------------------------- reveals */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker,
  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-meta,
  .hero-media {
    animation: heroRise 0.9s var(--ease) both;
  }

  .hero h1 {
    animation-delay: 0.06s;
  }

  .hero-copy {
    animation-delay: 0.14s;
  }

  .hero-actions {
    animation-delay: 0.2s;
  }

  .hero-meta {
    animation-delay: 0.26s;
  }

  .hero-media {
    animation-name: heroMedia;
    animation-delay: 0.12s;
  }

  .search-panel {
    animation: heroRise 0.9s var(--ease) 0.3s both;
  }

  @keyframes heroRise {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes heroMedia {
    from {
      opacity: 0;
      transform: scale(0.985);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .main-nav {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(48px, 5.6vw, 76px);
  }
}

@media (max-width: 1100px) {
  .search-panel {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 8px;
  }

  .search-field {
    padding: 12px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .search-field:nth-child(even) {
    border-right: 0;
  }

  .search-field:nth-child(3),
  .search-field:nth-child(4) {
    border-bottom: 0;
  }

  .search-submit {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    width: 100%;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 74px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .main-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav .nav-cta {
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    border-bottom: 0;
    font-size: 14px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    max-width: 15ch;
    font-size: clamp(46px, 8vw, 70px);
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .hero-search {
    margin-top: -22px;
  }

  .hero-notes {
    padding-top: 16px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .areas-intro {
    position: static;
  }

  .areas-intro .section-title {
    max-width: 20ch;
  }

  .agent-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .agent-media {
    aspect-ratio: 16 / 9;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-aside {
    position: static;
    max-width: 520px;
  }

  .detail-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -12px 28px -24px rgba(11, 45, 37, 0.6);
  }

  .has-detail-bar {
    padding-bottom: 84px;
  }

  .detail-bar-price {
    flex: 1 1 auto;
    min-width: 0;
  }

  .detail-bar-price span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .detail-bar-price strong {
    display: block;
    font-size: 15px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .detail-bar .btn {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 12.5px;
    flex: none;
  }

  .detail-bar .btn .icon {
    --od-icon-size: 15px;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-hero h1 {
    max-width: 15ch;
  }

  .about-story-grid,
  .about-areas-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-story-grid .section-title {
    max-width: 20ch;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .filter-bar {
    position: static;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dd-btn {
    width: 100%;
  }

  .dd-menu {
    min-width: max(100%, 200px);
  }

  .dd:nth-child(even) .dd-menu {
    right: 0;
    left: auto;
  }

  .filter-sort {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .filter-sort .dd-menu {
    right: 0;
    left: auto;
  }
}

@media (max-width: 820px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
  }

  .step h3 {
    margin-top: 0;
  }

  .step p {
    grid-column: 2;
    margin-top: -6px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .page-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .page-head-aside {
    text-align: left;
    padding-bottom: 0;
  }

  .detail-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .detail-price small {
    text-align: left;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-text small {
    display: none;
  }

  .header-bar {
    gap: 16px;
  }

  .hero-meta {
    gap: 10px 20px;
    margin-top: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-head .text-link {
    margin-bottom: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .area-row {
    grid-template-columns: 64px 1fr 20px;
    gap: 14px;
  }

  .area-row img {
    width: 64px;
    height: 48px;
  }

  .area-count {
    display: none;
  }

  .area-name {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    margin-top: 36px;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-field {
    padding: 10px 14px;
  }

  .search-field select {
    font-size: 16px;
  }

  .hero-tag {
    bottom: 12px;
    left: 12px;
    padding: 9px 12px;
    gap: 10px;
  }

  .hero-tag .tag-price {
    padding-left: 10px;
    font-size: 12px;
  }

  .hero-tag .tag-name {
    font-size: 17px;
  }

  .hero-tag .tag-label {
    font-size: 8.5px;
  }

  .detail-price {
    font-size: 28px;
  }

  .gallery-rail {
    grid-template-columns: 1fr;
  }

  .detail-bar .btn-outline {
    display: none;
  }

  .detail-bar .btn-primary {
    padding-inline: 18px;
  }

  .spec {
    padding: 14px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 44px;
  }

  .btn {
    padding-inline: 16px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-field {
    border-right: 0;
  }

  .search-field:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .dd:nth-child(even) .dd-menu {
    right: auto;
    left: 0;
  }
}

/* -------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}
