:root {
  --ink: #1a2330;
  --muted: #5c564c;
  --green: #17382c;
  --green-2: #214c3b;
  --copper: #8c3c14;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e3d9c8;
  --sold: #7c2d2d;
  --focus: #8c3c14;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --shadow: 0 12px 30px rgba(26, 35, 48, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.5 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--green-2); }
a:hover { color: var(--copper); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  background: var(--green);
  color: #f6f1e7;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header a { color: inherit; text-decoration: none; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: grid; gap: 0.2rem; max-width: 100%; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.brand span { color: #d7c7a4; font-size: 0.95rem; line-height: 1.35; max-width: min(20rem, 100%); }
.header-contact { display: grid; gap: 0.45rem; width: 100%; }
.header-phone {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.digits { font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-actions { display: flex; gap: 0.5rem; width: 100%; }
.header-actions .btn { flex: 1; }
.header-actions .btn-email { flex: 1 1 100%; }
.btn-email { background: #fff; color: var(--green); border-color: #d7c7a4; }
.site-header .btn-email { background: transparent; color: #f6f1e7; border-color: #d7c7a4; }
.btn-email small { white-space: normal; }
.contact-phone { font-size: 1.15rem; font-weight: 800; }
.contact-phone a { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: var(--green);
}
.btn small { display: block; font-size: 0.95rem; font-weight: 800; }
.btn-call { background: #f3e2c8; color: var(--green); }
.btn-call small { color: var(--green); }
.btn-text { background: #fff; color: var(--green); border-color: var(--green); }
.btn-text small { color: var(--green); }
.site-header .btn-text { background: transparent; color: #f6f1e7; border-color: #d7c7a4; }
.site-header a.btn-call,
.site-header a.btn-call small {
  background: #f3e2c8;
  color: #17382c;
}
.site-header .btn small { color: inherit; }
.btn-line { background: #fff; color: var(--green); border-color: var(--green); }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-2); color: #fff; }
.btn .stack { display: grid; line-height: 1.15; }
.btn .stack small { font-size: 0.75rem; font-weight: 650; }

.hero { padding: 1.6rem 0 0.4rem; }
.hero-grid { display: grid; gap: 1.25rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.lede { font-size: 1.08rem; max-width: 40rem; margin: 0 0 0.9rem; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.points li::before { content: "· "; color: var(--copper); font-weight: 700; }
.visit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow);
}
.visit h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.visit p { margin: 0.25rem 0; }
.kicker { color: var(--copper); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.2rem; }
.placeholder {
  display: inline-block;
  border: 1.5px dashed var(--copper);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  color: var(--copper);
  font-weight: 800;
  background: #fff8f2;
}
.dealer-line { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.dealer-line a { font-weight: 800; }

.section { padding: 1.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 0.8rem; }
.tools {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
}
.field { display: grid; gap: 0.25rem; font-weight: 700; }
.field span { font-size: 0.82rem; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cfc3af;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  width: 100%;
}
.tool-row { display: grid; gap: 0.7rem; }
.note { color: var(--muted); font-size: 0.92rem; }
.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card[data-status="sold"] { opacity: 0.78; }
.frame { position: relative; aspect-ratio: 4 / 3; background: #ddd4c4; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  padding: 1rem;
  text-align: center;
}
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-sold { left: auto; right: 0.7rem; background: var(--sold); }
.badge-transit {
  left: auto;
  right: 0.7rem;
  background: #f0b429;
  color: #1a2330;
  text-transform: none;
  letter-spacing: 0;
}
.badge-inline.badge-transit { position: static; left: auto; right: auto; }
.transit-note { margin: 0.35rem 0 0; font-weight: 700; }
.badge-used { background: var(--green); }
.badge-new { background: var(--copper); }
.badge-inline { position: static; margin-right: 0.35rem; vertical-align: middle; }
.show-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-bottom: 0.2rem;
}
.field-show { min-width: min(100%, 16rem); }
.field-show select {
  border: 2px solid var(--green);
  font-weight: 800;
  min-height: 52px;
  background: #fff;
}
#count { margin: 0; font-size: 1.15rem; font-weight: 800; }
a.quote { color: var(--copper); font-size: 1.05rem; font-weight: 800; }
.badge-away { top: auto; bottom: 0.7rem; background: #3d4a44; }
.card-body { padding: 0.9rem 0.95rem 1rem; display: grid; gap: 0.35rem; }
.card h2 { font-size: 1.35rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--copper); }
.trim { margin: 0; color: var(--muted); }
.price-row { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.price { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.miles { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.blurb { margin: 0; color: var(--ink); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 0.35rem; }
.actions .wide { grid-column: 1 / -1; }
.card .btn-call small, .card .btn-text small, .detail-actions .btn small { display: block; font-size: 0.72rem; }

.about {
  display: grid;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.portrait { margin: 0; }
.portrait img { width: 100%; border-radius: 14px; background: var(--green); object-fit: cover; aspect-ratio: 4 / 5; }
.portrait figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 0.4rem; }
.map {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 14px;
  margin-top: 0.8rem;
}
.share {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.share-actions, .detail-actions { display: grid; gap: 0.5rem; }
.specs { display: grid; gap: 0.35rem 1rem; margin: 0; }
.specs div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.4rem; border-bottom: 1px solid var(--line); padding: 0.35rem 0; }
.specs dt { margin: 0; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.4rem 0 0; list-style: none; }
.chips li { background: #f6f0e4; border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.88rem; }
.crumbs { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.6rem; }
.crumbs a { color: inherit; }
.gallery-nav { position: absolute; inset: auto 0.5rem 0.5rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.gallery-nav button, .photo-count {
  background: rgba(23, 56, 44, 0.88);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-weight: 700;
}
.photo-count { display: inline-flex; align-items: center; padding: 0 0.7rem; position: absolute; top: 0.7rem; right: 0.7rem; }
.back { margin: 0.4rem 0 0; }
.site-footer { background: var(--green); color: #f6f1e7; padding: 1.4rem 0 2rem; margin-top: 1rem; }
.site-footer a { color: #f3e2c8; }
.fine { color: #d7c7a4; font-size: 0.88rem; }

.admin { padding: 1.2rem 0 2rem; }
.admin form { display: grid; gap: 0.7rem; }
.admin-out { min-height: 12rem; font-family: ui-monospace, monospace; font-size: 0.86rem; }

@media (min-width: 720px) {
  .header-contact { width: auto; justify-items: end; }
  .header-actions { width: auto; }
  .header-actions .btn { flex: none; min-width: 11rem; }
  .header-actions .btn-email { flex: none; min-width: 16rem; }
  .hero-grid { grid-template-columns: 1.4fr 0.85fr; align-items: end; }
  .tool-row { grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 240px 1fr; align-items: start; }
  .share-actions { grid-template-columns: 1fr 1fr; }
  .detail-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: start; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .tools, .share, .actions, .gallery-nav { display: none !important; }
  body { background: #fff; }
}
