/**top nav **/
#main-nav {
    display: block;
}

#mobile-nav {
    display: none;
}

header .py-2 {
    padding-bottom: 0.1rem !important;
}

/**Main navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 3;
    background: #fff;
}

.mobile-nav .logo-link {
    margin: 0 auto;
}

.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0);
}

.navbar-collapse ul {
    flex-direction: column !important;
}

.navbar-collapse ul li a {
    display: block;
    width: 100%;
    text-align: center;
}

.header-with-background {
    background: #fff;
}

.top-menu ul {
    letter-spacing: .25px;
    font-size: 14px;
}

.top-menu li:not(:last-child):after {
    content: "|";
    color: #969696;
}

.top-menu li a {
    display: inline;

}

.main-menu-container {
    background: white;
    border: 0px solid gray;
    border-radius: 10px;
    height: 48px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
}

/* .custom-menu {
    margin-top: -2px !important;
    border-radius: 0px;
    background-color: #dddddd;
    border-color: #dddddd;
    padding-top: 0;
    padding-bottom: 0;
} */

.dropdown-menu {
    border: 0;
}

.dropdown-menu li {
    border-bottom: 1px solid #ccc;
}

.dropdown-menu li:last-child {
    border: none;
}

.dropdown-menu a {
    border-radius: 0 !important;
    padding-left: 1rem !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #555 !important;
}

.dropdown-item {
    padding: 0.7rem 1rem;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: #cccccc !important;
    border-color: #cccccc;
}

#header-ul>li {
    display: flex;
    align-items: center;
}

#header-ul>li::after {
    content: "";
    border-right: 1px solid #eeeeee;
    height: 20px;
    margin-top: 0 !important;
}

.current-menu-item .nav-link, .current-menu-ancestor .nav-link {
    color: #4DBC4D !important;
}

.compare-menu-button {
    position: relative;
    font-family: Manrope, sans-serif;
    letter-spacing: 1px;
    background: #4DBC4D;
    font-weight: 500;
    height: 48px;
    border-radius: 15px;
    z-index: 0;
    transition: height .2s linear;
    font-size: 1rem !important;
}

.compare-menu-button .bg-danger {
    background-color: #FF6600 !important;
}

.compare-menu-button svg {
    width: 24px;
    height: auto;
    margin-right: 0.65rem;
    fill: #fff;
}

.compare-menu-button:hover {
    height: 54px;
}

.compare-menu-button:hover svg {
    fill: #006B3F !important;
    width: 30px !important;
}

.create-offer-menu-button {
    position: relative;
    font-family: Manrope, sans-serif;
    letter-spacing: 1px;
    background: #006B3F;
    font-weight: 500;
    border-radius: 10px;
    z-index: 0;
    transition: height .2s linear;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.create-offer-menu-button svg {
    fill: #fff;
}

/* AI Assistant Button - Shared styles used across header nav and contact page */
.ai-assistant-nav-btn-header {
    background: linear-gradient(90deg, #4DBC4D 0%, #006B3F 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    gap: 6px !important;
    font-size: 0.9rem !important;
}

.ai-assistant-nav-btn-header:hover {
    box-shadow: 0 2px 6px rgba(77, 188, 77, 0.3);
}

.ai-assistant-nav-btn-header svg {
    width: 18px;
    height: 18px;
}

/* Mobile-specific: Center the button wrapper */
@media (max-width: 1024px) {
    .navbar-collapse > div:first-child {
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
    }
}

/* -----------------------------------------------------------
   AI Assistant Floating Button & Bubble Styles
   ----------------------------------------------------------- */

/* Desktop: Hide floating button and bubble */
@media (min-width: 993px) {
    .ai-assistant-bubble,
    .ai-assistant-bubble-overlay,
    .ai-assistant-floating-btn {
        display: none !important;
    }
}

/* Mobile: AI Assistant Floating Button (Homepage only - fixed position) */
@media (max-width: 992px) {
    .ai-assistant-floating-btn {
        position: fixed;
        bottom: 60px;
        right: 20px;
        z-index: -1;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background:#4DBC4D;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease, transform 0.2s, bottom 0.3s ease;
        isolation: isolate;
    }
    
    /* When user is logged in, position higher to avoid bottom menu */
    body:has(.account-nav-menu-mobile) .ai-assistant-floating-btn {
        bottom: 90px;
    }
    
    .ai-assistant-floating-btn .bi-stars {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }
    
    .ai-assistant-floating-btn svg:not(.bi-stars) {
        position: relative;
        z-index: 1;
    }

    /* THE TAIL (Button) - Chat bubble tail pointing up */
    .ai-assistant-floating-btn::before {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 8px;
        transform: rotate(-21deg);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #4DBC4D;
        z-index: -1;
        pointer-events: none;
    }
     
    .ai-assistant-floating-btn svg {
         position: relative;
         z-index: 1;
    }

    .ai-assistant-floating-btn:active { 
        transform: scale(0.95); 
    }
    
    /* Hides button when bubble is open */
    .ai-assistant-floating-btn.bubble-open {
        opacity: 0;
        pointer-events: none;
    }

    /* The Big Bubble (Open State) - Fixed position for homepage */
    .ai-assistant-bubble {
        display: block;
        position: fixed;
        bottom: 60px;
        right: 20px;
        z-index: 10001;
        width: 90%;
        max-width: 400px;
        border-radius: 24px;
        background: linear-gradient(150deg, #4DBC4D 50%, #006B3F 100%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        color: white;
        text-align: center;
        padding: 20px 15px;
        transform-origin: bottom right;
        isolation: isolate;
        opacity: 0;
        transform: scale(0.5); 
        pointer-events: none;
        transition: opacity 0.15s ease-out 0s, transform 0.15s ease-in 0s, bottom 0.3s ease;
    }

    /* When user is logged in, position bubble higher too */
    body:has(.account-nav-menu-mobile) .ai-assistant-bubble {
        bottom: 90px;
    }

    /* THE TAIL (Big Bubble) - Chat bubble tail pointing down to button */
    .ai-assistant-bubble.active::before {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 8px;
        transform: rotate(-21deg);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #006B3F;
        z-index: -1;
        pointer-events: none;
    }

    /* ACTIVE STATE: Visible and full size */
    .ai-assistant-bubble.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-in;
    }

    /* Content Inside the Bubble */
    .ai-assistant-bubble-content {
        opacity: 0;
        transition: opacity 0.1s ease-out 0s;
    }

    .ai-assistant-bubble.active .ai-assistant-bubble-content {
        opacity: 1;
        transition: opacity 0.3s ease-in 0.15s; 
    }

    /* Inner Elements Styling */
    .ai-assistant-bubble-close {
        position: absolute;
        top: 8px;
        right: 12px;
        background: white;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        color: #4DBC4D;
        font-size: 20px;
        font-weight: bold;
        line-height: 1;
        z-index: 2;
    }

    .ai-assistant-bubble-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
        color: white;
    }
    
    .ai-assistant-bubble-text > div {
        position: relative;
        display: inline-block;
    }
    
    .ai-assistant-bubble-text .stars-absolute {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        width: 24px;
        height: 24px;
    }
    
    .ai-assistant-bubble-text svg:not(.bi-stars) {
        position: relative;
        z-index: 1;
        width: 36px;
        height: 36px;
    }

    .ai-assistant-bubble-text strong {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #006B3F;
        margin-bottom: 8px;
    }

    .ai-assistant-bubble-text p {
        margin: 0;
        color: white;
    }

    .ai-assistant-bubble-text .sparkle-inline {
        display: inline-block;
        width: 14px;
        height: 14px;
        vertical-align: middle;
        margin: 0 4px;
    }

    /* Overlay */
    .ai-assistant-bubble-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .ai-assistant-bubble-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Contact Page: Floating button with relative positioning (not fixed) */
.ai-assistant-floating-btn-contact {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background:#4DBC4D;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    isolation: isolate;
    text-decoration: none;
}

.ai-assistant-floating-btn-contact .bi-stars {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.ai-assistant-floating-btn-contact svg:not(.bi-stars) {
    position: relative;
    z-index: 1;
}

/* THE TAIL (Contact Button) - Chat bubble tail pointing up */
.ai-assistant-floating-btn-contact::before {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 8px;
    transform: rotate(-30deg);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #4DBC4D;
    z-index: -1;
    pointer-events: none;
}

.ai-assistant-floating-btn-contact:active { 
    transform: scale(0.95); 
}

.ai-assistant-floating-btn-contact:hover {
    transform: scale(1.05);
}

.currency-toggle {
    flex: 1;
    display: flex;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 100 !important;
    color: #666;
    background: #e5e5e5;
    height: 30px;
}

.currency-toggle input[type="radio"] {
    display: none;
}

.currency-toggle label {
    color: #666;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 0.375rem 0.7rem;
    height: 30px !important;
    min-width: 30px;
    background: #e5e5e5 !important;
    transition: all 0.2s ease;
}

.currency-toggle input[type="radio"]:checked+label {
    color: white;
    border-radius: 10px;
    height: 40px !important;
    min-width: 35px;
    background-color: #4CAF50 !important;
}

.currency-toggle input[type="radio"]:checked+label:hover {
    background-color: #006B3F !important;
    scale: 1.02;
}

@media screen and (max-width: 1024px) {
    .currency-toggle input[type="radio"]:checked+label:hover {
        scale: 1;
    }

    .currency-toggle input[type="radio"]:checked+label {
        width: 35px;
        height: 35px !important;
    }

    .currency-toggle label {
        width: 30px;
    }
}

.currency-toggle label:hover {
    color: #666;
    background-color: #e5e5e5 !important;
}

.currency-toggle-item.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.currency-toggle-item.disabled label {
    cursor: not-allowed !important;
    background: #e5e5e5 !important;
    color: #666 !important;
}

.currency-toggle-item.disabled input[type="radio"]:checked+label {
    background-color: #4CAF50 !important;
    opacity: 0.7;
}

@media (max-width: 1100px) {
    .create-offer-menu-button {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 1024px) {
    .create-offer-menu-button {
        font-size: 9px !important;
        padding: 5px 10px;
        height: 35px;
        width: 35px;
    }
}

/* NAV */
.header-menu-container .nav-link {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    color: #6c6c6c;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: Manrope, sans-serif;
    font-size: 15px;
}

@media screen and (max-width: 1439px) and (min-width: 1025px) {
    .header-menu-container .nav-link {
        font-size: 12px;
    }
}

.header-menu-container .nav-link:hover {
    background-color: #eeeeee;
    color: #707070;
}

#header-ul li:first-child .nav-link {
    padding-left: 24px;
    border-radius: 10px 0 0 10px;
}

ul.dropdown-menu li a {
    font-weight: 300 !important;
    font-size: 14px !important;
}

@media screen and (max-width: 1200px) and (min-width: 1024px) {
    .nav-logged-header svg {
        display: none;
    }

    /* .otp-leasing-logo{
        width: 100px;
    } */
}

@media screen and (min-width: 1200px) {
    header {
        height: 94px;
    }

    .push-content {
        height: 150px;
    }
}


/** Mobile css */
/*
* Hamburgers
* @description Tasty CSS-animated hamburgers
* @author Jonathan Suh @jonsuh
* @site https://jonsuh.com/hamburgers
* @link https://github.com/jonsuh/hamburgers
*/
@media (max-width:1024px) {
    #main-nav {
        display: none;
    }

    #mobile-nav {
        display: block;
    }

    .header-menu-container.mob-user .nav-link {
        font-family: commonNovaKola, sans-serif;
        letter-spacing: 0.5px;
        color: #969696;
        padding: 5px !important;
    }

    .navbar-collapse {
        background: #F0F0F0;
        border-radius: 0 0 15px 15px;
    }

    .navbar-collapse.collapse.show {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    header {
        background: transparent;
    }

    .mobile-nav {
        margin: 10px 10px;
        box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 15%);
        border-radius: 15px;
        background: #fff;
    }

    .mobile-nav.navbar {
        padding: 0;
    }

    .compare-menu-button {
        height: 52px;
        width: 100% !important;
    }

    .mobile-nav .compare-menu-button svg {
        margin-right: 0;
        width: 30px;
        transition: border-radius .3s ease;
    }

    .compare-menu-button:hover {
        height: 52px;
    }

    .compare-menu-button:hover svg {
        width: 30px !important;
        fill: white !important;
    }

    .mobile-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }

    .compare-menu-button.nav-open {
        border-radius: 15px 15px 0 0;
    }

    .mobile-nav #header-ul li {
        border-bottom: 1px solid #ddd;
        margin: 0 10px;
    }

    .mobile-nav .header-menu-container {
        width: 100%;
    }

    .mobile-nav #header-ul li:first-child .nav-link {
        padding-left: .75rem;
        border-radius: 0;
    }

    .mobile-nav ul.dropdown-menu.show {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        background: transparent;
        transition: display .3s ease;
        top: 53% !important;
        width: 100%;
    }

    .mobile-nav ul.dropdown-menu li {
        width: auto;
        border: none !important;
    }

    .mobile-nav ul.dropdown-menu li a {
        padding: 0 0 1rem !important;
        font-size: 13px !important;
    }

    .mobile-nav.is-open::before {
        display: block;
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        width: 100vw;
        height: 100vh;
        background: #fff;
        opacity: .75;
        z-index: -1;
    }

    .hamburger {
        padding: 12px 15px;
        display: inline-block;
        cursor: pointer;
        transition-property: opacity, filter;
        transition-duration: 0.15s;
        transition-timing-function: linear;
        font: inherit;
        color: inherit;
        text-transform: none;
        background-color: transparent;
        border: 0;
        margin: 0;
        overflow: visible;
        z-index: 9999;
    }

    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
        background-color: #000;
    }

    .hamburger:hover, .hamburger:focus {
        background: unset;
        outline: unset;
    }

    .hamburger-box {
        width: 28px;
        height: 24px;
        display: flex;
        position: relative;
        padding-top: 2px;
    }

    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        width: 28px;
        height: 2.5px;
        background-color: #111;
        border-radius: 2px;
        position: absolute;
        transition-property: transform;
        transition-duration: 0.15s;
        transition-timing-function: ease;
    }

    .hamburger-inner::before, .hamburger-inner::after {
        content: "";
        display: block;
    }

    .hamburger-inner::before {
        top: -10px;
    }

    .hamburger-inner::after {
        bottom: -10px;
    }

    /** Slider */
    .hamburger--slider .hamburger-inner {
        top: 2px;
    }

    .hamburger--slider .hamburger-inner::before {
        top: 8px;
        transition-property: transform, opacity;
        transition-timing-function: ease;
        transition-duration: 0.15s;
    }

    .hamburger--slider .hamburger-inner::after {
        top: 16px;
    }

    .hamburger--slider.is-active .hamburger-inner {
        transform: translate3d(0, 10px, 0) rotate(45deg);
    }

    .hamburger--slider.is-active .hamburger-inner::before {
        transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
        opacity: 0;
    }

    .hamburger--slider.is-active .hamburger-inner::after {
        transform: translate3d(0, -16px, 0) rotate(-90deg);
    }

    .navbar-toggler.hamburger.is-active {
        background: #f0f0f0;
        width: 58px;
        height: 52px;
        opacity: 1;
        border-radius: 15px 0 0 0;
        transition: all .3s ease;
    }

    /* * Slider Reverse */
    .hamburger--slider-r .hamburger-inner {
        top: 2px;
    }

    .hamburger--slider-r .hamburger-inner::before {
        top: 10px;
        transition-property: transform, opacity;
        transition-timing-function: ease;
        transition-duration: 0.15s;
    }

    .hamburger--slider-r .hamburger-inner::after {
        top: 20px;
    }

    .hamburger--slider-r.is-active .hamburger-inner {
        transform: translate3d(0, 10px, 0) rotate(-45deg);
    }

    .hamburger--slider-r.is-active .hamburger-inner::before {
        transform: rotate(45deg) translate3d(5.71429px, -6px, 0);
        opacity: 0;
    }

    .hamburger--slider-r.is-active .hamburger-inner::after {
        transform: translate3d(0, -20px, 0) rotate(90deg);
    }

    .header-menu-container .nav-link.show {
        height: 80px;
    }

    .dropdown-mobile>ul {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        background: transparent;
        transition: display .3s ease;
        flex-wrap: wrap;
    }

    #header-ul {
        height: auto;
    }

    .dropdown-mobile {
        flex-direction: column;

    }

    #header-ul li.dropdown-mobile::after {
        margin-top: 0 !important;
        height: 0 !important;
    }

    .dropdown-menu {
        position: relative;
    }

    .compare-offers-main {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .header-menu-container .nav-link.show {
        height: auto;
    }
}