@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --pine: #183B2F;
  --pine-2: #22513F;
  --ground: #FBFAF7;
  --sand: #F2EEE4;
  --line: #E4E0D6;
  --muted: #55645C;
  --ember: #E8692C;
  --flame: #F6C45A;
  --ember-tint: #FFF4EC;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, sans-serif; background: var(--ground); color: var(--pine); -webkit-font-smoothing: antialiased; }
a { color: var(--pine); }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: var(--pine); }
h1, h2, .display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: 520px; margin: 0 auto; padding: 16px 20px 110px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field input, .field select, .field textarea {
  min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: #fff;
}
.field textarea { padding: 12px 14px; min-height: 64px; resize: vertical; }
.field input.big { font-family: var(--display); font-weight: 800; font-size: 22px; border: 2px solid var(--pine); }

.btn { min-height: 52px; border-radius: 16px; border: none; padding: 0 18px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-ember { background: var(--ember); color: #1a1a1a; }
.btn-quiet { background: #fff; border: 1px solid var(--line); color: var(--pine); font-family: Inter, sans-serif; font-weight: 600; font-size: 14px; min-height: 44px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .label { font-size: 13px; width: 60px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5D0C4; background: #fff; font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }

.meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.meter button { min-height: 70px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; }
.meter button[aria-pressed="true"] { border: 2px solid var(--ember); background: var(--ember-tint); }

.place { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.place[aria-pressed="true"] { border: 2px solid var(--pine); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--sand); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--display); font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }

.stay { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ECE8DE; }
.stay .grow { flex: 1; min-width: 0; }
.stay .site { font-family: var(--display); font-weight: 800; }

#map { height: 44vh; min-height: 280px; border-radius: 0 0 24px 24px; }
.map-full { margin: -16px -20px 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid #ECE8DE; }
.tabbar button { min-width: 72px; min-height: 44px; border: none; background: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.tabbar button[aria-current="page"] { color: var(--pine); }
.tabbar .add { width: 58px; height: 58px; border-radius: 18px; background: var(--ember); color: #1a1a1a; font-size: 30px; line-height: 1; margin-top: -20px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
