:root {
  --ink: #12212b;
  --muted: #5b6d78;
  --brand: #0b3b4f;
  --brand-2: #0e5a74;
  --accent: #e8a33d;
  --bg: #f6f8f9;
  --card: #ffffff;
  --line: #dde5e9;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--brand); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: .2px; }
.brand-mark { color: var(--accent); font-size: 1.5rem; line-height: 1; }
.header-nav a { color: #cfe3ec; text-decoration: none; margin-left: 22px; font-size: .95rem; }
.header-nav a:hover { color: #fff; }

/* Hero + search */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 48px 0 40px; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
.hero-accent { color: var(--accent); }
.hero-sub { max-width: 640px; color: #d7e7ee; margin: 0 0 26px; font-size: 1.05rem; }

.search-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: 0 12px 32px rgba(4, 32, 45, .28); }
.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.search-row + .search-row { margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.field.grow { flex: 1 1 100%; }
.field span { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand-2); border-color: transparent; }

.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 12px 22px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #231600; }
.btn-primary:hover { filter: brightness(1.06); }
.search-btn { margin-left: auto; }

.coverage-note {
  margin-top: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; color: #eaf4f8; font-size: .95rem;
}
.coverage-note strong { color: #fff; }

/* Filters */
.filter-block { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: grid; gap: 12px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; align-self: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.chip:hover { border-color: var(--brand-2); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; padding-bottom: 10px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.btn-clear { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); padding: 11px 18px; margin-left: auto; }
.btn-clear:hover { background: var(--bg); }

/* City coverage header */
.city-header { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.city-header h3 { margin: 0 0 6px; font-size: 1.3rem; }
.city-header p { margin: 4px 0; }
.city-header .coverage-text { color: #33454f; }
.city-header .city-count { color: var(--muted); font-size: .92rem; }

/* List / map toggle + map */
.results-head { flex-wrap: wrap; }
.view-toggle { display: inline-flex; margin-left: auto; border: 1.5px solid var(--brand); border-radius: 10px; overflow: hidden; }
.view-btn { border: 0; background: #fff; color: var(--brand); font-weight: 700; font-size: .92rem; padding: 8px 18px; cursor: pointer; }
.view-btn.active { background: var(--brand); color: #fff; }
#map { height: 440px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; position: relative; z-index: 0; }
.map-popup .where { color: var(--muted); margin: 4px 0 8px; }
.map-popup .btn { padding: 7px 14px; font-size: .88rem; }
.empty-coverage { max-width: 640px; margin: 10px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; color: #33454f; }

/* Results */
main { padding: 34px 0 10px; }
.results-head { display: flex; align-items: baseline; gap: 14px; }
.results-head h2 { margin: 0; font-size: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: 0 10px 26px rgba(11, 59, 79, .12); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.card .where { color: var(--muted); font-size: .9rem; }
.card p { margin: 0; color: #33454f; font-size: .95rem; }
.card .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-official   { background: #0b3b4f; color: #ffd98a; }
.badge-verified   { background: #e2f2e6; color: #14632e; }
.badge-claimed    { background: #fdf0d7; color: #8a5a00; }
.badge-unverified { background: #eceff1; color: #5b6d78; }

.source-line { border-top: 1px dashed var(--line); padding-top: 10px; font-size: .85rem; color: var(--muted); }
.source-line .scope { display: block; margin-top: 3px; font-style: italic; }
.sample-tag { font-size: .7rem; font-weight: 700; color: #8a5a00; background: #fdf0d7; border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

.empty { text-align: center; color: var(--muted); padding: 34px 10px; }

/* How / CTA */
.how, .cta { margin-top: 42px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how h2, .cta h2 { margin-top: 0; }
.tier-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.tier-list li { display: flex; gap: 12px; align-items: flex-start; }
.tier-list .badge { margin-top: 2px; }

/* Footer */
.site-footer { margin-top: 44px; border-top: 1px solid var(--line); padding: 22px 0 30px; background: #fff; }
.site-footer p { margin: 4px 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(9, 30, 40, .55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal-backdrop[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius); max-width: 620px; width: 100%; padding: 26px; position: relative; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.7rem; cursor: pointer; color: var(--muted); }
.modal h3 { margin: 0 30px 4px 0; font-size: 1.4rem; }
.modal .where { color: var(--muted); margin-bottom: 12px; }
.modal dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 16px 0; font-size: .95rem; }
.modal dt { color: var(--muted); font-weight: 600; }
.modal dd { margin: 0; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-call { background: var(--brand); color: #fff; }
.btn-wa { background: #1faa55; color: #fff; }
.btn-mail { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .header-nav { display: none; }
  .search-btn { margin-left: 0; width: 100%; }
}
