/* Replacement for react-fast-marquee (infinite logo ticker) */
.rfm-marquee-container {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
}

.rfm-marquee {
    flex: 0 0 auto;
    min-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    animation: rfm-scroll 40s linear infinite;
}

.rfm-right .rfm-marquee {
    animation-direction: reverse;
}

.rfm-pause-hover:hover .rfm-marquee {
    animation-play-state: paused;
}

@keyframes rfm-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Native date inputs inside the hero search box */
input.search-input.datepicker[type="date"] {
    background: transparent;
    border: 0;
    width: 100%;
    font: inherit;
    color: inherit;
}

/* WhatsApp Floating Button (Left Side) */
.wa {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.wa::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0.7;
    animation: wa-pulse 2.2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.wa:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.wa svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.wa:hover svg {
    transform: scale(1.06);
}

.wa-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    right: auto;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    right: auto;
    transform: translateY(-50%);
    border-width: 5px 6px 5px 0;
    border-style: solid;
    border-color: transparent #111111 transparent transparent;
}

.wa:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 640px) {
    .wa {
        width: 52px;
        height: 52px;
        left: 18px;
        right: auto;
        bottom: 18px;
    }

    .wa svg {
        width: 28px;
        height: 28px;
    }

    .wa-tooltip {
        display: none;
    }
}

/* ---------- Shared Dealer Footer (.ftr) ---------- */
.ftr {
    background: #161C2B;
    color: #ffffff;
    padding: 72px 0 28px;
    font-family: 'Hanken Grotesk', 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ftr .wrap {
    width: min(1200px, 100% - 40px);
    margin-inline: auto;
}

.ftr__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.ftr h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: 0;
}

.ftr ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ftr a {
    text-decoration: none;
    color: #AEB6C6;
    transition: color 0.2s ease;
}

.ftr a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ftr p {
    color: #AEB6C6;
    margin-top: 14px;
    max-width: 26em;
    font-size: 15.5px;
    line-height: 1.6;
}

.ftr__bar {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #AEB6C6;
    font-size: 14.5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 991px) {
    .ftr__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ftr__grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   FLOATING VERTICAL QUICK-ACTION BAR (RIGHT-SIDE DOCKED)
   Exact match to reference: 4 red stacked squares with white icons
   ===================================================================== */
.floating-quickbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    background: #e52d27;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 4px 16px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.floating-quickbar .quickbar-btn {
    width: 48px;
    height: 48px;
    background-color: rgb(171, 24, 231);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.floating-quickbar .quickbar-btn:first-child {
    border-top-left-radius: 4px;
}

.floating-quickbar .quickbar-btn:last-child {
    border-bottom: none;
    border-bottom-left-radius: 4px;
}

.floating-quickbar .quickbar-btn:hover {
    background-color: #8e0fc1;
}

.floating-quickbar .quickbar-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.2s ease;
}

.floating-quickbar .quickbar-btn:hover svg {
    transform: scale(1.12);
}

/* Flyout Tooltip to the left */
.floating-quickbar .quickbar-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #1e293b;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    font-family: inherit;
}

.floating-quickbar .quickbar-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #1e293b;
}

.floating-quickbar .quickbar-btn:hover .quickbar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .floating-quickbar {
        top: auto;
        bottom: 92px;
        transform: none;
    }

    .floating-quickbar .quickbar-btn {
        width: 42px;
        height: 42px;
    }

    .floating-quickbar .quickbar-btn svg {
        width: 20px;
        height: 20px;
    }

    .floating-quickbar .quickbar-tooltip {
        display: none;
    }
}