/* ===== Базовые сбросы ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== Адаптивный контейнер ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Навигация ===== */
.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#langDropdown {
    text-transform: uppercase;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0;
}

#langDropdown:focus,
#langDropdown:active,
#langDropdown:hover,
#langDropdown:focus-visible {
    border: 0;
    box-shadow: none;
    background: none;
}

main img {
    max-width: 100%;
    height: auto;
    display: block;
}

.car-rental-lbl {
    order: 2
}

/* Мобільна адаптація language switcher */
@media (max-width: 768px) {
    .car-rental-lbl {
        order: unset;
        font-size: 0.88rem;
        white-space: normal;
        max-width: 120px;
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
        flex: 1 1 auto;
    }

    .navbar .navbar-nav:last-child {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .navbar .navbar-nav:first-child {
        order: 0;
    }

    .lang-switcher-mobile {
        position: static !important;
        display: flex;
        justify-content: center;
        padding: 0.5rem 0 0 0;
        margin: 0;
    }
}

.nav-link {
    white-space: nowrap;
}

.navbar-toggler {
    border: none;
}

.default-table td {
    border: 1px solid #ccc
}

/* ===== Меню ===== */
.bottom-menu {
    gap: 12px;
}

.bottom-menu-link {
    color: #333;
    /* text-decoration: none; */
    padding: 4px 8px;
    transition: color 0.2s;
    font-weight: 500;
}

.bottom-menu-link.active,
.bottom-menu-link:hover {
    color: #1a7ed8;
    text-decoration: underline;
}

/* ======== FOOTER ======== */
footer {
    font-size: 14px;
}

footer .bottom-menu-columns {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
}

footer .bottom-menu {
    min-width: 160px;
    align-items: flex-start;
    text-align: left;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .bottom-menu-item,
footer .bottom-menu li {
    text-align: left;
    color: #333;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

footer .bottom-menu-link {
    padding: 4px 8px;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    width: 100%;
    text-align: left;
    color: #333;
    text-decoration: underline;
}

footer .bottom-menu-link.active,
footer .bottom-menu-link:hover {
    color: #1a7ed8;
    text-decoration: underline;
}

footer .bottom-menu-link.active {
    color: #333;
}

/* ===== Мобільна адаптація футера ===== */
@media (max-width: 768px) {
    footer .row {
        flex-direction: column;
        align-items: stretch;
    }

    footer .col-md-4,
    footer .col-md-8 {
        width: 100%;
        max-width: 100%;
    }

    footer .bottom-menu-columns {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        justify-content: flex-start;
        margin-top: 20px;
    }

    footer .bottom-menu {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    footer .bottom-menu-item,
    footer .bottom-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }

    footer .bottom-menu-link {
        padding: 0 0 12px 0;
        margin: 0;
        width: 100%;
        display: block;
        text-align: left;
    }



    /* Тільки для останнього елемента меню — без відступу знизу */
    footer .bottom-menu:last-child .bottom-menu-item:last-child .bottom-menu-link {
        padding-bottom: 0;
    }
}

/* ===== Кінець футера ===== */

#cookie-popup {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 10001;
    background: #222;
    color: #fff;
    padding: 18px 16px;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

#cookie-popup a {
    color: #ffc107;
    text-decoration: underline;
}

#cookie-accept-btn {
    display: block;
    margin: 10px auto;
}

.content_top {
    margin-bottom: 15px
}