body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  min-height: 100%;
  padding: 40px 20px;
}

html {
  height: 100%;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.header {
  text-align: left;
  margin-bottom: 40px;
  color: white;
}

.logo {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.slogan {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}

.search-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
}

.trip-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0;
}

.trip-tab {
  padding: 12px 0;
  border: none;
  background: transparent;
  color: #545860;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.trip-tab.active {
  color: #05203c;
  border-bottom-color: #2563eb;
}

.search-inputs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 2px solid #c3c7cc;
  border-radius: 4px;
  overflow: hidden;
}

.input-group {
  flex: 1;
  position: relative;
  border-right: 1px solid #e0e0e0;
  min-width: 0;
}

.input-group:last-child {
  border-right: none;
}

.input-group.dates-group {
  flex: 1.2;
  display: flex;
}

.date-wrapper {
  flex: 1;
  position: relative;
  border-right: 1px solid #e0e0e0;
}

.date-wrapper:last-child {
  border-right: none;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #545860;
  margin-bottom: 2px;
  padding: 8px 16px 0 16px;
  text-transform: capitalize;
}

.input-field {
  width: 100%;
  padding: 4px 16px 12px 16px;
  font-size: 16px;
  border: none;
  box-sizing: border-box;
  font-family: inherit;
  color: #05203c;
  font-weight: 600;
  background: transparent;
  outline: none;
}

.input-field::placeholder {
  color: #898b91;
  font-weight: 400;
}

.input-field:focus {
  outline: none;
}

.input-group:focus-within {
  background: #f0f9ff;
}

.date-wrapper:focus-within {
  background: #f0f9ff;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

.passengers-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px 12px 16px;
  cursor: pointer;
  font-size: 16px;
  color: #05203c;
  font-weight: 600;
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dropdown-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  position: fixed;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  padding: 16px;
  min-width: 280px;
}

.dropdown-content.show {
  display: block;
}

@media (max-width: 768px) {
  .dropdown-content {
    position: fixed;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
    top: 50%;
  }
}

.passengers-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.passengers-label {
  font-size: 14px;
  font-weight: 600;
  color: #05203c;
}

.passengers-info {
  font-size: 12px;
  color: #898b91;
  font-weight: 400;
}

.counter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #c3c7cc;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #05203c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.counter-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}

.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.counter-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #05203c;
}

.resultados {
  position: absolute;
  width: 100%;
  background: white;
  border: 1px solid #c3c7cc;
  border-radius: 4px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.resultados.show {
  display: block;
}

.resultado-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f0f0f0;
}

.resultado-item:last-child {
  border-bottom: none;
}

.resultado-item:hover {
  background: #f0f9ff;
}

.airport-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.airport-iata {
  color: #05203c;
  font-weight: 700;
  font-size: 16px;
  min-width: 36px;
}

.airport-city {
  font-weight: 600;
  color: #05203c;
  font-size: 14px;
}

.airport-name {
  font-size: 13px;
  color: #545860;
}

.search-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  font-family: inherit;
}

.search-btn:hover {
  background: linear-gradient(to right, #1d4ed8, #2563eb);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.search-btn:active {
  transform: translateY(1px);
}

.search-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.feature-title {
  font-weight: 700;
  color: #05203c;
  margin-bottom: 8px;
  font-size: 16px;
}

.feature-desc {
  color: #545860;
  font-size: 14px;
  line-height: 1.5;
}

.alert {
  background: #fff4e5;
  border: 1px solid #ffb700;
  color: #663c00;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.date-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.date-type-btn {
  padding: 8px 16px;
  border: 1px solid #c3c7cc;
  background: white;
  color: #545860;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.date-type-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

@media (max-width: 768px) {
  .search-inputs {
    flex-direction: column;
  }
  
  .input-group {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .input-group:last-child {
    border-bottom: none;
  }
  
  .input-group.dates-group {
    flex-direction: column;
  }
  
  .date-wrapper {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .date-wrapper:last-child {
    border-bottom: none;
  }
  
  .features {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 32px;
  }

  .slogan {
    font-size: 15px;
  }

  .header img {
    height: 60px !important;
    margin-bottom: 12px !important;
  }
}
