﻿:root {
    --accent: #0b76ff;
    --bg: #0f1724;
    color: #0f1724;
    font-family: Inter,Segoe UI,Arial,Helvetica,sans-serif
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    padding: 0;
    color: #0d1b2a;
}

.bg-airline {
    background: linear-gradient(180deg, #e8f3ff 0%, #ffffff 35%);
}

.header {
    background: linear-gradient(90deg, #005bea, #00c6fb);
    color: white;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.nav-link {
    color: rgba(255,255,255,0.95);
    margin-left: 18px;
    text-decoration: none;
    font-weight: 500;
}

.hero {
    position: relative;
    background-image: url('/img/airline-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 360px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,66,139,0.45), rgba(0,198,251,0.25));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

    .hero-content h1 {
        font-size: 40px;
        margin: 0 0 8px 0;
    }

    .hero-content p {
        margin: 0 0 18px 0;
        font-size: 18px;
    }

.hero-search {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(4,34,90,0.12);
}

    .search-form input, .search-form select {
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #e6eefc;
        min-width: 140px;
    }

.search-btn {
    padding: 10px 18px;
    background: #005bea;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.main-container {
    max-width: 1250px;
    margin: -50px auto 10px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(19,53,87,0.06);
}

h2 {
    margin-top: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #eef6ff;
    box-shadow: 0 6px 18px rgba(9,30,66,0.04);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .card-row.small {
        font-size: 13px;
        color: #41536b;
    }

.fare {
    font-weight: 700;
    color: #00285b;
}

.footer {
    background: #003b73;
    color: white;
    padding: 18px 0;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.search-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.results {
    padding: 50px 0px
}

.flight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px
}

.flight-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 6px 16px rgba(16,24,40,0.06);
    display: flex;
    gap: 12px;
    align-items: center
}

    .flight-card img.logo {
        width: 60px;
        height: 60px;
        object-fit: contain
    }

.flight-info {
    flex: 1
}

.flight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px
}

.book-btn {
    background: var(--accent);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: none
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 16px
}

.skeleton-card {
    height: 110px;
    border-radius: 12px;
    background: linear-gradient(90deg,#eee,#f5f5f5);
    animation: shimmer 1.2s infinite
}
/* Base button styling */
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    padding: 12px 22px;
    background: #0F9D58; /* Excel green */
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: 0.2s ease;
}

    /* Excel icon using SVG */
    .btn.btn-primary::before {
        content: "";
        width: 20px;
        height: 20px;
        display: inline-block;
        background-repeat: no-repeat;
        background-size: contain;
        /* Embedded Excel SVG Icon */
        background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<rect width='24' height='24' rx='4' fill='%230F9D58'/>\
<path fill='white' d='M14 7H7V9H14V7ZM14 11H7V13H14V11ZM7 15H14V17H7V15Z'/>\
</svg>");
    }

    /* Hover animation */
    .btn.btn-primary:hover {
        background: #0B7A43;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    }

    /* Button press effect */
    .btn.btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    }

    /* Focus outline */
    .btn.btn-primary:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(15, 157, 88, 0.35);
    }

.excel-div {
    display: flex;
    justify-content: flex-end;
}
.autocomplete-group {
    position: relative;
    margin-bottom: 25px;
}

    .autocomplete-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #d1d1d1;
        border-radius: 10px;
        font-size: 16px;
        outline: none;
    }

        .autocomplete-group input:focus {
            border-color: #4A90E2;
            box-shadow: 0 0 5px rgba(74,144,226,0.5);
        }

.autocomplete-list {
    position: absolute;
    top: 52px;
    width: 100%;
    background: white;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

.ac-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease;
}

    .ac-item:last-child {
        border: none;
    }

    .ac-item:hover {
        background: #f7faff;
    }

.ac-iata {
    font-weight: 600;
    font-size: 16px;
    color: #1a73e8;
}

.ac-city {
    font-size: 15px;
    color: #333;
    margin-top: 3px;
}

.ac-country {
    font-size: 13px;
    color: #777;
}
/* ------------------------------------------------------------
   📱 MOBILE RESPONSIVE UI — Premium Airline Mobile Layout
   ------------------------------------------------------------ */

/* ========== Mobile: Up to 480px ========== */
@media (max-width: 480px) {

    /* Header */
    .header-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 8px;
    }

    .nav-link {
        margin: 6px 8px;
        display: inline-block;
        font-size: 14px;
    }

    /* Hero Section */
    .hero {
        height: 260px !important;
        background-position: center;
    }

    .hero-content h1 {
        font-size: 26px !important;
    }

    .hero-content p {
        font-size: 14px !important;
    }

    /* Search Form Box */
    .search-form {
        flex-direction: column;
        width: 95%;
        padding: 15px;
        gap: 14px;
        border-radius: 14px;
    }

        .search-form input,
        .search-form select {
            width: 100% !important;
            min-width: unset;
            padding: 12px;
            font-size: 15px;
        }

    .search-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    /* Autocomplete */
    .autocomplete-group input {
        font-size: 15px;
        padding: 10px 14px;
    }

    .autocomplete-list {
        top: 50px !important;
        max-height: 220px;
    }

    .ac-item {
        padding: 10px 14px;
    }

    .ac-iata {
        font-size: 14px;
    }

    .ac-city {
        font-size: 13px;
    }

    /* Main Container */
    .main-container {
        width: 100%;
        margin-top: -35px;
        padding: 18px;
        border-radius: 16px;
    }

    /* Flight Cards */
    .flight-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

        .flight-card img.logo {
            width: 50px;
            height: 50px;
            margin-bottom: 8px;
        }

    .flight-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .book-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    /* Grid Layouts */
    .results-grid,
    .flight-grid,
    .skeleton-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .excel-div {
        justify-content: center !important;
        margin-top: 12px;
    }
}

/* ========== Tablet: 481px to 768px ========== */
@media (max-width: 768px) {

    /* Header */
    .header-inner {
        padding: 12px 14px;
    }

    /* Search Form */
    .search-form {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px;
    }

        .search-form input,
        .search-form select {
            min-width: 45%;
        }

    /* Flight Cards */
    .flight-card {
        padding: 18px;
        gap: 16px;
    }

    .flight-meta {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .excel-div {
        justify-content: flex-end;
    }
}
