.flight-search-wrap {
    max-width: 1100px;
    margin: auto;
    font-family: -apple-system, system-ui, sans-serif;
}

.page-header-wrap {
    text-align: center;
    margin-bottom: 30px;
}

#page-main-title {
    color: #003580;
    font-size: 32px;
    font-weight: 800;
}

.flight-form {
    background: #003580;
    padding: 25px;
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
}

.input-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.field {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field label {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.field input {
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#btn-search {
    background: #ff9d00;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 6px;
    font-weight: bold;
    height: 46px;
    cursor: pointer;
    transition: 0.3s;
}

#btn-search:hover {
    background: #e68a00;
}

.wa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wa-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.wa-card:hover {
    transform: translateY(-5px);
}

.wa-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wa-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
}

.wa-price {
    font-size: 30px;
    font-weight: 900;
    color: #10b981;
    margin: 10px 0;
}

.wa-route {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.wa-segment {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.wa-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.wa-time {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.wa-btn {
    display: block;
    background: #25d366;
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    margin-top: 20px;
}

.lead-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lead-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  font-family: system-ui;
}

.lead-box h3 {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 800;
}

.lead-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 15px;
}

.lead-box label {
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  display: block;
}

.lead-box input,
.lead-box select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.lead-box button {
  background: #25d366;
  color: white;
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.lead-close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

.iata-trust-bar {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  margin: 20px 0;
  text-align: center;
}

.iata-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.iata-modal-content {
  background: #fff;
  max-width: 420px;
  margin: 5vh auto;
  padding: 25px;
  border-radius: 14px;
  position: relative;
  font-family: system-ui;
}

.iata-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

.iata-modal-content h3 {
  margin-bottom: 5px;
}

.iata-sub {
  font-size: 14px;
  color: #475569;
  margin-bottom: 15px;
}

.iata-modal-content input,
.iata-modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
}

.iata-submit {
  width: 100%;
  background: #003580;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.iata-trust {
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  color: #64748b;
}

body.iata-lock {
  overflow: hidden;
}

/* Container Styling */
.popular-routes {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.popular-routes h3 {
    color: #003580;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    text-align: center;
}

/* Grid Logic: 4 Columns for Desktop */
.popular-routes-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* The 4-column row */
    gap: 12px;
}

/* Link Styling */
.popular-routes-list li a {
    display: block;
    background: #ffffff;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Hover Effects */
.popular-routes-list li a:hover {
    background: #003580;
    color: #ffffff !important;
    border-color: #003580;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.15);
}

/* --- Responsive Breakpoints --- */

/* Tablets: 2 Columns */
@media (max-width: 992px) {
    .popular-routes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Column */
@media (max-width: 576px) {
    .popular-routes {
        margin: 20px 10px;
    }
    
    .popular-routes-list {
        grid-template-columns: 1fr;
    }
    
    .popular-routes h3 {
        font-size: 18px;
    }
    
    .popular-routes-list li a {
        padding: 14px; /* Larger tap target for mobile */
    }
}