/* ============================================================================
   legacy-chrome.css
   Self-contained styles for ONLY the new site header + footer.
   Safe to load on legacy Joomla pages WITHOUT critical.css / main.css.
   Contains: :root vars, header/navigation rules, footer.css, legacy overrides.
   Header-nav rules preferred from main.css (latest live version).
   ============================================================================ */

/* ===== ROOT VARIABLES (from critical.css) ===== */
:root {
    --primary: #80c01d;
    --primary-dark: #6ba219;
    --secondary: #117C9C;
    --dark: #1D1B1B;
    --light: #f5fafd;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease
}

/* ===== SCOPE ISOLATION: hermetic reset so leaked Joomla ELEMENT rules (nav, ul, a, img, h*, p...)
   cannot bleed into ANY chrome descendant. `.bcs-chrome *` (0,1,0) beats bare element selectors
   like `nav` (0,0,1); our own scoped rules below re-apply on top. ===== */
.bcs-chrome,
.bcs-chrome *:where(:not(svg, svg *)) {
    all: revert;
}

/* ===== BASE ENVIRONMENT (from critical.css) =====
   Reproduce the new-site generic base INSIDE the chrome so header/footer inherit
   exactly the same typography/reset they get on /contact (Joomla base does not apply here). */
.bcs-chrome,
.bcs-chrome *,
.bcs-chrome *::before,
.bcs-chrome *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.bcs-chrome header,
.bcs-chrome footer {
    box-sizing: border-box;   /* restore after all:revert */
}
.bcs-chrome {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    text-align: left;
}
.bcs-chrome h1,
.bcs-chrome h2,
.bcs-chrome h3 {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}
.bcs-chrome h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}
.bcs-chrome p {
    margin-bottom: 1rem;
    font-size: .95rem;
}
.bcs-chrome img {
    max-width: 100%;
    height: auto;
}
.bcs-chrome a {
    text-decoration: none;
    color: var(--primary);
}
.bcs-chrome ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

/* ===== HEADER / NAVIGATION (from main.css) ===== */
.bcs-chrome header {
    background-color: rgba(42, 95, 116, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bcs-chrome header.header-sticky {
    background-color: rgba(42, 95, 116, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bcs-chrome header.header-sticky .logo img {
    height: 40px;
    transition: height 0.3s ease;
}

.bcs-chrome header.header-sticky .navbar {
    padding: 12px 0;
    transition: padding 0.3s ease;
}

.bcs-chrome header.header-sticky .nav-links a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.bcs-chrome header.header-sticky .nav-links a:hover {
    background: rgba(128, 192, 29, 0.15);
    color: #80c01d;
    transform: translateY(-1px);
}

.bcs-chrome header.header-sticky .nav-links a::after {
    display: none;
}

.bcs-chrome header.header-sticky .btn-primary {
    padding: 8px 20px;
    font-size: 13px;
    background: linear-gradient(135deg, #80c01d, #9fd122);
    border: none;
    box-shadow: 0 4px 12px rgba(128, 192, 29, 0.3);
    transform: scale(0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bcs-chrome header.header-sticky .btn-primary:hover {
    background: linear-gradient(135deg, #72a91a, #80c01d);
    box-shadow: 0 6px 20px rgba(128, 192, 29, 0.4);
    transform: scale(1) translateY(-2px);
}

.bcs-chrome header.header-sticky .mobile-toggle {
    background: rgb(227 227 227 / 20%);
    border-radius: 6px;
    padding: 8px;
    transition: all 0.3s ease;
}

.bcs-chrome header.header-sticky .mobile-toggle:hover {
    transform: scale(1.05);
}

.bcs-chrome header.header-sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 192, 29, 0.5), transparent);
}

.bcs-chrome header.header-sticky .navbar {
    position: relative;
}

.bcs-chrome header.header-sticky .navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.5;
}

@keyframes headerSticky {
    from {
        box-shadow: none;
        background-color: rgba(42, 95, 116, 0.97);
    }
    to {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        background-color: rgba(42, 95, 116, 0.95);
    }
}

.bcs-chrome header.header-sticky {
    animation: headerSticky 0.3s ease forwards;
}
.bcs-chrome header.header-sticky .nav-links li {
    margin-left: 0;
}

.bcs-chrome header {
    will-change: transform, background-color, box-shadow;
}

.bcs-chrome header:not(.header-sticky) {
    will-change: auto;
}
.bcs-chrome .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.bcs-chrome .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    display: flex;
}

.bcs-chrome .logo img {
    height: 50px;
    border-radius: 0;
    transition: height 0.1s ease;
}

.bcs-chrome .nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bcs-chrome .nav-links li {
    margin-left: 25px;
}

.bcs-chrome .nav-links a {
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: none !important;   /* block Joomla `nav ul li a:hover` gray inset underline leak */
    text-shadow: none !important;
}

.bcs-chrome .nav-links a:hover {
    color: var(--primary);
}

.bcs-chrome .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.bcs-chrome .nav-links a:hover::after {
    width: 100%;
}

.bcs-chrome .contact-info {
 display: flex;
    flex-direction: column;
}

.bcs-chrome .contact-info a {
    display: flex;
    align-items: center;
}

.bcs-chrome .mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--white);
    background: #e2e2e257;
    width: 40px;
    text-align: center;
    border-radius: 4px;
}

/* ===== BURGER ICON (base + fill from critical.css, vertical-align fix from main.css) ===== */
.bcs-chrome .menu-icon {
    padding: 5px;
    fill: #fff
}

.bcs-chrome header.header-sticky .menu-icon {
    padding: 0px;
}

.bcs-chrome .menu-icon {
    vertical-align: middle;
}

/* ===== BUTTONS (header CTA) ===== */
.bcs-chrome .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    border: none;
}

.bcs-chrome .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.bcs-chrome .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== HEADER / NAV RESPONSIVE (from main.css) ===== */
@media (max-width: 992px) {
    .bcs-chrome header.header-sticky .nav-links a:hover {
        transform: translateX(5px) scale(1.02);
    }
}

@media (max-width: 768px) {
    .bcs-chrome header.header-sticky .navbar {
        padding: 6px 0px;
    }
}

@media (max-width: 992px) {
    .bcs-chrome .navbar {
        padding: 15px 0;
    }
    .bcs-chrome .mobile-toggle {
        display: block;
        transition: all 0.3s ease;
    }

    .bcs-chrome .nav-links {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background-color: rgba(42, 95, 116, 0.97);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
    }

    .bcs-chrome .nav-links.active {
        max-height: 500px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bcs-chrome .nav-links li {
        margin: 0 0 15px;
    }

    .bcs-chrome .contact-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .bcs-chrome .nav-links {
        background-color: rgb(42 95 116);
    }
}

@media (max-width: 576px) {
    .bcs-chrome .btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}

/* ===== FOOTER (footer.css, verbatim) ===== */
.bcs-chrome footer {
    background-color: #1f3341;
    color: var(--white);
    padding: 70px 0 0
}

.bcs-chrome .footercolumns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px
}

.bcs-chrome .footerallsection {
    display: grid;
    grid-template-columns: 1.8fr 3fr 1fr;
    gap: 40px;
    margin-bottom: 50px
}

@media (max-width:768px) {
    .bcs-chrome footer {
        padding: 41px 13px 0
    }

    .bcs-chrome .footerallsection {
        grid-template-columns: 1fr
    }
}

@media (max-width:576px) {
    .bcs-chrome h3 {
        font-size: 1.4rem;
        line-height: 1.6rem
    }
}

.bcs-chrome .imgmember {
    height: 40px;
    width: auto;
    filter: brightness(.9) contrast(1.1);
    border-radius: 4px
}

.bcs-chrome .rdalogo {
    height: 38px
}

.bcs-chrome .astalogo {
    height: 42px
}

.bcs-chrome .nlalogo {
    height: 36px
}

.bcs-chrome .payment-associations-container {
    margin-top: 50px;
    padding: 35px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .02) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start
}

.bcs-chrome .payment-section-split {
    text-align: center
}

.bcs-chrome .payment-title-split {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .9
}

.bcs-chrome .payment-grid-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 7px;
    margin: 15px 0 auto
}

.bcs-chrome .payment-item-split {
    background: #ffffffe6;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px
}

.bcs-chrome .payment-item-split img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(.95)
}

.bcs-chrome .associations-section-split {
    text-align: center
}

.bcs-chrome .associations-title-split {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .9
}

.bcs-chrome .associations-grid-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 7px;
    margin-top: 15px
}

.bcs-chrome .association-item-split {
    background: rgb(255 255 255 / 90%);
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center
}

.bcs-chrome .association-item-split .imgmember {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(.9) contrast(1.1);
    border-radius: 4px
}

.bcs-chrome .association-item-split .rdalogo {
    height: 42px
}

.bcs-chrome .association-item-split .astalogo {
    height: 45px
}

.bcs-chrome .association-item-split .nlalogo {
    height: 40px
}

.bcs-chrome .payment-item-split img[src*=paypal] {
    height: 32px
}

.bcs-chrome .payment-item-split img[src*=bank-transfer],
.bcs-chrome .payment-item-split img[src*=wire-transfer] {
    height: 30px
}

.bcs-chrome .payment-item-split img[src*=wise] {
    height: 35px
}

.bcs-chrome .payment-item-split img[src*=ach] {
    height: 28px
}

@media screen and (max-width:768px) {
    .bcs-chrome .imgmember {
        height: 32px
    }

    .bcs-chrome .rdalogo {
        height: 30px
    }

    .bcs-chrome .astalogo {
        height: 34px
    }

    .bcs-chrome .nlalogo {
        height: 28px
    }

    .bcs-chrome .payment-associations-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 25px 20px;
        margin-top: 40px;
        flex-direction: column;
        align-items: center
    }

    .bcs-chrome .associations-title-split,
.bcs-chrome .payment-title-split {
        font-size: 14px;
        margin-bottom: 20px
    }

    .bcs-chrome .payment-grid-split {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px
    }

    .bcs-chrome .associations-grid-split {
        grid-template-columns: 1fr;
        gap: 7px
    }

    .bcs-chrome .payment-item-split {
        padding: 12px;
        min-height: 50px
    }

    .bcs-chrome .payment-item-split img {
        height: 28px
    }

    .bcs-chrome .association-item-split {
        padding: 12px;
        min-height: 55px
    }

    .bcs-chrome .association-item-split .imgmember {
        height: 35px
    }

    .bcs-chrome .association-item-split .rdalogo {
        height: 32px
    }

    .bcs-chrome .association-item-split .astalogo {
        height: 35px
    }

    .bcs-chrome .association-item-split .nlalogo {
        height: 30px
    }

    .bcs-chrome .payment-item-split img[src*=paypal] {
        height: 26px
    }

    .bcs-chrome .payment-item-split img[src*=bank-transfer],
.bcs-chrome .payment-item-split img[src*=wire-transfer] {
        height: 24px
    }

    .bcs-chrome .payment-item-split img[src*=wise] {
        height: 28px
    }

    .bcs-chrome .payment-item-split img[src*=ach] {
        height: 22px
    }
}

@media screen and (max-width:480px) {
    .bcs-chrome .payment-associations-container {
        gap: 25px;
        padding: 20px 15px
    }

    .bcs-chrome .payment-grid-split {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .bcs-chrome .payment-item-split {
        padding: 10px;
        min-height: 45px
    }

    .bcs-chrome .payment-item-split img {
        height: 24px
    }

    .bcs-chrome .association-item-split {
        padding: 10px;
        min-height: 50px
    }

    .bcs-chrome .association-item-split .imgmember {
        height: 30px
    }

    .bcs-chrome .payment-item-split img[src*=paypal] {
        height: 22px
    }

    .bcs-chrome .payment-item-split img[src*=bank-transfer],
.bcs-chrome .payment-item-split img[src*=wire-transfer] {
        height: 20px
    }

    .bcs-chrome .payment-item-split img[src*=wise] {
        height: 24px
    }

    .bcs-chrome .payment-item-split img[src*=ach] {
        height: 18px
    }
}

.bcs-chrome a[href*="facebook.com"]:hover,
.bcs-chrome a[href*="instagram.com"]:hover,
.bcs-chrome a[href*="linkedin.com"]:hover,
.bcs-chrome a[href*="youtube.com"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bcs-chrome a[href*="tripadvisor.com"]:hover,
.bcs-chrome a[href*="facebook.com"]:hover,
.bcs-chrome a[href*="google.com/maps"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ===== LEGACY PAGE OVERRIDES ===== */
/* Wrapper generates no box, so the new header/footer sit directly in the page flow. */
.bcs-chrome {
    display: contents;
}
/* New header is FIXED (out of flow) exactly like the old Joomla header chrome was, so the legacy
   body (#topform margin:210, #promoimg, #maincontentarea) positions EXACTLY as the original. */
/* Header: in flow (relative) at rest so the body positions exactly like the original; once the
   scroll JS adds .header-sticky (>100px) it becomes fixed to the viewport — reliable on every page
   (unlike position:sticky, which mis-behaves on some layouts). */
.bcs-chrome header {
    position: relative !important;
    z-index: 3000 !important;         /* above #topform (z-index:2000) */
    height: auto !important;          /* block Joomla bare `header{height:125px!important}` leaking in on mobile */
    background: #2a5f74 !important;   /* solid teal bar */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.bcs-chrome header.header-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}
/* remove Joomla `nav ul` margin-right:11px leak so the menu sits exactly like /contact */
.bcs-chrome .nav-links {
    margin: 0 !important;
}
.bcs-chrome footer {
    clear: both !important;   /* clear the legacy #maincontent float so the new footer is full-width below */
}

/* ===== MINIMAL GLUE (the only body-touching rules) — restore what the old header/footer provided,
   without changing the body's appearance:
   - #topform lost its stacking context (old #mainheader had z-index:2000) → re-assert it so the
     hero title/form show above #promoimg (z-index:10), exactly like the original. ===== */
#topform {
    position: relative;
    z-index: 2000;   /* same stacking the old #mainheader gave it, so the hero form + badges stay
                        ABOVE the content card (#maincontentarea z-index:100), exactly like the original */
}
/* Neutralize old Joomla (JCH) bare footer element rules so the new footer is full-width & dark,
   and clears the legacy #maincontent float so it drops full-width below the body. */
.bcs-chrome footer {
    background-image: none !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
}
/* Header/footer inner container width (scoped so it never affects the Joomla body) */
.bcs-chrome header > .container,
.bcs-chrome footer > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===== Green CTA strip (old-footer element, re-added between body and the new footer;
   wrapped in .bcs-chrome so it's reset + styled cleanly, never affects the Joomla body) ===== */
.bcs-chrome .promotextbottom {
    clear: both;               /* drop below the floated legacy #maincontent, don't wrap around it */
    max-width: 1240px;
    margin: 0 auto;
    background: #80c01d;
    color: #fff;
    text-align: center;
    padding: 16px 15px;
    font-size: 18px;
    line-height: 1.5;
}
.bcs-chrome .promotextbottom p {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.bcs-chrome .promotextbottom a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ===== MOBILE glue: badge to the hero top-right (like the germany original), slightly more
   compact mobile header bar. ===== */
@media (max-width: 992px) {
    .bcs-chrome .navbar {
        padding: 12px 0 !important;
    }
    /* only the 2026 badge on mobile (like the germany original), pinned to the hero top-right */
    #topform .travellerschoisebadge.tripadvisorbadge2024,
    #topform .travellerschoisebadge.tripadvisorbadge2025 {
        display: none !important;
    }
    #topform .travellerschoisebadge.tripadvisorbadge2026 {
        top: 6px !important;
        right: 8px !important;
    }
    /* the hero image had margin-top:90 (for the old 125px header); our new header is shorter,
       so drop it to remove the white gap between the header and the hero */
    #promoimg .custom {
        margin-top: 0 !important;
    }
}

/* ===== Kill stray horizontal scroll (the async TripAdvisor rating widget iframe can overflow the
   viewport on mobile). Page-level only; does not change the visible layout. ===== */
/* Constrain the async TripAdvisor rating widget so its iframe can't overflow the viewport
   (no overflow-x on html/body — that would break position:sticky on the header). */
.TA_cdsratingsonlynarrow,
[id^="TA_cdsratingsonlynarrow"],
.tripadvisor {
    max-width: 100% !important;
    overflow: hidden !important;
}
.TA_cdsratingsonlynarrow iframe,
[id^="TA_cdsratingsonlynarrow"] iframe {
    max-width: 100% !important;
}
