/* ============================================================
   HERO — matches http://72.61.151.220/
   ============================================================ */

/* ── Outer section ──
   margin-top: -120px extends the hero BEHIND the fixed header so
   the slide image fills those clip-path corner gaps at the top edges.
   height: 100vh keeps it exactly one viewport tall.
── */
.tan-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  margin-top: -120px; /* slide behind fixed header */
  font-family: var(--font-family-primary);
}

/* ── Carousel — fills hero, clips slide transitions ── */
.tan-hero__carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}
.tan-hero__carousel:active { cursor: grabbing; }

/* ── Slides (background images only; fade in/out) ── */
.tan-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  z-index: 0;
}
.tan-hero__slide.active {
  opacity: 1;
  z-index: 1;
}

/* Dark overlay on each slide */
.tan-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
}

/* ── Content overlay: flex column, centered ── */
.tan-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: 120px; /* push content below fixed header */
  z-index: 5;
}

/* Title + subtitle group */
.tan-hero__text {
  text-align: center;
  margin-bottom: 50px; /* 50px gap between subtitle and search bar */
}
.tan-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  font-family: var(--font-family-primary);
}
.tan-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.9);
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* ── Search bar — inline in flex column, 50px below subtitle ── */
.tan-hero__search-overlay {
  width: 100%;
  max-width: 580px;
}
.tan-hero__search-container {
  width: 100%;
}
.tan-hero__search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  padding: 18px 24px;
}

/* Individual fields */
.tan-hero__search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border-right: none;
}
.tan-hero__search-field:first-child { padding-left: 0; }
.tan-hero__search-field--persons {
  flex: 0 0 auto;
  min-width: 140px;
  border-right: none;
}
.tan-hero__search-field label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}

/* Destination */
.tan-hero__destination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tan-hero__destination input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .95rem;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  background: transparent;
  min-width: 0;
}
.tan-hero__destination input::placeholder { color: var(--text-light); }
.tan-hero__dropdown-arrow {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  font-size: .8rem;
  flex-shrink: 0;
}

/* Date range */
.tan-hero__dates {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tan-hero__dates input[type="date"] {
  border: none;
  outline: none;
  font-size: .9rem;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  background: transparent;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.tan-hero__date-sep {
  font-size: .8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Persons */
.tan-hero__persons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tan-hero__persons input[type="number"] {
  border: none;
  outline: none;
  width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  background: transparent;
  -moz-appearance: textfield;
}
.tan-hero__persons input[type="number"]::-webkit-inner-spin-button,
.tan-hero__persons input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.tan-hero__persons-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .7rem;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.tan-hero__persons-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Submit button */
.tan-hero__submit {
  flex-shrink: 0;
  margin-left: 16px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .25s, transform .2s;
  align-self: center;
}
.tan-hero__submit:hover {
  background: var(--primary-color-dark);
  transform: scale(1.06);
}

/* ── Dot indicators — pinned to bottom of carousel ── */
.tan-hero__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.tan-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.tan-hero__dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Prev / Next arrows (absolutely positioned in carousel) ── */
.tan-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
  backdrop-filter: blur(4px);
}
.tan-hero__nav:hover {
  background: rgba(255,255,255,.35);
  border-color: #fff;
}
.tan-hero__nav--prev { left: 20px; }
.tan-hero__nav--next { right: 20px; }
.tan-hero__nav svg { width: 22px; height: 22px; }

/* ── Mobile (≤1024px) — compact header is 60px ── */
@media (max-width: 1024px) {
  .tan-hero {
    height: 100svh;
    min-height: 600px;
    margin-top: -60px; /* compact header height */
  }
  .tan-hero__content {
    padding-top: 60px;
    justify-content: center;
  }
  .tan-hero__text { margin-bottom: 32px; }
}

/* ── Small mobile (≤640px) — stack search fields vertically ── */
@media (max-width: 640px) {
  .tan-hero__search-overlay { padding: 0; }
  .tan-hero__search {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    border-radius: 10px;
  }
  .tan-hero__search-field {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    flex: none;
  }
  .tan-hero__search-field:last-of-type { border-bottom: none; }
  .tan-hero__search-field--persons { min-width: auto; }
  .tan-hero__submit {
    width: 100%;
    border-radius: 8px;
    height: 44px;
    margin-left: 0;
    margin-top: 12px;
  }
  .tan-hero__nav { display: none; }
}
