﻿/* AJen: property detail. Same tokens as site.css, kept separate so the
   listing page and this one cannot break each other. */
:root {
  --bg: #ffffff; --surface: #f3f8f4; --ink: #171c19; --muted: #525e56;
  --blue: #16823b; --pale: #bce7c5;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --edge: 24px; --r: 6px; --track: -0.026em;
  --line: color-mix(in oklab, #171c19 18%, transparent);
}
@media (min-width: 640px) { :root { --edge: 48px; } }
@media (min-width: 1024px) { :root { --edge: 80px; } }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(100% - 2 * var(--edge), 1280px); margin-inline: auto; }
.eyebrow { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: var(--track); margin: 0; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 22px/1 var(--serif); letter-spacing: var(--track); text-decoration: none; }
.brand-logo { display: block; width: 264px; height: auto; flex: none; object-fit: contain; }
.brand .mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--blue); color: #fff; font: 400 16px/1 var(--serif); }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { text-decoration: none; opacity: .82; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border: 0; border-radius: var(--r); background: var(--blue); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; transition: filter .16s ease, transform .16s ease; }
.btn:hover { filter: brightness(1.09); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .45); }
.btn--ghost:hover { filter: none; background: rgb(255 255 255 / .1); border-color: #fff; }
.nav__menu { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; }
.nav__menu:hover { border-color: var(--blue); }
.nav__menu:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav__menu svg { width: 18px; height: 18px; }
.nav__menu .nav__menu-close { display: none; }
.nav.is-open .nav__menu .nav__menu-open { display: none; }
.nav.is-open .nav__menu .nav__menu-close { display: block; }
@media (max-width: 819px) {
  .nav__bar { justify-content: space-between; }
  .nav__menu { display: inline-flex; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 4px 24px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 26px rgb(17 17 19 / .09); }
  .nav.is-open nav { display: flex; }
  .nav nav a { padding: 13px 2px; border-top: 1px solid var(--line); font-size: 16px; opacity: 1; }
  .nav nav a:first-child { border-top: 0; }
}
@media (max-width: 639px) {
  .nav__bar { gap: 8px; }
  .brand { font-size: 18px; gap: 6px; white-space: nowrap; }
  .brand-logo { width: min(54vw, 230px); }
  .brand .mark { width: 22px; height: 22px; font-size: 14px; }
  .nav .btn { padding-inline: 10px; font-size: 13px; }
}

/* ---------------------------------------------------------------- detail: gallery left, dark rail right */
.detail { padding: 28px 0 0; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: stretch; }

.gallery { min-width: 0; }
.gallery__stage { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: #14130e; aspect-ratio: 16 / 10; }
.gallery__main { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.06); }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 4px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.chip--kind { left: 14px; bottom: 14px; background: var(--blue); color: #fff; }
.chip--count { right: 14px; bottom: 14px; background: rgb(255 255 255 / .94); color: var(--ink); letter-spacing: .06em; }
.chip--count b { font-weight: 600; }

.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); cursor: pointer; transition: background-color .16s ease, transform .16s ease; }
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: #fff; }
.arrow:active { transform: translateY(-50%) scale(.94); }
.arrow--prev { left: 14px; }
.arrow--next { right: 14px; }
.arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { padding: 0; border: 0; background: #14130e; border-radius: 4px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.06); opacity: .72; transition: opacity .2s ease; }
.thumb:hover img { opacity: 1; }
.thumb.is-on { outline: 2px solid var(--blue); outline-offset: -2px; }
.thumb.is-on img { opacity: 1; }
.thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* rail */
.rail { background: #f3f8f4; color: #111; border: 1px solid #dce5de; border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 0; }
.rail__area { margin: 0; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #52665a; }
.rail__title { margin: 12px 0 0; font: 500 clamp(24px, 2vw, 32px)/1.12 var(--serif); letter-spacing: var(--track); color: #111; }
.rail__price { margin: 14px 0 0; font: 500 38px/1 var(--sans); letter-spacing: -.03em; color: #111; }
.rail__price small { font: 500 13px/1 var(--sans); letter-spacing: .04em; color: #52665a; margin-left: 8px; }
.rail__summary { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: #313a34; }

.rail__icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgb(17 17 17 / .14); }
.rail__icons > div { display: grid; gap: 4px; color: #16823b; }
.rail__icons svg { width: 22px; height: 22px; }
.rail__icons b { font: 500 24px/1 var(--sans); letter-spacing: -.02em; color: #111; margin-top: 4px; }
.rail__icons span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #52665a; }

.rail__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgb(17 17 17 / .14); }
.rail__icons { margin-bottom: 20px; }.rail__actions .btn { width: 100%; }
.rail__actions .btn--ghost { color: #111; border: 1px solid rgb(17 17 17 / .2); background: transparent; }
.rail__actions .btn--ghost:hover { background: #e7f1e9; border-color: #16823b; }
.rail__note { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #52665a; }

/* ---------------------------------------------------------------- spec strip */
.spec { margin-top: 20px; }
.spec__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec__row > div { padding: 18px 16px 18px 0; border-right: 1px solid var(--line); }
.spec__row > div:last-child { border-right: 0; }
.spec__row > div:first-child { padding-left: 0; }
.spec span { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.spec b { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; }

/* ---------------------------------------------------------------- tick list */
.ticks { padding: 34px 0 0; }
.ticks__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.ticks__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.tick svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- about + getting around */
.body { padding: 44px 0 8px; border-top: 1px solid var(--line); margin-top: 34px; }
.body__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
.copy { grid-column: 1 / span 7; }
.copy h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.copy p { margin: 0 0 16px; max-width: 62ch; }
.copy p:last-child { margin-bottom: 0; }
.walkblock { grid-column: 9 / -1; }
.walkblock h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 12px; }
.walk { margin: 0; display: grid; }
.walk > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.walk > div:first-child { border-top: 1px solid var(--line); }
.walk dt { color: var(--muted); }
.walk dd { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------------- pager */
.pager { border-top: 1px solid var(--line); margin-top: 34px; }
.pager__row { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.pager a { text-decoration: none; display: grid; gap: 4px; }
.pager a:hover .pager__name { text-decoration: underline; text-underline-offset: 4px; }
.pager .eyebrow { color: var(--muted); }
.pager__name { font: 400 clamp(20px, 2.2vw, 26px)/1.15 var(--serif); letter-spacing: var(--track); }
.pager a:last-child { text-align: right; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--bg); border-top: 3px solid var(--blue); margin-top: 40px; }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 0 10px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { padding: 0 0 30px; margin: 0; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1099px) {
  .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .body__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { padding: 26px 24px; }
  .rail__price { font-size: 34px; }
  .spec__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec__row > div:nth-child(3n) { border-right: 0; }
  .ticks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copy { grid-column: 1 / -1; }
  .walkblock { grid-column: 1 / -1; margin-top: 30px; }
}
@media (max-width: 639px) {
  .detail { padding-top: 16px; }
  .gallery__stage { aspect-ratio: 4 / 3; }
  .thumbs { overflow-x: auto; grid-template-columns: repeat(5, 74px); padding-bottom: 4px; scrollbar-width: thin; }
  .arrow { width: 34px; height: 34px; }
  .spec__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__row > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .spec__row > div:nth-child(2n) { border-right: 0; }
  .ticks__list { grid-template-columns: 1fr; }
  .rail__icons b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .arrow, .thumb img { transition: none; }
}
