html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f5f6f8;
    color: #202124;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.site-header {
    position: relative;
    z-index: 1030;
}

.navbar {
    min-height: 82px;
}

.findcar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #202124 !important;
    text-decoration: none;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4036;
    font-size: 31px;
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .brand-content strong {
        font-size: 25px;
        font-weight: 800;
    }

    .brand-content small {
        margin-top: 6px;
        color: #929292;
        font-size: 12px;
        font-weight: 400;
    }

.nav-link {
    padding: 10px 12px !important;
    color: #252525;
    font-weight: 600;
    white-space: nowrap;
}

    .nav-link:hover,
    .nav-link:focus {
        color: #ef4036;
    }

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-inline-start: 8px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: #198754;
    font-weight: 700;
    white-space: nowrap;
}

.language-menu-button {
    display: inline-flex;
    min-width: 44px;
    height: 42px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    color: #ef4036;
    background: #fff;
    font-weight: 700;
}

    .language-menu-button:hover {
        border-color: #ef4036;
        background: #fff7f6;
    }

.language-arrow {
    font-size: 11px;
}

.dropdown-menu {
    padding: 8px;
    border: 0;
    border-radius: 13px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
}

.dropdown-item {
    padding: 9px 14px;
    border-radius: 8px;
}

    .dropdown-item.active,
    .dropdown-item:active {
        color: #fff;
        background: #ef4036;
    }

.site-main {
    min-height: 60vh;
}

.site-footer {
    margin-top: 55px;
    color: #fff;
    background: #20252a;
}

.footer-title {
    margin-bottom: 10px;
    font-weight: 800;
}

.footer-description {
    margin-bottom: 0;
    color: #e4e4e4;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

html[dir="rtl"] .language-menu-button {
    direction: ltr;
}

html[dir="rtl"] .brand-content {
    align-items: flex-start;
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 74px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 14px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .nav-link {
        padding: 11px 8px !important;
    }

    .login-button {
        width: 100%;
        margin: 10px 0 0;
    }
}

@media (max-width: 575.98px) {
    .brand-content strong {
        font-size: 22px;
    }

    .brand-content small {
        font-size: 11px;
    }

    .brand-icon {
        font-size: 27px;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .mobile-more-menu {
        border-radius: 24px 24px 0 0;
    }

    .mobile-more-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .mobile-more-item {
        display: flex;
        min-height: 95px;
        padding: 14px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 9px;
        border: 1px solid #ececec;
        border-radius: 16px;
        background: #fafafa;
        color: #252525;
        text-decoration: none;
        font-weight: 700;
    }

        .mobile-more-item i {
            color: #ef4036;
            font-size: 25px;
        }

    @media (max-width: 767.98px) {
        body {
            padding-bottom: 78px;
        }

        .site-footer {
            margin-bottom: 65px;
        }

        .mobile-bottom-nav {
            position: fixed;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1050;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            height: 72px;
            padding: 7px 8px;
            border-top: 1px solid #e7e7e7;
            background: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(12px);
            box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.08);
        }

        .mobile-nav-item {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 3px;
            border-radius: 13px;
            color: #747474;
            font-size: 11px;
            font-weight: 700;
            text-decoration: none;
        }

            .mobile-nav-item i {
                font-size: 21px;
            }

            .mobile-nav-item:hover,
            .mobile-nav-item.active {
                color: #ef4036;
                background: #fff2f1;
            }
    }
}
