/* ==========================================================================
   THE TRIP HOLIC — HOMEPAGE HERO SECTION
   Brand Direction: Trustworthy, Genuine, Modern, Adventurous, Human
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Container & Background
   -------------------------------------------------------------------------- */
.tth-hero-section {
  position: relative;
  min-height: clamp(540px, 82vh, 800px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  overflow-x: clip;
  contain: paint;
  background-color: var(--tth-dark);
  color: var(--tth-white);
  padding: 2rem 0 clamp(0.5rem, 5vw, 0.75rem);
}

.tth-hero-section picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Background Image with Focal Point Preservation */
.tth-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  /* Preserves human traveler focal point on all screens */
  z-index: 0;
  filter: brightness(0.95);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dual Scrim Gradient Overlays for High Text Contrast */
.tth-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(23, 33, 33, 0.05) 0%,
      rgba(23, 33, 33, 0.2) 45%,
      rgba(23, 33, 33, 0.72) 100%);
  pointer-events: none;
}

@media (min-width: 992px) {
  /* .tth-hero-overlay {
    background: linear-gradient(90deg,
        rgba(11, 40, 41, 0.88) 0%,
        rgba(23, 33, 33, 0.72) 48%,
        rgba(23, 33, 33, 0.42) 100%);
  } */
}

/* Hero Content Wrapper */
.tth-hero-content {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   2. Typography & Eyebrow
   -------------------------------------------------------------------------- */
.tth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tth-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tth-secondary-light);
  background-color: rgba(23, 33, 33, 0.6);
  border: 1px solid rgba(252, 109, 0, 0.35);
  padding: 0.4rem 0.95rem;
  border-radius: var(--tth-radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
}

.tth-hero-title {
  font-family: var(--tth-font-heading);
  font-size: clamp(2.35rem, 5.2vw + 0.5rem, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--tth-white);
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.tth-hero-title .tth-text-accent {
  color: var(--tth-secondary);
}

@media (max-width: 374.98px) {
  .tth-hero-title {
    font-size: 1.95rem;
    line-height: 1.18;
  }

  .tth-hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
}

.tth-hero-desc {
  font-size: clamp(1.05rem, 1.25vw + 0.5rem, 1.275rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   3. Hero Quick Action Buttons & Search Trigger
   -------------------------------------------------------------------------- */
.tth-hero-cta-group {
  position: relative;
  z-index: 2;
  margin-bottom: 1.85rem;
}

.tth-hero-cta-group .btn-tth {
  transition: transform var(--tth-transition-fast), box-shadow var(--tth-transition-fast);
}

.tth-hero-cta-group .btn-tth:hover {
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .tth-hero-cta-group {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .tth-hero-cta-group .btn-tth {
    width: 100%;
    justify-content: center;
  }
}

.tth-hero-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Popular Trips Design applied to Hero Search Bar */
.tth-hero-pkg-search {
  min-height: 56px;
  align-items: center;
  cursor: pointer;
  padding: 0.35rem 0.85rem;
  background-color: var(--tth-white, #FFFFFF);
  border: 1.5px solid var(--tth-border, #E2E8F0);
  border-radius: var(--tth-radius-pill, 9999px);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform var(--tth-transition, 0.25s ease), box-shadow var(--tth-transition, 0.25s ease), border-color var(--tth-transition, 0.25s ease);
}

.tth-hero-pkg-search:hover {
  transform: translateY(-2px);
  border-color: var(--tth-primary, #87DAEB);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(135, 218, 235, 0.4);
}

.tth-hero-pkg-search:focus-visible,
.tth-hero-pkg-search:focus-within {
  outline: none;
  border-color: var(--tth-primary, #87DAEB);
  box-shadow: 0 0 0 3px rgba(135, 218, 235, 0.45), 0 20px 42px -6px rgba(0, 0, 0, 0.38);
}

.tth-hero-pkg-search .input-group-text {
  padding-left: 0.6rem;
  padding-right: 0.5rem;
}

.tth-hero-pkg-search .input-group-text i {
  color: var(--tth-primary-dark, #0E7490);
  font-size: 1.25rem;
}

.tth-hero-pkg-search .form-control {
  font-size: 0.95rem;
  color: var(--tth-dark, #0F172A);
  border: none;
  background: transparent;
}

.tth-hero-pkg-search .form-control::placeholder {
  color: #7b8b9a;
  font-size: 0.925rem;
}

/* Chips in Hero Section matching Popular Trips styling */
.tth-hero-search-wrapper .tth-pkg-chip {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Modern Pill Search Bar fallback/legacy */
.tth-hero-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  background-color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--tth-radius-pill, 9999px);
  padding: 0.35rem 0.45rem 0.35rem 1.75rem;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-align: left;
  transition: transform var(--tth-transition, 0.25s ease), box-shadow var(--tth-transition, 0.25s ease);
  user-select: none;
}

.tth-hero-search-bar:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(13, 91, 181, 0.22);
}

.tth-hero-search-bar:focus-visible {
  outline: 3px solid #0d5bb5;
  outline-offset: 3px;
}

/* Search Text / Placeholder matching image */
.tth-hero-search-text {
  font-family: var(--tth-font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: #7b8b9a;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

/* Circular Blue Action Button on Right */
.tth-search-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d5bb5;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(13, 91, 181, 0.35);
  transition: transform var(--tth-transition-fast, 0.15s ease), background-color var(--tth-transition-fast, 0.15s ease), box-shadow var(--tth-transition-fast, 0.15s ease);
}

.tth-hero-search-bar:hover .tth-search-circle-btn {
  background: #094a97;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(13, 91, 181, 0.5);
}

.tth-hero-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   Search Panel Popup Modal Styling
   -------------------------------------------------------------------------- */
.tth-search-modal-content {
  border-radius: var(--tth-radius-md, 16px);
  overflow: hidden;
  background-color: var(--tth-white);
  box-shadow: 0 24px 60px -12px rgba(11, 40, 41, 0.35);
}

.tth-modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--tth-radius-sm, 8px);
  background-color: var(--tth-primary-subtle);
  color: var(--tth-primary-dark, #0E7490);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Destination Quick Choice Chips */
.tth-chip-btn {
  background-color: var(--tth-bg, #F8FAFC);
  border: 1px solid var(--tth-border, #E2E8F0);
  border-radius: var(--tth-radius-pill, 9999px);
  padding: 0.3rem 0.8rem;
  font-family: var(--tth-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tth-dark, #172121);
  cursor: pointer;
  transition: all var(--tth-transition-fast, 0.15s ease);
}

.tth-chip-btn:hover {
  background-color: var(--tth-primary-subtle);
  border-color: var(--tth-primary, #87DAEB);
  color: var(--tth-primary-dark, #0E7490);
}

.tth-chip-btn.active {
  background-color: var(--tth-primary, #87DAEB);
  border-color: var(--tth-primary, #87DAEB);
  color: #0F172A;
}

/* Search Field Groupings (used inside Modal) */
.tth-search-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tth-search-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--tth-font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tth-muted);
  margin-bottom: 0.4rem;
}

.tth-search-label i {
  color: var(--tth-primary);
  font-size: 0.875rem;
}

.tth-search-input,
.tth-search-select {
  width: 100%;
  font-family: var(--tth-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tth-dark);
  background-color: var(--tth-bg);
  border: 1.5px solid var(--tth-border);
  border-radius: var(--tth-radius-sm);
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  /* Accessible tap target */
  transition: all var(--tth-transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.tth-search-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6D6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  padding-right: 2.25rem;
  cursor: pointer;
}

.tth-search-input:focus,
.tth-search-select:focus {
  outline: none;
  background-color: var(--tth-white);
  border-color: var(--tth-primary);
  box-shadow: 0 0 0 3px rgba(135, 218, 235, 0.45);
}

/* Mobile Search Bar Responsiveness */
@media (max-width: 575.98px) {
  .tth-hero-pkg-search {
    min-height: 48px;
    padding: 0.25rem 0.5rem;
  }

  .tth-hero-pkg-search .form-control {
    font-size: 0.85rem;
  }

  .tth-hero-pkg-search .form-control::placeholder {
    font-size: 0.825rem;
  }

  .tth-hero-search-bar {
    min-height: 48px;
    padding: 0.28rem 0.35rem 0.28rem 1.25rem;
    border-radius: var(--tth-radius-pill, 9999px);
  }

  .tth-hero-search-text {
    font-size: 0.95rem;
  }

  .tth-search-circle-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   4. Trust Indicators (Below Search Panel)
   -------------------------------------------------------------------------- */
.tth-hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.85rem);
  margin-top: 1.5rem;
  padding: 0 0.25rem;
}

.tth-trust-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--tth-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tth-trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--tth-secondary);
  color: var(--tth-dark);
  font-size: 0.725rem;
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .tth-hero-bg {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   5. Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tth-hero-bg {
    transition: none !important;
    transform: none !important;
  }
}