/* ===================================================================
   PHAROSTRAVEL — MAIN DESIGN SYSTEM
   Premium Azerbaijani-inspired tourism platform
   =================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────── */
:root,
:root[data-theme="light"] {
  /* Core palette */
  --navy: #0d1b3a;
  --navy2: #1b3a6b;
  --gold: #c8963e;
  --gold2: #e4b866;
  --stone: #fbf8f3;
  --stone2: #fff;
  --ink: #14213d;
  --mut: #5d667a;
  --line: #e8e1d4;
  --pomegranate: #7a1f2b;
  --teal: #0d5560;

  /* Shadows */
  --sh: 0 10px 30px rgba(13, 27, 24, .12);
  --sh-hover: 0 20px 44px rgba(13, 27, 58, .22);

  /* Radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 99px;

  /* Easing */
  --ease: cubic-bezier(.22, .7, .2, 1);
  --t: .3s;

  /* Azerbaijani ornamental patterns */
  --rug: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Crect width='36' height='18' fill='%237a1f2b'/%3E%3Cpath d='M18 2l7 7-7 7-7-7z' fill='%23e4b866'/%3E%3Cpath d='M18 6l3 3-3 3-3-3z' fill='%230d1b3a'/%3E%3Cpath d='M0 1h36M0 17h36M0 9h6M30 9h6' stroke='%23e4b866' stroke-width='2'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect x='16' y='16' width='32' height='32' fill='none' stroke='%23e4b866' stroke-opacity='.12'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)' fill='none' stroke='%23e4b866' stroke-opacity='.12'/%3E%3C/svg%3E");
  --engraving: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10 L70 45 L105 45 L77 65 L87 100 L60 80 L33 100 L43 65 L15 45 L50 45 Z' fill='none' stroke='%23c8963e' stroke-width='0.6' stroke-opacity='0.038'/%3E%3Ccircle cx='60' cy='60' r='48' fill='none' stroke='%23c8963e' stroke-width='0.4' stroke-opacity='0.025' stroke-dasharray='4 4'/%3E%3Cpath d='M60 0 C65 20 90 25 120 30 C95 35 90 60 85 85 C60 80 55 105 50 120 C45 95 20 90 0 85 C25 80 30 55 35 30 C40 5 55 0 60 0 Z' fill='none' stroke='%23c8963e' stroke-width='0.4' stroke-opacity='0.03'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ── Dark Mode Palette ──────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --navy: #060d1e;
  --navy2: #0f1c38;
  --gold: #e4b866;
  --gold2: #ffd98a;
  --stone: #090f1f;
  --stone2: #121c35;
  --ink: #f0ece3;
  --mut: #9aa5be;
  --line: #22304f;
  --pomegranate: #912735;
  --teal: #1a7885;

  --sh: 0 10px 30px rgba(0, 0, 0, .45);
  --sh-hover: 0 20px 48px rgba(0, 0, 0, .65);

  --engraving: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10 L70 45 L105 45 L77 65 L87 100 L60 80 L33 100 L43 65 L15 45 L50 45 Z' fill='none' stroke='%23e4b866' stroke-width='0.7' stroke-opacity='0.06'/%3E%3Ccircle cx='60' cy='60' r='48' fill='none' stroke='%23e4b866' stroke-width='0.5' stroke-opacity='0.04' stroke-dasharray='4 4'/%3E%3Cpath d='M60 0 C65 20 90 25 120 30 C95 35 90 60 85 85 C60 80 55 105 50 120 C45 95 20 90 0 85 C25 80 30 55 35 30 C40 5 55 0 60 0 Z' fill='none' stroke='%23e4b866' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ── Seamless Theme Transition (Zero artifacts, no lines or seams) ── */
html {
  background: var(--stone);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

/* Synchronized smooth transition across ALL elements and SVG paths */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, fill .25s ease, stroke .25s ease !important;
  transition-delay: 0s !important;
}

/* Mountain silhouette & bottom SVG transitions */
.mt path,
svg path[fill*="stone"] {
  transition: fill .25s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}

button, a, input, select, textarea, [role="button"], .btn, .chip, .opt-tile, .card, .logo, .burger, .theme-btn, .settings-btn {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Disciplined tactile press feedback only on buttons/chips/tiles (never fighting card/link animations) */
.btn:active,
.chip:active,
.opt-tile:active {
  transform: scale(0.975);
}

html {
  max-width: 100vw;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100vw;
  width: 100%;
  background-color: var(--stone);
  background-image: var(--engraving);
  background-repeat: repeat;
  background-attachment: local;
  color: var(--ink);
  font: 16px/1.65 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography (Modern Luxury Stack with Full Azerbaijani & Cyrillic Support) ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.18;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

h1 { font-size: clamp(2.1rem, 7vw, 4.3rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.eyebrow {
  color: var(--gold);
  font: 700 .76rem/1.4 'Montserrat', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead {
  color: var(--mut);
  max-width: 560px;
  font-size: 1.05rem;
}

/* Ornamental heading divider - Automatically aligns with text context */
.h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 14px;
  margin: 14px 0 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14'%3E%3Cpath d='M0 7h58M92 7h58' stroke='%23c8963e' stroke-width='1.5'/%3E%3Cpath d='M75 0l7 7-7 7-7-7z' fill='%23c8963e'/%3E%3Cpath d='M58 7l4-4 4 4-4 4zM84 7l4-4 4 4-4 4z' fill='%23e4b866'/%3E%3C/svg%3E") no-repeat left center;
  background-size: contain;
}

/* Centered contexts: keep heading, divider, and lead perfectly centered */
.section-header,
.center,
.text-center,
[style*="text-align: center"],
[style*="text-align:center"] {
  text-align: center;
}

.section-header .h2::after,
.center .h2::after,
.text-center .h2::after,
.wrap[style*="text-align: center"] .h2::after,
.wrap[style*="text-align:center"] .h2::after,
div[style*="text-align: center"] .h2::after,
div[style*="text-align:center"] .h2::after,
.h2.center::after,
.h2.text-center::after {
  margin-left: auto !important;
  margin-right: auto !important;
  background-position: center center !important;
}

.section-header .lead,
.section-header p.lead {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Explicit left align ONLY when explicitly requested */
.text-left .h2::after,
.align-left .h2::after,
.h2.align-left::after,
.h2.text-left::after {
  margin-left: 0 !important;
  margin-right: auto !important;
  background-position: left center !important;
}

/* ── Layout ────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 84px 0;
}

.skip {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 100;
  pointer-events: none;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--stone2);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  box-shadow: var(--sh);
  z-index: 999;
  pointer-events: auto;
}

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

/* ── Grid helpers ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* ── Header / Navigation ──────────────────────────────────────────── */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 10px 0;
  transition: padding var(--t);
}
header .wrap {
  max-width: 1600px !important;
  width: 100% !important;
  padding: 0 32px !important;
  box-sizing: border-box;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--stone) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(13, 27, 58, 0.08);
  opacity: 0;
  transition: opacity var(--t) ease;
}
header.s::before {
  opacity: 1;
}
header.s {
  padding: 6px 0;
}
header.menu-open::before {
  opacity: 0 !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 60;
  padding: 4px 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 0;
}
.logo img, .logo-tower {
  height: 44px;
  width: auto;
  max-width: 58px;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(228, 184, 102, .45));
  transition: transform var(--t) var(--ease);
}
[data-theme="light"] .logo-tower,
[data-theme="light"] .logo img {
  filter: invert(0.9) brightness(0.2) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}
.logo:hover img, .logo:hover .logo-tower {
  transform: scale(1.05);
}
.logo-tower-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 44px;
  flex-shrink: 0;
}
.logo-orbit-svg {
  display: none !important;
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.logo-title, .logo-main {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}
header.s .logo-title, header.s .logo-main {
  color: var(--ink);
}
.logo-subtitle, .logo-sub {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold, #c8963e);
  text-transform: uppercase;
  margin-top: 2px;
}

header nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

/* Upper Navigation Sector Flight (Home, Tours, Destinations, Services, Reviews, About, Contact) - Zero Lines */
.nav-flight-sector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}
.nav-flight-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
@media (max-width: 991px) {
  .nav-flight-sector {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-flight-sector {
    display: none !important;
  }
}
header nav a {
  color: #fff;
  font: 600 .82rem/1.2 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 4px;
  transition: color var(--t);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
}
header.s nav a { color: var(--ink); }
header nav a[aria-current="page"] {
  color: var(--gold2);
}
header.s nav a[aria-current="page"] {
  color: var(--gold);
}

header nav .btn,
header nav a.btn {
  padding: 9px 20px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 38px !important;
  height: 38px !important;
  width: auto !important;
  max-width: none !important;
  border-radius: 99px !important;
  font: 800 0.82rem 'Montserrat', sans-serif !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, var(--gold, #c8963e), #e4b866) !important;
  color: #060c18 !important; -webkit-text-fill-color: #060c18 !important; font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(200, 150, 62, 0.4) !important;
  box-sizing: border-box !important;
}

header nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width var(--t) var(--ease), left var(--t) var(--ease);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(228, 184, 102, 0.6);
}
header nav a:hover::after,
header nav a[aria-current="page"]::after { width: 85%; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  z-index: 60;
}
header.s .burger { color: var(--ink); }

/* ── Progress bar ──────────────────────────────────────────────────── */
#pg {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 60;
  width: 0;
  pointer-events: none;
  transition: width .1s linear;
}

/* ── Rug ornament ──────────────────────────────────────────────────── */
.rug {
  height: 18px;
  background: var(--rug) repeat-x;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  background: var(--star), linear-gradient(160deg, var(--navy), var(--navy2));
  color: #c5cde0;
  font-size: .92rem;
  padding-top: 0;
}

footer .rug {
  margin-bottom: 40px;
}

.fg {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 30px;
  padding: 0 0 40px;
}

.flogo {
  font: 700 1.2rem 'Montserrat', sans-serif;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

footer a {
  color: var(--gold2);
  transition: color var(--t);
}
footer a:hover { color: #fff; }

.soc {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.soc a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-pill);
  color: #c5cde0;
  font-size: .85rem;
  transition: var(--t);
}
.soc a:hover {
  background: var(--gold);
  color: #1a1405;
  border-color: var(--gold);
}

.ct {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ct b { color: #fff; }

.cp {
  padding: 20px 0;
  font-size: .85rem;
  opacity: .6;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin: 0;
}

/* ── WhatsApp bubble ───────────────────────────────────────────────── */
.wa { display: none !important; }

/* ── Back to top ───────────────────────────────────────────────────── */
.top {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--stone2);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.top.on { opacity: 1; pointer-events: auto; }

/* ── Hero sections ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #0d1b3a;
  overflow: hidden;
  padding: 120px 0 160px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 27, 58, .7) 0%,
    rgba(27, 58, 107, .5) 50%,
    rgba(13, 27, 58, .8) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 10;
}

.hero h1 { max-width: 760px; }
.hero h1 em { color: var(--gold2); font-style: normal; }
.hero p { max-width: 520px; color: #dfe4f0; font-size: 1.1rem; margin: 18px 0 30px; }

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 12;
}

/* Page hero (sub pages & tour showcases) */
.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(130px, 16vw, 190px) 0 clamp(36px, 4.5vw, 54px);
  overflow: hidden;
  min-height: clamp(340px, 46vh, 480px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #060c18;
  box-sizing: border-box;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 24, 0.38) 0%,
    rgba(6, 12, 24, 0.18) 35%,
    rgba(6, 12, 24, 0.68) 76%,
    rgba(6, 12, 24, 0.94) 100%
  );
  pointer-events: none;
  z-index: 2;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center !important;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0.96) contrast(1.06) saturate(1.08);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-hero:hover .page-hero-bg {
  transform: scale(1.02);
}
.page-hero .wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.18;
  margin: 0;
}
.page-hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f7d794;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ── Tour Photo Showcase Ribbon ── */
.tour-gallery-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}
.tour-gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  height: 190px;
  border: 1px solid rgba(228, 184, 102, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.tour-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.tour-gallery-item:hover img {
  transform: scale(1.08);
}
.tour-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 13, 30, 0.88) 100%);
  pointer-events: none;
}
.tour-gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ── Hero decorative elements ──────────────────────────────────────── */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
    radial-gradient(2px 2px at 85% 45%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 55%, #fff, transparent),
    radial-gradient(2px 2px at 55% 75%, #e4b866, transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, #fff, transparent);
  pointer-events: none;
  z-index: 1;
  animation: starsTwinkle 8s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

@keyframes starsTwinkle {
  0% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.03); }
  100% { opacity: 0.75; transform: scale(0.98); }
}

.beam {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 140vmax;
  height: 90px;
  margin-left: -70vmax;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 168, .18), transparent);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
  animation: beamSweep 16s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes beamSweep {
  0% { transform: rotate(-7deg) scaleY(0.9); opacity: 0.35; }
  50% { transform: rotate(7deg) scaleY(1.15); opacity: 0.75; }
  100% { transform: rotate(-7deg) scaleY(0.9); opacity: 0.35; }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(-25px, -15px) scale(0.95); }
  100% { transform: translate(25px, 20px) scale(1.08); }
}

.admin-shield-btn.is-active {
  background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, rgba(13,27,58,0.95) 100%) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.85), 0 0 8px #60a5fa !important;
  animation: shieldPulse 2.5s infinite alternate ease-in-out !important;
}

@keyframes shieldPulse {
  0% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
  100% { box-shadow: 0 0 26px rgba(59, 130, 246, 0.95), 0 0 10px #93c5fd; }
}

.mt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

/* ── Header Controls: Theme, Settings, Admin & Language ───────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#user-profile-badge {
  order: 9999 !important;
  margin-left: auto !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 800 !important;
}
#user-profile-badge *,
#user-profile-badge span,
#hdr-user-name {
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 800 !important;
}

.theme-btn, .settings-btn, .admin-shield-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform .25s var(--ease), color .25s ease, opacity .25s ease, filter .25s ease;
  padding: 0;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.92;
}
header.s .theme-btn, header.s .settings-btn, header.s .admin-shield-btn {
  background: transparent !important;
  border: none !important;
  color: var(--ink);
}
:root[data-theme="dark"] header.s .theme-btn,
:root[data-theme="dark"] header.s .settings-btn,
:root[data-theme="dark"] header.s .admin-shield-btn {
  background: transparent !important;
  border: none !important;
  color: var(--gold2);
}

.theme-btn:hover, .settings-btn:hover, .admin-shield-btn:hover {
  transform: scale(1.12);
  opacity: 1;
  background: transparent !important;
  border: none !important;
  filter: drop-shadow(0 0 8px rgba(228, 184, 102, 0.55));
}
.theme-btn:active, .settings-btn:active, .admin-shield-btn:active {
  transform: scale(.95);
}

/* Mobile-only utility bar placed at top of mobile navigation menu */
.mobile-nav-utilities {
  display: none;
}

/* 🛡️ Admin Shield Glow when Logged In */
body.is-admin .admin-shield-btn,
.admin-shield-btn.is-active {
  background: rgba(37, 99, 235, 0.25) !important;
  border: 1.5px solid #3b82f6 !important;
  color: #60a5fa !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.8), inset 0 0 8px rgba(59, 130, 246, 0.4) !important;
  animation: adminGlowPulse 2.5s infinite alternate;
}
@keyframes adminGlowPulse {
  0% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
  100% { box-shadow: 0 0 18px rgba(59, 130, 246, 0.95); }
}

/* Admin watermark completely removed as requested */
.admin-watermark { display: none !important; }

/* 🌐 Header Language Switcher */
.lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-pill);
  padding: 2px;
  gap: 2px;
}
header.s .lang-selector {
  background: var(--stone);
  border-color: var(--line);
}
.lang-opt {
  background: none;
  border: 0;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .2s, color .2s;
  text-transform: uppercase;
  line-height: 1;
}
header.s .lang-opt {
  color: var(--ink);
}
.lang-opt.active {
  background: var(--gold);
  color: #fff !important;
}

.theme-btn.rotate-pop {
  animation: themeRotatePop .6s var(--ease);
}
@keyframes themeRotatePop {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* ── Holiday / New Year Theme Accents ──────────────────────────────── */
.th-ny {
  --ac: #0d7054; /* Festive Pine Green */
}
.card.th-ny {
  background: linear-gradient(135deg, color-mix(in srgb, #0d7054 10%, var(--stone2)), var(--stone2));
  border-color: rgba(228, 184, 102, .5);
}
.card.th-ny .tag {
  background: rgba(13, 112, 84, .9);
  color: #fff;
  border-color: var(--gold2);
  box-shadow: 0 0 12px rgba(228, 184, 102, .4);
}

/* ── Motion Preference Controller ──────────────────────────────────── */
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ── Stats bar ─────────────────────────────────────────────────────── */
.stats {
  margin-top: -70px;
  position: relative;
  z-index: 5;
  padding: 0 20px;
}

.sg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--stone2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 28px 10px;
}

.st {
  text-align: center;
  padding: 6px;
}
.st b {
  font: 700 2.1rem 'Montserrat', sans-serif;
  color: var(--gold);
  display: block;
}
.st span {
  display: block;
  color: var(--mut);
  font-size: .88rem;
  font-family: 'Inter', sans-serif;
}

/* ── Marquee ticker ────────────────────────────────────────────────── */
.tk {
  overflow: hidden;
  white-space: nowrap;
  margin-top: 0;
  background: var(--pomegranate);
  color: var(--gold2);
  border-block: 2px solid var(--gold);
  padding: 10px 0;
  font: 600 .82rem 'Montserrat', sans-serif;
  letter-spacing: .3em;
}
.tk div {
  display: inline-block;
}

/* ── Dark band ─────────────────────────────────────────────────────── */
.dark {
  background: var(--star), linear-gradient(160deg, var(--navy), var(--navy2));
  color: #fff;
}
.dark .lead { color: #c5cde0; }
.dark .eyebrow { color: var(--gold2); }

/* ── Section backgrounds ───────────────────────────────────────────── */
.bg-alt {
  background-color: var(--stone2);
  background-image: var(--engraving);
  background-repeat: repeat;
}
.bg-stone {
  background-color: var(--stone);
  background-image: var(--engraving);
  background-repeat: repeat;
}

/* ── Tour detail page ──────────────────────────────────────────────── */
.tour-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 36px 0 32px !important;
  padding: 24px;
  background: var(--stone);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.tour-info-item {
  text-align: center;
}
.tour-info-item .label {
  font: 600 .75rem 'Inter', sans-serif;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.tour-info-item .value {
  font: 700 1.1rem 'Montserrat', sans-serif;
  color: var(--ink);
}

.itinerary {
  counter-reset: day;
}
.itinerary-day {
  padding: 24px 0 24px 60px;
  position: relative;
  border-left: 2px solid var(--line);
  margin-left: 20px;
}
.itinerary-day::before {
  counter-increment: day;
  content: "Day " counter(day);
  position: absolute;
  left: -20px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1405;
  font: 700 .7rem 'Montserrat', sans-serif;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
}
.itinerary-day:last-child { border-left-color: transparent; }
.itinerary-day h4 { margin-bottom: 8px; }
.itinerary-day p { color: var(--mut); margin: 0; }

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
}
.price-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.price-table tr:hover td { background: rgba(200, 150, 62, .06); }
.price-table .price-val {
  font: 700 1.05rem 'Montserrat', sans-serif;
  color: var(--gold);
}

/* Related tours */
.related {
  padding-top: 48px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  section { padding: 50px 0; }

  header {
    padding: 8px 0 !important;
  }
  header .wrap {
    padding: 0 12px !important;
    max-width: 100% !important;
  }
  .nav {
    min-height: 48px !important;
    gap: 6px !important;
  }
  .logo {
    gap: 8px !important;
    padding: 2px 0 !important;
    max-width: 140px !important;
  }
  .logo-tower {
    height: 34px !important;
    width: auto !important;
  }
  .logo-title {
    font-size: 1.05rem !important;
    letter-spacing: 0.1em !important;
  }
  .logo-subtitle {
    font-size: 0.52rem !important;
    letter-spacing: 0.18em !important;
  }
  .logo-orbit-svg {
    display: none !important;
  }

  .header-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    margin-left: auto !important;
  }
  /* Move language switcher, theme toggle & settings off the mobile top bar into the top of the mobile menu */
  .header-actions .hdr-lang-pill,
  .header-actions .theme-btn,
  .header-actions .settings-btn,
  .header-actions #user-profile-badge {
    display: none !important;
  }
  .burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 10000 !important;
    margin-left: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer;
    z-index: 70 !important;
    padding: 0 !important;
  }
  header.s .burger {
    color: var(--ink) !important;
    background: transparent !important;
    border: none !important;
  }
  :root[data-theme="dark"] header.s .burger {
    color: var(--gold2) !important;
    background: transparent !important;
    border: none !important;
  }

  .mobile-nav-utilities {
    order: -10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 300px !important;
    padding: 6px 4px 14px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(244, 182, 92, 0.22) !important;
    background: transparent !important;
  }
  .mobile-nav-utilities .mobile-nav-icons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }
  .mobile-nav-utilities .hdr-lang-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .mobile-nav-utilities .hdr-lang-btn {
    color: rgba(255, 255, 255, 0.78) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    padding: 6px 9px !important;
    min-width: 34px !important;
    min-height: 36px !important;
  }
  .mobile-nav-utilities .hdr-lang-btn.active,
  .mobile-nav-utilities .hdr-lang-btn.is-active {
    color: #f4b65c !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .mobile-nav-utilities .theme-btn,
  .mobile-nav-utilities .settings-btn {
    display: inline-grid !important;
    place-items: center !important;
    width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
  }
  .mobile-nav-utilities a::after {
    display: none !important;
  }

  header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background: #091326;
    background: radial-gradient(circle at 50% 30%, #152d54 0%, #091326 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 76px 20px 36px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  header nav.on { transform: translateX(0); }
  header nav a {
    color: #fff !important;
    font-size: 1.15rem;
    padding: 8px 16px;
    text-align: center;
    width: 100%;
    max-width: 300px;
  }
  header nav .btn {
    margin-top: 8px;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .sg { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .two { grid-template-columns: 1fr; gap: 24px; }
  .fg { grid-template-columns: 1fr; gap: 20px; }

  .hero { padding: 90px 0 100px; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.75rem); }
  .sun { width: 90px; height: 90px; }
  
  /* Tour hero: ample breathing room so landmark is completely clear */
  .page-hero {
    padding: 280px 0 30px !important;
    min-height: 480px !important;
  }

  .itinerary-day { padding-left: 48px; }

  .tour-info {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px 14px !important;
    margin: 20px 0 !important;
  }
  .tour-info-item .value { font-size: 0.95rem !important; }
}

@media (max-width: 600px) {
  .header-actions #user-profile-badge {
    display: none !important;
  }
}

@media (max-width: 480px) {
  header .wrap { padding: 0 8px !important; }
  .header-actions { gap: 4px !important; }
  
  .page-hero {
    padding: clamp(95px, 18vw, 130px) 0 28px !important;
    min-height: auto !important;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 6.8vw, 2rem) !important;
    line-height: 1.18 !important;
  }
  .page-hero .eyebrow {
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 6px !important;
  }

  .wrap { padding: 0 14px !important; }
  .grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .three { grid-template-columns: 1fr !important; gap: 16px !important; }
  .sg { padding: 18px 8px; }
  .st b { font-size: 1.5rem; }

  .tour-info {
    gap: 10px !important;
    padding: 12px 10px !important;
  }
  .tour-info-item .label { font-size: 0.68rem !important; }
  .tour-info-item .value { font-size: 0.88rem !important; }
}

@media (max-width: 380px) {
  .header-actions .settings-btn {
    display: none !important;
  }
}

/* ── Modern Luxury Typography (Full Native Azerbaijani & Cyrillic Support) ── */
:root {
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6, .h2, .logo, .eyebrow, .flogo {
  font-family: var(--font-heading) !important;
  font-feature-settings: "locl" 1;
}

header nav a, .btn, .chip, .tag, .meta span, .st b, #user-profile-badge {
  font-family: var(--font-heading) !important;
  font-feature-settings: "locl" 1;
}

/* Universal Font Harmony: Overwrite any legacy inline Cinzel/Playfair references */
[style*="'Cinzel'"],
[style*="Cinzel"],
[style*="Playfair"],
[style*="'Playfair Display'"],
.dest-card h3,
.price-table .price-val,
.summary-total b,
.tot b,
.pr b,
.ft b {
  font-family: var(--font-heading) !important;
  font-feature-settings: "locl" 1;
}

body, p, li, input, select, textarea, .lead {
  font-family: var(--font-body) !important;
  font-feature-settings: "locl" 1;
}

/* Modal and layout mobile responsiveness lock */
html.menu-locked,
body.menu-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

@media (max-width: 820px) {
  header.menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 9999 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  header.menu-open .nav {
    position: static !important;
  }

  header.menu-open .burger {
    position: fixed !important;
    top: 18px !important;
    right: 20px !important;
    z-index: 10001 !important;
    color: #fff !important;
  }

  header.menu-open .logo {
    position: fixed !important;
    top: 16px !important;
    left: 20px !important;
    z-index: 10001 !important;
  }

  header.menu-open nav {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-height: 100svh !important;
    height: 100dvh !important;
    background: #091326 !important;
    background: radial-gradient(circle at 50% 20%, #0c4a58 0%, #03151b 72%, #020c10 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 80px 24px 40px !important;
    transform: translateX(0) !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  @media (max-width: 480px) {
    header.menu-open .burger {
      top: 12px !important;
      right: 12px !important;
    }
    header.menu-open .logo {
      top: 12px !important;
      left: 12px !important;
    }
  }
}
