/* ===================================================================
   PHAROSTRAVEL — ANIMATIONS & LUXURY MICRO-INTERACTIONS
   All motion, transitions, keyframes, and subtle visual polish
   =================================================================== */

/* ── Scroll reveal (Unconditionally visible by default) ── */
.rv {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.rv.in {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Staggered delays for children */
.rv-d1 { transition-delay: .05s; }
.rv-d2 { transition-delay: .1s; }
.rv-d3 { transition-delay: .15s; }
.rv-d4 { transition-delay: .2s; }

/* ── Hero fade-in ──────────────────────────────────────────────────── */
.fade {
  opacity: 1;
  transform: none;
  animation: fadeUp .6s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0.2;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Beacon sweep (only when not driven by JS .ph-beam) ────────────── */
.beam:not(.ph-beam) {
  animation: sweep 9s ease-in-out infinite alternate;
}

@keyframes sweep {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

/* ── Luxury Card & Interactive Micro-Animations (GPU transform/opacity) ── */
.card {
  transition: transform .36s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .36s cubic-bezier(0.16, 1, 0.3, 1),
              border-color .3s ease;
}

.btn {
  transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .24s ease,
              background-color .24s ease,
              color .24s ease,
              border-color .24s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translate3d(-220%, 0, 0) skewX(-22deg);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn:active {
  transform: translateY(0) scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), 0 0 28px rgba(200, 150, 62, 0.18);
    border-color: var(--gold2);
  }
  .btn:hover::after {
    transform: translate3d(260%, 0, 0) skewX(-22deg);
  }
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 62, 0.35);
  }
  .btn.line:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 6px 20px rgba(200, 150, 62, 0.2);
  }
}

/* Accessible keyboard focus indicator across interactive controls */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.opt-tile:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--gold2, #f4b65c);
  outline-offset: 3px;
}

/* Respect prefers-reduced-motion and [data-motion="reduced"] */
@media (prefers-reduced-motion: reduce) {
  .beam,
  .snowflake,
  .stars,
  .cl,
  .tk div,
  .wa {
    animation: none !important;
  }
  .card,
  .btn,
  .opt-tile,
  .chip {
    transition-duration: 0.01ms !important;
  }
}
html[data-motion="reduced"] .beam,
html[data-motion="reduced"] .snowflake,
html[data-motion="reduced"] .stars,
html[data-motion="reduced"] .cl,
html[data-motion="reduced"] .wa {
  animation: none !important;
}

/* Admin shield active pulse */
@keyframes shieldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6), 0 0 14px rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0), 0 0 20px rgba(59, 130, 246, 0.7);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 0 14px rgba(59, 130, 246, 0.5);
  }
}

.admin-shield-active {
  animation: shieldPulse 2.5s infinite ease-in-out !important;
}

/* Subtle gold shine for tags */
.tag {
  background-size: 200% auto;
  transition: background-position .5s ease;
}
.card:hover .tag {
  background-position: right center;
}

/* ── Festive New Year Snowflakes ───────────────────────────────────── */
.snow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1.1rem;
  user-select: none;
  pointer-events: none;
  animation: snowfall linear infinite;
  opacity: .85;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: .9;
  }
  90% {
    opacity: .8;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0;
  }
}

/* ── Star twinkle ──────────────────────────────────────────────────── */
.stars {
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to { opacity: .35; }
}

/* ── Cloud drift ───────────────────────────────────────────────────── */
.cl {
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translateX(40px); }
}

/* ── Marquee scroll ────────────────────────────────────────────────── */
.tk div {
  animation: marquee 50s linear infinite;
}

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

/* ── WhatsApp pulse ────────────────────────────────────────────────── */
.wa {
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 18px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}

/* ── Modal slide ───────────────────────────────────────────────────── */
.md {
  animation: slideUp .4s cubic-bezier(.2, .8, .2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
}

/* ── Success checkmark pop ─────────────────────────────────────────── */
.ok i {
  animation: popIn .6s var(--ease);
}

@keyframes popIn {
  from { transform: scale(0); }
}

/* ── Card image zoom on hover ──────────────────────────────────────── */
@media (hover: hover) {
  .card .img img,
  .card .img svg,
  .dest-card img {
    transition: transform .6s var(--ease);
  }
}

/* ── Nav link underline grow ───────────────────────────────────────── */
header nav a:not(.btn)::after {
  transition: width var(--t) var(--ease);
}

/* ── Service card lift ─────────────────────────────────────────────── */
.sv {
  transition: transform var(--t) var(--ease),
              border-color var(--t),
              box-shadow var(--t);
}

/* ── Page hero parallax-lite ───────────────────────────────────────── */
.page-hero-bg {
  transition: transform .1s linear;
}

/* ── Card Entrance Stagger ─────────────────────────────────────────── */
.grid > .card:nth-child(1), .three > .sv:nth-child(1) { transition-delay: .05s; }
.grid > .card:nth-child(2), .three > .sv:nth-child(2) { transition-delay: .12s; }
.grid > .card:nth-child(3), .three > .sv:nth-child(3) { transition-delay: .19s; }
.grid > .card:nth-child(4), .three > .sv:nth-child(4) { transition-delay: .26s; }
.grid > .card:nth-child(5), .three > .sv:nth-child(5) { transition-delay: .33s; }
.grid > .card:nth-child(6), .three > .sv:nth-child(6) { transition-delay: .40s; }
.grid > .card:nth-child(7) { transition-delay: .47s; }

/* ── Button Micro-Interactions ─────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .arr {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}
.btn:hover::after {
  left: 140%;
  transition: left .85s cubic-bezier(.2, .6, .3, 1);
}

/* ── Option Tiles & Chips Micro-animations ─────────────────────────── */
.opt-tile {
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.opt-tile:hover {
  transform: translateY(-3px);
}
.opt-tile:active {
  transform: scale(.97);
}

.chip {
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.chip:hover {
  transform: translateY(-2px);
}
.chip:active {
  transform: scale(.96);
}

/* ── Form Inputs Focus Transition ──────────────────────────────────── */
.f input, .f select, .f textarea, .tools input, .tools select {
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.f input:focus, .f select:focus, .f textarea:focus {
  transform: translateY(-1px);
}

/* ── Counter Number Animation (JS-driven) ──────────────────────────── */
.st b {
  transition: color .2s, transform .3s var(--ease);
  display: inline-block;
}
.st b.popped {
  animation: counterPop .4s var(--ease);
}
@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: var(--gold2); }
  100% { transform: scale(1); }
}

/* ── Ambient Floating Orbs & Shimmer Keyframes ────────────────────── */
@keyframes pharosGoldFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.pharos-ambient-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.pharos-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.28;
}

.pharos-orb.orb-gold {
  width: 280px;
  height: 280px;
  top: -60px;
  right: 8%;
  background: radial-gradient(circle, rgba(228, 184, 102, 0.55) 0%, rgba(200, 150, 62, 0) 70%);
  animation: orbFloatA 14s ease-in-out infinite alternate;
}

.pharos-orb.orb-caspian {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: 6%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(13, 27, 58, 0) 70%);
  animation: orbFloatB 18s ease-in-out infinite alternate;
}

.pharos-orb.orb-shimmer {
  width: 190px;
  height: 190px;
  top: 35%;
  left: 45%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.3) 0%, transparent 70%);
  animation: orbFloatA 11s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloatA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 22px) scale(1.12); }
}

@keyframes orbFloatB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-28px, -20px) scale(1.08); }
}

/* ── Progressive Auto Scroll-Reveal (.rv-auto) ────────────────────── */
.rv-auto {
  opacity: 0.94;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.rv-auto.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════
   REDUCED MOTION — disable ALL animations for accessibility & user toggle
   ══════════════════════════════════════════════════════════════════════ */
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

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

[data-motion="reduced"] .rv,
[data-motion="reduced"] .fade,
[data-motion="reduced"] .stars,
[data-motion="reduced"] .beam,
[data-motion="reduced"] .cl,
[data-motion="reduced"] .snowflake {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

[data-motion="reduced"] .tk div {
  animation: none !important;
}


/* ══════════════════════════════════════════════════════════════════════
   PHAROS CUSTOM LUXURY ARROW CURSOR & MOUSE GLOW TRACKER
   Razor-sharp, 24px golden aerodynamic luxury pointer with zero offset
   ══════════════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  html, html *, html *::before, html *::after,
  body, body *, body *::before, body *::after,
  *, *::before, *::after,
  button, a, select, input, .btn, .chip, .cat-pills-track .chip, .luxury-select-pill, .luxury-select-pill select, .slider-nav-btn, .top, .burger, .card, .dest-card {
    cursor: none !important;
  }
  
  /* Text fields keep standard text caret for typing comfort */
  input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  [contenteditable="true"] {
    cursor: text !important;
  }

  /* Chat widgets keep native cursor */
  #tawk-bubble-container, #tawk-bubble-container *, iframe, iframe * {
    cursor: auto !important;
  }
}

/* Luxurious, razor-sharp aerodynamic custom pointer arrow (24px) */
.pharos-custom-arrow {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none !important;
  z-index: 999999999 !important;
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
  box-sizing: border-box;
}

.pharos-custom-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 0 0;
  pointer-events: none !important;
  transition: filter 0.15s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(228, 184, 102, 0.85));
}

/* Hovering clickable items: enhanced golden aura without ANY scale distortion (zero drift) */
body.cursor-hovering .pharos-custom-arrow svg {
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(251, 191, 36, 1));
}

/* Mouse down (clicking): tactile subtle glow shift, coordinate tip remains 100% mathematically locked */
body.cursor-clicking .pharos-custom-arrow svg {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 8px rgba(228, 184, 102, 0.9));
}

/* Text editing mode: seamless native text caret without cursor competition */
body.cursor-text-mode .pharos-custom-arrow,
body.cursor-text-mode .pharos-cursor-glow {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.cursor-text-mode,
body.cursor-text-mode input,
body.cursor-text-mode textarea,
body.cursor-text-mode [contenteditable="true"] {
  cursor: text !important;
}

/* The custom arrow pointer NEVER disappears - always follows mouse seamlessly with zero lag */
.pharos-custom-arrow,
.pharos-custom-arrow *,
.pharos-cursor-glow {
  pointer-events: none !important;
}

/* Ensure Tawk.to widget and chat iframes use native system cursor and prevent custom arrow overlap */
#tawk-bubble-container,
#tawk-bubble-container *,
iframe[src*="tawk.to"],
iframe[title*="chat"],
div[class*="tawk"],
div[id*="tawk"],
.tawk-min-container,
.tawk-custom-bubble {
  cursor: auto !important;
}

.pharos-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999990;
  background: radial-gradient(circle, rgba(228, 184, 102, 0.16) 0%, rgba(200, 150, 62, 0.05) 45%, transparent 70%);
  filter: blur(28px);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.35s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

body.cursor-hovering .pharos-cursor-glow {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(228, 184, 102, 0.22) 0%, rgba(200, 150, 62, 0.08) 48%, transparent 72%);
}

@media (hover: none), (pointer: coarse) {
  .pharos-custom-arrow,
  .pharos-cursor-glow {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   PHAROS THEMED LUXURY PAGE LOADER
   Maiden Tower Beacon, Golden Orbital Flight & Elegant Progress Bar
   ══════════════════════════════════════════════════════════════════════ */
#pharos-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  background: radial-gradient(circle at center, #0f1d38 0%, #060c18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: all;
}
#pharos-page-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pharos-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  padding: 30px;
  position: relative;
}
.pharos-loader-beacon {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pharos-loader-tower {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(228, 184, 102, 0.55));
  animation: loaderTowerPulse 2.5s ease-in-out infinite alternate;
}
@keyframes loaderTowerPulse {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(228, 184, 102, 0.4)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 24px rgba(228, 184, 102, 0.85)); }
}
.pharos-loader-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pharos-loader-orbit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pharos-loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 20px;
}
.pharos-loader-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.pharos-loader-sub {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: var(--gold, #c8963e);
}
.pharos-loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.pharos-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c8963e, #ffd98a, #c8963e);
  box-shadow: 0 0 10px rgba(228, 184, 102, 0.8);
  border-radius: 99px;
  animation: loaderProgressBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loaderProgressBar {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}
.pharos-loader-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a0aec0;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════
   PLEASANT LUXURY MICRO-ANIMATIONS THROUGHOUT THE SITE
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Interactive Card Spotlight Reflection */
.card, .dest-card {
  position: relative;
}
.card::before, .dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--card-mx, 50%) var(--card-my, 50%), rgba(228, 184, 102, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 3;
}
.card:hover::before, .dest-card:hover::before {
  opacity: 1;
}

/* 2. Gentle Floating on Badges */
.dest-badge {
  animation: badgeFloat 4.5s ease-in-out infinite alternate;
}
@keyframes badgeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* 3. Hero Stars Ambient Pulsing Twinkle */
.stars {
  animation: starTwinkle 7s ease-in-out infinite alternate;
}
@keyframes starTwinkle {
  0% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.02); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* 4. Elegant Button Spring and Click Ripple */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.4);
}
.btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* 5. Nav Links Floating Pill Glow */
header nav a:hover {
  color: var(--gold2);
  text-shadow: 0 0 12px rgba(228, 184, 102, 0.4);
}

/* 6. Logo Micro-Bounce on Hover */
.logo:hover img {
  transform: scale(1.06) rotate(-1deg);
  filter: drop-shadow(0 4px 14px rgba(228, 184, 102, 0.55));
}


/* ══════════════════════════════════════════════════════════════════════
   COMPACT & REFINED LUXURY ARROWS, SEARCH CONTROLS, AND SCROLL BUTTONS
   All indicators made sleek, small, visible, and pixel-precise
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Hero Scroll-Down Floating Indicator ("спуск") */
.hero-scroll-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 27, 58, 0.78);
  border: 1.5px solid rgba(228, 184, 102, 0.65);
  color: #e4b866;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(200, 150, 62, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: heroScrollBob 2.2s infinite ease-in-out;
}
.hero-scroll-btn:hover {
  background: rgba(228, 184, 102, 0.25);
  border-color: #e4b866;
  color: #fff;
  transform: translateX(-50%) translateY(3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(200, 150, 62, 0.45);
}
@keyframes heroScrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* 2. Compact Back-To-Top Button ("подъем / спуск") */
.top {
  position: fixed !important;
  right: 22px !important;
  bottom: 84px !important;
  z-index: 40 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(13, 27, 58, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(200, 150, 62, 0.22) !important;
  border: 1.5px solid rgba(228, 184, 102, 0.65) !important;
  color: #e4b866 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
}
.top.on {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.top:hover {
  background: #e4b866 !important;
  color: #0d1b3a !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 8px 22px rgba(200, 150, 62, 0.48) !important;
}

/* 3. Compact Search Buttons & Inputs ("поиск") */
.srch-btn, #tour-search-btn, .search-submit-btn {
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  height: 38px !important;
  min-height: 38px !important;
  gap: 6px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.search-input-icon {
  font-size: 0.85rem !important;
  opacity: 0.8 !important;
}
#ai-send-btn {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--gold, #c8963e), #e4b866) !important;
  color: #0d1b3a !important;
}

/* 4. Compact Select Dropdown Carets */
select::-ms-expand,
.tools select::-ms-expand,
.f select::-ms-expand,
.matcher-select::-ms-expand,
.toolbar-sort-wrap select#so::-ms-expand,
.luxury-select-pill select::-ms-expand {
  display: none !important;
}

select, .tools select, .f select, .matcher-select, .toolbar-sort-wrap select#so {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23e4b866' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px 10px !important;
  padding-right: 32px !important;
}

/* 5. Refined Compact Action Arrows */
.dest-card-action, .btn.line, .tour-cta-arrow, a.arrow-link {
  font-size: 0.78rem !important;
  gap: 5px !important;
  letter-spacing: 0.06em !important;
  display: inline-flex !important;
  align-items: center !important;
}
.dest-card-action:hover {
  gap: 8px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   SECTOR SELECTION LANDING MOTION, LIGHTBOX & KINETIC SLIDER DETAILS
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Animated Sector Landing Wave when user selects a tour, chip, hotel, or vehicle */
@keyframes phSectorLand {
  0% {
    transform: translateY(4px) scale(0.992);
    box-shadow: 0 0 0 0 rgba(228, 184, 102, 0.65), 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: #ffd98a;
  }
  45% {
    transform: translateY(-2px) scale(1.004);
    box-shadow: 0 0 0 8px rgba(228, 184, 102, 0), 0 18px 42px rgba(200, 150, 62, 0.28);
    border-color: var(--gold2, #e4b866);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.ph-sector-landed {
  animation: phSectorLand 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes phGridLanding {
  0% {
    opacity: 0.55;
    transform: translateY(10px) scale(0.994);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ph-grid-landing > .card {
  animation: phGridLanding 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes phBadgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); background: rgba(228, 184, 102, 0.32); color: #ffd98a; }
  100% { transform: scale(1); }
}

.ph-badge-pulse {
  animation: phBadgePulse 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Selection Tile Checkmark & Shimmer */
.opt-tile {
  position: relative;
  overflow: hidden;
}
.opt-tile.active {
  border-color: var(--gold2, #e4b866) !important;
  background: linear-gradient(145deg, rgba(200, 150, 62, 0.19), rgba(13, 27, 58, 0.72)) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(200, 150, 62, 0.25) !important;
  transform: translateY(-2px);
}
.opt-tile.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd98a, #c8963e);
  color: #061022;
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: popIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Matched Card & Selection Pill on tours.php */
.card.is-matched-card {
  border-color: rgba(228, 184, 102, 0.52);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 0 20px rgba(200, 150, 62, 0.14);
}
.matcher-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(200, 150, 62, 0.18), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(228, 184, 102, 0.48);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.match-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  flex-shrink: 0;
}
.luxury-select-pill.is-active-filter {
  border-color: #e4b866 !important;
  box-shadow: 0 0 0 2px rgba(228, 184, 102, 0.25), 0 6px 18px rgba(200, 150, 62, 0.22) !important;
}

/* Hardware-Accelerated Content Visibility & 60 FPS Mobile GPU Guard */
@media (max-width: 820px) {
  section.sec,
  section.dark,
  .pharos-cases-sec,
  .pharos-faq-sec,
  section.related,
  footer#foot {
    content-visibility: auto;
    contain-intrinsic-size: auto none auto 620px;
  }

  /* Strip stacked backdrop-filter blur from scrolling elements on mobile GPUs */
  .sg,
  .card,
  .sv,
  .team-card,
  .team-badge,
  .card-gallery-pill,
  .dest-thumb-strip,
  .btn.ghost,
  .pharos-sticky-mobile-cta,
  .tour-gallery-ribbon,
  .pharos-breadcrumbs .bc-list,
  .review-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Keep fixed header crisp with light blur */
  header::before {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  /* Disable heavy 130vmax blurred lighthouse rotation & background SVGs on phones */
  .ph-rose {
    display: none !important;
  }
  .hero .beam.ph-beam,
  .hero .beam {
    filter: none !important;
    mix-blend-mode: normal !important;
    animation: none !important;
    opacity: 0.16 !important;
    will-change: auto !important;
  }
  .ph-lamp {
    animation: none !important;
  }
  .hero h1 em {
    animation: none !important;
  }
  .sg::before {
    animation: none !important;
  }
  .nav-flight-sector {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   STRICT RIGHT-TO-LEFT FLOATING TEXT MARQUEE FOR OVERFLOWING LABELS
   Ensures 100% readability on mobile buttons, photo captions, badges &
   breadcrumbs with disciplined constant-velocity GPU translation.
   ══════════════════════════════════════════════════════════════════════ */
.is-ph-marquee {
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5px, #000 calc(100% - 5px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5px, #000 calc(100% - 5px), transparent 100%);
}
.btn.is-ph-marquee {
  justify-content: flex-start !important;
}
.tour-gal-item figcaption.is-ph-marquee {
  text-align: left !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.ph-marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: phStrictFloatRTL var(--ph-mq-dur, 7s) cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
.is-ph-marquee:hover .ph-marquee-track,
.is-ph-marquee:active .ph-marquee-track {
  animation-play-state: paused;
}

@keyframes phStrictFloatRTL {
  0%, 18% {
    transform: translate3d(0, 0, 0);
  }
  76%, 92% {
    transform: translate3d(var(--ph-mq-dist, -45px), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  .btn,
  .sticky-mobile-sla,
  .dest-visual-col [data-i18n$="_badge"],
  .tour-rule-chip,
  .opt-status-badge {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip !important;
  }
}
