@import url('https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css');

:root {
    --hoppa-green: #c8102e;
    --hoppa-dark: #1a1a1a;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.12);
    padding: 10px 0;
    border-bottom: 3px solid #c8102e;
}

/* Keep every page on the same compact navbar rhythm. Some older page styles
   apply general .container padding, which must not affect the navigation. */
.navbar .container {
    min-height: 78px;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.navbar-logo {
    height: 64px;
    width: auto;
    max-width: 195px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .navbar .container { display:flex; align-items:center; gap:18px; }
    .navbar-logo-link { display:flex; align-items:center; min-width:195px; }
    .navbar-logo { transform:none; }
    .navbar-collapse { justify-content:flex-end; }
    .navbar-nav { align-items:center; }
    .language-switcher { margin:0 0 0 4px; white-space:nowrap; }
    .nav-link { padding:8px 11px!important; }
}

.navbar-brand {
    color: #c8102e !important;
    font-weight: bold;
    font-size: 22px;
}

.nav-link {
    color: #1a1a1a !important;
    font-weight: 600;
    padding: 8px 14px !important;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #c8102e !important;
}

.nav-more-menu .dropdown-menu { border: 1px solid rgba(200,16,46,.18); border-radius: 10px; padding: 7px; box-shadow: 0 14px 34px rgba(14,20,30,.15); }
.nav-more-menu .dropdown-item { border-radius: 7px; color: #1a1a1a; font-weight: 650; padding: 9px 13px; }
.nav-more-menu .dropdown-item:hover { background: #fff0f3; color: #c8102e; }

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.language-switcher span {
    color: #555;
    font-weight: 500;
    font-size: 13px;
}

.language-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 88px;
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
}

.language-select-btn:hover,
.language-select-btn:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}

.language-menu {
    min-width: 96px;
    padding: 6px;
}

.language-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
}

.language-menu .dropdown-item.active,
.language-menu .dropdown-item:active {
    background: #c8102e;
    color: #fff;
}

.flag-icon {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.whatsapp-link {
    color: #25D366 !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-link:hover {
    color: #128C7E !important;
    transform: scale(1.05);
}

.mobile-wa-link {
    color: #25D366 !important;
    font-size: 2rem;
    line-height: 1;
    margin-left: auto;
    margin-right: 12px;
}

.discover-dropdown .dropdown-menu {
    min-width: 230px;
    padding: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.discover-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
}

.discover-dropdown .dropdown-item i {
    width: 18px;
    color: #c8102e;
    text-align: center;
}

.discover-dropdown .dropdown-item:hover,
.discover-dropdown .dropdown-item:focus {
    color: #8f0b20;
    background: #fff1f3;
}

@media (max-width: 991px) {
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: none;
        padding-right: 12px;
        padding-left: 12px;
        min-height: 68px;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar-logo-link {
        display: flex;
        align-items: center;
        min-width: 0;
        margin-right: auto;
        order: 1;
    }

    .navbar-logo {
        height: 52px !important;
        width: auto !important;
        max-width: 145px !important;
        display: block;
    }

    .language-switcher {
        order: 2;
        margin-right: 0;
        gap: 0;
    }

    .language-switcher > span {
        display: none;
    }

    .language-select-btn {
        min-width: 76px;
        height: 42px;
        gap: 6px;
        padding: 5px 9px;
    }

    .mobile-wa-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        margin: 0;
        font-size: 1.85rem;
    }

    .navbar-toggler {
        order: 3;
        margin: 0;
        padding: 7px 9px;
    }

    .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 390px) {
    .navbar .container {
        gap: 5px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .navbar-logo {
        height: 46px !important;
        max-width: 125px !important;
    }

    .language-select-btn {
        min-width: 68px;
        height: 40px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .flag-icon {
        width: 20px;
    }

    .mobile-wa-link {
        font-size: 1.7rem;
    }
}

/* Reservation steps also load older page styles. Keep their navigation from
   inheriting an image's natural 2,000px dimensions or a page-specific size. */
body .navbar .container {
    min-height: 78px !important;
}
body .navbar .navbar-logo {
    height: 64px !important;
    width: auto !important;
    max-width: 195px !important;
    object-fit: contain !important;
}
@media (max-width: 991px) {
    body .navbar .container { min-height: 68px !important; }
    body .navbar .navbar-logo { height: 52px !important; max-width: 145px !important; }
}

/* IST retains its own neutral graphite identity in every booking form. */
.airport-tab-ist,
.vehicle-airport-tabs .airport-tab-ist {
    background: #4b5563 !important;
    border-color: #5f6976 !important;
}
.airport-tab-ist.active,
.vehicle-airport-tabs .airport-tab-ist.active {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #4b5563 !important;
}
