/* MakeMyTrip Style - Main CSS System & Fully Responsive Design */
:root {
    --primary: #1a4297;
    --primary-dark: #0f2b69;
    --primary-light: #2563eb;
    --accent: #ff6b35;
    --accent-hover: #e85a24;
    --bg-light: #f4f7fe;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.15);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    padding-top: 65px;
}

* {
    box-sizing: border-box;
}

/* Navbar Base */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.navbar .logo i {
    color: var(--accent);
    font-size: 1.5rem;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
    margin-left: auto;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.nav-btn {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-btn:hover {
    background: var(--accent-hover) !important;
}

/* Mobile & Tablet Responsive Navbar (< 992px) */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none !important;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: #0f2b69;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex !important;
        animation: slideDown 0.25s ease forwards;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 14px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1rem;
        width: 100%;
        background: transparent !important;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.12) !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1d4ed8 100%);
    padding: 40px 5% 80px;
    text-align: center;
    color: #fff;
    position: relative;
    width: 100%;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* MMT Tabs Search Card */
.search-card-wrapper {
    max-width: 1050px;
    margin: -50px auto 40px;
    padding: 0 4%;
    position: relative;
    z-index: 10;
    width: 100%;
}

.search-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.tab-btn.active {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 140px;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-search {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

/* Detail Pages Grid Layouts */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
    width: 100%;
}

.detail-img-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 360px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Sections */
.section {
    padding: 40px 5%;
    width: 100%;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Service Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img-container {
    height: 190px;
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.06);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.old-price {
    text-decoration: line-through;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-book {
    background: var(--primary-light);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease;
}

.btn-book:hover {
    background: var(--primary-dark);
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Footer */
footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 40px 5% 20px;
    margin-top: 50px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================
   MOBILE RESPONSIVE MEDIA QUERIES (< 992px)
   ========================================== */
@media (max-width: 992px) {
    body {
        padding-top: 65px;
    }

    .hero-section {
        padding: 30px 16px 70px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .search-card-wrapper {
        margin-top: -45px;
        padding: 0 10px;
    }

    .search-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .search-tabs {
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 10px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-img-box {
        height: 240px;
    }

    .form-grid-3, .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 30px 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
