/* ✨ Premium Flight Search Widget - Mobile-Fixed Edition */

/* CRITICAL: Ensure you have this viewport meta tag in your HTML:
   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
*/

/* CRITICAL: iOS zoom prevention for all inputs */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Base reset to prevent horizontal scroll */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* Scoped to widget only - won't affect other page elements */
.hero-search-widget {
  --gold: #d4af37;
  --gold-light: #f5e7b2;
  --gold-dark: #b8941f;
  --text: #1a1a1a;
  --text-dark: #000000;
  --text-light: #555;
  --text-lighter: #888;
  --bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --input-bg: rgba(255, 255, 255, 0.9);
  --border: rgba(229, 231, 235, 0.5);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --gradient: linear-gradient(135deg, #d4af37 0%, #f5e7b2 100%);
  --gradient-dark: linear-gradient(135deg, #b8941f 0%, #d4af37 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-widget * {
  box-sizing: border-box;
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Widget background wrapper - FIXED for mobile visibility */
.flight-search-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  padding: clamp(8px, 2.5vw, 20px);
  min-height: auto;
  position: relative;
  overflow: hidden;
  border-radius: clamp(14px, 3vw, 24px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Animated Background Elements */
.flight-search-wrapper::before,
.flight-search-wrapper::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.flight-search-wrapper::before {
  width: clamp(200px, 50vw, 400px);
  height: clamp(200px, 50vw, 400px);
  background: radial-gradient(circle, #d4af37 0%, transparent 70%);
  top: -50px;
  right: -50px;
  animation-delay: -5s;
}

.flight-search-wrapper::after {
  width: clamp(250px, 60vw, 500px);
  height: clamp(250px, 60vw, 500px);
  background: radial-gradient(circle, #764ba2 0%, transparent 70%);
  bottom: -75px;
  left: -75px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== Widget Container - Glassmorphism ===== */
.hero-search-widget {
  position: relative;
  background: var(--bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
  transition: var(--transition);
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.hero-search-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.hero-search-widget:hover {
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-search-widget:hover::before {
  left: 100%;
}

/* ===== Form Container ===== */
.hero-search-widget .form-container {
  padding: clamp(16px, 3vw, 32px) clamp(12px, 2.5vw, 28px);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Top Controls ===== */
.hero-search-widget .top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  margin-bottom: clamp(16px, 3vw, 24px);
  padding-bottom: clamp(12px, 2.5vw, 20px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.15);
  flex-wrap: wrap;
  position: relative;
  width: 100%;
}

.hero-search-widget .top-controls::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: clamp(40px, 10vw, 60px);
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.hero-search-widget .top-controls:hover::after {
  width: clamp(80px, 20vw, 120px);
}

/* ===== Trip Type ===== */
.hero-search-widget .trip-type {
  display: flex;
  gap: clamp(6px, 1.5vw, 8px);
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.hero-search-widget .trip-type-label {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 8px);
  padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 16px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: clamp(8px, 2vw, 12px);
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.hero-search-widget .trip-type-label::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%) skew(-20deg);
  transition: transform 0.6s ease;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero-search-widget .trip-type-label:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.hero-search-widget .trip-type-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero-search-widget .radio-custom {
  width: clamp(14px, 3.5vw, 18px);
  height: clamp(14px, 3.5vw, 18px);
  border: 2px solid var(--text-lighter);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
}

.hero-search-widget .trip-type-label input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  transform: scale(1.05);
}

.hero-search-widget .trip-type-label input[type="radio"]:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4px, 1vw, 6px);
  height: clamp(4px, 1vw, 6px);
  background: white;
  border-radius: 50%;
}

.hero-search-widget .trip-type-label input[type="radio"]:checked ~ span:not(.radio-custom) {
  color: var(--text-dark);
  font-weight: 700;
}

.hero-search-widget .trip-type-label:has(input[type="radio"]:checked) {
  border-color: var(--gold);
  background: var(--gold-light);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.hero-search-widget .trip-type-label:has(input[type="radio"]:checked)::before {
  opacity: 0.1;
}

/* ===== Dropdowns Row ===== */
.hero-search-widget .dropdowns-row {
  display: flex;
  gap: clamp(6px, 1.5vw, 12px);
  flex-wrap: wrap;
  margin-left: auto;
  width: 100%;
}

/* ===== Dropdown Container ===== */
.hero-search-widget .dropdown-container {
  position: relative;
  min-width: clamp(100px, 18vw, 180px);
  flex: 1;
  max-width: 200px;
  z-index: 100;
}

.hero-search-widget .dropdown-btn {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: clamp(8px, 2vw, 12px);
  padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 14px);
  font-size: clamp(11px, 2vw, 12px);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(4px, 1vw, 6px);
  transition: var(--transition);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-search-widget .dropdown-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-search-widget .dropdown-btn:hover::before {
  opacity: 1;
}

.hero-search-widget .dropdown-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.hero-search-widget .dropdown-btn:active {
  transform: translateY(0);
}

.hero-search-widget .btn-icon {
  font-size: clamp(14px, 2.5vw, 16px);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-search-widget .dropdown-btn:hover .btn-icon {
  transform: scale(1.1);
}

.hero-search-widget .arrow {
  font-size: clamp(8px, 1.5vw, 10px);
  transition: transform 0.3s ease;
  color: var(--text);
  flex-shrink: 0;
  font-weight: bold;
}

.hero-search-widget .dropdown-btn:hover .arrow {
  color: var(--gold);
  transform: translateY(2px);
}

.hero-search-widget .dropdown-container.active .arrow {
  transform: rotate(180deg);
}

/* ===== Dropdown Menu ===== */
.hero-search-widget .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: clamp(10px, 2vw, 12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid var(--glass-border);
  padding: clamp(10px, 2vw, 14px);
  display: none;
  z-index: 9999;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: clamp(250px, 50vh, 350px);
  overflow-y: auto;
  min-width: clamp(180px, 40vw, 220px);
  box-sizing: border-box;
}

.hero-search-widget .dropdown-menu.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-search-widget .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.hero-search-widget .dropdown-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #b8941f);
  border-radius: 3px;
}

.hero-search-widget .dropdown-menu::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.1);
  border-radius: 3px;
}

/* ===== Traveler Dropdown ===== */
.hero-search-widget .traveler-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(8px, 1.5vw, 10px) 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  gap: clamp(8px, 2vw, 14px);
  transition: all 0.2s ease;
}

.hero-search-widget .traveler-row:hover {
  padding-left: 6px;
  border-bottom-color: rgba(212, 175, 55, 0.25);
}

.hero-search-widget .traveler-row:last-of-type {
  border-bottom: none;
  margin-bottom: 6px;
}

.hero-search-widget .traveler-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.hero-search-widget .traveler-label {
  font-size: clamp(10px, 2vw, 12px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.2px;
}

.hero-search-widget .traveler-desc {
  font-size: clamp(9px, 1.5vw, 10px);
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.3;
}

/* ===== Counter ===== */
.hero-search-widget .counter {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
  flex-shrink: 0;
}

.hero-search-widget .counter button,
.hero-search-widget .counter-btn {
  width: clamp(26px, 5vw, 30px);
  height: clamp(26px, 5vw, 30px);
  border: none;
  border-radius: 6px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: clamp(13px, 2.5vw, 16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.hero-search-widget .counter button::before,
.hero-search-widget .counter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-search-widget .counter button:hover::before,
.hero-search-widget .counter-btn:hover::before {
  opacity: 1;
}

.hero-search-widget .counter button:hover,
.hero-search-widget .counter-btn:hover:not(:disabled) {
  background: var(--gradient-dark);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.45);
}

.hero-search-widget .counter button:active,
.hero-search-widget .counter-btn:active {
  transform: scale(0.9);
}

.hero-search-widget .counter button:disabled,
.hero-search-widget .counter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: scale(1);
  filter: grayscale(50%);
}

.hero-search-widget .counter-value {
  min-width: clamp(26px, 5vw, 34px);
  text-align: center;
  font-size: clamp(13px, 2.5vw, 16px) !important;
  font-weight: 900 !important;
  color: #000000 !important;
  padding: clamp(2px, 1vw, 4px) clamp(5px, 1.5vw, 8px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 1px 3px rgba(212, 175, 55, 0.1);
  transition: all 0.2s ease;
  line-height: 1.2;
  display: inline-block;
}

.hero-search-widget .counter-value:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

/* ===== Done Button ===== */
.hero-search-widget .done-btn {
  margin-top: clamp(10px, 2vw, 14px);
  background: var(--gradient);
  color: var(--text-dark);
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: clamp(10px, 2vw, 12px);
  cursor: pointer;
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-search-widget .done-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.hero-search-widget .done-btn:hover::before {
  transform: translateX(100%);
}

.hero-search-widget .done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.45);
  background: var(--gradient-dark);
}

.hero-search-widget .done-btn:active {
  transform: translateY(0);
}

/* ===== Search Box ===== */
.hero-search-widget .search-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr auto;
  gap: clamp(8px, 2vw, 12px);
  align-items: end;
  width: 100%;
}

/* ===== Input Wrapper ===== */
.hero-search-widget .input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vw, 6px);
  width: 100%;
  min-width: 0;
}

.hero-search-widget .input-label {
  font-size: clamp(10px, 2vw, 11px);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-left: clamp(32px, 7vw, 40px);
  transition: color 0.3s ease;
}

.hero-search-widget .input-wrapper:hover .input-label,
.hero-search-widget .input-wrapper:focus-within .input-label {
  color: var(--gold-dark);
}

.hero-search-widget .input-icon {
  position: absolute;
  left: clamp(10px, 2.5vw, 14px);
  bottom: clamp(11px, 2.5vw, 13px);
  font-size: clamp(16px, 3.5vw, 18px);
  pointer-events: none;
  z-index: 1;
  color: var(--text-lighter);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-search-widget .input-wrapper input:focus ~ .input-icon,
.hero-search-widget .input-wrapper input:hover ~ .input-icon {
  color: var(--gold);
  transform: scale(1.1) rotate(5deg);
}

.hero-search-widget .input-wrapper input {
  width: 100%;
  border: 2px solid var(--glass-border);
  border-radius: clamp(8px, 2vw, 12px);
  padding: clamp(10px, 2vw, 11px) clamp(10px, 2vw, 14px) clamp(10px, 2vw, 11px) clamp(34px, 7vw, 42px);
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 600;
  background: var(--input-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  box-sizing: border-box;
}

.hero-search-widget .input-wrapper input::placeholder {
  color: var(--text-lighter);
  transition: color 0.3s ease;
}

.hero-search-widget .input-wrapper input:hover::placeholder {
  color: var(--text-light);
}

.hero-search-widget .input-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.hero-search-widget .input-wrapper input:hover {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.95);
}

/* ===== Swap Button ===== */
.hero-search-widget .swap-btn-wrapper {
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.hero-search-widget .swap-btn {
  width: clamp(36px, 8vw, 40px);
  height: clamp(36px, 8vw, 40px);
  border: 2px solid var(--glass-border);
  border-radius: clamp(8px, 2vw, 12px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: clamp(16px, 4vw, 20px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.hero-search-widget .swap-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-search-widget .swap-btn:hover::before {
  opacity: 0.2;
}

.hero-search-widget .swap-btn:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold-dark);
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.hero-search-widget .swap-btn:active {
  transform: rotate(180deg) scale(0.95);
}

/* ===== Search Button ===== */
.hero-search-widget .search-btn {
  background: var(--gradient);
  color: var(--text-dark);
  border: none;
  border-radius: clamp(8px, 2vw, 12px);
  padding: clamp(10px, 2.5vw, 12px) clamp(16px, 3vw, 20px);
  font-size: clamp(12px, 2.5vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 8px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-search-widget .search-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%) skew(-20deg);
  transition: transform 0.6s ease;
}

.hero-search-widget .search-btn:hover::before {
  transform: translateX(100%) skew(-20deg);
}

.hero-search-widget .search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
  background: var(--gradient-dark);
}

.hero-search-widget .search-btn:active {
  transform: translateY(0);
}

.hero-search-widget .btn-icon-right {
  font-size: clamp(14px, 3vw, 16px);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-weight: bold;
}

.hero-search-widget .search-btn:hover .btn-icon-right {
  transform: translateX(6px) scale(1.2);
}

/* ===== Suggestions Box ===== */
.hero-search-widget .suggestions-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: clamp(10px, 2vw, 14px);
  border: 2px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 10000;
  max-height: clamp(200px, 50vh, 300px);
  overflow-y: auto;
  box-sizing: border-box;
}

.hero-search-widget .multi-city-inputs .suggestions-box {
  z-index: 10001;
}

.hero-search-widget .suggestions-box div {
  padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 14px);
  cursor: pointer;
  font-size: clamp(12px, 2.5vw, 13px);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.2s ease;
  position: relative;
}

.hero-search-widget .suggestions-box div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gradient);
  opacity: 0.15;
  transition: width 0.3s ease;
}

.hero-search-widget .suggestions-box div:last-child {
  border-bottom: none;
}

.hero-search-widget .suggestions-box div:hover {
  background: var(--gold-light);
  color: var(--text-dark);
  transform: translateX(4px);
}

.hero-search-widget .suggestions-box div:hover::before {
  width: 6px;
}

/* ===== Multi-City Container ===== */
.hero-search-widget .multi-city-container {
  display: none;
  animation: fadeIn 0.4s ease;
  position: relative;
  z-index: 1;
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Multi-City Leg ===== */
.hero-search-widget .multi-city-leg {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: clamp(8px, 2vw, 10px);
  padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 14px);
  margin-bottom: clamp(8px, 2vw, 10px);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.hero-search-widget .multi-city-leg:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero-search-widget .multi-city-leg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(8px, 2vw, 10px);
  gap: clamp(8px, 2vw, 10px);
  flex-wrap: wrap;
}

.hero-search-widget .multi-city-leg-title {
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 13px);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 6px);
}

.hero-search-widget .multi-city-leg-title::before {
  content: "✈";
  font-size: clamp(14px, 3vw, 16px);
  color: var(--gold);
}

.hero-search-widget .remove-leg-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: clamp(6px, 1.5vw, 6px) clamp(8px, 2vw, 10px);
  border-radius: clamp(4px, 1vw, 6px);
  cursor: pointer;
  font-size: clamp(10px, 2vw, 11px);
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-search-widget .remove-leg-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.05);
}

/* ===== Multi-City Inputs ===== */
.hero-search-widget .multi-city-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 40vw, 160px), 1fr));
  gap: clamp(6px, 1.5vw, 8px);
  background: transparent;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-search-widget .multi-city-inputs .input-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-radius: clamp(8px, 2vw, 10px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 12px);
  position: relative;
  z-index: auto;
  width: 100%;
  min-width: 0;
}

.hero-search-widget .multi-city-inputs .input-label {
  font-size: clamp(9px, 2vw, 10px);
  color: #666;
  margin-bottom: 3px;
  display: block;
  padding-left: 0;
}

.hero-search-widget .multi-city-inputs .input-wrapper input {
  width: 100%;
  padding: clamp(7px, 1.5vw, 8px) clamp(6px, 1.5vw, 8px) clamp(7px, 1.5vw, 8px) clamp(26px, 6vw, 30px);
  font-size: clamp(11px, 2.5vw, 12px);
  border: 1px solid #ddd;
  border-radius: clamp(6px, 1.5vw, 8px);
  background: transparent;
  color: #333;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hero-search-widget .multi-city-inputs .input-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
}

.hero-search-widget .multi-city-inputs .input-icon {
  position: absolute;
  left: clamp(12px, 3vw, 18px);
  bottom: clamp(12px, 2.5vw, 16px);
  color: var(--gold);
  font-size: clamp(12px, 3vw, 14px);
}

/* ===== Multi-City Actions ===== */
.hero-search-widget .multi-city-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(8px, 2vw, 10px);
  margin-top: clamp(8px, 2vw, 10px);
  flex-wrap: wrap;
  width: 100%;
}

.hero-search-widget #add-leg-btn {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  padding: clamp(7px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
  border-radius: clamp(6px, 1.5vw, 8px);
  cursor: pointer;
  font-size: clamp(11px, 2.5vw, 12px);
  font-weight: 600;
  transition: all 0.25s ease;
  flex: 1;
  min-width: clamp(100px, 30vw, 120px);
  box-sizing: border-box;
}

.hero-search-widget #add-leg-btn:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.hero-search-widget #search-multicity-btn {
  flex: 1;
  min-width: clamp(100px, 30vw, 120px);
}

/* ===== Loader ===== */
.hero-search-widget #loader {
  display: none;
  text-align: center;
  color: var(--gold);
  margin: clamp(30px, 8vw, 50px) auto;
  font-weight: 700;
  max-width: clamp(280px, 80vw, 340px);
  width: 100%;
}

.hero-search-widget .loader-spinner {
  width: clamp(50px, 12vw, 70px);
  height: clamp(50px, 12vw, 70px);
  border: clamp(4px, 1vw, 6px) solid var(--gold-light);
  border-top-color: var(--gold);
  border-right-color: var(--gold-dark);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin: 0 auto clamp(16px, 4vw, 24px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  position: relative;
}

.hero-search-widget .loader-spinner::after {
  content: '';
  position: absolute;
  inset: clamp(6px, 1.5vw, 8px);
  border: clamp(3px, 0.75vw, 4px) solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-search-widget .loader-message {
  display: block;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-dark);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
  .flight-search-wrapper {
    padding: clamp(12px, 2.5vw, 16px);
    min-height: auto;
  }
  
  .hero-search-widget {
    border-radius: clamp(16px, 3vw, 20px);
  }
  
  .hero-search-widget .search-box {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 2vw, 14px);
  }
  
  .hero-search-widget .swap-btn-wrapper {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 0;
  }
  
  .hero-search-widget .input-wrapper:nth-child(1),
  .hero-search-widget .input-wrapper:nth-child(3) {
    grid-column: span 1;
  }
  
  .hero-search-widget #return-date-wrapper {
    grid-column: span 1;
  }
  
  .hero-search-widget .search-btn {
    grid-column: 1 / -1;
  }
  
  .hero-search-widget .dropdown-container {
    min-width: clamp(100px, 20vw, 110px);
    max-width: 160px;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .flight-search-wrapper {
    padding: clamp(10px, 2vw, 12px);
    min-height: auto;
    border-radius: clamp(16px, 3vw, 20px);
  }
  
  .flight-search-wrapper::before,
  .flight-search-wrapper::after {
    width: clamp(200px, 50vw, 300px);
    height: clamp(200px, 50vw, 300px);
  }
  
  .hero-search-widget {
    border-radius: clamp(14px, 3vw, 18px);
  }
  
  .hero-search-widget .form-container {
    padding: clamp(18px, 3vw, 24px) clamp(14px, 2.5vw, 20px);
  }
  
  .hero-search-widget .top-controls {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(12px, 2.5vw, 16px);
    margin-bottom: clamp(18px, 3vw, 24px);
  }
  
  .hero-search-widget .trip-type {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .hero-search-widget .trip-type-label {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: center;
    padding: clamp(9px, 2vw, 11px) clamp(10px, 2vw, 12px);
    font-size: clamp(11px, 2.5vw, 12px);
  }
  
  .hero-search-widget .dropdowns-row {
    flex-direction: row;
    width: 100%;
    margin-left: 0;
    gap: clamp(6px, 1.5vw, 8px);
  }
  
  .hero-search-widget .dropdown-container {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  
  .hero-search-widget .dropdown-btn {
    padding: clamp(9px, 2vw, 10px) clamp(10px, 2vw, 12px);
    font-size: clamp(11px, 2.5vw, 11px);
  }
  
  .hero-search-widget .btn-icon {
    font-size: clamp(13px, 2.5vw, 14px);
  }
  
  .hero-search-widget .dropdown-menu {
    left: 0;
    right: 0;
    max-height: clamp(280px, 50vh, 320px);
    min-width: auto;
  }
  
  .hero-search-widget .suggestions-box {
    max-height: clamp(220px, 45vh, 260px);
  }
  
  .hero-search-widget .search-box {
    grid-template-columns: 1fr;
    gap: clamp(10px, 2vw, 14px);
  }
  
  .hero-search-widget .swap-btn-wrapper {
    display: none;
  }
  
  .hero-search-widget .input-label {
    padding-left: 0;
    font-size: clamp(9px, 2vw, 10px);
  }
  
  .hero-search-widget .input-wrapper input {
    padding: clamp(10px, 2vw, 12px) clamp(10px, 2vw, 12px) clamp(10px, 2vw, 12px) clamp(34px, 7vw, 40px);
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget .input-icon {
    font-size: clamp(15px, 3vw, 17px);
    left: clamp(10px, 2vw, 12px);
    bottom: clamp(11px, 2vw, 13px);
  }
  
  .hero-search-widget .search-btn {
    padding: clamp(12px, 2.5vw, 14px) clamp(18px, 3vw, 24px);
    font-size: clamp(13px, 2.5vw, 14px);
    gap: clamp(6px, 1.5vw, 8px);
  }
  
  .hero-search-widget .multi-city-leg {
    padding: clamp(12px, 2.5vw, 16px);
    margin-bottom: clamp(10px, 2vw, 12px);
  }
  
  .hero-search-widget .multi-city-leg-header {
    flex-direction: row;
    gap: clamp(8px, 2vw, 10px);
  }
  
  .hero-search-widget .multi-city-leg-title {
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget .multi-city-inputs {
    grid-template-columns: 1fr;
    gap: clamp(10px, 2vw, 12px);
  }
  
  .hero-search-widget .multi-city-actions {
    flex-direction: row;
    gap: clamp(6px, 1.5vw, 8px);
  }
  
  .hero-search-widget #add-leg-btn,
  .hero-search-widget #search-multicity-btn {
    flex: 1;
    min-width: 0;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    font-size: clamp(11px, 2.5vw, 12px);
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  
  /* Ensure all inputs are visible and accessible */
  .hero-search-widget .input-wrapper input {
    font-size: 16px !important; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
  }
  
  .hero-search-widget .input-wrapper {
    width: 100%;
    min-width: 0;
  }
  
  .flight-search-wrapper {
    padding: clamp(8px, 2vw, 10px);
    border-radius: clamp(12px, 3vw, 16px);
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .flight-search-wrapper::before {
    width: clamp(180px, 50vw, 250px);
    height: clamp(180px, 50vw, 250px);
    top: -60px;
    right: -60px;
  }
  
  .flight-search-wrapper::after {
    width: clamp(200px, 55vw, 280px);
    height: clamp(200px, 55vw, 280px);
    bottom: -80px;
    left: -80px;
  }
  
  .hero-search-widget {
    border-radius: clamp(10px, 2.5vw, 14px);
    border-width: 1.5px;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-search-widget:hover {
    transform: translateY(-2px);
  }
  
  .hero-search-widget .form-container {
    padding: clamp(14px, 3vw, 20px) clamp(12px, 2.5vw, 16px);
  }
  
  .hero-search-widget .top-controls {
    gap: clamp(10px, 2vw, 14px);
    margin-bottom: clamp(14px, 2.5vw, 20px);
    padding-bottom: clamp(10px, 2vw, 16px);
  }
  
  .hero-search-widget .trip-type {
    flex-direction: column;
    width: 100%;
    gap: clamp(6px, 1.5vw, 8px);
  }
  
  .hero-search-widget .trip-type-label {
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 14px);
    font-size: clamp(11px, 2.5vw, 12px);
  }
  
  .hero-search-widget .radio-custom {
    width: clamp(14px, 3vw, 16px);
    height: clamp(14px, 3vw, 16px);
  }
  
  .hero-search-widget .dropdowns-row {
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 8px);
    width: 100%;
  }
  
  .hero-search-widget .dropdown-container {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  
  .hero-search-widget .dropdown-btn {
    padding: clamp(10px, 2vw, 11px) clamp(12px, 2.5vw, 14px);
    font-size: clamp(11px, 2.5vw, 12px);
    width: 100%;
  }
  
  .hero-search-widget .btn-icon {
    font-size: clamp(14px, 3vw, 15px);
  }
  
  .hero-search-widget .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: clamp(14px, 3vw, 18px) clamp(14px, 3vw, 18px) 0 0;
    max-height: 65vh;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-top: 3px solid var(--gold);
    padding: clamp(12px, 3vw, 16px);
    min-width: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    margin: 0;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-search-widget .suggestions-box {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: clamp(14px, 3vw, 18px) clamp(14px, 3vw, 18px) 0 0;
    max-height: 60vh;
    border: none;
    border-top: 3px solid var(--gold);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    margin: 0;
  }
  
  .hero-search-widget .search-box {
    gap: clamp(10px, 2vw, 12px);
    width: 100%;
  }
  
  .hero-search-widget .input-wrapper input {
    padding: clamp(11px, 2.5vw, 13px) clamp(10px, 2vw, 12px) clamp(11px, 2.5vw, 13px) clamp(34px, 7vw, 40px);
    font-size: 16px !important; /* iOS zoom prevention */
    border-radius: clamp(8px, 2vw, 10px);
    width: 100%;
    box-sizing: border-box;
    min-height: 48px; /* Ensure tappable height */
  }
  
  .hero-search-widget .input-icon {
    bottom: clamp(12px, 2.5vw, 14px);
    font-size: clamp(15px, 3.5vw, 17px);
    left: clamp(10px, 2vw, 12px);
  }
  
  .hero-search-widget .input-label {
    font-size: clamp(9px, 2vw, 10px);
  }
  
  .hero-search-widget .search-btn {
    padding: clamp(13px, 3vw, 15px) clamp(16px, 3vw, 20px);
    font-size: clamp(13px, 2.5vw, 14px);
    border-radius: clamp(8px, 2vw, 10px);
    width: 100%;
  }
  
  .hero-search-widget .btn-icon-right {
    font-size: clamp(14px, 3vw, 16px);
  }
  
  .hero-search-widget .multi-city-leg {
    padding: clamp(10px, 2vw, 14px);
    margin-bottom: clamp(8px, 2vw, 10px);
    border-radius: clamp(10px, 2vw, 12px);
    width: 100%;
  }
  
  .hero-search-widget .multi-city-leg-header {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 2vw, 10px);
    margin-bottom: clamp(10px, 2vw, 14px);
  }
  
  .hero-search-widget .multi-city-leg-title {
    width: 100%;
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget .multi-city-leg-title::before {
    font-size: clamp(13px, 3vw, 15px);
  }
  
  .hero-search-widget .remove-leg-btn {
    width: 100%;
    padding: clamp(9px, 2vw, 10px) clamp(14px, 3vw, 16px);
    font-size: clamp(11px, 2.5vw, 12px);
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: clamp(5px, 1.5vw, 6px);
    border-radius: clamp(6px, 1.5vw, 8px);
  }
  
  .hero-search-widget .remove-leg-btn::after {
    content: '🗑️';
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget .multi-city-inputs {
    grid-template-columns: 1fr;
    gap: clamp(8px, 2vw, 10px);
    width: 100%;
  }
  
  .hero-search-widget .multi-city-inputs .input-wrapper {
    width: 100%;
    padding: clamp(8px, 2vw, 10px);
  }
  
  .hero-search-widget .multi-city-inputs .input-wrapper input {
    width: 100%;
    font-size: 16px !important; /* iOS zoom prevention */
    padding: clamp(9px, 2vw, 11px) clamp(8px, 2vw, 10px) clamp(9px, 2vw, 11px) clamp(32px, 7vw, 38px);
    box-sizing: border-box;
    min-height: 44px; /* Ensure visibility */
    -webkit-appearance: none;
    appearance: none;
  }
  
  .hero-search-widget .multi-city-inputs .input-icon {
    font-size: clamp(14px, 3vw, 16px);
    left: clamp(12px, 2.5vw, 14px);
    bottom: clamp(12px, 2.5vw, 14px);
  }
  
  .hero-search-widget .multi-city-inputs .input-label {
    font-size: clamp(9px, 2vw, 10px);
  }
  
  .hero-search-widget .multi-city-actions {
    flex-direction: column;
    width: 100%;
    gap: clamp(6px, 1.5vw, 8px);
    margin-top: clamp(10px, 2vw, 12px);
  }
  
  .hero-search-widget #add-leg-btn,
  .hero-search-widget #search-multicity-btn {
    width: 100%;
    min-width: 0;
    padding: clamp(11px, 2.5vw, 13px) clamp(14px, 3vw, 18px);
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget #add-leg-btn::before {
    content: '+ ';
  }
  
  .hero-search-widget .traveler-row {
    padding: clamp(8px, 2vw, 10px) 0;
    gap: clamp(8px, 2vw, 10px);
  }
  
  .hero-search-widget .traveler-label {
    font-size: clamp(10px, 2.5vw, 11px);
  }
  
  .hero-search-widget .traveler-desc {
    font-size: clamp(8px, 2vw, 9px);
  }
  
  .hero-search-widget .counter {
    gap: clamp(6px, 1.5vw, 7px);
  }
  
  .hero-search-widget .counter button {
    width: clamp(26px, 6vw, 28px);
    height: clamp(26px, 6vw, 28px);
    font-size: clamp(13px, 3vw, 14px);
  }
  
  .hero-search-widget .counter-value {
    min-width: clamp(26px, 6vw, 28px);
    font-size: clamp(13px, 3vw, 14px) !important;
    padding: clamp(2px, 0.5vw, 3px) clamp(4px, 1vw, 6px);
  }
  
  .hero-search-widget .done-btn {
    padding: clamp(10px, 2vw, 11px);
    font-size: clamp(11px, 2.5vw, 12px);
  }
  
  .hero-search-widget .loader-spinner {
    width: clamp(45px, 10vw, 55px);
    height: clamp(45px, 10vw, 55px);
    border-width: clamp(4px, 1vw, 5px);
  }
  
  .hero-search-widget .loader-spinner::after {
    border-width: clamp(2px, 0.75vw, 3px);
  }
  
  .hero-search-widget .loader-message {
    font-size: clamp(13px, 3vw, 15px);
  }
}

/* Extra small phones (360px and below) */
@media (max-width: 360px) {
  .flight-search-wrapper {
    padding: clamp(6px, 1.5vw, 8px);
  }
  
  .hero-search-widget .form-container {
    padding: clamp(12px, 2.5vw, 18px) clamp(10px, 2vw, 14px);
  }
  
  .hero-search-widget .trip-type-label {
    padding: clamp(9px, 2vw, 11px) clamp(10px, 2vw, 12px);
    font-size: clamp(10px, 2.5vw, 11px);
  }
  
  .hero-search-widget .radio-custom {
    width: clamp(13px, 3vw, 15px);
    height: clamp(13px, 3vw, 15px);
  }
  
  .hero-search-widget .dropdown-btn {
    padding: clamp(9px, 2vw, 10px) clamp(10px, 2vw, 12px);
    font-size: clamp(10px, 2.5vw, 11px);
  }
  
  .hero-search-widget .btn-icon {
    font-size: clamp(13px, 3vw, 14px);
  }
  
  .hero-search-widget .arrow {
    font-size: clamp(7px, 1.5vw, 8px);
  }
  
  .hero-search-widget .input-wrapper input {
    padding: clamp(10px, 2vw, 12px) clamp(8px, 2vw, 10px) clamp(10px, 2vw, 12px) clamp(30px, 7vw, 36px);
    font-size: 16px !important;
  }
  
  .hero-search-widget .input-icon {
    font-size: clamp(14px, 3vw, 16px);
    left: clamp(8px, 2vw, 10px);
    bottom: clamp(11px, 2vw, 13px);
  }
  
  .hero-search-widget .search-btn {
    padding: clamp(12px, 2.5vw, 14px) clamp(14px, 3vw, 18px);
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget .btn-icon-right {
    font-size: clamp(13px, 3vw, 15px);
  }
  
  .hero-search-widget .multi-city-leg {
    padding: clamp(10px, 2vw, 12px);
  }
  
  .hero-search-widget .multi-city-leg-title {
    font-size: clamp(11px, 2.5vw, 12px);
    gap: clamp(4px, 1vw, 5px);
  }
  
  .hero-search-widget .multi-city-leg-title::before {
    font-size: clamp(12px, 3vw, 14px);
  }
  
  .hero-search-widget .remove-leg-btn {
    padding: clamp(8px, 2vw, 9px) clamp(12px, 2.5vw, 14px);
    font-size: clamp(10px, 2.5vw, 11px);
  }
  
  .hero-search-widget .multi-city-inputs {
    gap: clamp(8px, 2vw, 10px);
  }
  
  .hero-search-widget .multi-city-inputs .input-wrapper input {
    padding: clamp(8px, 2vw, 10px) clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 10px) clamp(28px, 6vw, 34px);
    font-size: 16px !important; /* iOS zoom prevention */
    min-height: 42px;
    -webkit-appearance: none;
    appearance: none;
  }
  
  .hero-search-widget .multi-city-inputs .input-icon {
    font-size: clamp(13px, 3vw, 15px);
    left: clamp(10px, 2vw, 12px);
  }
  
  .hero-search-widget #add-leg-btn,
  .hero-search-widget #search-multicity-btn {
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    font-size: clamp(11px, 2.5vw, 12px);
  }
  
  .hero-search-widget .counter button {
    width: clamp(24px, 5vw, 26px);
    height: clamp(24px, 5vw, 26px);
    font-size: clamp(12px, 2.5vw, 13px);
  }
  
  .hero-search-widget .counter {
    gap: clamp(5px, 1.5vw, 6px);
  }
  
  .hero-search-widget .counter-value {
    min-width: clamp(24px, 5vw, 26px);
    font-size: clamp(12px, 2.5vw, 13px) !important;
    padding: clamp(2px, 0.5vw, 2px) clamp(4px, 1vw, 5px);
  }
  
  .hero-search-widget .traveler-label {
    font-size: clamp(9px, 2vw, 10px);
  }
  
  .hero-search-widget .traveler-desc {
    font-size: clamp(8px, 1.5vw, 8px);
  }
  
  .hero-search-widget .dropdown-menu {
    padding: clamp(10px, 2vw, 14px);
  }
  
  .hero-search-widget .done-btn {
    padding: clamp(9px, 2vw, 10px);
    font-size: clamp(10px, 2.5vw, 11px);
  }
  
  .hero-search-widget .suggestions-box div {
    padding: clamp(8px, 2vw, 9px) clamp(10px, 2vw, 12px);
    font-size: clamp(11px, 2.5vw, 12px);
  }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .hero-search-widget *,
  .hero-search-widget *::before,
  .hero-search-widget *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .flight-search-wrapper {
    animation: none;
  }
  
  .flight-search-wrapper::before,
  .flight-search-wrapper::after {
    animation: none;
  }
}

.hero-search-widget button:focus-visible,
.hero-search-widget input:focus-visible,
.hero-search-widget .dropdown-btn:focus-visible,
.hero-search-widget .trip-type-label:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.2);
}

@media (prefers-contrast: high) {
  .hero-search-widget {
    --border: #000;
    --text-lighter: #444;
    --glass-border: rgba(0, 0, 0, 0.5);
  }
  
  .hero-search-widget .trip-type-label,
  .hero-search-widget .dropdown-btn,
  .hero-search-widget .input-wrapper input {
    border-width: 3px;
  }
  
  .hero-search-widget {
    border-width: 3px;
  }
}

@media (prefers-color-scheme: dark) {
  .hero-search-widget {
    --bg: rgba(30, 30, 30, 0.95);
    --glass-bg: rgba(40, 40, 40, 0.3);
    --input-bg: rgba(50, 50, 50, 0.9);
    --text: #e5e5e5;
    --text-dark: #ffffff;
    --text-light: #b0b0b0;
    --text-lighter: #808080;
  }
  
  .flight-search-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  }
  
  .hero-search-widget {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .hero-search-widget .dropdown-menu,
  .hero-search-widget .suggestions-box {
    background: rgba(40, 40, 40, 0.98);
  }
  
  .hero-search-widget .multi-city-inputs .input-wrapper {
    background: rgba(50, 50, 50, 0.9);
  }
}

@media print {
  .flight-search-wrapper {
    background: white;
    padding: 0;
  }
  
  .hero-search-widget {
    box-shadow: none;
    border: 2px solid #000;
  }
  
  .flight-search-wrapper::before,
  .flight-search-wrapper::after {
    display: none;
  }
  
  .hero-search-widget .search-btn,
  .hero-search-widget .done-btn,
  .hero-search-widget .remove-leg-btn,
  .hero-search-widget #add-leg-btn {
    border: 2px solid #000;
  }
}

/* Touch optimization for mobile devices */
@media (hover: none) and (pointer: coarse) {
  .hero-search-widget .trip-type-label,
  .hero-search-widget .dropdown-btn,
  .hero-search-widget button,
  .hero-search-widget .search-btn {
    min-height: 44px;
  }
  
  .hero-search-widget .input-wrapper input {
    min-height: 44px;
  }
  
  .hero-search-widget .counter button {
    min-width: 36px;
    min-height: 36px;
  }
}

/* Prevent horizontal scroll on all screen sizes */
.hero-search-widget,
.hero-search-widget *,
.flight-search-wrapper,
.flight-search-wrapper * {
  max-width: 100%;
}

/* Ensure all containers respect viewport width */
@media (max-width: 767px) {
  body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
  }
  
  .flight-search-wrapper {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-search-widget {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-search-widget .form-container,
  .hero-search-widget .top-controls,
  .hero-search-widget .search-box,
  .hero-search-widget .multi-city-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
}