/* ================================================================
   HERO.CSS — Cinematic Hero Section
   Elite Egypt Tours — Brand Identity 2025
   Navy overlay + Teal accents + Cairo Bold typography
   ================================================================ */

/* ================================================================
   1. HERO SHELL
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 5%;
  padding-top: 72px;
}

/* ================================================================
   2. BACKGROUND LAYERS
   ================================================================ */

/* Base image — Ken Burns slow pan */
.hero-bg {
  position: absolute;
  inset: -6%;
  background-image:
    url('https://images.unsplash.com/photo-1539768942893-daf53e448371?w=1800&q=85');
  background-size: cover;
  background-position: center;
  animation: hero-ken-burns 24s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

@keyframes hero-ken-burns {
  0%   { transform: scale(1.00) translate(0%,  0%); }
  33%  { transform: scale(1.06) translate(-1.5%, 0.8%); }
  66%  { transform: scale(1.04) translate(1.2%, -0.6%); }
  100% { transform: scale(1.08) translate(-0.8%, 1.2%); }
}

/* Navy gradient overlay */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 35, 64, 0.78) 0%,
    rgba(10, 35, 64, 0.58) 45%,
    rgba(10, 35, 64, 0.82) 100%
  );
  z-index: 1;
}

/* Bottom fade */
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(10, 35, 64, 0.88));
  z-index: 2;
}

/* Radial vignette */
.hero-overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 70% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 2;
}

/* Teal accent glow — atmospheric bottom-left light */
.hero-glow {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 177, 162, 0.18) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}

/* ================================================================
   3. PARTICLES
   ================================================================ */
.particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.65; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-20px) rotate(360deg); opacity: 0; }
}

/* ================================================================
   4. HERO CONTENT WRAPPER
   ================================================================ */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ================================================================
   5. BADGE / EYEBROW
   ================================================================ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 177, 162, 0.18);
  border: 1px solid rgba(15, 177, 162, 0.55);
  color: #3FC4B7;
  padding: 8px 22px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* ================================================================
   6. HEADLINE — Cairo Bold
   ================================================================ */
.hero-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.10;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);

  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

/* Teal highlight span */
.hero-title span {
  background: linear-gradient(90deg, #0FB1A2, #3FC4B7, #9FD6C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* ================================================================
   7. SUBTITLE
   ================================================================ */
.hero-sub {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 660px;
  font-weight: 400;

  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

/* ================================================================
   8. CTA BUTTONS
   ================================================================ */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;

  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.70s forwards;
}

/* Primary — Teal fill */
.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0FB1A2 0%, #3FC4B7 50%, #0FB1A2 100%);
  background-size: 200% auto;
  color: #0A2340;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 28px rgba(15, 177, 162, 0.48);
  transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  white-space: nowrap;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-18deg);
  animation: hero-btn-shimmer 4s ease-in-out infinite 1.2s;
}

@keyframes hero-btn-shimmer {
  0%        { left: -80%; opacity: 0; }
  8%        { opacity: 1; }
  52%       { left: 130%; opacity: 1; }
  53%, 100% { left: 130%; opacity: 0; }
}

.btn-hero-primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 177, 162, 0.62);
}

/* Secondary — ghost / outline */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.28s ease, border-color 0.28s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.80);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn-hero-secondary .play-icon {
  width: 28px; height: 28px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A2340;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn-hero-secondary:hover .play-icon {
  transform: scale(1.12);
}

/* ================================================================
   9. SEARCH CARD (glass morphism)
   ================================================================ */
.hero-search {
  width: 100%;
  max-width: 860px;
  background: rgba(10, 35, 64, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15, 177, 162, 0.32);
  border-radius: 20px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.06);

  opacity: 0;
  transform: translateY(28px);
  animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.88s forwards;
}

.hero-search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-search-field label {
  font-family: 'Cairo', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  color: rgba(63, 196, 183, 0.90);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-search-field select,
.hero-search-field input {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.90rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 0;
}

.hero-search-field select option {
  background: #0A2340;
  color: #ffffff;
}

.hero-search-field select:focus,
.hero-search-field input:focus {
  border-color: rgba(15, 177, 162, 0.72);
  background: rgba(255, 255, 255, 0.13);
}

.hero-search-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.65);
  cursor: pointer;
}

.hero-search-field .select-wrap {
  position: relative;
}

.hero-search-field .select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(63, 196, 183, 0.75);
  font-size: 0.85rem;
  pointer-events: none;
}

.hero-search-field .select-wrap select {
  padding-right: 36px;
  width: 100%;
}

/* Search button */
.btn-hero-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0FB1A2, #3FC4B7);
  color: #0A2340;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  height: 46px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(15, 177, 162, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.btn-hero-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 177, 162, 0.58);
}

/* ================================================================
   10. TRUST BADGES
   ================================================================ */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;

  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 6px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.80);
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 0;
}

.trust-item .trust-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ================================================================
   11. SCROLL INDICATOR
   ================================================================ */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  animation: hero-fade-up 0.65s ease 1.3s forwards;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.42);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(63, 196, 183, 0.88);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  81%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.scroll-label {
  font-family: 'Cairo', sans-serif;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.48);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ================================================================
   12. VIDEO MODAL
   ================================================================ */
.hero-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-video-modal.open {
  display: flex;
}

.hero-video-inner {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.70);
  /* Responsive 16:9 ratio — works on all browsers including old Android */
  padding-bottom: 56.25%; /* 9/16 = 56.25% */
  height: 0;
}

.hero-video-inner iframe,
.hero-video-inner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-video-close:hover {
  background: rgba(15, 177, 162, 0.35);
}

/* ================================================================
   13. ENTRANCE ANIMATIONS
   ================================================================ */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   14. RTL OVERRIDES
   ================================================================ */
[dir="rtl"] .hero-content {
  direction: rtl;
}

[dir="rtl"] .hero-trust {
  direction: rtl;
}

[dir="rtl"] .btn-hero-primary::before {
  animation-direction: reverse;
}

/* ================================================================
   15. RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .hero {
    padding-top: 72px;
    padding-left: 4%;
    padding-right: 4%;
    min-height: 100svh;
  }

  .hero-content {
    gap: 22px;
  }

  .hero-search {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px;
  }

  .btn-hero-search {
    grid-column: 1 / -1;
    width: 100%;
    height: 50px;
  }

  .hero-cta-group {
    gap: 12px;
  }

  .trust-divider {
    display: none;
  }

  /* Horizontal scroll instead of wrapping on tablet */
  .hero-trust {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero-trust::-webkit-scrollbar { display: none; }

  .trust-item {
    flex-shrink: 0;
    font-size: 0.78rem;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
  }
}

@media (max-width: 580px) {
  .hero {
    justify-content: flex-start;
    padding-top: calc(72px + 28px);
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-search {
    grid-template-columns: 1fr;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .btn-hero-search {
    grid-column: 1;
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    padding: 13px 24px;
  }

  /* Hide scroll indicator on mobile — hero content is too tall and overlaps */
  .hero-scroll {
    display: none;
  }
}

@media (max-height: 600px) {
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero-scroll { display: none; }
}

/* ── Tablet: 768px range (between 580 and 900) ── */
@media (max-width: 768px) and (min-width: 581px) {
  .hero-search {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
  }
  .hero-search-field { min-width: 0; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3rem); }
}

/* ── Very small phones ── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.9rem; }
  .btn-hero-primary, .btn-hero-secondary { font-size: 0.88rem; padding: 12px 18px; }
  .hero { padding-left: 3%; padding-right: 3%; }
}

/* ── Mobile Fix: ensure select text visible on iOS Safari ──────────── */
@media (max-width: 767px) {
  .hero-search-field select {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    opacity: 1;
    padding-right: 36px !important;
    text-align: left;
  }
  
  .hero-search-field select option {
    color: #0A2340 !important;
    background: #ffffff !important;
    -webkit-text-fill-color: #0A2340;
  }
  
  /* Ensure sort select text is visible on mobile */
  .tours-sort-select {
    color: #0A2340 !important;
    -webkit-text-fill-color: #0A2340;
    font-size: 0.85rem;
    max-width: 160px;
  }
  
  /* Ensure search input placeholder visible */
  .tours-search-input {
    color: #0A2340 !important;
    -webkit-text-fill-color: #0A2340;
  }
  
  /* Badge toggle text always visible */
  .badge-toggle {
    font-size: 0.80rem;
    padding: 7px 12px;
  }
  
  /* Sort label always visible */
  .tours-sort-label {
    display: inline !important;
    font-size: 0.80rem;
    white-space: nowrap;
  }
}

/* ================================================================
   MOBILE RTL & SELECT FIXES - Added for Arabic language support
   ================================================================ */

/* Fix select arrow position in RTL (Arabic) */
[dir="rtl"] .hero-search-field .select-wrap::after {
  right: auto;
  left: 14px;
}

[dir="rtl"] .hero-search-field .select-wrap select {
  padding-right: 16px;
  padding-left: 36px;
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-search-field label {
  text-align: right;
}

[dir="rtl"] .hero-search-field input[type="date"] {
  direction: rtl;
  text-align: right;
}

/* Mobile RTL hero search */
@media (max-width: 767px) {
  [dir="rtl"] .hero-search-field select {
    text-align: right;
    direction: rtl;
    padding-right: 16px !important;
    padding-left: 36px !important;
  }

  [dir="rtl"] .hero-search-field .select-wrap::after {
    right: auto;
    left: 14px;
  }

  /* Ensure hero search fields stack properly on small screens */
  .hero-search-field select,
  .hero-search-field input {
    font-size: 16px !important; /* Prevent iOS zoom on focus */
    min-height: 46px;
  }

  /* Fix hero search label font size */
  .hero-search-field label {
    font-size: 0.72rem;
    letter-spacing: 1px;
  }
}

/* ================================================================
   ANDROID CHROME FIX — Date Input & Hero Select Visibility
   Added: 2026-05-01 | Updated: 2026-05-01
   Fix 1: date input on Android Chrome - show properly without ghost arrow
   Fix 2: ensure select options text always visible on Android
================================================================ */

/* Android Chrome: date input needs explicit styling */
@media (max-width: 767px) {
  /* Date input on Android: use appearance:auto but control styling carefully */
  .hero-search-field input[type="date"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    min-height: 46px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* Force the date picker calendar icon to show and be visible */
  .hero-search-field input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: transparent !important;
    filter: invert(1) opacity(0.9) !important;
    cursor: pointer !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    position: absolute !important;
    right: 12px !important;
    opacity: 1 !important;
  }

  /* Date text color fields */
  .hero-search-field input[type="date"]::-webkit-datetime-edit {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }
  .hero-search-field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }
  .hero-search-field input[type="date"]::-webkit-datetime-edit-text {
    color: rgba(255,255,255,0.7) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.7) !important;
    padding: 0 2px !important;
  }
  .hero-search-field input[type="date"]::-webkit-datetime-edit-month-field,
  .hero-search-field input[type="date"]::-webkit-datetime-edit-day-field,
  .hero-search-field input[type="date"]::-webkit-datetime-edit-year-field {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }

  /* Remove spinner */
  .hero-search-field input[type="date"]::-webkit-inner-spin-button,
  .hero-search-field input[type="date"]::-webkit-outer-spin-button {
    display: none !important;
    -webkit-appearance: none !important;
  }

  /* Hero select text always white on mobile */
  .hero-search-field select {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }
  .hero-search-field select option {
    color: #0A2340 !important;
    background: #ffffff !important;
  }
}

/* Desktop: keep original date input styling with dark color scheme */
@media (min-width: 768px) {
  .hero-search-field input[type="date"] {
    color-scheme: dark;
  }
}


/* ================================================================
   VIDEO MODAL MOBILE FIX — Full Screen on Small Screens
   Added: 2026-05-01
   Fix: On mobile, make modal truly fullscreen so video fills screen
================================================================ */

@media (max-width: 767px) {
  /* Full-screen modal overlay on mobile - no padding */
  .hero-video-modal {
    padding: 0 !important;
    display: none;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-video-modal.open {
    display: flex !important;
  }
  
  /* Video container: full width, 16:9 aspect ratio via vw units */
  .hero-video-inner {
    max-width: 100% !important;
    width: 100vw !important;
    border-radius: 0 !important;
    /* Reset padding-bottom trick, use vw-based height instead */
    padding-bottom: 0 !important;
    height: 56.25vw !important;
    position: relative !important;
  }
  
  .hero-video-inner iframe,
  .hero-video-inner video {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
  }
  
  /* Close button: fixed top-right */
  .hero-video-close {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
  }
}

/* ================================================================
   TRAVEL DATE VISIBILITY FIX — Android & All Mobile Browsers
   Added: 2026-05-01
   Problem: Some Android browsers show date input as empty or tiny
   Fix: Force date input to always show text/placeholder visibly
================================================================ */

/* Ensure date input always shows its content and placeholder */
@media (max-width: 900px) {
  .hero-search-field input[type="date"],
  .hero-search-field input[type="text"][data-date] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    min-height: 46px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  
  /* Placeholder text for empty date */
  .hero-search-field input[type="date"]:not([value])::before,
  .hero-search-field input[type="date"][value=""]::before {
    content: attr(placeholder);
    color: rgba(255, 255, 255, 0.6) !important;
    pointer-events: none;
  }
  
  /* Calendar icon always visible */
  .hero-search-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2) !important;
    opacity: 1 !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    -webkit-appearance: none !important;
  }
  
  /* Force date text parts to be white */
  .hero-search-field input[type="date"]::-webkit-datetime-edit,
  .hero-search-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
  .hero-search-field input[type="date"]::-webkit-datetime-edit-month-field,
  .hero-search-field input[type="date"]::-webkit-datetime-edit-day-field,
  .hero-search-field input[type="date"]::-webkit-datetime-edit-year-field {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    background: transparent !important;
  }
  
  .hero-search-field input[type="date"]::-webkit-datetime-edit-text {
    color: rgba(255, 255, 255, 0.7) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
  }
}