/* Styles for the generated SEO listicle pages (scripts/generate_seo_pages.py).
   Self-contained layout — deliberately independent of the app's style.css so
   these static pages stay light and don't inherit the map-app chrome. */

:root {
  --ink: #14202b;
  --muted: #5c6b78;
  --line: #e3e8ec;
  --accent: #0a84c2;
  --bg: #f7f9fa;
  --card: #ffffff;
}

* { box-sizing: border-box; }

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

.seo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.seo-header a { display: inline-flex; }

.seo-wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 64px; }

.seo-wrap h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 4px; }
.seo-crumbs { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.seo-crumbs a { color: var(--accent); text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-intro { font-size: 1.1rem; color: #33424e; margin: 0 0 24px; }

#map {
  height: 360px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 32px;
  background: #dfe7ec;
}

.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }

.spot-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spot-card__media { position: relative; background: #dfe7ec; min-height: 160px; }
.spot-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-card__rank {
  position: absolute; top: 10px; left: 10px;
  background: rgba(10,132,194,0.95); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  padding: 2px 9px; border-radius: 999px;
}
.spot-card__body { padding: 16px 18px; }
.spot-card__body h2 { margin: 0 0 4px; font-size: 1.25rem; }
.spot-card__body h2 a { color: var(--ink); text-decoration: none; }
.spot-card__body h2 a:hover { color: var(--accent); }
.spot-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.spot-meta span:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--line); }
.spot-desc { margin: 0 0 12px; font-size: 0.97rem; }
.spot-wind { font-size: 0.9rem; color: #33424e; }
.spot-wind .dirs { color: var(--muted); }

.live-wind {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; padding: 5px 10px;
  background: #eef6fb; border-radius: 8px; font-size: 0.9rem;
  color: var(--accent); font-weight: 600;
}
.live-wind[hidden] { display: none; }
.live-wind .arrow { display: inline-block; transition: transform 0.2s; }

.seo-nearby { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.seo-nearby h2 { font-size: 1.15rem; margin: 0 0 12px; }
.seo-nearby ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-nearby a {
  display: inline-block; padding: 6px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent); text-decoration: none; font-size: 0.9rem;
}
.seo-nearby a:hover { border-color: var(--accent); }

@media (max-width: 600px) {
  .spot-card { grid-template-columns: 1fr; }
  .spot-card__media { min-height: 180px; }
  .seo-wrap h1 { font-size: 1.6rem; }
}
