:root {
  color-scheme: dark;
  --bg: #050714;
  --panel: rgba(16, 24, 43, 0.92);
  --panel-strong: rgba(11, 18, 33, 0.98);
  --muted: rgba(220, 230, 255, 0.72);
  --text: rgba(248, 250, 255, 0.95);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #fdd835;
  --accent-2: #ff3b6f;
  --shadow: 0 18px 40px rgba(2, 5, 16, 0.7);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 15% 15%, rgba(70, 100, 255, 0.22), transparent 55%),
    radial-gradient(900px 700px at 85% 15%, rgba(255, 59, 111, 0.16), transparent 55%),
    linear-gradient(180deg, #02030a 0%, #060a1c 60%, #02030a 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem 3.5rem;
}

.hero {
  background: linear-gradient(135deg, rgba(60, 96, 255, 0.85), rgba(255, 59, 111, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  padding: 2.1rem 2.1rem 1.8rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0;
  line-height: 1.55;
  max-width: 80ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.55rem 0 1.25rem;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary {
  background: var(--accent);
  color: rgba(8, 12, 24, 0.95);
  box-shadow: 0 14px 28px rgba(253, 216, 53, 0.24);
}

.primary:hover {
  transform: translateY(-2px);
}

.ghost {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
}

.ghost:hover {
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.hero-meta > div {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.hero-meta span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-meta strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.06rem;
}

.hero-meta small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.35;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}

.map-panel {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1.4rem;
  align-self: start;
}

.map-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.map-panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

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

.map {
  width: 100%;
  height: min(62vh, 520px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.list-panel {
  min-width: 0;
}

.controls {
  background: rgba(16, 24, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: end;
  justify-content: space-between;
}

.search {
  display: grid;
  gap: 0.45rem;
  flex: 1;
  min-width: 240px;
}

.search span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.search input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  outline: none;
}

.search input:focus {
  border-color: rgba(253, 216, 53, 0.55);
  box-shadow: 0 0 0 4px rgba(253, 216, 53, 0.12);
}

.count {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.chip.active {
  border-color: rgba(253, 216, 53, 0.75);
  color: var(--accent);
}

.section-title {
  margin: 1.5rem 0 0.9rem;
  font-size: 1.4rem;
}

.poi-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.poi-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 1.3rem 1.35rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 90px;
}

.poi-card.highlight {
  outline: 2px solid rgba(253, 216, 53, 0.7);
  box-shadow: 0 14px 42px rgba(253, 216, 53, 0.12);
}

.poi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.poi-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

.poi-sub {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.gallery img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.facts {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.fact {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0.75rem 0.85rem;
}

.fact .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(253, 216, 53, 0.9);
}

.fact p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.action {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.action:hover {
  border-color: rgba(253, 216, 53, 0.6);
}

.sources {
  margin-top: 0.9rem;
}

.sources summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.sources ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.sources a {
  text-decoration: underline;
}

footer {
  padding: 2rem 1.4rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.88);
  display: none;
  place-items: center;
  padding: 1.4rem;
  z-index: 9999;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 0.9rem;
  max-width: min(1100px, 94vw);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: auto;
  }

  .map {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.6rem 1.4rem 1.3rem;
  }

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

  .gallery img {
    height: 110px;
  }
}
