:root {
  --ink: #12151c;
  --ink-soft: #2a303c;
  --navy: #1b2433;
  --navy-deep: #0e141d;
  --gold: #c4a35a;
  --gold-bright: #e0c078;
  --cream: #f4ece0;
  --paper: #faf7f1;
  --stone: #d9d0c3;
  --terracotta: #9a4b32;
  --muted: #6b645b;
  --line: rgba(196, 163, 90, 0.28);
  --shadow: 0 24px 60px rgba(14, 20, 29, 0.18);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(14, 20, 29, 0.92);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--gold-bright);
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #efe6d6;
  font-size: 0.92rem;
  opacity: 0.88;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 999px;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(14, 20, 29, 0.35) 0%, rgba(14, 20, 29, 0.55) 50%, rgba(14, 20, 29, 0.88) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
  color: var(--cream);
  display: grid;
  align-items: end;
}

.hero-content {
  padding: 0 0 72px;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  max-width: 14ch;
  margin: 12px 0 18px;
}

.hero p {
  max-width: 42ch;
  font-size: 1.12rem;
  color: #efe6d6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 500;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-ghost {
  border: 1px solid rgba(244, 236, 224, 0.4);
  color: var(--cream);
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  color: #d9d0c3;
  font-size: 0.92rem;
}

.hero-meta strong {
  display: block;
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

/* INTRO */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 96px 0;
  align-items: center;
}

.intro img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px 48px 4px 48px;
  box-shadow: var(--shadow);
}

.intro h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 10px 0 18px;
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* SIGHTS */
.section {
  padding: 40px 0 90px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  font-family: inherit;
}

.filter.active,
.filter:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.sight-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 21, 28, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card.wide { grid-column: span 7; }
.card.mid { grid-column: span 5; }
.card.third { grid-column: span 4; }

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card.wide img,
.card.mid img {
  height: 320px;
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card h3 {
  font-size: 1.85rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: auto;
}

/* DISTRICTS */
.districts {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 90px 0;
}

.districts h2 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: 8px 0 28px;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.district {
  border: 1px solid rgba(196, 163, 90, 0.22);
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.district h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.district p {
  color: #cfc6b8;
  margin: 0;
}

/* WALKS */
.walks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.walk {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--stone);
}

.walk h3 {
  font-size: 1.8rem;
  margin: 8px 0 12px;
}

.walk ol {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.walk li + li {
  margin-top: 8px;
}

.walk-map,
.map-link {
  color: var(--terracotta);
  font-weight: 500;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}

.walk-map {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}

/* MAP */
.map-section {
  padding: 20px 0 90px;
}

.map-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 680px;
  border: 1px solid var(--stone);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-panel {
  display: flex;
  flex-direction: column;
  background: #fffaf3;
  border-right: 1px solid var(--stone);
}

.map-panel-head {
  padding: 18px 18px 10px;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.map-chip {
  border: 1px solid var(--stone);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.8rem;
}

.map-chip.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  overflow: auto;
  flex: 1;
}

.place-list li {
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
}

.place-list li:hover,
.place-list li.active {
  background: #efe4d0;
}

.place-list strong {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.place-list small {
  color: var(--muted);
}

.place-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.place-num.rust {
  background: var(--terracotta);
  color: #fff;
}

.route-bar {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--stone);
}

.route-bar p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.route-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-btns button {
  border: 1px solid var(--stone);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: inherit;
  cursor: pointer;
}

.route-btns button:hover {
  border-color: var(--gold);
}

.map-stage {
  position: relative;
  min-height: 520px;
}

#prague-map {
  position: absolute;
  inset: 0;
}

.map-legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: rgba(250, 247, 241, 0.94);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(14, 20, 29, 0.12);
}

.pin {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}

.pin.gold { background: var(--gold); }
.pin.rust { background: var(--terracotta); }

#locate-me {
  border: 0;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: inherit;
  cursor: pointer;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  font-family: "Outfit", sans-serif;
}

.leaflet-popup-content h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.popup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.popup-actions a {
  font-size: 0.8rem;
  border: 1px solid var(--stone);
  padding: 4px 8px;
  border-radius: 999px;
}

.sight-marker {
  background: var(--navy);
  color: var(--gold-bright);
  border: 2px solid #f4ece0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(14, 20, 29, 0.28);
}

.sight-marker.rust {
  background: var(--terracotta);
  color: #fff;
}

/* FYI */
.fyi {
  background:
    linear-gradient(180deg, rgba(14, 20, 29, 0.72), rgba(14, 20, 29, 0.86)),
    url("../images/skyline.jpg") center/cover no-repeat;
  color: var(--cream);
  padding: 90px 0;
}

.fyi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fyi-card {
  background: rgba(18, 21, 28, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.fyi-card h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th { color: var(--gold-bright); font-weight: 500; }

/* FOOTER */
footer {
  background: var(--ink);
  color: #cfc6b8;
  padding: 48px 0 28px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

footer .logo { color: var(--cream); }

.tiny {
  margin-top: 28px;
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .intro, .fyi-grid, .district-grid, .walks, .map-shell {
    grid-template-columns: 1fr;
  }
  .map-panel {
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--stone);
  }
  .map-stage { min-height: 420px; }
  .card.wide, .card.mid, .card.third {
    grid-column: span 12;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 16px;
    background: var(--navy-deep);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
  }
  .menu-btn { display: block; }
  .intro img { height: 320px; }
}
