/* Color Variable */
:root {
    --primary-color: #ec1b24;
    --secondary-color: #1d293d;
    --white-color: #fafaf9;
    --black-color: #0f172b;
    --marked-color: #cccccc;
    --hover-primary-color: #c2181e;
    --primary-border-color: #ec1b24;
    --secondary-border-color: #373536;
    --white-border-color: #fafaf9;
    --black-border-color: #0f172b;
    --color-40: #205781;
    --color-30: #4F959D ;
    --color-20: #98D2C0;
    --color-10: #F6F8D5;
    --green: #5B913B;
    --green-light: #77B254;
    --yellow: #FFEB00;
    --yellow-light: #FFD65A;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

ul {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

span {
    margin: 0;
    padding: 0;
}

.booking-button {
    background: var(--color-30);
    color: var(--color-10);
    border: 0;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.booking-button:hover {
    color: var(--color-10);
    opacity: 0.8;
}

.booking-button:hover .button-effect {
    left: 0;
    transition: .3s ease-in-out;
}

.button-effect {
    position: absolute;
    z-index: 1;
    background: var(--color-30);
    color: var(--color-10);
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    place-content: center;
    font-size: 1.5rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: var(--color-40) 0px 0px 0px 2px !important;
}

/* Navbar */
.navbar-container {
    box-shadow: 0 0 5px #ccc;
}
.main-navbar {
    padding: 16px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    background: var(--white-color);
    /* background: var(--color-30); */
    /* backdrop-filter: blur(30px); */
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.main-navbar.sticky{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 8px 50px;
}

.navbar-logo {
    height: 60px;
    width: fit-content;
}

.navbar-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.navbar-menus {
    translate: 0%;
}

.navbar-menus ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.navbar-menus ul li {
    position: relative;
}

.navbar-menus ul li a,
.navbar-menus ul li span {
    text-decoration: none;
    color: var(--color-40);
    font-weight: 500;
    font-size: 1rem;
}

.dropdown-toggle {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-toggle svg {
    font-size: 1rem;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown ul.dropdown-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    position: absolute;
    z-index: 1000;
    top: 40px;
    width: 200px;
    border-radius: 0;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    /* border-top: var(--color-40) solid 2px; */
}

.dropdown ul.dropdown-menu li {
    width: 100%;
    padding: 4px 10px;
}

.dropdown ul.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 0.2rem 0rem;
    font-size: 1rem;
    color: var(--color-30);
}

.dropdown ul.dropdown-menu li:hover {
    background: var(--color-40);
}

.dropdown ul.dropdown-menu li:hover a {
    color: #fff;
}

.secondary-navbar {
    background: var(--color-30);
    padding: 5px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.secondary-navbar .quick-contact-info,
.secondary-navbar .quick-preference-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.secondary-navbar .quick-contact-info a {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 400;
}
.secondary-navbar .quick-preference-info .language-switcher {
    color: var(--white-color);
    width: 100px;
    max-width: 100%;
}

.secondary-navbar .quick-preference-info .currency-switcher {
    color: var(--white-color);
    /* width: 100px; */
    max-width: 100%;
}

.secondary-navbar .quick-info {
    display: none;
}

.sidebar-toggler {
    display: none;
}

.sidebar-toggler .toggler {
    background: none;
    border: none;
    outline: none;
}

.sidebar-toggler .toggler svg {
    font-size: 2rem;
    color: var(--color-30);
}

.close-sidebar {
    display: none;
}

.rental-cars-menu {
    width: 400px !important;
    padding: 10px;
}

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

.dropdown-column {
    list-style: none;
    padding: 0;
}

.dropdown-column li {
    padding: 5px 0;
}

@media (max-width: 1024px) {
    .navbar-buttons {
        display: none;
    }
}

@media (max-width: 992px) {
    .sidebar-toggler {
        display: block;
    }
    .navbar-menus {
        position: fixed;
        z-index: 9999;
        background: var(--white-color);
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        overflow-y: scroll;
        max-width: 500px;
        translate: 100%;
        transition: 0.3s ease-in-out;
    }

    .navbar-menus ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        margin-top: 50px;
    }

    .navbar-menus ul li {
        position: relative;
        width: 100%;
        padding: 0.5rem 2rem;
    }

    .navbar-menus ul li a,
    .navbar-menus ul li span {
        display: block;
        color: var(--color-30);
    }

    .dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    .dropdown ul.dropdown-menu {
        position: relative;
        width: 100%;
        top: 0;
        margin-top: 1rem;
        background: none;
        box-shadow: none;
        border: none;
    }

    .close-sidebar {
        display: block;
        background: none;
        border: none;
        outline: none;
        font-size: 2rem;
        margin-left: 1rem;
        margin-top: 1rem;
        color: var(--color-30);
    }

    .rental-cars-menu {
        width: unset !important;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .secondary-navbar {
        padding: 5px 20px !important;
    }

    .secondary-navbar .quick-contact-info {
        display: none;
    }

    .secondary-navbar .quick-info {
        display: block !important;
        position: relative;
    }
    .secondary-navbar .quick-info .open-details {
        display: none;
        position: absolute;
        left: 0;
        z-index: 9999;
        background: var(--white-color);
        padding: 20px;
        border-radius: 0.5rem;
        box-shadow: 4px 4px 10px #ccc;
        flex-direction: column;
        gap: 5px;
    }
    .secondary-navbar .quick-info > svg {
        color: var(--white-color);
        font-size: 1.5rem;
    }

    .secondary-navbar .quick-info:hover .open-details {
        display: flex;
    } 
    .secondary-navbar .quick-info .open-details a {
       color: var(--black-color);
       display: flex;
       flex-direction: row;
       flex-wrap: nowrap;
       align-items: center;
    }
    .secondary-navbar .quick-info .open-details a:hover {
       color: var(--primary-color);

    }

    .main-navbar {
        padding: 10px 20px !important;
    }
}

/* Footer CSS */

.footer-container {
    padding: 0px 50px;
    background: var(--secondary-color);
}

.main-footer {
    padding: 50px 0;
    background: var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-content .content {
    display: flex;
    flex-direction: column;
}
.footer-content .content img {
    height: 75px;
    width: fit-content;
}

.social-platforms {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-platforms li a svg {
    color: var(--color-10) !important;
    font-size: 1.5rem !important;
}

.social-platforms li:hover a svg {
    color: var(--color-30) !important;
}

.content .footer-title {
    color: var(--color-30);
    margin-bottom: 2rem !important;
}

.content ul li a {
    color: var(--color-10);
    text-decoration: none;
    font-weight: 400;
    display: block;
}
.content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.content ul li a svg {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-30);
}

.content ul li a:hover {
    color: var(--color-30);
}

.content .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content .contact-info p,
.content .contact-info a {
    color: var(--color-10);
}
.content .contact-info p:hover,
.content .contact-info a:hover {
    color: var(--color-30);
}
.content .contact-info p:hover svg,
.content .contact-info a:hover svg {
    color: var(--color-30);
}

.subscription {
    margin-top: 1rem !important;
}

.copyright-claim {
    color: var(--white-color);
    font-weight: 500;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 502px) {
    .footer-container {
        padding: 0px 20px;
    }
    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .content.about,
    .content.contact {
        grid-column: span 2;
    }
}

/* Language Switcher */

.language-switcher {
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 6px 10px;
    text-transform: capitalize;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.language-switcher option {
    color: var(--black-color) !important;
}

/* Currency Switcher */

.currency-switcher {
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 6px 10px;
    text-transform: capitalize;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.currency-switcher option {
    color: var(--black-color) !important;
}

/* Filter Options */

.filter-container {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.filter-container .icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Expanded Filter Box */
.filter-container.expanded {
    width: 300px;
    height: 400px;
    border-radius: 10px;
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.filter-container.expanded .icon {
    display: none;
}

/* Filter Options */
.filter-options {
    flex: 1;
    overflow-y: auto;
    margin-top: 20px;
}

.filter-options label {
    display: block;
    margin: 10px 0;
    font-size: 1rem;
}

.filter-options input {
    margin-right: 5px;
}

/* Footer Buttons */
.filter-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.filter-footer button {
    flex: 1;
    margin: 5px;
    padding: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.reset-btn {
    background: #ccc;
}

.reset-btn:hover {
    background: #bbb;
}

.apply-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.apply-btn:hover {
    background: #c2181e;
}

/* Return to top */
.return-to-top-block {
    position: fixed;
    z-index: 1000;
    bottom: 2rem;
    right: 2rem;
    display: none;
}

.return-to-top {
    height: 50px;
    width: 50px;
    padding: 5px;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    background-color: white;
    cursor: pointer;
    overflow: visible;
    position: relative;
}

.return-to-top img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.return-to-top::after {
    content: "";
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background: rgba(150, 150, 150, 1);
    border-radius: 50%;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.2s ease-in;
}

.return-to-top:hover::after {
    opacity: 1;
    animation: smoke-animation 1s infinite ease-out;
}

@keyframes smoke-animation {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(-10px) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) translateY(-20px) scale(2);
        opacity: 0;
    }
}
