/* TripMozy.com - Official Luxury Theme & Prestige Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --primary: #0f243e;
  --primary-hover: #17365d;
  --primary-gradient: linear-gradient(135deg, #0a1829 0%, #112845 45%, #183a65 100%);
  --gold-primary: #d4af37;
  --gold-amber: #d97706;
  --gold-light: #fef3c7;
  --dark-navy: #08101a;
  --text-dark: #0f1d2e;
  --text-muted: #536473;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #eaeeef;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* Base & Universal Mobile Resets */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #0f1d2e;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, .font-heading, .luxury-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #08101a;
  letter-spacing: -0.015em;
}

h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: #0f1d2e;
}

/* Fast-touch manipulation for zero click-delay on mobile browsers */
button, a, input, select, textarea, .chip, .interest-chip, .tab-btn {
  touch-action: manipulation;
}

/* CRITICAL MOBILE BROWSER COMPATIBILITY: Prevent iOS Safari Auto-Zoom on Input Focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Eye-Catching Travel Atmospheric Background Mesh */
/* Luxury Fixed Tour Background with Cinematic Overlay */
.luxury-bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background-color: #08101a;
  background-image: 
    linear-gradient(180deg, 
      rgba(8, 16, 26, 0.65) 0%, 
      rgba(11, 24, 38, 0.72) 280px, 
      rgba(241, 245, 249, 0.90) 720px, 
      rgba(248, 250, 252, 0.97) 100%),
    url('https://images.unsplash.com/photo-1524492412937-b28074a5d7da?auto=format&fit=crop&w=2400&q=85');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.luxury-hero-showcase {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(217, 119, 6, 0.22);
}

.travel-hero-mesh {
  position: relative;
  min-height: 100vh;
}

/* Luxury Aesthetics & Phone-Optimized Styling */
.luxury-gold-shimmer {
  background: linear-gradient(135deg, #92400e 0%, #b45309 20%, #d97706 40%, #f59e0b 55%, #fbbf24 70%, #d97706 85%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldSheen 5s linear infinite;
  display: inline-block;
  text-shadow: 0 2px 20px rgba(245, 158, 11, 0.25);
}

@keyframes goldSheen {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.luxury-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 243, 199, 0.6) 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  box-shadow: 0 3px 12px -1px rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.luxury-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.07), 0 3px 8px -2px rgba(217, 119, 6, 0.08);
  border-color: rgba(245, 158, 11, 0.45);
}

@media (max-width: 640px) {
  .luxury-glass-card {
    padding: 10px 12px;
  }
}

/* TripMozy Topbar */
.bravo_topbar {
  background-color: #08101a;
  color: #c5d0db;
  font-size: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.bravo_topbar a {
  color: #c5d0db;
  text-decoration: none;
  transition: color 0.15s ease;
}
.bravo_topbar a:hover {
  color: #fbbf24;
}

/* TripMozy Header */
.bravo_header {
  background-color: #ffffff;
  border-bottom: 1px solid #eaeeef;
}

/* Eye-Catching Luxury Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, #0a1829 0%, #112845 45%, #183a65 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px -2px rgba(10, 24, 41, 0.45), 0 0 14px rgba(212, 175, 55, 0.22);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #112845 0%, #193c68 50%, #214f8a 100%);
  border-color: #f59e0b;
  box-shadow: 0 10px 28px -3px rgba(10, 24, 41, 0.55), 0 0 22px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}
.btn-gradient:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 3px 10px rgba(10, 24, 41, 0.4);
}

/* Gold Shimmer Sweep across Luxury Button */
.btn-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(254, 240, 138, 0.28), transparent);
  transform: rotate(25deg);
  animation: buttonShimmer 4.5s infinite;
}

@keyframes buttonShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  30%, 100% { transform: translateX(100%) rotate(25deg); }
}

.btn-blue {
  background: linear-gradient(135deg, #0f243e 0%, #16365c 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 36, 62, 0.25);
}
.btn-blue:hover {
  background: linear-gradient(135deg, #16365c 0%, #1e4a7d 100%);
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 36, 62, 0.35);
}
.btn-blue:active {
  transform: translateY(0);
}

.btn-white {
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f1d2e;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.btn-white:hover {
  background-color: #fdfbf7;
  border-color: rgba(217, 119, 6, 0.5);
  color: #92400e;
  transform: translateY(-1px);
}
.btn-white:active {
  transform: translateY(0);
}

/* Elevated Luxury Frosted Glass Cards */
.ui-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ui-card-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ui-card-hover:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(217, 119, 6, 0.08);
  transform: translateY(-2px);
}

/* Custom Luxury Inputs */
.ui-input {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #cbd5e1;
  color: #1a2b49;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.ui-input:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
  background-color: #ffffff;
}

/* Interactive Chips (Companions & Budget Tiers) */
.chip {
  cursor: pointer;
  background-color: #ffffff;
  border: 1.5px solid #eaeeef;
  color: #1a2b49;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-height: 44px; /* Mobile touch accessibility target */
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  transform: translateY(-1px);
}
.chip.active {
  background: linear-gradient(135deg, #fffdfa 0%, #fef3c7 100%) !important;
  border-color: #d97706 !important;
  color: #92400e !important;
  box-shadow: 0 4px 14px -2px rgba(217, 119, 6, 0.22), inset 0 0 0 1px rgba(217, 119, 6, 0.25);
  font-weight: 700;
}
.chip.active i, .chip.active span {
  color: #92400e !important;
}

/* Mobile-Friendly Range Slider */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #e2e8f0;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover,
input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.6);
}
input[type=range]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.45);
  cursor: pointer;
}

/* Leaflet Map Responsive Viewport */
#mapContainer {
  z-index: 10;
  border-radius: 16px;
  width: 100%;
}
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: #0f1d2e !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18) !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  padding: 2px !important;
}
.leaflet-popup-tip {
  background: #ffffff !important;
}

/* Hide number spin buttons */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Smooth Touch-Scroll Utilities for Horizontal Carousels */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Custom scrollbars on desktop */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pulse Glow Animation */
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.pulse-glow {
  animation: pulseRing 2.5s infinite ease-in-out;
}

/* Live User Counter Corner Widget */
#liveUserCounterWidget {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 40;
}

@media (max-width: 640px) {
  #liveUserCounterWidget {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    left: 12px;
  }
}

.counter-num-pop {
  animation: counterPop 0.35s ease-out;
}

@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); color: #059669; }
  100% { transform: scale(1); }
}

.counter-num-drop {
  animation: counterDrop 0.35s ease-out;
}

@keyframes counterDrop {
  0% { transform: scale(1); }
  50% { transform: scale(0.88); color: #d97706; }
  100% { transform: scale(1); }
}

/* Printable Itinerary Document (Screen: Hidden) */
#printableItineraryDoc {
  display: none;
}

/* Print Styles: Downloads & Prints ONLY the Itinerary Voucher */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 15mm 15mm;
  }

  html, body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Hide entire interactive web app */
  nav, header, #heroSection, #loadingSection, #itineraryDashboard, #promoBar, footer,
  #quoteModal, #customPlaceFormCard, #aiRefineBox, #mapContainer, .tab-btn, .no-print,
  button, input, select, textarea, .btn-gradient, .btn-white, .btn-blue {
    display: none !important;
  }

  /* Display only the dedicated printable itinerary */
  #printableItineraryDoc {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pdf-day-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 16px !important;
  }

  .pdf-stop-item {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}
