  :root{
      --bg:#0b132b;
      --bg-2:#1c2541;
      --ink:#0b132b;
      --ink-2:#3a506b;
      --muted:#6b7a90;
      --card:#ffffff;
      --brand:#2563eb;
      --brand-2:#1d4ed8;
      --ok:#16a34a;
      --warn:#d97706;
      --danger:#ef4444;
      --border:#e5e7eb;
      --ring: rgba(37, 99, 235, .35);
      --shadow: 0 8px 24px rgba(2,6,23,.08);
      --radius: 16px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
      color:#0f172a;
      background:#ffffff;
    }
    a{color:inherit;text-decoration:none}
    .container{width:min(1200px, 92%); margin-inline:auto}

    /* Header */
    header{
      position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(6px);
      background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
      border-bottom:1px solid #eef2f7;
    }
    .nav{display:flex; align-items:center; justify-content: space-between; gap:18px; padding:12px 0}
    .brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px}
    .brand .logo{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(135deg,var(--brand),#22c55e); color:white;}
    .navlinks{margin-left:auto; display:flex; gap:14px; align-items:center}
    .pill{padding:8px 12px; border-radius:999px; border:1px solid transparent; transition:.2s ease; font-weight:500;}
    .pill:hover{background:#eef2ff}
    .cta{background:var(--brand); color:white; box-shadow:0 6px 18px rgba(37,99,235,.25)}
    .cta:hover{background:var(--brand-2)}

    /* Mobile menu button */
    .menu-toggle{display:none; background:none; border:none; font-size:1.5rem; cursor:pointer; padding:4px 8px}

    /* Hero Search */
    .hero{padding:18px 0 6px}
    .search-card{
      background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px; position:relative; overflow:hidden;
    }
    .tabs{display:flex; gap:8px; flex-wrap:wrap}
    .tab{padding:8px 12px; border-radius:999px; border:1px solid var(--border); cursor:pointer; font-weight:500; background:#fff}
    .tab.active{background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8}

    .form-row{display:grid; grid-template-columns:1.1fr 1.1fr .9fr .9fr .9fr auto; gap:10px; margin-top:12px}
    .field{position:relative}
    .field label{font-size:12px; color:var(--muted); display:block; margin:2px 0 6px}
    .input, select, .btn{width:100%; padding:12px 12px; border-radius:12px; border:1px solid var(--border); background:#fff; outline:none; font:inherit}
    .input:focus, select:focus{border-color:#bfdbfe; box-shadow:0 0 0 4px var(--ring)}

    .swap{position:absolute; right:-8px; top:34px; z-index:2}
    .icon-btn{border:1px solid var(--border); background:#fff; padding:8px; border-radius:12px; cursor:pointer; transition:transform .12s ease;}
    .icon-btn:hover{transform:translateY(-1px)}

    .btn{background:var(--brand); color:#fff; border:1px solid transparent; cursor:pointer; font-weight:600}
    .btn:hover{background:var(--brand-2)}

    .chips{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
    .chip{font-size:12px; padding:6px 10px; border:1px solid var(--border); border-radius:999px; background:#fff}

    /* Layout: sidebar + results */
    .layout{display:grid; grid-template-columns:280px 1fr; gap:16px; margin:16px 0 28px}
    
    /* Mobile Responsiveness */
    @media (max-width: 1024px) {
      .form-row{grid-template-columns:1fr 1fr 1fr 1fr;}
    }
    
    @media (max-width: 980px){
      .layout{grid-template-columns:1fr}
      .filters{position:fixed; inset:0 0 0 0; background:#fff; transform:translateX(100%); transition:.3s ease; z-index:60; box-shadow:none; padding:20px; overflow-y:auto}
      .filters.open{transform:translateX(0)}
      .filters .close{display:block; position:fixed; right:20px; top:20px; z-index:70}
      .filters-toggle{display:inline-flex}
    }
    
    @media (max-width: 768px) {
      .form-row{grid-template-columns:1fr 1fr; gap:12px}
      .swap{right:auto; left:50%; transform:translateX(-50%); top:auto; bottom:-20px}
      .menu-toggle{display:block}
      .navlinks{display:none; position:absolute; top:100%; left:0; right:0; background:white; flex-direction:column; padding:16px; border-top:1px solid var(--border); box-shadow:0 4px 12px rgba(0,0,0,0.1)}
      .navlinks.open{display:flex}
      .navlinks .pill{width:100%; text-align:center; padding:12px}
      .hero{padding:12px 0 6px}
    }
    
    @media (max-width: 640px) {
      .form-row{grid-template-columns:1fr}
      .search-card{padding:12px}
      .tabs{justify-content:center}
      .chips{justify-content:center}
      .container{width:100%; padding:0 16px}
    }
    
    @media (max-width: 640px) {
      .sortbar{flex-direction:column; align-items:stretch}
      .sortbar .seg{justify-content:center}
    }


    
    @media (max-width: 640px) {
      .card{grid-template-columns:1fr; text-align:center}
      .airline{flex-direction:column; text-align:center; gap:8px}
      .price{justify-content:center; margin-top:12px}
      .row{justify-content:center}
    }
    
    .skeleton{background:linear-gradient(90deg,#f3f4f6,#e5e7eb,#f3f4f6); background-size:200% 100%; animation: shimmer 1.1s infinite}
    @keyframes shimmer{0%{background-position:0 0}100%{background-position:200% 0}}



    /* Tiny helpers */
    .row{display:flex; gap:8px; align-items:center}
    .space{flex:1}
    .hidden{display:none}
    .tag{font-size:11px; padding:4px 8px; background:#f1f5f9; border-radius:999px; border:1px solid #e2e8f0}
    .hint{font-size:12px; color:var(--muted)}
    
    /* Mobile overlay */
    .overlay{position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:55; display:none}
    .overlay.open{display:block} 

    /* section  */
    
    .section-container {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 20px;
      padding: 20px;
    }

    .card {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
      cursor: pointer;
    }

    .card:hover {
      transform: scale(1.02);
    }

    .card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
    }

    .card-content {
      padding: 15px;
    }

    .card-content h3 {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 6px;
    }

    .card-content p {
      font-size: 14px;
      color: #555;
    }

    /* Grid for right column */
    .right-cards {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .small-card {
      display: flex;
      align-items: center;
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
      cursor: pointer;
    }

    .small-card:hover {
      transform: scale(1.02);
    }

    .small-card img {
      width: 40%;
      height: 100%;
      object-fit: cover;
    }

    .small-card-content {
      padding: 15px;
    }

    .small-card-content h4 {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .small-card-content p {
      font-size: 13px;
      color: #666;
    } 

    /* promo */ 
    .app-promo {
      display: grid;
      grid-template-columns: 1fr 2fr 0.5fr;
      gap: 20px;
      align-items: center;
      padding: 20px;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      margin: 20px;
    }

    .app-promo img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 12px;
    }

    .promo-text h2 {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 10px;
      color: #111;
    }

    .promo-text p {
      font-size: 14px;
      line-height: 1.6;
      color: #444;
      margin-bottom: 12px;
    }

    .promo-text strong {
      font-size: 15px;
      color: #000;
    }

    .qr-code img {
      width: 120px;
      height: 120px;
    } 

    /* More trips */ 

      .trip-options {
      padding: 40px 20px;
      max-width: 1200px;
      margin: auto;
    }

    .trip-options h2 {
      font-size: 24px;
      margin-bottom: 10px;
      color: #111;
    }

    .trip-options .subtitle {
      font-size: 16px;
      font-weight: 500;
      color: #1a73e8;
      margin-bottom: 20px;
      position: relative;
      display: inline-block;
      padding-bottom: 5px;
    }

    .trip-options .subtitle::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: #1a73e8;
    }

    /* Grid for desktop/tablet */
    .trip-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .trip-links ul {
      list-style: none;
      min-width: 220px; /* ensures width when in scroll mode */
      flex: 0 0 auto;
    }

    .trip-links li {
      margin-bottom: 12px;
    }

    .trip-links a {
      text-decoration: none;
      font-size: 15px;
      color: #1a73e8;
      transition: color 0.3s;
    }

    .trip-links a:hover {
      text-decoration: underline;
      color: #0b53c1;
    }

    .trip-links strong {
      display: block;
      margin: 15px 0 8px;
      font-size: 16px;
      color: #111;
    }
 
    /* Responsive: make horizontal scroll */
    @media (max-width: 768px) {
      .trip-links {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-behavior: smooth;
        padding-bottom: 10px;
      }

      /* Hide scrollbar (Chrome, Safari, Edge) */
      .trip-links::-webkit-scrollbar {
        display: none;
      }

      /* Hide scrollbar (Firefox) */
      .trip-links {
        scrollbar-width: none;
      }
    }

    /* Responsive */
    @media (max-width: 992px) {
      .app-promo {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .app-promo img {
        height: 180px;
      }
      .qr-code img {
        margin: 15px auto;
      }
    }

    /* Responsive Design */
    @media (max-width: 992px) {
      .section-container {
        grid-template-columns: 1fr;
      }
      .right-cards {
        flex-direction: row;
      }
      .small-card img {
        width: 50%;
      }
    }

    @media (max-width: 600px) {
      .right-cards {
        flex-direction: column;
      }
      .small-card {
        flex-direction: column;
      }
      .small-card img {
        width: 100%;
        height: 150px;
      }
    } 

    /* footer */ 
 footer {
    background: #f3f6fa;
    padding: 40px 20px;
    width: 98%;
    margin: auto;
    border-radius: 12px;
    }

    .footer-container {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 30px;
      max-width: 1200px;
      margin: auto;
    }

    .footer-column {
      min-width: 200px;
      flex: 1;
    }

    .footer-column h4 {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 15px;
      color: #222;
    }

    .footer-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-column ul li {
      margin-bottom: 10px;
    }

    .footer-column ul li a {
      text-decoration: none;
      color: #1363df;
      font-size: 14px;
      transition: 0.3s;
    }

    .footer-column ul li a:hover {
      color: #0a3d91;
    }

    .footer-bottom {
      text-align: center;
      padding: 20px;
      border-top: 1px solid #ddd;
      font-size: 14px;
      color: #555;
    }

    /* Responsive: stack columns on small screens */
    @media (max-width: 768px) {
      .footer-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
      }
    }

    /* Horizontal scroll option */
    @media (max-width: 500px) {
      .footer-container {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap; 
        flex-direction: column;
      }
      .footer-column {
        min-width: 180px;
        flex: 0 0 auto;
      }
    } 


    /* custom */ 
    .card-l .card-content{
    padding-top: 0px;
    margin-top: -10px;
    }

    /* autocomplete */

/* Autocomplete dropdown */
.ui-autocomplete {
    z-index: 9999 !important;
    max-height: 280px;        /* Limit height */
    overflow-y: auto;         /* Vertical scroll */
    max-width: 400px;        /* Limit width */
    overflow-x: hidden;       /* Prevent horizontal scroll unless needed */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 4px 0;
}
@media screen and (max-width: 600px) {
    .ui-autocomplete {
        max-width: 90vw; /* Responsive width */
        left: 5vw;       /* Center on small screens */
    }
  
}
/* Each item */
.ui-menu-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

/* Highlight on hover */
.ui-menu-item:hover {
    background: #f5f8ff;
}

/* Airport code */
.ui-menu-item .code {
    font-weight: 700;
    font-size: 15px;
    color: #1a73e8;
}

/* Airport city & country */
.ui-menu-item .city {
    font-size: 14px;
    color: #333;
}

/* Country abbreviation */
.ui-menu-item .country {
    font-size: 12px;
    color: #777;
}
/* === Datepicker Styling === */
.ui-datepicker {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 15px;
  width: 320px;
  z-index: 9999 !important;
}

.ui-datepicker-header {
  background: #fff;
  border: none;
  padding: 10px 0;
  font-weight: 600;
  font-size: 16px;
  color: #111827;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  cursor: pointer;
  font-size: 14px;
  border: none;
  background: #f3f4f6;
  color: #111827;
  border-radius: 50%;
  padding: 6px;
  transition: 0.3s;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
  background: #2563eb;
  color: #fff;
}

.ui-datepicker-calendar {
  margin-top: 10px;
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.ui-datepicker-calendar th {
  padding: 5px;
  color: #6b7280;
  font-weight: 500;
}

.ui-datepicker-calendar td {
  padding: 6px;
}

.ui-datepicker-calendar a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  text-decoration: none;
  color: #111827;
  transition: all 0.3s ease;
}

.ui-datepicker-calendar .ui-state-hover {
  background: #e0f2fe;
}

.ui-datepicker-calendar .ui-state-active {
  background: #2563eb !important;
  color: #fff !important;
  font-weight: bold;
}

.ui-datepicker-calendar .ui-state-disabled {
  color: #d1d5db !important;
}
