/* 택곤의 낚시 — fish.dejaein.com */
:root {
  --bg: #0b1c24;
  --bg-soft: #10242d;
  --card: #12262f;
  --elev: #1a3340;
  --text: #e8f0f3;
  --muted: #9bb0b8;
  --faint: #6e868e;
  --line: #2a4550;
  --accent: #3db8c1;
  --accent-dim: rgba(61, 184, 193, 0.16);
  --origin: #f0c14a;
  --lure: #3dba7a;
  --surf: #4a8cf0;
  --paid: #e0a14a;
  --warn: #f0c14a;
  --warn-bg: rgba(240, 193, 74, 0.12);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --font: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 28, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--muted); }

nav.site-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
nav.site-nav a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
}
nav.site-nav a:hover { color: var(--text); background: var(--elev); text-decoration: none; }
nav.site-nav a.active {
  color: var(--text);
  background: var(--accent-dim);
  border-color: var(--accent);
}

h1 { font-size: 1.55rem; margin: 24px 0 8px; letter-spacing: -0.03em; }
.lead { color: var(--muted); margin: 0 0 20px; }

.callout {
  background: var(--warn-bg);
  border: 1px solid rgba(240, 193, 74, 0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 24px;
}
.callout strong { color: var(--warn); display: block; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--text); font-size: 14px; }

section { margin: 28px 0; }
section h2 { font-size: 1.15rem; margin: 0 0 10px; }
section .body, .prose { color: var(--muted); font-size: 15px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.filters input { accent-color: var(--accent); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 10px; height: 10px; border-radius: 99px; display: inline-block;
}
.dot.origin { background: var(--origin); }
.dot.lure { background: var(--lure); }
.dot.surf { background: var(--surf); }
.dot.paid { background: var(--paid); }

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#map {
  width: 100%;
  height: min(62vh, 620px);
  min-height: 340px;
  background: #14303a;
}
.map-tools {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
}
.map-tools button, .btn {
  background: var(--elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.map-tools button:hover, .btn:hover { border-color: var(--accent); }
.map-note { font-size: 12px; color: var(--faint); margin: 8px 0 0; }

.spot-list { display: grid; gap: 12px; }
.spot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
}
.spot-card:hover, .spot-card.active { border-color: var(--accent); background: var(--elev); }
.spot-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.lure { background: rgba(61, 186, 122, 0.16); color: var(--lure); }
.badge.surf { background: rgba(74, 140, 240, 0.16); color: #7aa8f5; }
.badge.paid { background: rgba(224, 161, 74, 0.16); color: var(--paid); }
.badge.origin { background: rgba(240, 193, 74, 0.16); color: var(--origin); }
.badge.approx { background: rgba(240, 193, 74, 0.12); color: var(--warn); }
.spot-card h3 { margin: 0; font-size: 16px; }
.spot-card .zh { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.spot-card .notes { font-size: 14px; color: var(--text); margin: 0 0 10px; }
.links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }

.excluded { color: var(--muted); padding-left: 1.1em; }
.excluded li { margin: 6px 0; }

.placeholder {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
}
.placeholder h1 { margin-top: 0; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 0 8px;
  color: var(--faint);
  font-size: 12px;
}

/* Leaflet popup theming */
.leaflet-container { font-family: var(--font); background: #14303a; }
.leaflet-popup-content-wrapper {
  background: var(--elev);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.leaflet-popup-content { margin: 12px 14px; min-width: 200px; }
.leaflet-popup-tip { background: var(--elev); }
.leaflet-popup-content .name { font-weight: 700; }
.leaflet-popup-content .zh { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.leaflet-popup-content .meta { font-size: 13px; margin-bottom: 6px; }
.leaflet-popup-content .notes { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.leaflet-control-zoom a {
  background: var(--elev) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.leaflet-bar { border-color: var(--line) !important; }
.leaflet-control-attribution {
  background: rgba(11, 28, 36, 0.8) !important;
  color: var(--faint) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--accent) !important; }

.marker-label {
  background: rgba(11, 28, 36, 0.82);
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.leaflet-tooltip-top:before { border-top-color: rgba(11, 28, 36, 0.82); }

@media (max-width: 640px) {
  h1 { font-size: 1.3rem; }
  nav.site-nav { margin-left: 0; width: 100%; }
  #map { height: 55vh; min-height: 280px; }
  .header-inner { gap: 8px; }
}
