/* ==========================================================================
   MidEastTravel — styles
   Palette: desert night, sunset gold, Nile teal, Dubai rose
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0b0a1f;
  --bg-2: #120f2e;
  --bg-3: #1a1440;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8f1e7;
  --muted: #bdb5cf;
  --faint: #8c84a3;

  --gold: #f6c453;
  --sun: #ff9a3c;
  --coral: #ff6a5b;
  --rose: #ff4f8b;
  --violet: #8b5cf6;
  --teal: #2dd4bf;
  --sky: #38bdf8;

  --saudi: #34d399;
  --egypt: #f6c453;
  --dubai: #ff6aa2;

  --grad-sunset: linear-gradient(120deg, #ffd56b 0%, #ff9a3c 30%, #ff5e7e 62%, #a65cff 100%);
  --grad-nile: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 45%, #6366f1 100%);
  --grad-sand: linear-gradient(135deg, #fde68a 0%, #f6c453 40%, #f08a4b 100%);
  --grad-dusk: linear-gradient(160deg, #1a1440 0%, #2b1650 45%, #4a1d4f 100%);
  --grad-oasis: linear-gradient(135deg, #34d399 0%, #10b981 40%, #0ea5e9 100%);
  --grad-rose: linear-gradient(135deg, #ff9a8b 0%, #ff6aa2 50%, #a65cff 100%);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 18px 60px -18px rgba(255, 122, 89, 0.55);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

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

/* ---------- Typography helpers ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunset);
}

.gradient-text {
  background: var(--grad-sunset);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
  isolation: isolate;
  /* contain the decorative blobs without creating a scroll container */
  overflow-x: clip;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin: 14px 0 16px;
}

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

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--grad-sunset);
  background-size: 160% 100%;
  color: #1b0f22;
  box-shadow: var(--shadow-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -16px rgba(255, 106, 91, 0.7);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: var(--grad-sunset);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease);
}

/* Glass background lives on a pseudo-element: a backdrop-filter on .nav itself
   would become the containing block for the fixed mobile menu. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 10, 31, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--border), 0 12px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.4s;
}

.nav.scrolled {
  --nav-h: 64px;
}

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.logo-mark .sun {
  transform-origin: 20px 18px;
  animation: pulse-sun 4s ease-in-out infinite;
}

@keyframes pulse-sun {
  50% {
    transform: scale(1.12);
  }
}

.logo b {
  font-weight: 700;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(248, 241, 231, 0.86);
  border-radius: 999px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

.nav.open .nav-toggle span {
  background: transparent;
}

.nav.open .nav-toggle span::before {
  transform: rotate(45deg);
  background: var(--text);
}

.nav.open .nav-toggle span::after {
  transform: rotate(-45deg);
  background: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  padding: calc(var(--nav-h) + 40px) 0 120px;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--bg-2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.active img {
  animation: kenburns 9s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.14) translate3d(1.5%, 1%, 0);
  }
  to {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11, 10, 31, 0.55) 0%, rgba(11, 10, 31, 0.15) 35%, rgba(11, 10, 31, 0.55) 70%, var(--bg) 100%),
    linear-gradient(100deg, rgba(26, 12, 48, 0.85) 0%, rgba(74, 29, 79, 0.45) 45%, rgba(255, 122, 89, 0.08) 100%);
}

.hero-sand {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  margin: 22px 0 22px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
}

.hero .lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(248, 241, 231, 0.88);
  max-width: 590px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-caption {
  position: absolute;
  right: max(16px, calc((100vw - var(--container)) / 2));
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
}

.hero-caption-text {
  text-align: right;
  min-width: 0;
}

.hero-caption-text small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-caption-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-caption-text.swap {
  animation: caption-in 0.9s var(--ease);
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  position: relative;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.active::after {
  animation: dot-fill var(--slide-ms, 6500ms) linear forwards;
}

@keyframes dot-fill {
  to {
    transform: scaleX(1);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.7);
}

.scroll-cue .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(248, 241, 231, 0.6);
  border-radius: 12px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Hero entrance */
.hero .anim {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--d, 0) * 0.14s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.06), rgba(255, 79, 139, 0.06), rgba(45, 212, 191, 0.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  white-space: nowrap;
  color: rgba(248, 241, 231, 0.85);
}

.marquee-star {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats ---------- */

.stats {
  padding: 70px 0 10px;
}

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

.stat {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: clip;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.stat::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--g, var(--grad-sunset));
  filter: blur(50px);
  opacity: 0.35;
  transition: opacity 0.5s;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
}

.stat:hover::before {
  opacity: 0.6;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  background: var(--g, var(--grad-sunset));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Ambient blobs ---------- */

.blob {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

.blob.b1 {
  background: radial-gradient(circle, #ff5e7e, transparent 70%);
  top: 6%;
  left: -180px;
}

.blob.b2 {
  background: radial-gradient(circle, #2dd4bf, transparent 70%);
  bottom: 4%;
  right: -200px;
  animation-delay: -8s;
}

.blob.b3 {
  background: radial-gradient(circle, #f6c453, transparent 70%);
  top: 30%;
  right: 20%;
  width: 380px;
  height: 380px;
  opacity: 0.16;
  animation-delay: -14s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(80px, -60px, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-40px, 70px, 0) scale(0.94);
  }
}

/* ---------- Destinations: filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.4s;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--gold));
  box-shadow: 0 0 10px var(--c, var(--gold));
}

.chip:hover {
  color: var(--text);
}

.chip.active {
  color: #1b0f22;
  background: var(--grad-sand);
  box-shadow: 0 10px 30px -10px rgba(246, 196, 83, 0.7);
}

.chip.active .dot {
  background: #1b0f22;
  box-shadow: none;
}

.chip-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

.search {
  position: relative;
  flex: 0 1 300px;
}

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.search input::placeholder {
  color: var(--faint);
}

.search input:focus {
  border-color: rgba(246, 196, 83, 0.6);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.12);
}

/* ---------- Destination tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 18px;
}

.tile {
  --accent: var(--gold);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.4s;
  box-shadow: var(--shadow);
  outline: none;
}

.tile[data-country="saudi"] {
  --accent: var(--saudi);
}

.tile[data-country="egypt"] {
  --accent: var(--egypt);
}

.tile[data-country="dubai"] {
  --accent: var(--dubai);
}

.tile.wide {
  grid-column: span 2;
}

.tile.tall {
  grid-row: span 2;
}

.tile.big {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 0.8s;
  filter: saturate(1.05);
}

/* skeleton shimmer while photo loads */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(110deg, var(--bg-3) 30%, #2a2158 50%, var(--bg-3) 70%);
  background-size: 200% 100%;
  animation: skeleton 1.6s linear infinite;
}

@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

.tile-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 10, 31, 0.25) 0%, rgba(11, 10, 31, 0) 22%, rgba(11, 10, 31, 0.6) 55%, rgba(11, 10, 31, 0.96) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%);
  transition: opacity 0.6s;
}

.tile::after {
  /* cursor glare */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
}

.tile:hover,
.tile:focus-visible {
  box-shadow: 0 30px 70px -24px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.tile:hover .tile-img,
.tile:focus-visible .tile-img {
  transform: scale(1.1);
  filter: saturate(1.2);
}

.tile-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(11, 10, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.badge.unesco {
  background: rgba(246, 196, 83, 0.18);
  border-color: rgba(246, 196, 83, 0.45);
  color: #ffe7a8;
}

.tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.tile-region {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  margin: 6px 0 4px;
}

.tile.big h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.tile-tagline {
  color: rgba(248, 241, 231, 0.85);
  font-size: 0.92rem;
}

.tile-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease), opacity 0.5s, margin 0.6s var(--ease);
}

.tile-more > div {
  overflow: hidden;
}

.tile-more p {
  font-size: 0.88rem;
  color: rgba(248, 241, 231, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.tile-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}

.tile:hover .tile-more,
.tile:focus-visible .tile-more {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

.tile:hover .tile-link svg {
  transform: translateX(5px);
}

/* filtering states: filtered results use an even grid so there are no gaps */
.tile.is-hidden {
  display: none;
}

.tiles.filtered {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
}

.tiles.filtered .tile {
  grid-column: auto;
  grid-row: auto;
}

.no-results {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.no-results strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 6px;
}

/* ---------- Experiences ---------- */

.experiences {
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(166, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(255, 154, 60, 0.14), transparent 60%),
    var(--bg-2);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 18px;
}

.exp {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease);
}

.exp:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.exp.photo {
  justify-content: flex-end;
  min-height: 300px;
}

.exp.photo.big {
  grid-column: span 2;
  grid-row: span 2;
}

.exp.photo.wide {
  grid-column: span 2;
}

.exp.photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.exp.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 31, 0.05) 0%, rgba(11, 10, 31, 0.35) 40%, rgba(11, 10, 31, 0.95) 85%);
}

.exp.photo h3,
.exp.photo p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.exp.photo:hover img {
  transform: scale(1.08);
}

.exp.glow::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  z-index: -1;
  border-radius: 50%;
  background: var(--g);
  filter: blur(60px);
  opacity: 0.3;
  transition: opacity 0.6s, transform 0.8s var(--ease);
}

.exp.glow:hover::before {
  opacity: 0.6;
  transform: translate(-30px, 30px) scale(1.2);
}

.exp-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 16px;
  background: var(--g, var(--grad-sunset));
  color: #1b0f22;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s var(--ease);
}

.exp-icon svg {
  width: 28px;
  height: 28px;
}

.exp:hover .exp-icon {
  transform: rotate(-8deg) scale(1.08);
}

.exp h3 {
  font-size: 1.35rem;
  margin: 22px 0 8px;
}

.exp.photo h3 {
  margin-top: 0;
}

.exp.photo.big h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.exp p {
  color: var(--muted);
  font-size: 0.93rem;
}

.exp.photo p {
  color: rgba(248, 241, 231, 0.86);
  max-width: 460px;
}

.exp-where {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.exp-where svg {
  width: 14px;
  height: 14px;
}

/* ---------- Tours ---------- */

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

.tour {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.tour:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px -36px rgba(255, 106, 91, 0.55);
}

.tour.featured {
  border: 0;
  padding: 2px;
  background: conic-gradient(from var(--angle), #ffd56b, #ff9a3c, #ff5e7e, #a65cff, #2dd4bf, #ffd56b);
  animation: spin-border 6s linear infinite;
}

.tour.featured > .tour-inner {
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg-2);
}

@keyframes spin-border {
  to {
    --angle: 360deg;
  }
}

.tour-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.tour-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.tour:hover .tour-media img {
  transform: scale(1.08);
}

.tour-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18, 15, 46, 0.95));
}

.tour-days {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b0f22;
  background: var(--grad-sand);
}

.tour-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-rose);
  box-shadow: 0 10px 24px -10px rgba(255, 79, 139, 0.8);
}

.tour-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 6px 24px 24px;
}

.tour-body h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.tour-body > p {
  color: var(--muted);
  font-size: 0.93rem;
}

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.route li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text);
}

.route li + li::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunset);
}

.route li span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tour-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.price small {
  display: block;
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  background: var(--grad-sand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tours-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Seasons ---------- */

.seasons {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.season-board {
  padding: clamp(20px, 3vw, 34px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.season-row {
  display: grid;
  grid-template-columns: 180px repeat(12, minmax(42px, 1fr));
  gap: 6px;
  align-items: center;
  min-width: 720px;
}

.season-row + .season-row {
  margin-top: 8px;
}

.season-row.head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

.season-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.season-name .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.month {
  height: 44px;
  border-radius: 10px;
  transform: scaleY(0.2);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.6s;
  transition-delay: calc(var(--m) * 45ms);
}

.season-board.in .month {
  transform: none;
  opacity: 1;
}

.month.ideal {
  background: var(--grad-sunset);
  box-shadow: 0 10px 22px -12px rgba(255, 106, 91, 0.9);
}

.month.good {
  background: linear-gradient(135deg, rgba(246, 196, 83, 0.55), rgba(255, 154, 60, 0.35));
}

.month.hot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.season-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}

.season-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.season-legend i {
  width: 22px;
  height: 12px;
  border-radius: 4px;
}

/* ---------- Plan / form ---------- */

.plan {
  background: radial-gradient(900px 600px at 0% 100%, rgba(45, 212, 191, 0.14), transparent 60%), var(--bg-2);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.plan-copy h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  margin: 14px 0 18px;
}

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

.perks {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), background-color 0.4s;
}

.perks li:hover {
  transform: translateX(8px);
  background: var(--surface-2);
}

.perk-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--g, var(--grad-sunset));
  color: #1b0f22;
}

.perk-icon svg {
  width: 22px;
  height: 22px;
}

.perks strong {
  display: block;
  font-size: 0.98rem;
}

.perks span {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(246, 196, 83, 0.6), transparent 40%, transparent 60%, rgba(166, 92, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.form-card form > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 10, 31, 0.45);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f6c453' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.field select option,
.field select optgroup {
  background: var(--bg-2);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(246, 196, 83, 0.7);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.12);
  background: rgba(11, 10, 31, 0.65);
}

.field input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(1) saturate(4) hue-rotate(2deg);
  cursor: pointer;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 106, 91, 0.14);
}

.field-error {
  font-size: 0.78rem;
  color: #ff9d92;
  min-height: 0;
}

.stepper {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 10, 31, 0.45);
  overflow: hidden;
}

.stepper button {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  color: var(--gold);
  transition: background-color 0.25s;
}

.stepper button:hover {
  background: var(--surface-2);
}

.field .stepper input {
  flex: 1;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 12px 0;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

.style-options label {
  position: relative;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
}

.style-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-options span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 10, 31, 0.45);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.style-options span:hover {
  transform: translateY(-2px);
}

.style-options input:checked + span {
  background: var(--grad-sand);
  color: #1b0f22;
  border-color: transparent;
}

.style-options input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.form-actions small {
  color: var(--faint);
  font-size: 0.8rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-card.done form {
  display: none;
}

.form-card.done .form-success {
  display: block;
  animation: rise 0.9s var(--ease) both;
}

.check {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
}

.check circle {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1s var(--ease) forwards;
}

.check path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.6s 0.6s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.form-success h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: 80px 0 34px;
  background: #07061a;
  overflow: clip;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-sunset);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

.footer-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  opacity: 0.12;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 340px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer ul a,
.footer ul button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}

.footer ul a:hover,
.footer ul button:hover {
  color: var(--text);
  padding-left: 6px;
}

.credits {
  position: relative;
  margin-top: 50px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.credits summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.credits ol {
  margin: 14px 0 0;
  padding-left: 20px;
  columns: 2 320px;
  column-gap: 40px;
  font-size: 0.78rem;
  color: var(--faint);
}

.credits li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.credits a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 2px;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--faint);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

.modal.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  --accent: var(--gold);
  position: relative;
  width: min(1080px, 100%);
  max-height: min(92vh, 760px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.6s var(--ease);
}

.modal.open .modal-card {
  transform: none;
}

.modal-media {
  position: relative;
  min-height: 100%;
  background: var(--bg-3);
}

.modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media img.swap {
  animation: modal-img 0.9s var(--ease);
}

@keyframes modal-img {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

.modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(18, 15, 46, 0.6)), linear-gradient(0deg, rgba(11, 10, 31, 0.6), transparent 30%);
  pointer-events: none;
}

.modal-credit {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 28px);
  font-size: 0.7rem;
  color: rgba(248, 241, 231, 0.72);
}

.modal-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-content {
  padding: clamp(24px, 3.5vw, 42px);
  overflow-y: auto;
}

.modal-content .tile-region {
  color: var(--accent);
}

.modal-content h3 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 8px 0 6px;
}

.modal-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.modal-desc p {
  color: var(--muted);
  font-size: 0.96rem;
}

.modal-desc p + p {
  margin-top: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.fact {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.fact small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.fact strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.highlights h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.highlights li {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  opacity: 0;
  transform: translateX(-10px);
  animation: hl-in 0.6s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.07s);
}

@keyframes hl-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.highlights li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.modal-close,
.modal-nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 10, 31, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.modal-close:hover,
.modal-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-close svg,
.modal-nav svg {
  width: 20px;
  height: 20px;
}

.modal-close {
  top: 14px;
  right: 14px;
}

.modal-nav.prev {
  left: 14px;
  top: 14px;
}

.modal-nav.next {
  left: 66px;
  top: 14px;
}

/* ---------- Toast & back-to-top ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(18, 15, 46, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.92rem;
  visibility: hidden;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.6s var(--ease), visibility 0s 0.6s;
}

.toast.show {
  visibility: visible;
  transform: translate(-50%, 0);
  transition: transform 0.6s var(--ease);
}

.toast i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--saudi);
  box-shadow: 0 0 12px var(--saudi);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #1b0f22;
  background: var(--grad-sunset);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-4px);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Tiles keep their own transform for tilt; reveal them with a clip instead */
.tile.reveal {
  transform: translateY(50px) scale(0.97);
}

.tile.reveal.in {
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--nav-h) + 20px) 22px 30px;
    background: rgba(18, 15, 46, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transform: translateX(105%);
    transition: transform 0.55s var(--ease);
    z-index: -1;
  }

  .nav.open .nav-links {
    transform: none;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 16px;
  }

  .nav-links a::after {
    left: 16px;
    right: auto;
    width: 40px;
    bottom: 8px;
  }

  .nav-toggle {
    display: block;
  }

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

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-media {
    min-height: 260px;
    height: 34vh;
  }

  .modal-content {
    overflow: visible;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding-bottom: 48px;
  }

  .hero-caption {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(var(--container), 100% - 32px);
    margin: 48px auto 0;
    justify-content: space-between;
  }

  .hero-caption-text {
    text-align: left;
    order: -1;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 760px) {
  .tiles,
  .tiles.filtered {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 210px;
    gap: 12px;
  }

  .tile-body {
    padding: 16px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .chips {
    border-radius: 18px;
    justify-content: center;
  }

  .search {
    flex-basis: auto;
  }

  .tours-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nav-cta .btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .tiles,
  .tiles.filtered {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .tile.wide,
  .tile.big {
    grid-column: span 1;
  }

  .tile.tall,
  .tile.big {
    grid-row: span 1;
  }

  .tile.big {
    grid-row: span 2;
  }

  .exp-grid {
    grid-template-columns: 1fr;
  }

  .exp.photo.big,
  .exp.photo.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 340px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat {
    padding: 22px 18px;
  }

  .chip {
    padding: 9px 14px;
    font-size: 0.85rem;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }

  .hero-caption {
    gap: 12px;
  }

  .hero-caption-text {
    flex: 1;
  }

  .hero-dot {
    width: 20px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }
}

/* Touch devices have no hover: always show the "Discover" link, keep summaries for big tiles */
@media (hover: none) {
  .tile .tile-more {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 4px;
  }

  .tile:not(.big) .tile-more p {
    display: none;
  }

  .tile .tile-more p {
    -webkit-line-clamp: 2;
  }

  .tile-link {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide.active img {
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
