/* The Portfolio by Hall & Hoolihan — shares tokens with hallandhoolihan.com */
:root {
  --cream: #faf7f1;
  --sand: #f3ecdf;
  --sand-2: #e9dfcb;
  --seafoam: #d9e8e8;
  --green: #1d3d47;
  --green-2: #163e47;
  --ink: #0b1c21;
  --gold: #c9973f;
  --gold-d: #9e6f2f;
  --gold-l: #f4ca78;
  --text-2: #2b4a54;
  --text-3: #3f5c66;
  --line: rgba(29, 61, 71, 0.12);
  --line-2: rgba(29, 61, 71, 0.22);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Archivo, Helvetica, Arial, sans-serif;
  --gold-grad: linear-gradient(180deg, #f4ca78 0%, #c9973f 55%, #9e6f2f 100%);
  --radius: 22px;
  --wrap: 1216px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--green); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--gold-d); }
a:hover { color: #7a5422; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
em.g { font-style: italic; color: var(--gold-d); }
.dark em.g, .hero em.g { color: var(--gold-l); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0 0; }
.section:last-of-type { padding-bottom: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-d); }
.dark .eyebrow, .hero .eyebrow { color: var(--gold-l); }
.h1 { font-size: clamp(48px, 8vw, 96px); line-height: 0.97; }
.h2 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; }
.h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 720px; }
.dark .lede { color: rgba(246, 239, 226, 0.86); }
.muted { color: var(--text-3); }
.small { font-size: 13px; line-height: 1.55; color: var(--text-3); }
.dark .small { color: rgba(246, 239, 226, 0.66); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.head > div { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--gold-grad); color: var(--ink); font: 600 12.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.btn-line { background: transparent; border: 1px solid var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--cream); filter: none; }
.dark .btn-line, .hero .btn-line { border-color: rgba(246, 239, 226, 0.55); color: #f6efe2; }
.dark .btn-line:hover, .hero .btn-line:hover { background: #f6efe2; color: var(--ink); }
.btn-dark { background: var(--green); color: #f6efe2; }
.btn-dark:hover { color: #f6efe2; background: var(--green-2); filter: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 11.5px; }

/* Demo bar + nav */
.demo-bar { background: var(--gold-l); color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; padding: 8px 16px; letter-spacing: 0.02em; }
.nav { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 160px; height: auto; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35)); }
.brand .rule { width: 1px; height: 34px; background: rgba(244, 202, 120, 0.45); }
.brand a { display: block; text-decoration: none; }
.brand .brand-home { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold-l); white-space: nowrap; }
.brand .brand-home:hover { color: #ffe2a6; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241, 233, 220, 0.9); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-l); }
.nav-links a.btn { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid rgba(244, 202, 120, 0.4); color: var(--gold-l); border-radius: 999px; min-height: 44px; padding: 0 16px; font: 600 12px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }

/* Hero */
.hero { position: relative; color: #f6efe2; background: var(--ink); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 45% at 50% 42%, rgba(11,28,33,0.55) 0%, rgba(11,28,33,0) 100%), linear-gradient(180deg, rgba(11,28,33,0.6) 0%, rgba(11,28,33,0.45) 40%, rgba(11,28,33,0.9) 85%, #0b1c21 100%); }
.hero .lede { color: #f6efe2; text-shadow: 0 1px 12px rgba(11,28,33,0.6); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero .lede { margin: 0 auto; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.search { position: relative; z-index: 1; margin-top: 28px; width: 100%; background: var(--cream); border-radius: 24px; padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px; text-align: left; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5); }
.search label { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-d); border-radius: 16px; }
.search label + label { border-left: 1px solid var(--line); border-radius: 0; }
.search select { border: 0; background: transparent; padding: 4px 0; font: 500 16px var(--sans); color: var(--green); letter-spacing: 0; text-transform: none; width: 100%; }
.search .btn { border-radius: 16px; min-height: 60px; background: var(--green); color: #f6efe2; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border-top: 1px solid var(--line-2); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.dark .stat { border-top-color: rgba(244, 202, 120, 0.35); }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 50px); line-height: 1; color: var(--green); }
.dark .stat b { color: var(--gold-l); }
.stat span { font-size: 14px; line-height: 1.45; color: var(--text-3); }
.dark .stat span { color: rgba(246, 239, 226, 0.78); }

/* Surfaces */
.dark { background: var(--ink); color: #f6efe2; }
.panel { border-radius: 28px; padding: 56px; }
.panel.dark { background: var(--ink); }
.panel.teal { background: var(--green-2); color: #f6efe2; }
.panel.sea { background: var(--seafoam); }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }

/* Paths */
.path { position: relative; min-height: 460px; border-radius: 24px; overflow: hidden; color: #f6efe2; text-decoration: none; display: flex; background: var(--green-2); }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.path:hover img { transform: scale(1.04); }
.path::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,28,33,0.05) 15%, rgba(11,28,33,0.92) 72%); }
.path .in { position: relative; z-index: 1; margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.path .num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold-l); }
.path h3 { font-size: 30px; line-height: 1.05; }
.path p { font-size: 14px; color: rgba(246, 239, 226, 0.84); }
.path .go { border-top: 1px solid rgba(246,239,226,0.2); padding-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #f6efe2; }
.path:hover { color: #f6efe2; }

/* Opportunity cards */
.opps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.opps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opp { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.opp .pic { position: relative; aspect-ratio: 16 / 9; background: var(--sand-2); }
.opp .pic img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.code { position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(11,28,33,0.8); color: var(--gold-l); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.k-golf { background: var(--green); color: #f6efe2; }
.k-lease { background: var(--gold-d); color: var(--cream); }
.k-str { background: var(--green-2); color: var(--gold-l); }
.k-rental { background: var(--text-3); color: var(--cream); }
.k-nohoa { background: var(--gold-l); color: var(--ink); }
.opp .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.opp .area { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-d); }
.opp h3 { font-size: 26px; line-height: 1.08; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.spec div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 12px; }
.spec div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.spec dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.spec dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--green); }
.rent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: var(--seafoam); border-radius: 14px; padding: 10px 14px; }
.rent div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rent b { overflow-wrap: anywhere; }
.rent .rl { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.rent b { font-size: 15px; font-weight: 700; color: var(--green); line-height: 1.3; }
.rent .est { margin-left: auto; align-self: center; font-size: 11px; font-weight: 600; color: var(--text-3); }
.fine { font-size: 12px; line-height: 1.5; color: var(--text-3); }
.opp .actions { margin-top: auto; display: flex; gap: 8px; }
.opp .actions .btn { flex: 1; padding: 0 12px; }
.empty { grid-column: 1 / -1; }

/* Filters */
.filters { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--green); font: 600 14px var(--sans); cursor: pointer; }
.tab .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sand-2); font-size: 12px; }
.tab[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #f6efe2; }
.tab[aria-pressed="true"] .n { background: var(--gold-l); color: var(--ink); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.filter-row label.sel { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.filter-row select { min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; padding: 0 12px; font: 14px var(--sans); color: var(--green); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--gold-d); width: 16px; height: 16px; margin: 0; }
.clear-zone { display: none; }
.clear-zone.on { display: inline-flex; }

.browse { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; align-items: start; margin-top: 24px; }
.browse aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }

/* Map */
.mapbox { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.mapbox .top { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.map { position: relative; aspect-ratio: 560 / 640; background: var(--seafoam) url("../img/map.svg") center / cover no-repeat; }
.map .sea { position: absolute; left: 4%; top: 46%; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 2vw, 24px); color: rgba(29,61,71,0.5); }
.zone { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 999px; border: 2px solid var(--gold-d); background: rgba(201,151,63,0.35); color: var(--ink); font: 700 12.5px var(--sans); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.zone::after { content: ""; position: absolute; inset: -7px; border-radius: 999px; }
.zone.off::after { display: none; }
.zone.off { width: 12px; height: 12px; border: 0; background: rgba(29,61,71,0.25); cursor: default; }
.zone.sel { background: var(--gold); border-color: var(--ink); box-shadow: 0 0 0 7px rgba(201,151,63,0.25); }
.zlabel { position: absolute; transform: translateY(-50%); padding: 4px 9px; border-radius: 999px; white-space: nowrap; font-size: 11.5px; font-weight: 600; background: var(--cream); color: var(--green); border: 1px solid rgba(29,61,71,0.18); pointer-events: none; }
.zlabel.r { margin-left: 22px; }
.zlabel.l { transform: translate(calc(-100% - 22px), -50%); }
.zlabel.b { transform: translate(-50%, 20px); }
.zlabel.sel { background: var(--ink); color: var(--gold-l); border-color: var(--ink); }
.zone-list { display: none; }
.zchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--green); font: 600 13px var(--sans); cursor: pointer; }
.zchip b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(201,151,63,0.35); font-size: 12px; }
.zchip.sel { background: var(--green); border-color: var(--green); color: #f6efe2; }
.zchip.sel b { background: var(--gold-l); color: var(--ink); }
@media (max-width: 600px) {
  .zlabel { display: none; }
  .zone-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); }
}
.legend { padding: 12px 20px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 999px; display: inline-block; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); }
.dark .table-wrap { background: rgba(246,239,226,0.04); border-color: rgba(246,239,226,0.14); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 14px 18px; background: var(--green); color: #f6efe2; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.dark th { background: transparent; color: var(--gold-l); border-bottom: 1px solid rgba(246,239,226,0.14); }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dark td { border-bottom-color: rgba(246,239,226,0.08); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td b { font-weight: 600; }
tr.group td { background: var(--sand-2); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 9px 18px; }
table.min { min-width: 760px; }

/* Key-value list */
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.kv dt, .kv dd { padding: 11px 0; border-top: 1px solid var(--line); margin: 0; font-size: 15px; }
.kv dd { text-align: right; font-weight: 600; padding-left: 16px; }
.dark .kv dt, .dark .kv dd, .teal .kv dt, .teal .kv dd { border-top-color: rgba(246,239,226,0.14); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.step { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step .n { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--gold); }
.step b { font-size: 16px; line-height: 1.3; }
.step p { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
.step.hl { background: var(--green); color: #f6efe2; border-color: var(--green); }
.step.hl .n { color: var(--gold-l); }
.step.hl p { color: rgba(246,239,226,0.82); }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; }
.list li::before { content: "—"; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.lock li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ca78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }

.big { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--sand-2); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }

.note { border: 1px solid rgba(158,111,47,0.35); background: var(--cream); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.note h3 { font-size: 24px; }
.note p { font-size: 15px; color: var(--text-2); line-height: 1.65; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; }
.gallery div { border-radius: 18px; overflow: hidden; background: var(--sand-2); }
.gallery div:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.detail aside { position: sticky; top: 108px; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.team img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 22px; background: var(--sand-2); }
.team img:last-child { aspect-ratio: 3 / 3.6; }

/* Footer */
.foot { margin-top: 96px; background: var(--ink); color: rgba(246,239,226,0.82); padding: 56px 0 40px; }
.foot .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot img { width: 200px; height: auto; }
.foot .cols { display: flex; gap: 56px; flex-wrap: wrap; font-size: 14px; line-height: 2; }
.foot .cols div { display: flex; flex-direction: column; }
.foot .cols b { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 4px; }
.foot a { color: rgba(246,239,226,0.82); text-decoration: none; }
.foot a:hover { color: var(--gold-l); }
.foot .legal { margin-top: 36px; border-top: 1px solid rgba(246,239,226,0.12); padding-top: 20px; font-size: 12px; line-height: 1.6; color: rgba(246,239,226,0.6); display: flex; flex-direction: column; gap: 8px; }

/* Form embed */
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: 26px; padding: 12px; box-shadow: 0 30px 60px -40px rgba(11,28,33,0.35); }
.form-card iframe { width: 100%; min-height: 1400px; border: 0; border-radius: 18px; background: #fff; display: block; }
.tag-banner { display: flex; gap: 14px; align-items: center; background: var(--green-2); color: #f6efe2; border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
.tag-banner[hidden] { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .browse { grid-template-columns: minmax(0, 1fr); }
  .browse aside { display: contents; }
  .browse aside .mapbox { order: 0; }
  .browse #list { order: 1; }
  .browse aside .panel { order: 2; }
  .browse aside > p { order: 3; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail aside { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav .wrap { height: 72px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-top: 1px solid rgba(244,202,120,0.2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 13px; border-bottom: 1px solid rgba(246,239,226,0.08); }
  .nav-links a.btn { margin-top: 14px; border-bottom: 0; }
  .brand { gap: 12px; }
  .brand img { width: 120px; }
  .brand .rule { height: 26px; }
  .brand .brand-home { font-size: 20px; }
  .split, .grid-2, .grid-3, .opps, .opps.three { grid-template-columns: minmax(0, 1fr); }
  .search select { min-height: 40px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; scroll-snap-align: start; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 12px 14px 4px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row > * { flex-shrink: 0; }
  .head { gap: 20px; }
  .panel .stats { gap: 20px; }
  .search { grid-template-columns: 1fr; }
  .search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .panel { padding: 36px 24px; border-radius: 22px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; }
  .gallery div:first-child { grid-column: span 2; grid-row: auto; }
  .section { padding-top: 64px; }
  .hero .wrap { padding-top: 72px; }
}
@media (max-width: 520px) {
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { padding-bottom: 2px; color: var(--text-3); font-size: 13px; }
  .kv dd { text-align: left; padding: 0 0 11px; border-top: 0; }
  .dark .kv dt, .teal .kv dt { color: rgba(246,239,226,0.7); }
  .rent b { font-size: 14px; }
  .rent { gap: 10px; padding: 10px 12px; }
  .grid-4, .stats, .steps { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 28px 18px; }
  .card { padding: 20px; }
  td, th { padding: 11px 12px; }
  .opp .actions { flex-direction: column; }
  .zlabel { font-size: 11px; padding: 3px 7px; }
}
