:root {
  --bg: #07121b;
  --panel: rgba(8, 22, 32, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f5f6f0;
  --muted: #adbfca;
  --accent: #ffb84c;
  --accent-deep: #f97316;
  --cyan: #4bd9ff;
  --green: #72cfa2;
  --rose: #ff8d8d;
  --radius-lg: 30px;
  --radius-md: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 184, 76, 0.16), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(75, 217, 255, 0.14), transparent 22%),
    radial-gradient(circle at 48% 78%, rgba(114, 207, 162, 0.12), transparent 24%),
    linear-gradient(180deg, #061019 0%, #0a1823 38%, #0a1f2d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 14, 21, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner,
.shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
}

.topbar-inner {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand strong,
.hero h1,
.section-head h2,
.detail-panel h3,
.festival-card strong,
.stay-card strong {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
}

.brand small,
.muted-copy,
.detail-copy p,
.festival-card p,
.stay-card p,
.hero p {
  color: var(--muted);
  line-height: 1.75;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.filter-button,
.ghost-link,
.primary-link {
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 180ms ease;
}

.nav a,
.filter-button,
.ghost-link {
  background: rgba(255, 255, 255, 0.04);
}

.nav a:hover,
.filter-button:hover,
.filter-button.is-active,
.ghost-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 76, 0.3);
  background: rgba(255, 184, 76, 0.12);
}

.primary-link {
  color: #111922;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.22);
}

.primary-link:hover {
  transform: translateY(-1px);
}

.shell {
  padding: 36px 0 64px;
  position: relative;
  z-index: 1;
}

.hero,
.atlas-layout,
.festival-grid,
.stay-grid {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 24px;
}

.hero-copy,
.atlas-stage,
.detail-panel,
.festival-card,
.stay-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16, 31, 44, 0.88), rgba(6, 17, 26, 0.94));
  box-shadow: var(--shadow);
}

.hero-copy,
.detail-panel,
.stay-card {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: #dcecf5;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.media-card.wide {
  grid-column: span 2;
  min-height: 320px;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  margin-top: 28px;
}

.section-head,
.toolbar,
.detail-meta,
.tag-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.section-head {
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2,
.detail-panel h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.atlas-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.atlas-stage {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 16px;
}

.atlas-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    url("/tourism/uploads/pagtour/background.jpg") center/cover no-repeat;
  opacity: 0.16;
}

.terrain-labels {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(220, 236, 245, 0.78);
  padding: 10px 8px 0;
}

.terrain {
  position: absolute;
  inset: 14% 6%;
  transform: perspective(1400px) rotateX(65deg) rotateZ(-28deg);
  border-radius: 34px;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 72% 38%, rgba(75, 217, 255, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(15, 38, 51, 0.94), rgba(29, 76, 58, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.terrain::before,
.terrain::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terrain::after {
  inset: 22%;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: 180ms ease;
}

.marker.is-hidden {
  display: none;
}

.marker.is-selected {
  transform: translate(-50%, -54%);
}

.pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06);
}

.pin.attraction {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.pin.heritage {
  background: linear-gradient(135deg, #8ec5ff, var(--cyan));
}

.pin.stay {
  background: linear-gradient(135deg, #84f4bd, #2fa777);
}

.marker span:last-child,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 18, 27, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.detail-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.detail-media img,
.detail-media video {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-gallery button {
  padding: 0;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 0.76;
  cursor: pointer;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery button.is-active {
  border-color: rgba(255, 184, 76, 0.34);
}

.detail-copy {
  display: grid;
  gap: 10px;
}

.festival-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.festival-card,
.stay-card {
  overflow: hidden;
}

.festival-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.festival-card div {
  padding: 18px;
}

.festival-card strong,
.stay-card strong {
  display: block;
  font-size: 1.34rem;
  margin-bottom: 8px;
}

.stay-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stay-card {
  display: grid;
  gap: 12px;
}

.stay-card .tag-row {
  justify-content: flex-start;
}

.inline-link {
  width: fit-content;
}

@media (max-width: 1120px) {
  .hero,
  .atlas-layout,
  .festival-grid,
  .stay-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-inner,
  .shell {
    width: min(100vw - 24px, 1280px);
  }

  .hero-copy,
  .detail-panel,
  .stay-card {
    padding: 20px;
  }

  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-stage {
    min-height: 560px;
  }
}
