/* ================================================================
   destination.css — Journey Plan public destination pages
   Standalone stylesheet: no Tailwind, no SPA build artifacts.
   Loaded only on /destinations/* server-rendered pages.
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --color-blue: #0A7FB0;
  --color-coral: #FF6B4A;
  --color-charcoal: #1F2937;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-bg-warm: #F5F0EB;
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--color-charcoal); background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login-text {
  font-size: 13px;
  color: var(--color-muted);
}

.btn-start-planning {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-blue);
  border-radius: 6px;
  padding: 8px 20px;
  transition: background 120ms ease;
}
.btn-start-planning:hover { background: #0970A0; }

/* ── Breadcrumbs ───────────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 24px;
  font-size: 13px;
  color: var(--color-muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; gap: 4px; }
.breadcrumbs li a { color: var(--color-blue); }
.breadcrumbs li a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--color-border); padding: 0 2px; }

/* ── Hero band ─────────────────────────────────────────────────── */
.hero-band {
  background: var(--color-bg-warm);
  padding: 48px 24px;
  text-align: center;
}
.hero-band h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.2;
}
.hero-sub {
  margin-top: 8px;
  font-size: 16px;
  color: var(--color-muted);
}

/* ── Category pills ────────────────────────────────────────────── */
.category-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 4px;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
  flex-shrink: 0;
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--color-blue);
  border-radius: 100px;
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.category-pill:hover,
.category-pill.active {
  background: var(--color-blue);
  color: #fff;
}

/* ── Place card grid ───────────────────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
main.destinations-index { padding: 0; }

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.place-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 150ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.place-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }

.place-category {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(10, 127, 176, 0.1);
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  text-transform: capitalize;
  align-self: flex-start;
}

.place-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.place-city {
  font-size: 13px;
  color: var(--color-muted);
}

.place-teaser {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 1;
}

.place-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.place-votes {
  font-size: 13px;
  color: var(--color-muted);
}
.place-votes::first-letter { color: var(--color-coral); }

.place-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
}
.place-cta-link:hover { text-decoration: underline; }

.no-places {
  text-align: center;
  padding: 48px 0;
  color: var(--color-muted);
  font-size: 16px;
}

/* ── Country grid (index page) ─────────────────────────────────── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.country-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.country-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.country-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-charcoal);
}
.country-count {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-blue);
}

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band {
  background: var(--color-blue);
  padding: 64px 24px;
  text-align: center;
  margin-top: 48px;
}
.cta-band h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.cta-band p {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}
.btn-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: #fff;
  color: var(--color-blue);
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  transition: opacity 120ms ease;
}
.btn-cta:hover { opacity: 0.92; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #9CA3AF;
  border-top: 1px solid var(--color-border);
  margin-top: 48px;
}
.site-footer a { color: var(--color-muted); }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive: 768px (2-col cards) ──────────────────────────── */
@media (max-width: 1023px) {
  .place-grid,
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: 480px (1-col) ─────────────────────────────────── */
@media (max-width: 479px) {
  .site-header { height: 48px; padding: 0 16px; }
  .hero-band { padding: 32px 16px; }
  .hero-band h1 { font-size: 24px; }
  .place-grid,
  .country-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .cta-band { padding: 40px 16px; }
  main { padding: 24px 16px; }
}

/* ── Planning hint block ────────────────────────────────────────── */
.planning-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}
.planning-popular { font-weight: 500; }
.planning-sep { color: #9ca3af; }
.planning-cta { color: #2563eb; font-weight: 500; }
.planning-cta:hover { text-decoration: underline; }
