:root {
  --navy: #0c2340;
  --navy-2: #13325a;
  --orange: #e87722;
  --orange-dark: #c85f0f;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #17202b;
  --muted: #5d6b7a;
  --line: #e1e5ea;
  --ok: #1f8a4c;
  --bad: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(12, 35, 64, .08), 0 4px 14px rgba(12, 35, 64, .06);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: var(--navy-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem; position: sticky; top: 0; z-index: 1000;
  border-bottom: 4px solid var(--orange);
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: .2px; display: flex; align-items: center; gap: .5rem; }
.brand .mark { background: var(--orange); color: var(--navy); border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 900; }
.site-header nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-header nav a { color: #fff; text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { background: var(--navy-2); }
.site-header nav a.cta { background: var(--orange); color: var(--navy); }
.site-header nav a.cta:hover { background: #f38d3e; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 2rem 1rem 2.25rem; }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero h1 span { color: var(--orange); }
.hero p { color: #cfd8e3; max-width: 640px; margin: .25rem 0 0; font-size: 1.05rem; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.toolbar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .9rem; display: flex; flex-direction: column; gap: .75rem; margin-top: -1.5rem; position: relative; z-index: 2;
}
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--text); border-radius: 999px;
  padding: .35rem .8rem; font-size: .9rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.toolbar-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.toolbar-row input[type=search] { flex: 1 1 220px; }
.toggle { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--muted); cursor: pointer; user-select: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem; margin-top: 1rem; }
#map { height: calc(100vh - 140px); min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 84px; }
.list { display: flex; flex-direction: column; gap: .75rem; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 .25rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  #map { height: 45vh; min-height: 280px; position: relative; top: 0; order: -1; }
}

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.spot-card { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.spot-card:hover, .spot-card.hl { border-color: var(--orange); }
.spot-card .thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: #e9edf2; display: grid; place-items: center; color: var(--muted); font-size: 1.8rem; font-weight: 800; }
.spot-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .88rem; color: var(--muted); }
.meta b { color: var(--text); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: .15rem .5rem; border-radius: 6px; color: #fff; }
.price { font-weight: 800; color: var(--navy); }
.price.free { color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.tag { font-size: .75rem; background: #eef1f5; color: var(--navy-2); padding: .15rem .5rem; border-radius: 6px; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .25rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=search], input[type=number], input[type=email], input[type=url], input[type=password], select, textarea {
  width: 100%; font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 119, 34, .2); }
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.checks label { font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.picker-map { height: 320px; border-radius: 10px; border: 1.5px solid var(--line); }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--orange-dark); font-weight: 800; margin: .5rem 0 -.2rem; }
.hp { position: absolute; left: -9999px; }

.btn {
  font: inherit; font-weight: 700; border: none; border-radius: 9px; padding: .6rem 1rem; cursor: pointer;
  background: var(--navy); color: #fff; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
}
.btn:hover { background: var(--navy-2); }
.btn.orange { background: var(--orange); color: var(--navy); }
.btn.orange:hover { background: #f38d3e; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: #eef1f5; }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn.sm { padding: .35rem .65rem; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: wait; }

.photo-grid { display: flex; gap: .5rem; flex-wrap: wrap; }
.photo-grid .ph { position: relative; width: 96px; height: 96px; }
.photo-grid img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.photo-grid .x { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-weight: 800; line-height: 1; }

.notice { padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.notice.ok { background: #e3f4ea; color: #15603a; }
.notice.bad { background: #fbe7e5; color: #8e2a1f; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(9, 20, 36, .6); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.modal-bg.open { display: flex; }
.modal { background: var(--card); border-radius: 14px; max-width: 760px; width: 100%; padding: 1.25rem; position: relative; }
.modal .close { position: absolute; top: .6rem; right: .6rem; border: none; background: #eef1f5; border-radius: 50%; width: 34px; height: 34px; font-size: 1.2rem; cursor: pointer; }
.gallery { display: flex; gap: .5rem; overflow-x: auto; margin: .75rem 0; }
.gallery img { height: 200px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.detail-grid { display: grid; grid-template-columns: 140px 1fr; gap: .4rem 1rem; font-size: .95rem; margin: .75rem 0; }
.detail-grid dt { color: var(--muted); font-weight: 600; }
.detail-grid dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid dd { margin-bottom: .4rem; } }

/* ---------- Tips + footer ---------- */
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; }
.tips .card h3 { font-size: 1rem; color: var(--navy); }
.tips .card p { margin: 0; color: var(--muted); font-size: .92rem; }
footer { color: var(--muted); font-size: .85rem; text-align: center; padding: 2rem 1rem; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tab { background: #fff; border: 1.5px solid var(--line); padding: .45rem .9rem; border-radius: 9px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab .n { background: var(--orange); color: var(--navy); border-radius: 999px; padding: 0 .45rem; font-size: .8rem; margin-left: .3rem; }
.admin-item { display: grid; grid-template-columns: 80px 1fr auto; gap: .9rem; align-items: start; }
.admin-item .thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: #e9edf2; }
.admin-actions { display: flex; flex-direction: column; gap: .35rem; }
.status-pill { font-size: .72rem; font-weight: 800; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; }
.status-pending { background: #fff1e0; color: #9a4b00; }
.status-approved { background: #e3f4ea; color: #15603a; }
.status-denied { background: #fbe7e5; color: #8e2a1f; }
@media (max-width: 640px) {
  .admin-item { grid-template-columns: 64px 1fr; }
  .admin-item .thumb { width: 64px; height: 64px; }
  .admin-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
.login-box { max-width: 380px; margin: 4rem auto; }

/* ---------- Guide page ---------- */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.guide-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: .15rem; }
.guide-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: .35rem .6rem; border-radius: 8px; }
.guide-nav a:hover { background: #e9edf2; color: var(--navy); }
.guide section { scroll-margin-top: 90px; margin-bottom: 1rem; }
.guide section h2 { font-size: 1.25rem; color: var(--navy); }
.guide section h3 { font-size: 1rem; margin: 1rem 0 .35rem; }
.guide ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.guide li { margin: .3rem 0; }
.guide .callout { background: #fff4ea; border-left: 4px solid var(--orange); padding: .7rem .9rem; border-radius: 8px; margin: .6rem 0; }
.stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin-top: .5rem; }
.stops div { background: #f5f6f8; border-radius: 10px; padding: .6rem .75rem; font-size: .92rem; }
.stops b { display: block; color: var(--navy); }
.link-list a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
  .guide { grid-template-columns: 1fr; }
  .guide-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* Leaflet marker pins */
.bus-pin { background: var(--orange); color: var(--navy); border-color: var(--navy); font-size: 10px; }
.pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.stadium-pin { background: var(--navy); color: var(--orange); border: 3px solid var(--orange); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 900; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
