/* Zovya Travels — Home hero stylesheet (Phase 2).
   Source: template/frontend.php §5 (hero + trip planner).
   Depends on header-style.css tokens + .btn-gold/.btn-whatsapp (always linked together).
   Covers block 03 Hero only (trust strip stays wireframe until its own step).
   Icons: Font Awesome (master loads FA 6.5.2, not Phosphor). */

.hero-section {
  position: relative;
  /* Equal top/bottom padding (user directive) + viewport fill: the hero
     always spans at least the viewport minus header and trust peek, with
     content vertically centered — trust lands on screen without JS. */
  padding: 85px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 270px);
  min-height: calc(100svh - 270px);
  /* Vertical overflow stays visible so the Type dropdown panel is never
     clipped; horizontal is still contained (spec: visible+clip computes the
     visible axis to auto, which only scrolls if content truly overflows). */
  overflow-x: hidden;
  overflow-y: visible;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border-dark);
  background-color: var(--color-bg-dark);
}
.hero-section > .hero-content { width: 100%; }

/* Background slider layers (slides render server-side with inline
   background-image from featured package photos; CSS only animates) */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.08);
  animation: heroSlideFade 18s infinite;
}
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
/* Single-image hero: static backdrop, no crossfade */
.hero-slide.single { opacity: 0.85; transform: none; animation: none; }
@keyframes heroSlideFade {
  0% { opacity: 0; transform: scale(1.08); }
  8% { opacity: 0.85; }
  33% { opacity: 0.85; }
  41% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

/* Cinematic dark gradient overlays (keep copy legible over photos) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 30%, rgba(11, 15, 26, 0.4) 0%, rgba(11, 15, 26, 0.72) 80%),
    linear-gradient(to bottom, rgba(11, 15, 26, 0.7) 0%, rgba(11, 15, 26, 0.8) 50%, rgba(11, 15, 26, 1) 100%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 10; }
.hero-header { text-align: center; max-width: 820px; margin: 0 auto; }

/* ATOL/booking badge pill (dynamic: content_json.hero_badge) */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.hero-badge-pill i { font-size: 14px; }

.hero-display-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-text-on-dark);
  margin: 0 0 18px;
}
.hero-display-title em {
  color: var(--color-gold);
  font-style: italic;
}
.hero-subtext {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  color: var(--color-text-on-dark-2);
  max-width: 650px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* Hero CTA row (quote + WhatsApp) + low-deposit reassurance note */
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-deposit-note {
  font-size: 13px;
  color: var(--color-text-on-dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 17px;
}
.hero-deposit-note i { color: var(--color-gold); font-size: 14px; }

/* ── Trip planner — Editorial-Luxury remake (Awwwards-tier skill) ──
   Double-Bezel: dark gold-tinted outer shell (machined tray) + white inner
   core. Strict light scoping inside the core (navy text, white inputs).
   Adaptation note: skill bans FontAwesome — kept deliberately because the
   project standardized FA 6.5.2 site-wide (FONTAWESOME-SWAP) and the master
   template + consistency lock forbid a second icon family on one page. */
.trip-planner-shell {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(201, 168, 76, 0.09);
  border: 1px solid rgba(201, 168, 76, 0.38);
  border-radius: 2rem;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(201, 168, 76, 0.16);
}
.trip-planner-box {
  background: #FFFFFF;
  border-radius: calc(2rem - 10px);
  box-shadow: inset 0 0 0 1px rgba(27, 42, 94, 0.07), 0 10px 30px rgba(27, 42, 94, 0.1);
  padding: 28px 28px 30px;
  text-align: left;
}
/* Editorial split head: hairline rules flanking the serif title */
.planner-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.planner-head::before, .planner-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.55), transparent);
}
.planner-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  white-space: nowrap;
}
.planner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 190px;
  gap: 16px 14px;
  align-items: end;
}
.input-group-custom { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.input-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
}
/* Icon-docked fields: glyph lives inside the input, chevron for selects */
.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold-muted);
  font-size: 15px;
  pointer-events: none;
  transition: color 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.input-chevron {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-navy-muted);
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), color 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.input-field {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border-light);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 15px;
  min-height: 50px;
  border-radius: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.35s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.input-field.has-icon { padding-left: 42px; }
select.input-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.input-field::placeholder { color: var(--color-navy-muted); }
.input-field:hover { border-color: rgba(201, 168, 76, 0.55); }
.input-field:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22);
}
.input-wrap:focus-within .input-icon { color: var(--color-gold); }
.input-wrap:focus-within .input-chevron { transform: translateY(-50%) rotate(180deg); color: var(--color-gold-muted); }
/* Native month/select option rows render on OS canvases — keep them white/navy */
.input-field option { background-color: #FFFFFF; color: var(--color-navy); }
/* Type multi-select dropdown: single-field footprint, checkbox panel */
.ms { position: relative; }
.ms-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.ms-btn .input-icon { pointer-events: none; }
.ms-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms .input-chevron { transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), color 0.35s cubic-bezier(0.32, 0.72, 0, 1); }
.ms.open .input-chevron { transform: translateY(-50%) rotate(180deg); color: var(--color-gold-muted); }
.ms-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(11, 15, 26, 0.18);
  padding: 8px;
  z-index: 30;
  max-height: min(260px, 50vh);
  max-height: min(260px, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ms-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  transition: background-color 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.ms-opt:hover { background: rgba(201, 168, 76, 0.12); }
.ms-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ms-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--color-border-light);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: background-color 0.3s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.ms-box i { opacity: 0; transition: opacity 0.25s cubic-bezier(0.32, 0.72, 0, 1); }
.ms-opt input:checked + .ms-box { background: var(--color-navy); border-color: var(--color-navy); }
.ms-opt input:checked + .ms-box i { opacity: 1; }
.ms-opt input:focus-visible + .ms-box { outline: 2px solid var(--color-gold); outline-offset: 2px; }
/* Button-in-Button search: pill CTA + nested island circle for the arrow */
.planner-search { display: flex; align-items: end; min-width: 0; }
.btn-island-btn { width: 100%; min-height: 50px; justify-content: space-between; padding-left: 22px; padding-right: 9px; }
.btn-island {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 15, 26, 0.88);
  color: var(--color-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.btn-island-btn:hover .btn-island { transform: translate(2px, -2px) scale(1.07); }
.btn-island-btn:active { transform: scale(0.98); }
/* Scroll entry: heavy fade-up with stagger, transform + opacity only */
.js .trip-planner-shell { opacity: 0; transform: translateY(28px); }
.js .trip-planner-shell.is-in { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.32, 0.72, 0, 1), transform 0.9s cubic-bezier(0.32, 0.72, 0, 1); }
.js .planner-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1), transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .trip-planner-shell.is-in .planner-reveal { opacity: 1; transform: none; }

/* Hero responsive (mirrors template §9 hero rules) */
@media (max-width: 1024px) {
  /* 3 fields: 2-col grid, search spans full width below */
  .planner-grid { grid-template-columns: repeat(2, 1fr); }
  .planner-search { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .planner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-section { padding: 50px 0; min-height: calc(100vh - 300px); min-height: calc(100svh - 300px); }
  .hero-display-title { font-size: 40px; }
  .hero-subtext { font-size: 14.5px; }
  .trip-planner-shell { border-radius: 1.5rem; padding: 7px; }
  .trip-planner-box { padding: 20px 16px 22px; border-radius: calc(1.5rem - 7px); }
  .planner-head { gap: 12px; margin-bottom: 18px; }
  .hero-cta-row .btn-gold, .hero-cta-row .btn-whatsapp { width: 100%; }
}
@media (max-width: 576px) {
  .hero-section { padding: 50px 0; }
  .hero-display-title { font-size: 40px; line-height: 1.2; }
  .hero-subtext { font-size: 13.5px; }
  .hero-badge-pill { font-size: 11px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0.85; transform: none; }
  .js .trip-planner-shell, .js .planner-reveal { opacity: 1; transform: none; transition: none; }
  .input-chevron, .btn-island, .ms-opt, .ms-box, .ms-box i { transition: none; }
}
