:root {
  --bg: #050b13;
  --text: #f4f7fb;
  --muted: #a2b6c9;
  --accent: #8be564;
  --accent-2: #4ab0ff;
  --card: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, rgba(74, 176, 255, 0.16), transparent), var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body[data-theme='light'] {
  --bg: #f6f8fb;
  --text: #0f1b2d;
  --muted: #5b6b7c;
  --accent: #5bbf6a;
  --accent-2: #1f66b3;
  --card: #ffffff;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(46, 125, 220, 0.12), transparent), var(--bg);
  color: var(--text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(5, 11, 19, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme='light'] header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand--logo {
  gap: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(46vw, 210px);
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.primary-links {
  flex: 1;
  gap: 20px;
  justify-content: flex-end;
}

.extra-links {
  gap: 16px;
  margin-left: 20px;
}

.nav-favorites {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform 120ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.nav-favorites svg {
  width: 18px;
  height: 18px;
}

.nav-favorites__count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e2574c;
  color: #fff;
  border: 2px solid #07101b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.nav-favorites__count[hidden] {
  display: none;
}

.nav-favorites:hover {
  text-decoration: none;
  color: var(--accent-2);
  border-color: rgba(74, 176, 255, 0.5);
  background: rgba(74, 176, 255, 0.1);
  transform: translateY(-1px);
}

body[data-theme='light'] .nav-favorites {
  border-color: rgba(15, 27, 45, 0.18);
  background: rgba(15, 27, 45, 0.04);
  color: #1a2b3c;
}

body[data-theme='light'] .nav-favorites__count {
  border-color: #fff;
}

body[data-theme='light'] .nav-favorites:hover {
  border-color: rgba(46, 125, 220, 0.4);
  background: rgba(46, 125, 220, 0.1);
  color: var(--accent-2);
}

.nav a.button,
.button {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #031522;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero--compact {
  padding-top: 18px;
}

.hero-card {
  padding: 22px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body[data-theme='light'] .hero-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 252, 0.9));
  border-color: rgba(15, 27, 45, 0.08);
  box-shadow: 0 20px 40px rgba(15, 27, 45, 0.08);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-location__pin {
  font-size: 0.95rem;
}

.hero-location__link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.hero-location__link:hover {
  text-decoration: underline;
}

.hero-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-text--inline {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.hero-meta-title {
  font-weight: 700;
}

.hero-meta-sub {
  font-size: 0.85rem;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.hero-meta-sub:hover {
  text-decoration: underline;
}

.hero-meta-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.hero-meta-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.hero-meta-icon svg {
  width: 20px;
  height: 20px;
}

.hero-card--media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #07111c;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.hero-media__overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(5, 11, 19, 0) 0%, rgba(5, 11, 19, 0.65) 60%, rgba(5, 11, 19, 0.85) 100%);
  border-radius: 14px;
  color: #fff;
}

.hero-media__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-media__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-media__indicator {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-media__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-media__nav--prev {
  left: 10px;
}

.hero-media__nav--next {
  right: 10px;
}

.hero-media__nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.tour-photo-credit {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0 14px;
  text-align: center;
}

.tour-photo-credit[hidden] {
  display: none;
}

.hero-gallery {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

body[data-theme='light'] .hero-gallery {
  border-top-color: rgba(15, 27, 45, 0.08);
}

.hero-gallery__title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.grid.tour-gallery-slot {
  display: none;
}

.grid.tour-gallery-slot.is-active {
  display: grid;
}

.tour-gallery-slot .hero-gallery {
  padding: 0;
  border-top: none;
}

.tour-gallery-slot .hero-gallery__title {
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 6px;
}

.clamp-wrap {
  position: relative;
}

.clamp-text {
  margin: 0;
}

.clamp-wrap .clamp-text {
  margin: 0;
}

.clamp-more {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  transition: color 150ms ease;
}

.clamp-more::before {
  content: none;
}

.clamp-more:hover {
  text-decoration: underline;
}

.clamp-more:focus-visible {
  outline: 2px solid rgba(74, 176, 255, 0.7);
  outline-offset: 2px;
}

.hero .clamp-wrap {
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .clamp-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .clamp-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding-right: 0;
  }

  .clamp-text.rich-text {
    display: -webkit-box;
  }

  .clamp-more {
    display: inline-flex;
    line-height: 1;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: var(--accent-2);
    font-size: 0.85rem;
    letter-spacing: 0;
  }

  .clamp-more::before {
    content: none;
  }

  .clamp-wrap.is-expanded .clamp-more::before {
    transform: none;
  }

  .clamp-wrap.is-expanded .clamp-text {
    display: block;
    -webkit-line-clamp: initial;
    overflow: visible;
    padding-right: 0;
  }

  .clamp-wrap.is-expanded .clamp-text.rich-text {
    display: grid;
  }

  .clamp-wrap.is-expanded .clamp-more {
    position: static;
    align-self: flex-end;
  }

  .clamp-wrap.is-expanded .clamp-more--description,
  .clamp-wrap.is-expanded .clamp-more--itinerary {
    align-self: flex-start;
  }
}
