/* ============================================================
   BIKES TO BOOK — PREMIUM HEADER V3.1
   Independent override layer. Load AFTER style.css.
   ============================================================ */

:root {
    --btb-header-navy: #071426;
    --btb-header-navy-soft: #10213d;
    --btb-header-gold: #d7a64a;
    --btb-header-orange: #ff671f;
}

/* Reset only the new header module so the old theme cannot collapse it. */
#masthead.btb-premium-header *,
#masthead.btb-premium-header *::before,
#masthead.btb-premium-header *::after {
    box-sizing: border-box;
}

#masthead.btb-premium-header .top-header {
    display: block;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.11);
    background: linear-gradient(90deg, rgba(7,20,38,.96), rgba(16,33,61,.91));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#masthead.btb-premium-header .top-header .container {
    max-width: 1170px;
}

#masthead.btb-premium-header .btb-topbar-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    min-height: 48px;
    gap: 20px;
}

#masthead.btb-premium-header .btb-contact-capsule {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

#masthead.btb-premium-header .btb-contact-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    margin: 0;
    padding: 0 11px;
    color: #fff !important;
}

#masthead.btb-premium-header a.btb-contact-item {
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

#masthead.btb-premium-header a.btb-contact-item:hover {
    color: #fff !important;
    opacity: .9;
    transform: translateY(-1px);
}

#masthead.btb-premium-header .btb-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
}

#masthead.btb-premium-header .btb-contact-icon i {
    margin: 0;
    color: #fff !important;
    font-size: 12px;
}

#masthead.btb-premium-header .btb-contact-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    line-height: 1.15;
}

#masthead.btb-premium-header .btb-contact-copy small {
    display: block;
    margin: 0 0 2px;
    color: rgba(255,255,255,.63) !important;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.15;
    text-transform: uppercase;
}

#masthead.btb-premium-header .btb-contact-copy strong {
    display: block;
    overflow: hidden;
    margin: 0;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#masthead.btb-premium-header .btb-contact-divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 28px;
    margin: 0;
    background: rgba(255,255,255,.14);
}

#masthead.btb-premium-header .btb-status-dot {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39d98a;
    box-shadow: 0 0 0 4px rgba(57,217,138,.13), 0 0 14px rgba(57,217,138,.55);
}

#masthead.btb-premium-header .btb-topbar-actions,
#masthead.btb-premium-header .btb-social-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0;
    padding: 0;
}

#masthead.btb-premium-header .btb-topbar-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 9px;
}

#masthead.btb-premium-header .btb-social-nav {
    gap: 7px;
}

#masthead.btb-premium-header .btb-social-button,
#masthead.btb-premium-header .btb-cart-button {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 50% !important;
    color: #fff !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.15);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

#masthead.btb-premium-header .btb-social-button i,
#masthead.btb-premium-header .btb-cart-button i {
    display: block;
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

#masthead.btb-premium-header .btb-social-button:hover,
#masthead.btb-premium-header .btb-cart-button:hover {
    color: #fff !important;
    transform: translateY(-3px) scale(1.04);
    filter: saturate(1.08);
}

#masthead.btb-premium-header .btb-facebook {
    background: linear-gradient(145deg,#1877f2,#0b57bd) !important;
}

#masthead.btb-premium-header .btb-instagram {
    background: radial-gradient(circle at 28% 110%,#ffd600 0 15%,#ff7a00 31%,#ff0169 56%,#d300c5 76%,#7638fa 100%) !important;
}

#masthead.btb-premium-header .btb-tripadvisor {
    background: linear-gradient(145deg,#34e0a1,#138a66) !important;
}

#masthead.btb-premium-header .btb-facebook:hover {
    box-shadow: 0 11px 25px rgba(24,119,242,.38);
}

#masthead.btb-premium-header .btb-instagram:hover {
    box-shadow: 0 11px 25px rgba(225,48,108,.38);
}

#masthead.btb-premium-header .btb-tripadvisor:hover {
    box-shadow: 0 11px 25px rgba(52,224,161,.34);
}

#masthead.btb-premium-header .btb-action-separator {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 28px;
    margin: 0 2px;
    background: rgba(255,255,255,.16);
}

#masthead.btb-premium-header .btb-cart-wrap {
    position: relative;
    display: block;
    margin: 0;
}

#masthead.btb-premium-header .btb-cart-button {
    background: linear-gradient(145deg,#e2b95e,#a97824) !important;
}

#masthead.btb-premium-header .btb-cart-button:hover {
    box-shadow: 0 11px 25px rgba(215,166,74,.35);
}

#masthead.btb-premium-header .btb-cart-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    left: auto !important;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin: 0;
    padding: 0 5px;
    border: 2px solid #071426;
    border-radius: 999px;
    background: #ff4d55 !important;
    color: #fff !important;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

#masthead.btb-premium-header .btb-cart-badge:not(:empty) {
    display: inline-flex;
}

#masthead.btb-premium-header #cart-badge-div {
    display: none !important;
}

#masthead.btb-premium-header .btb-language-menu {
    position: relative;
    display: block;
    margin: 0 0 0 1px !important;
    padding: 0 !important;
}

#masthead.btb-premium-header .btb-language-menu ul {
    position: relative;
    display: block;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

#masthead.btb-premium-header .btb-language-menu li {
    display: block;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
    background: transparent !important;
}

#masthead.btb-premium-header .btb-language-menu li::before,
#masthead.btb-premium-header .btb-language-menu li::after {
    display: none !important;
    content: none !important;
}

#masthead.btb-premium-header .btb-language-menu a {
    display: flex !important;
    align-items: center !important;
    min-height: 38px;
    gap: 8px;
    margin: 0 !important;
    padding: 7px 12px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

#masthead.btb-premium-header .btb-language-menu img {
    display: block;
    width: 19px !important;
    height: 19px !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}

#masthead.btb-premium-header .btb-language-menu .fa-chevron-down {
    margin: 0 !important;
    color: rgba(255,255,255,.67) !important;
    font-size: 8px !important;
    transition: transform .2s ease;
}

#masthead.btb-premium-header .btb-language-menu .language-item {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1002;
    display: block !important;
    min-width: 145px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

#masthead.btb-premium-header .btb-language-menu .language-item a {
    justify-content: flex-start !important;
    border-radius: 12px !important;
    background: rgba(7,20,38,.98) !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.25);
}

#masthead.btb-premium-header .btb-language-menu ul:hover .language-item,
#masthead.btb-premium-header .btb-language-menu ul:focus-within .language-item {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

#masthead.btb-premium-header .btb-language-menu ul:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Bottom header/navigation */
#masthead.btb-premium-header .bottom-header {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

#masthead.btb-premium-header .site-identity img {
    margin-top: -6px;
}

#masthead.btb-premium-header .main-navigation .navigation > ul > li {
    padding: 0 14px;
}

#masthead.btb-premium-header .main-navigation .navigation > ul > li > a {
    padding: 27px 0;
    letter-spacing: .025em;
}

#masthead.btb-premium-header .main-navigation .navigation > ul > li > a::before {
    position: absolute;
    right: 50%;
    bottom: 18px;
    left: 50%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,var(--btb-header-gold),var(--btb-header-orange));
    content: "";
    opacity: 0;
    transition: left .24s ease,right .24s ease,opacity .24s ease;
}

#masthead.btb-premium-header .main-navigation .navigation > ul > li:hover > a::before,
#masthead.btb-premium-header .main-navigation .navigation > ul > li.current-menu-item > a::before {
    right: 0;
    left: 0;
    opacity: 1;
}

@media screen and (min-width: 992px) {
    #masthead.btb-premium-header.fixed-header .bottom-header {
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 14px 36px rgba(15,23,42,.12);
    }

    #masthead.btb-premium-header.fixed-header .main-navigation .navigation > ul > li > a {
        color: #10213d;
    }

    #masthead.btb-premium-header.fixed-header .main-navigation .navigation > ul > li.current-menu-item > a {
        color: #ff671f;
    }
}

/* Compatibility with premium hero pages */
body.btb-premium-hero-page #masthead.btb-premium-header .btb-social-button i,
body.btb-premium-hero-page #masthead.btb-premium-header .btb-cart-button i,
body.btb-premium-hero-page.btb-header-scrolled #masthead.btb-premium-header .btb-social-button i,
body.btb-premium-hero-page.btb-header-scrolled #masthead.btb-premium-header .btb-cart-button i {
    color: #fff !important;
}

body.btb-premium-hero-page.btb-header-scrolled #masthead.btb-premium-header .top-header {
    background: rgba(7,20,38,.97) !important;
    border-color: rgba(255,255,255,.09) !important;
}

body.btb-premium-hero-page.btb-header-scrolled #masthead.btb-premium-header .btb-contact-copy small,
body.btb-premium-hero-page.btb-header-scrolled #masthead.btb-premium-header .btb-contact-copy strong,
body.btb-premium-hero-page.btb-header-scrolled #masthead.btb-premium-header .btb-language-menu span {
    color: #fff !important;
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    #masthead.btb-premium-header .btb-contact-item {
        padding: 0 8px;
    }

    #masthead.btb-premium-header .btb-contact-copy strong {
        max-width: 145px;
        font-size: 10px;
    }

    #masthead.btb-premium-header .main-navigation .navigation > ul > li {
        padding: 0 10px;
    }
}

@media screen and (max-width: 991px) {
    #masthead.btb-premium-header .top-header {
        display: block !important;
        padding: 8px 0;
        background: rgba(7,20,38,.98);
    }

    #masthead.btb-premium-header .btb-topbar-shell {
        justify-content: center !important;
        min-height: 40px;
    }

    #masthead.btb-premium-header .btb-topbar-actions {
        width: 100%;
        justify-content: center !important;
    }

    #masthead.btb-premium-header .bottom-header {
        padding: 10px 0;
    }
}

@media screen and (max-width: 575px) {
    #masthead.btb-premium-header .btb-social-nav {
        gap: 5px;
    }

    #masthead.btb-premium-header .btb-social-button,
    #masthead.btb-premium-header .btb-cart-button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px;
    }

    #masthead.btb-premium-header .btb-language-menu a {
        min-height: 34px;
        padding: 6px 9px !important;
    }

    #masthead.btb-premium-header .btb-language-menu .selected span {
        display: none !important;
    }

    #masthead.btb-premium-header .btb-language-menu img {
        width: 18px !important;
        height: 18px !important;
    }
}
