:root {
  color-scheme: light dark;
  --bg: #0f1118;
  --card: #171a24;
  --text: #f5f6fb;
  --muted: #b2b7c8;
  --accent: #3e7bfa;
  --accent-soft: rgba(62, 123, 250, 0.2);
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2341 0%, #0f1118 55%);
  color: var(--text);
}

a {
  color: inherit;
}

.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  text-align: center;
  color: var(--muted);
}

.page {
  padding: 24px 18px 48px;
  max-width: 760px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.hero {
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.hero--square img {
  height: auto;
  aspect-ratio: 1 / 1;
}

.hero-content {
  padding: 20px 20px 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

h2 {
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.78rem;
  border: 1px solid var(--border);
}

.content {
  margin-top: 18px;
  background: rgba(13, 16, 26, 0.65);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(14px);
}

.content p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--muted);
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.meta div {
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.cta {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.cta a {
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-header h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.section-header span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.list-item-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.list-item-link:hover {
  border-color: rgba(62, 123, 250, 0.6);
  transform: translateY(-1px);
}

.list-item-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.list-item-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.list-item-body {
  display: grid;
  gap: 2px;
}

.list-item--tour .list-item-content {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
}

.list-item--tour .list-item-body {
  padding: 12px 12px 14px;
}

.list-item--tour {
  padding: 0;
  overflow: hidden;
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.list-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.list-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.list-item--promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  text-align: left;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(62, 123, 250, 0.12), rgba(15, 17, 24, 0.9));
}

.list-item--promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.4);
  z-index: 0;
}

.list-item-promo-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  z-index: 1;
}

.list-item-promo-text {
  display: grid;
  gap: 6px;
  z-index: 1;
}

.list-item-promo-text h3 {
  margin: 0;
  font-size: 1rem;
}

.list-item-promo-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0e16;
  border: 1px solid var(--border);
}

.thumb--wide {
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb--wide img {
  height: auto;
  object-fit: contain;
}

.stop-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.media-grid {
  display: grid;
  gap: 12px;
}

.media-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.media-button {
  padding: 0;
  cursor: zoom-in;
}

.media-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.cta .primary,
.cta > .primary {
  background: var(--accent);
  color: white;
}

.cta .secondary,
.cta > .secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.store-buttons {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  justify-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 200px;
  height: 60px;
}

.store-badge img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  max-width: 100%;
}

.promo-section {
  margin-top: 28px;
}

.promo-card {
  display: grid;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.promo-content {
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.promo-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
}

.promo-text {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.promo-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
}

.promo-actions {
  display: grid;
  justify-items: center;
}

.promo-actions .store-buttons {
  grid-template-columns: 1fr;
}

.promo-buttons {
  margin-top: 4px;
}

.error-card {
  margin-top: 24px;
}

.org-section .section-header {
  margin-bottom: 10px;
}

.org-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  gap: 16px;
}

.org-banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.org-content {
  display: grid;
  gap: 10px;
  padding: 0 18px;
}

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

.org-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

.org-content h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.org-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.org-actions {
  padding: 0 18px 18px;
}

.org-actions a {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--accent);
  color: white;
}

.map-section .section-header {
  margin-bottom: 10px;
}

.map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
}

.map-card img,
.map-card iframe {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border: 0;
}

.map-coords {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-coords strong {
  color: var(--text);
  font-size: 1rem;
}

.map-coords a {
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}

.map-coords a:hover {
  text-decoration: underline;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 16, 0.9);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox-figure {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 0;
}

.lightbox img {
  max-width: min(92vw, 960px);
  max-height: 80vh;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  max-width: min(92vw, 960px);
  color: #f2f4f8;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (min-width: 640px) {
  .page {
    padding: 36px 24px 64px;
  }

  .hero img {
    height: 320px;
  }

  .hero--square img {
    height: auto;
  }

  h1 {
    font-size: 2.2rem;
  }

  .cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .org-card {
    grid-template-columns: 1fr;
  }

  .org-content {
    padding: 0 20px;
  }

  .org-actions {
    padding: 0 20px 20px;
  }

  .store-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-card {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    text-align: left;
  }

  .promo-content {
    grid-template-columns: auto 1fr;
    justify-items: start;
  }

  .promo-actions {
    justify-items: end;
  }
}
