:root {
  --bg: #0f1412;
  --bg-2: #171d1a;
  --card: #1c2420;
  --line: rgba(232, 220, 196, 0.12);
  --ink: #f4efe4;
  --muted: #b7b0a0;
  --gold: #d4b483;
  --gold-2: #e8c99a;
  --green: #7d9b7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: Outfit, system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 180, 131, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(125, 155, 122, 0.14), transparent 50%),
    var(--bg);
}

#app {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 18px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.top-actions { display: flex; gap: 8px; flex-shrink: 0; }
.offline-banner {
  margin: -6px 0 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(232, 160, 122, 0.14);
  border: 1px solid rgba(232, 160, 122, 0.4);
  color: var(--ink);
  font-size: 14px;
}
.empty-state {
  padding: 22px 8px 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.saved-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
}
.saved-copy { padding: 14px 16px 16px; }
.saved-copy h3 { margin: 4px 0 6px; font-size: 22px; }
.saved-card .deal-links { margin-top: 12px; }

.brand { display: flex; gap: 12px; align-items: center; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.eyebrow, .kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}

.radar-mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative;
  background: conic-gradient(from 210deg, transparent 40%, rgba(212,180,131,.5), transparent 70%);
}
.radar-mark::after {
  content: "";
  position: absolute; inset: 12px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(15,20,18,.6);
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.hero h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin: 10px 0 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

input[type="text"] {
  background: #121816;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  font-size: 16px;
}

.chips, .dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.date-pick { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.date-pick label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.date-pick input[type="date"] {
  background: #121816;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  color-scheme: dark;
}
.chips.small .chip { font-size: 13px; padding: 8px 12px; }

.chip, .date-chip {
  border: 1px solid var(--line);
  background: #141a17;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.chip.active, .date-chip.active {
  background: rgba(212, 180, 131, 0.16);
  border-color: rgba(212, 180, 131, 0.55);
  color: var(--gold-2);
}

.primary, .ghost-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 14px;
}
.primary {
  width: 100%;
  margin-top: 6px;
  padding: 15px 16px;
  border: 0;
  background: linear-gradient(180deg, #e8c99a, #c9a36a);
  color: #1a140c;
  font-weight: 600;
}
.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
}
a.ghost-btn { text-decoration: none; display: inline-block; }

.hidden { display: none !important; }

.results { margin-top: 28px; }
.results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.results-tools { display: flex; flex-direction: column; gap: 8px; }
.sort-hint { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.map-wrap {
  height: min(68vh, 540px);
  min-height: 320px;
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #171d1a;
}
#map { height: 100%; width: 100%; background: #171d1a; }
.map-fallback { margin: 0; padding: 28px 18px; color: var(--muted); }
.leaflet-tooltip {
  background: #1c2420;
  color: #f4efe4;
  border: 1px solid rgba(212, 180, 131, 0.45);
  border-radius: 999px;
  box-shadow: none;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 12px;
}
.leaflet-tooltip-top:before { border-top-color: #1c2420; }
button.deal { border: 0; cursor: pointer; font: inherit; }
button.deal.quiet {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid rgba(212, 180, 131, 0.45);
}
.results-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  margin: 6px 0 0;
  font-weight: 400;
}

.city-grid { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .city-grid { grid-template-columns: 1fr 1fr; }
}

.city-card {
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.city-photo {
  height: 132px;
  background-color: #171d1a;
  background-size: cover;
  background-position: center;
  position: relative;
}
.city-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15,20,18,.55));
}
.wx-pill {
  position: absolute;
  z-index: 1;
  left: 10px; bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #1a140c;
  background: rgba(232, 201, 154, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
}
.city-body { padding: 14px 16px 16px; }
.city-body h3 { margin: 0 0 4px; font-size: 20px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(125,155,122,.35);
  padding: 3px 8px;
  border-radius: 999px;
}
.headlines { margin: 0; padding-left: 16px; color: #ddd6c8; font-size: 14px; }
.headlines li { margin: 3px 0; }

.city-view { margin-top: 8px; }
.back {
  background: none; border: 0; color: var(--gold); font: inherit; cursor: pointer; padding: 0 0 14px;
}
.city-hero {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.city-hero .photo {
  height: 180px;
  background-color: #171d1a;
  background-size: cover;
  background-position: center;
}
.home-error { color: #e8a07a; font-size: 14px; margin: 0 0 12px; line-height: 1.4; }
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  color: var(--muted);
  line-height: 1.5;
}
.empty-state p { margin: 0; }
.city-hero .copy { padding: 16px 18px 18px; background: var(--card); }
.city-hero h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px; margin: 0 0 6px; font-weight: 400;
}

.days { display: grid; gap: 12px; }
.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 8px;
}
.day h3 { margin: 0 0 6px; font-size: 14px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.wx-day, .wx-hero {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.wx-hero { color: var(--gold-2); margin-top: 8px; }

.nws-chip {
  position: absolute;
  z-index: 1;
  right: 10px; top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a140c;
  background: #e8c99a;
  border-radius: 999px;
  padding: 5px 9px;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nws-chip.extreme, .nws-chip.severe { background: #e8a07a; }
.nws-chip.moderate { background: #e8c99a; }
.nws-chip.minor { background: #c5d0b8; }

.nws-alert {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 160, 122, 0.45);
  background: rgba(232, 160, 122, 0.12);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.nws-alert.minor {
  border-color: rgba(125, 155, 122, 0.4);
  background: rgba(125, 155, 122, 0.12);
}
.nws-alert.moderate {
  border-color: rgba(212, 180, 131, 0.45);
  background: rgba(212, 180, 131, 0.1);
}
.nws-alert strong { display: inline; }
.event {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.event:first-of-type { border-top: 0; }
.event h4 { margin: 0 0 4px; font-size: 16px; }
.event h4 a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(212,180,131,.35); }
.event h4 a:hover { color: var(--gold-2); }
.event p { margin: 0; color: var(--muted); font-size: 13px; }

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stay-lead { color: var(--muted); font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
.deal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.deal {
  display: inline-block;
  text-decoration: none;
  color: #1a140c;
  background: linear-gradient(180deg, #e8c99a, #c9a36a);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
