.nav-link {
    color: white !important;
}

.nav-link:hover {
    color: rgb(255, 156, 35) !important;
}

.dropdown-menu {
    color: white !important;
    background-color: rgb(0, 0, 0, 0.7) !important;
    text-align: center !important;
    border-bottom: solid white !important;
    border-left: solid white !important;
    border-right: solid white !important;
}

.dropdown-item {
    color: white !important;
    display: inline-block !important;
    text-align: center !important;
}

.dropdown-item:hover {
    color: rgb(255, 156, 35) !important;
    background-color: rgb(255, 255, 255, 0.2) !important;
}

#DropCss1:first-child {
    color: white !important;
}

#DropCss1:hover {
    color: rgb(255, 156, 35) !important;
}

#DropCss2:first-child {
    color: white !important;
}

#DropCss2:hover {
    color: rgb(255, 156, 35) !important;
}

#DropCss3:first-child {
    color: white !important;
}

#DropCss3:hover {
    color: rgb(255, 156, 35) !important;
}

#DropCss4 {
    color: white !important;
}

#DropCss4:hover {
    color: rgb(255, 156, 35) !important;
}

#Brand {
    font-family: cursive !important;
}

#Brand:hover {
    font-family: cursive !important;
    color: rgb(255, 156, 35) !important;
}

body,
html {
    width: 100% !important;
    height: 100% !important;
}


#LoginButton {
    display: inline-block !important;
    color: white !important;
    border: 2px solid white !important;
}

#LoginButton:hover {
    color: rgb(255, 156, 35) !important;
    border-color: rgb(255, 156, 35) !important;
    background-color: transparent !important;
}

@media only screen and (max-width: 575px) {
    .spec-item {
        flex: 1 1 100% !important;
    }

    #collapsibleNavbar .navbar-nav {
        align-items: center !important;
        /* center all nav items horizontally */
    }

    #profileDropdown {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        width: 35px !important;
        text-decoration: dotted !important;
        /* net iets breder dan het icoon */
        position: relative !important;
    }

    hr {
        display: none !important;
    }



    .dropdown-menu[aria-labelledby="profileDropdown"] {
        position: relative !important;
        border-right: none !important;
        border-bottom: none !important;
        background: none !important;
        top: 100% !important;
        /* direct onder */
        left: 50% !important;
        /* horizontaal midden */
        transform: translateX(-50%) !important;
        /* echt centered */
        margin-top: 0.25rem !important;
        min-width: 8rem !important;
        /* Optioneel: iets hoger z-index als het overlapt */
        z-index: 1050 !important;
    }

    #profileDropdown::after {
        display: none !important;
    }

    .IconText {
        display: none !important;
    }

    .nav-link {
        color: white !important;
        text-align: center !important;
    }

    #NavButton {
        color: white !important;
    }

    #LoginButton {
        display: inline-block !important;
        color: white !important;
        border: 2px solid white !important;
        padding: 6px 14px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
        margin-right: 10px !important;
        margin-left: 10px !important;
        margin-top: 8px !important;
        text-align: center !important;
        width: 100% !important;
    }

    #LoginButton:hover {
        color: rgb(255, 156, 35) !important;
        border-color: rgb(255, 156, 35) !important;
        background-color: transparent !important;
    }

    .vr {
        display: none !important;
        /* Splitter verbergen op mobiel voor netheid */
    }

    .navbar-collapse {
        background-color: rgb(0, 0, 0, 0.7) !important;
        border-bottom: solid white !important;
        border-right: solid white !important;
        border-left: solid white !important;
        border-radius: 8px !important;
        /* Optioneel: voor afgeronde hoeken */
        padding-top: 20px !important;
        /* Ruimte bovenaan */
        padding-bottom: 20px !important;
        /* Ruimte onderaan */
    }
}

@media only screen and (max-width: 1050px) and (min-width: 575px) {
    .nav-text {
        display: none !important;
    }

    .spec-item {
        flex: 1 1 100% !important;
    }

    .nav-item {
        font-size: 24px !important;
    }
}

/* body */
html,
body {
    height: 100% !important;
    margin: 0 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    background-image: url('/IMG/backgroundtosHeaderos2.0.png');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 0;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/IMG/backgroundtosHeaderos2.0.png');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    filter: blur(8px);
    transform: scale(1.05);
    /* Optional: Fixes blur edge clipping */
}

.car-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.car-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.car-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 500px;
}

.car-main-info {
    padding: 24px;
}

.car-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #2c3e50;
}

.car-price {
    font-size: 26px;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 20px;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.spec-item {
    flex: 1 1 calc(50% - 20px);
    /* 2 items per row, minus gap */
    background-color: #f1f1f1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}


.car-description {
    padding: 24px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.car-description h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.car-description p {
    line-height: 1.6;
    color: #444;
    font-size: 16px;
}

.car-month-price {
    font-size: 18px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Footer */

footer {
    padding: 2% 0 !important;
    backdrop-filter: blur(8px) !important;
    /* maakt achtergrond wazig */
    -webkit-backdrop-filter: blur(8px) !important;
    /* Safari ondersteuning */
    background-color: rgb(0, 0, 0) !important;
    /* Donker glasachtig */
    color: white !important;
    border-top: solid gray !important;
    /* Rood accent blijft */
    text-align: center !important;
    width: 100% !important;
}

.FooterList {
    list-style: none !important;
}

.FooterLink {
    color: white !important;
    text-decoration: none !important;
}

.SponserImg {
    max-height: 80px !important;
    object-fit: contain !important;
    /* Ensures image fits without stretching */
    width: 120px !important;
    margin-top: 3% !important;
    max-width: 80px !important;
    border-radius: 12px !important;
    margin-right: 1% !important;
    border: white solid 2px !important;
    height: auto !important;
    display: inline-block !important;
}

.footerrow {
    background-color: black !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}