/* ==========================================================================
   ARPIT TRAVELS — EDITORIAL LUXURY CINEMATIC STYLESHEET
   ========================================================================== */

:root {
  --bg-black: #080808;
  --text-warm: #f4f1ea;
  --text-muted: #9b9b96;
  --brand-gold: #c8a97e;
  --glass-bg: rgba(14, 14, 14, 0.72);
  --glass-border: rgba(244, 241, 234, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Agency Return Button */
.agency-return-strip {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  color: #EDE8DD;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.agency-return-strip:hover {
  transform: translateY(-2px);
  background: #D94332;
  color: #FFFFFF;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  color: var(--text-warm);
  font-family: var(--font-sans);
  overflow: hidden;
  touch-action: pan-y;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Typography Helpers */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.tracking-widest { letter-spacing: 0.2em; }
.tracking-mega { letter-spacing: 0.35em; }

.text-warm { color: var(--text-warm); }
.text-muted { color: var(--text-muted); }

/* Tailwind helper fallbacks if CDN/offline */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.flex { display: flex; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Navigation Audio Visualizer */
.audio-waves .wave-bar {
  width: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transform-origin: bottom;
  animation: audioPulse 1.2s infinite ease-in-out;
}
.audio-waves .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-waves .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-waves .wave-bar:nth-child(3) { animation-delay: 0.2s; }

.audio-paused .audio-waves .wave-bar {
  animation: none !important;
  height: 2px !important;
}

@keyframes audioPulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1.2); }
}

/* Custom Cursor */
#cursor {
  mix-blend-mode: difference;
  transition: transform 0.1s ease-out, opacity 0.3s ease;
}
#cursor.is-hovering #cursorDot {
  transform: scale(0);
}
#cursor.is-hovering #cursorRing {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  mix-blend-mode: normal;
}
#cursor.is-hovering #cursorLabel {
  opacity: 1;
  transform: scale(1);
  color: #000000;
}
#cursor.is-active #cursorRing {
  transform: scale(0.9);
}

/* Scene Card Positioning & 3D Stage */
#scenesContainer {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.scene-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  pointer-events: none;
  opacity: 0;
}

.scene-card.is-active {
  pointer-events: auto;
  opacity: 1;
}

/* ==========================================================================
   CINEMATIC LIVING CAMERA FRAME (ARRI / 35MM CINEMATOGRAPHY SIMULATION)
   ========================================================================== */
.cinematic-frame-wrapper {
  position: relative;
  width: 84vw;
  max-width: 450px;
  height: 76vh;
  max-height: 780px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 120px -20px rgba(0, 0, 0, 0.95), 0 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transform-style: preserve-3d;
  background-color: #0c0c0c;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
  will-change: transform, filter;
  /* Organic Handheld Cinema Camera Sway */
  animation: cinemaHandheldSway 14s ease-in-out infinite alternate;
}

@keyframes cinemaHandheldSway {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(-3px, -5px, 0) rotate(-0.35deg);
  }
  50% {
    transform: translate3d(4px, 2px, 0) rotate(0.4deg);
  }
  75% {
    transform: translate3d(-2px, 4px, 0) rotate(-0.2deg);
  }
  100% {
    transform: translate3d(3px, -3px, 0) rotate(0.3deg);
  }
}

@media (min-width: 1024px) {
  .cinematic-frame-wrapper {
    width: 31vw;
    min-width: 410px;
    max-width: 490px;
    height: 78vh;
    max-height: 840px;
    border-radius: 28px;
  }
}

@media (max-width: 767px) {
  .cinematic-frame-wrapper {
    width: 90vw !important;
    max-width: 380px !important;
    height: 52svh !important;
    max-height: 440px !important;
    margin-top: -24px !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.25) !important;
    animation: none !important;
  }
}

.cinematic-frame-wrapper:hover {
  box-shadow: 0 45px 140px -10px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.45);
}

/* Inner media container - perfectly clipped to the rounded box */
.cinematic-image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  transform-style: preserve-3d;
  background-color: #0c0c0c;
}

/* High-Definition Living Image - True Bottom-to-Top Vertical Crane Motion */
.cinematic-living-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 135%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.04) brightness(0.96) saturate(1.08);
  will-change: transform;
  transform-origin: center top;
  animation: cinematicBottomToTopPan 15s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

@keyframes cinematicBottomToTopPan {
  0% {
    /* Starts at the ground/base (bottom of scene) */
    transform: translate3d(0, -25%, 0) scale(1.02);
  }
  100% {
    /* Smoothly glides up to reveal mountain peaks/sky (top of scene) */
    transform: translate3d(0, 0%, 0) scale(1.08);
  }
}

.cinematic-frame-wrapper:hover .cinematic-living-image {
  filter: contrast(1.08) brightness(1.02) saturate(1.15);
}

/* Anamorphic Lens Flare & Light Sheen */
.cinematic-lens-flare {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 40% at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(255, 235, 190, 0.18) 0%, rgba(200, 170, 120, 0.05) 50%, transparent 80%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.4s ease;
  opacity: 0.75;
}

/* Horizontal Anamorphic Streak */
.cinematic-streak {
  position: absolute;
  top: 35%;
  left: -20%;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(180, 210, 255, 0.3) 30%, rgba(255, 245, 220, 0.6) 50%, rgba(180, 210, 255, 0.3) 70%, transparent 100%);
  filter: blur(1px);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  z-index: 13;
  transform: rotate(-3deg);
  animation: streakGlimmer 8s ease-in-out infinite alternate;
}

@keyframes streakGlimmer {
  0% { opacity: 0.2; transform: translateY(0px) rotate(-3deg); }
  50% { opacity: 0.5; transform: translateY(-15px) rotate(-1deg); }
  100% { opacity: 0.25; transform: translateY(10px) rotate(-4deg); }
}

/* 35mm Fine Film Grain Overlay */
.cinematic-grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 14;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.7'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Optical Vignette Falloff */
.cinematic-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 15;
}

/* Camera Viewfinder Reticle & HUD */
.camera-hud-overlay {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.35);
}
.hud-corner-tl { top: 6px; left: 6px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud-corner-tr { top: 6px; right: 6px; border-top: 1.5px solid; border-right: 1.5px solid; }
.hud-corner-bl { bottom: 6px; left: 6px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.hud-corner-br { bottom: 6px; right: 6px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.hud-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}
.hud-crosshair::before, .hud-crosshair::after {
  content: '';
  position: absolute;
  background: #ffffff;
}
.hud-crosshair::before { top: 6px; left: 0; right: 0; height: 1px; }
.hud-crosshair::after { left: 6px; top: 0; bottom: 0; width: 1px; }

/* Story / Reel Timeline Bar */
.reel-progress-track {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  z-index: 25;
  pointer-events: none;
}

.reel-progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Floating Reel Meta Badges */
.reel-badge-top {
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 25;
  pointer-events: none;
}

.reel-live-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f4f1ea;
}

.reel-live-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53e3e;
  box-shadow: 0 0 8px #e53e3e;
  animation: pulseBeacon 1.4s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.reel-badge-bottom {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 25;
  pointer-events: none;
}

.reel-audio-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.95);
}

.reel-mini-bars {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 10px;
}
.reel-mini-bars span {
  width: 1.5px;
  background: #ffffff;
  border-radius: 1px;
  animation: reelEqualizer 0.8s infinite ease-in-out alternate;
}
.reel-mini-bars span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.reel-mini-bars span:nth-child(2) { height: 9px; animation-delay: 0.3s; }
.reel-mini-bars span:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.reel-mini-bars span:nth-child(4) { height: 8px; animation-delay: 0.4s; }

@keyframes reelEqualizer {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

/* Editorial Title Mask & Typography Layout */
.scene-editorial-info {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem 3rem 4rem 3rem;
  z-index: 20;
}

@media (max-width: 767px) {
  .scene-editorial-info {
    padding: 4.6rem 1.25rem 4.8rem 1.25rem !important;
  }
}

.scene-bottom-editorial {
  max-width: min(340px, 30vw);
  margin-bottom: 7.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .scene-bottom-editorial {
    max-width: 100% !important;
    margin-bottom: 0.8rem !important;
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.8) 35%, rgba(10,10,10,0.96) 100%) !important;
    padding: 12px 14px 6px !important;
    border-radius: 16px !important;
  }
  .title-word {
    font-size: 2.2rem !important;
    line-height: 1 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .scene-bottom-editorial {
    max-width: 80vw;
    margin-bottom: 8.5rem;
  }
}

.title-mask-container {
  overflow: hidden;
  display: block;
}

.title-word {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-warm);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  white-space: normal;
  word-break: normal;
}

.editorial-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 300;
  color: rgba(244, 241, 234, 0.85);
  line-height: 1.35;
}

.editorial-submeta {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

/* Vertical Progress Markers */
.rail-tick {
  width: 3px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.rail-tick:hover {
  background: rgba(255, 255, 255, 0.6);
  height: 24px;
}
.rail-tick.is-active {
  background: #ffffff;
  height: 32px;
  width: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Style options in itinerary modal */
.style-opt-btn.active-opt {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Mobile Bottom Sheet Modal Styling */
@media (max-width: 767px) {
  #actionPanel,
  #bookingModal,
  #itineraryModal,
  #contactModal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #actionPanelCard,
  #bookingModal > div,
  #itineraryModal > div,
  #contactModal > div {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    max-height: 88vh !important;
    padding: 1.5rem !important;
    width: 100% !important;
  }
}

/* Reduced Motion preferences */
@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;
  }
  .scene-card {
    transition: opacity 0.5s ease !important;
    transform: none !important;
  }
}
