/* Paradero pages — standalone CSS served by Cloudflare Worker */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-muted: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --link: #2563eb;
}
.dark {
  --bg: #111827;
  --bg-muted: #1f2937;
  --border: #374151;
  --text: #f9fafb;
  --muted: #9ca3af;
  --link: #60a5fa;
}

html { color-scheme: light; }
html.dark { color-scheme: dark; }

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

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

/* ── Navbar ─────────────────────────────────────── */
.par-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}
.dark .par-nav {
  background: rgba(17,24,39,0.85);
}
.par-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-right: auto;
}
.par-nav-logo:hover { text-decoration: none; opacity: 0.8; }
.par-nav a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.par-nav a:hover { color: var(--text); }

/* ── Layout ─────────────────────────────────────── */
.par-main {
  max-width: 768px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* ── Breadcrumb ─────────────────────────────────── */
.par-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.par-breadcrumb a { color: var(--muted); text-decoration: none; }
.par-breadcrumb a:hover { color: var(--text); }

/* ── Typography ─────────────────────────────────── */
h1 {
  margin: 1.5rem 0 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.par-lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.par-h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Cards ──────────────────────────────────────── */
.par-infobox {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  background: var(--bg-muted);
}
.par-cta {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
  background: var(--bg-muted);
  text-align: center;
}
.par-cta-title {
  font-weight: 600;
  margin: 0 0 1rem;
}
.par-cta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 50px;
}
.par-cta-badges a {
  display: inline-block;
  height: 100%;
}
.par-cta-badges img {
  height: 100%;
  width: auto;
}

/* ── Info table ─────────────────────────────────── */
.par-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.par-info-table td {
  padding: 0.4rem 0;
  vertical-align: top;
}
.par-info-table td:first-child {
  color: var(--muted);
  width: 45%;
}
.par-info-table td:last-child {
  font-weight: 600;
}

/* ── Map ────────────────────────────────────────── */
#par-map {
  width: 100%;
  height: 320px;
  border-radius: 0.75rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  background: var(--border);
}
.dark #par-map .leaflet-tile-pane {
  filter: brightness(0.85) saturate(0.9);
}

/* ── Route list ─────────────────────────────────── */
.par-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.par-rec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.par-rec-item:hover {
  background: var(--bg-muted);
  text-decoration: none;
}
.par-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.2rem 0.65rem;
  border-radius: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 3.5rem;
}
.par-rec-desc {
  font-size: 0.95rem;
}

/* ── Footer link ─────────────────────────────────── */
.par-back {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.par-back a { color: var(--muted); }
.par-back a:hover { color: var(--text); }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .par-main { padding: 1rem 1rem 3rem; }
}
