/* Small fixes from desktop and mobile verification. */

@media(max-width:380px){.site-header.is-scrolled .brand-text{display:none}}

/* Keep the complete navigation on tablets, including portrait iPads. */
@media(min-width:768px) and (max-width:1080px){
 .site-header .header-inner{gap:20px}
 .site-header .primary-nav{gap:22px}
 .site-header .header-cta{display:inline-flex;padding-inline:18px}
 .site-header.is-scrolled .brand-text{display:none}
}

/* Branded mobile drawer. */
.wft-menu-heading,.wft-menu-intro,.wft-menu-footer,.wft-menu-backdrop{display:none}
@media(max-width:767px){
 .site-header{backdrop-filter:none;-webkit-backdrop-filter:none}
 .site-header .wft-menu-backdrop{display:block;position:fixed;inset:0;width:100%;height:100vh;height:100dvh;margin:0;padding:0;border:0;background:#071f32a6;opacity:0;visibility:hidden;pointer-events:none;z-index:10000;transition:opacity .28s,visibility .28s}
 body.nav-open .site-header .wft-menu-backdrop{opacity:1;visibility:visible;pointer-events:auto}
 .site-header .primary-nav,body.nav-open .site-header .primary-nav{position:fixed;top:0;right:0;bottom:0;left:auto;width:min(440px,100%);height:100vh;height:100dvh;max-height:none;display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:28px 28px max(24px,env(safe-area-inset-bottom));border:0;border-radius:0;background:#123b54;color:#fff;overflow-y:auto;overscroll-behavior:contain;z-index:10001;box-shadow:-15px 0 50px #071f3240;transform:translateX(105%);opacity:1;visibility:hidden;pointer-events:none;transition:transform .32s cubic-bezier(.22,.68,0,1),visibility .32s}
 body.nav-open .site-header .primary-nav{transform:translateX(0);visibility:visible;pointer-events:auto}
 .site-header .wft-menu-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-shrink:0;margin-bottom:24px}
 .site-header .primary-nav .wft-menu-logo{padding:0;border-radius:0;background:transparent}
 .wft-menu-logo img{display:block;width:112px;height:112px;object-fit:contain;background:#fff;border-radius:50%;padding:3px}
 .wft-menu-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #ffffff50;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
 .wft-menu-close span{font-size:2rem;font-weight:400;line-height:1}
 .site-header .wft-menu-intro{display:block;margin-bottom:28px}
 .wft-menu-intro p{font-family:Fraunces,Georgia,serif;font-size:1.9rem;font-weight:700;letter-spacing:-.035em;line-height:1.12;color:#fac369;margin:0 0 10px;max-width:10ch}
 .wft-menu-intro>span{font-size:.78rem;line-height:1.6;color:#dce8ed}
 .site-header .primary-nav>a,.site-header .nav-dropdown-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 0;border-radius:0;border-bottom:1px solid #ffffff26;font-family:Fraunces,Georgia,serif;font-size:1.85rem;font-weight:700;line-height:1.15;color:#fff;background:transparent;text-align:left}
 .site-header .primary-nav>a:hover,.site-header .primary-nav>a:focus-visible,.site-header .nav-dropdown-toggle:hover,.site-header .nav-dropdown-toggle:focus-visible{background:transparent;color:#fac369}
 .site-header .nav-dropdown-menu{padding:12px 0 14px;background:transparent}
 .site-header .nav-dropdown-menu a{padding:10px 16px;font-size:.96rem;font-weight:600;color:#e1eaf0;line-height:1.5}
 .site-header .nav-dropdown-menu a:hover,.site-header .nav-dropdown-menu a:focus-visible{background:#ffffff0d;color:#fac369}
 .site-header .nav-dropdown-divider{background:#ffffff26}
 .site-header .wft-menu-footer{display:block;margin-top:auto;padding-top:32px;flex-shrink:0}
 .site-header .primary-nav .wft-menu-book{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-radius:999px;background:#fac369;color:#123b54;font-size:.9rem;font-weight:800}
 .site-header .wft-menu-footer p{margin:18px 0 0;text-align:center;font-size:.66rem;line-height:1.6;color:#c8d9e1}
 .site-header .primary-nav a:focus-visible,.site-header .primary-nav button:focus-visible{outline:2px solid #fac369;outline-offset:5px}
 html:not(.js) .site-header .primary-nav{position:static;width:100%;height:auto;transform:none;visibility:visible;pointer-events:auto;margin-top:20px}
 html:not(.js) .wft-menu-close{display:none}
}
@media(max-width:380px){.site-header .primary-nav,body.nav-open .site-header .primary-nav{padding:22px}.wft-menu-logo img{width:92px;height:92px}.site-header .wft-menu-heading{margin-bottom:22px}.wft-menu-intro p{font-size:1.7rem}.site-header .primary-nav>a,.site-header .nav-dropdown-toggle{font-size:1.65rem;padding-block:16px}}
@media(prefers-reduced-motion:reduce){.site-header .primary-nav,.site-header .wft-menu-backdrop{transition:none}}
@media(max-width:767px){
 .site-header .nav-dropdown-menu{position:static;top:auto;left:auto;right:auto;min-width:0;margin:0;border:0;border-radius:0;box-shadow:none;opacity:1;visibility:visible;transform:none;z-index:auto}
 .site-header .nav-dropdown{flex-shrink:0}
 .site-header .nav-dropdown-toggle{background:transparent!important}
 .site-header .primary-nav>a{flex-shrink:0}
}

/* Homepage featured tours - single full-width button */
.wft-featured-tours .wft-tour-actions {
    display: flex;
    width: 100%;
}

.wft-featured-tours .wft-tour-actions .wft-tour-btn {
    flex: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Homepage featured tours - gold booking buttons */
.wft-featured-tours .wft-tour-actions a {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;

    background: #FAC66D;
    color: #123B54;
    border: 2px solid #FAC66D;
    border-radius: 999px;

    font-weight: 800;
    text-decoration: none;
}

/* Hover effect */
.wft-featured-tours .wft-tour-actions a:hover {
    background: #F5B94E;
    border-color: #F5B94E;
    color: #123B54;
}

/* Codeguys website credit */
.wft-footer-credit {
    font-size: 0.8rem;
    white-space: nowrap;
}

.wft-footer-credit a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.wft-footer-credit a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .wft-footer-credit {
        white-space: normal;
    }
}

/* Codeguys footer credit - keep on one line */
.wft-footer-credit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.wft-footer-credit a {
    display: inline !important;
    width: auto;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.wft-footer-credit a:hover {
    text-decoration: underline;
}



/* Mobile: prevent booking bar overlapping cookie consent */

@media (max-width: 767px) {

    /* Hide booking bar while cookie banner is visible */
    body:has(.cgcc-banner:not([hidden]))
    .wft-mobile-booking-dock {
        display: none !important;
    }

    /* Keep cookie settings above the mobile booking bar */
    .cgcc-floating-settings:not([hidden]) {
        bottom: 90px !important;
    }

}

/* Raise copyright without moving Codeguys credit */
.wft-footer-bottom > p:first-child {
    position: relative;
    top: -12px !important;
    margin-bottom: 0;
}

.wft-footer-credit {
    position: relative;
    top: 0;
}


/* ==========================================
   HOME - EXPANDABLE EXPERIENCE CARDS
   ========================================== */

.wft-tour-finder-card {
    display: block !important;
    min-width: 0;
}

/* Entire card heading is clickable */
.wft-tour-finder-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
}

.wft-tour-finder-card > summary::-webkit-details-marker {
    display: none;
}

.wft-tour-finder-card > summary::marker {
    content: "";
}

.wft-tour-finder-card > summary .wft-tour-finder-card-copy {
    flex: 1;
    min-width: 0;
}

/* Arrow movement */
.wft-tour-finder-card .wft-tour-finder-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.wft-tour-finder-card[open] .wft-tour-finder-arrow {
    transform: rotate(90deg);
}

/* Expanded panel */
.wft-tour-finder-expanded {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #dbe2e7;
}

.wft-tour-finder-expanded > p {
    font-size: 14px;
    line-height: 1.6;
    color: #567082;
    margin: 0 0 14px;
}

/* Individual tour links */
.wft-tour-finder-expanded > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8edf0;
    color: #123b54;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wft-tour-finder-expanded > a:last-child {
    border-bottom: 0;
}

.wft-tour-finder-expanded > a span {
    color: #a76526;
    transition: transform 0.2s ease;
}

.wft-tour-finder-expanded > a:hover {
    color: #a76526;
}

.wft-tour-finder-expanded > a:hover span {
    transform: translateX(4px);
}

.wft-tour-finder-card > summary:focus-visible,
.wft-tour-finder-expanded > a:focus-visible {
    outline: 2px solid #a76526;
    outline-offset: 4px;
}

/* Mobile */
@media (max-width: 767px) {
    .wft-tour-finder-expanded {
        padding-top: 15px;
        margin-top: 15px;
    }

    .wft-tour-finder-expanded > a {
        font-size: 14px;
        padding: 11px 0;
    }
}

/* Experience finder: keep cards light on hover and expansion */

.wft-tour-finder-card:hover,
.wft-tour-finder-card:focus-within,
.wft-tour-finder-card[open] {
    background: #fffaf3 !important;
    color: #123b54 !important;
}

/* Keep headings and descriptions readable */
.wft-tour-finder-card:hover strong,
.wft-tour-finder-card[open] strong {
    color: #123b54 !important;
}

.wft-tour-finder-card:hover small,
.wft-tour-finder-card[open] small {
    color: #567082 !important;
}

/* Expanded description */
.wft-tour-finder-card .wft-tour-finder-expanded p {
    color: #567082 !important;
}

/* Expanded tour links */
.wft-tour-finder-card .wft-tour-finder-expanded a {
    color: #123b54 !important;
}

.wft-tour-finder-card .wft-tour-finder-expanded a:hover {
    color: #a76526 !important;
}

/* Keep arrow visible */
.wft-tour-finder-card:hover .wft-tour-finder-arrow,
.wft-tour-finder-card[open] .wft-tour-finder-arrow {
    color: #123b54 !important;
    border-color: #d6dee4 !important;
    background: #fac66d !important;
}


/* Permanently hide floating cookie settings button */

body button.cgcc-floating-settings[data-cgcc-floating-settings] {
    display: none !important;
}

/* iPhone Safari browser background */

@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {

        html,
        body {
            background-color: #123b54;
        }

    }
}

/* iPhone Safari — seamless mobile drawer background */

@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {

        html:has(body.nav-open),
        body.nav-open {
            background-color: #123b54 !important;
        }

        body.nav-open .site-header {
            background-color: #123b54 !important;
            border-color: #123b54 !important;
        }

    }
}

/* iPhone Safari — match top status bar to mobile header */

@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {

        body:not(.nav-open) .site-header {
            background: #f5f6f7 !important;
        }

    }
}

/* =========================================================
   GIFT CARD PROMOTION — FLOATING VOUCHERS
   ========================================================= */

.wft-promo-card-gifts {
    position: relative;
    overflow: hidden;
}

/* Floating gift voucher artwork */

.wft-gift-vouchers {
    position: absolute;
    top: 2px;
    right: 12px;
    width: clamp(150px, 55%, 260px);
    z-index: 1;
    pointer-events: none;

    transform: rotate(-5deg);

    transition: transform .45s cubic-bezier(.22,.68,0,1);
}

.wft-gift-vouchers img {
    display: block;
    width: 100%;
    height: auto;

    filter: drop-shadow(0 15px 12px rgba(73, 38, 8, .30));
}

/* Reserve space so the vouchers never obscure the text */

.wft-promo-card-gifts .wft-promo-content {
    position: relative;
    z-index: 2;
    padding-top: 125px;
}

/* Subtle movement on desktop */

@media (hover: hover) and (pointer: fine) {

    .wft-promo-card-gifts:hover .wft-gift-vouchers {
        transform: translateY(-5px) rotate(-2deg);
    }

}

/* Mobile layout */

@media (max-width: 767px) {

    .wft-gift-vouchers {
        top: 14px;
        right: 18px;
        width: 170px;
    }

    .wft-promo-card-gifts .wft-promo-content {
        padding-top: 125px;
    }

}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

    .wft-gift-vouchers {
        transition: none;
    }

}


/* =========================================================
   REUSABLE TOUR PHOTO GALLERY
   ========================================================= */

.wft-tour-gallery-section {
    padding: clamp(64px, 7vw, 112px) 0;
    background: #fffaf2;
    color: #304d5a;
}

.wft-tour-gallery-wrap {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

/* Section heading */

.wft-tour-gallery-split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.wft-tour-gallery-section .wft-tour-gallery-eyebrow {
    margin: 0 0 18px;
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #915112;
    line-height: 1.6;
}

.wft-tour-gallery-section h2 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 4.2vw, 4.3rem);
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: 0;
    color: #123b54;
}

.wft-tour-gallery-prose {
    font-size: 1.03rem;
    line-height: 1.85;
}

.wft-tour-gallery-prose p {
    margin: 0;
}

/* Five-image editorial gallery */

.wft-tour-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.wft-tour-gallery-grid figure {
    margin: 0;
    grid-column: span 2;
    min-width: 0;
}

.wft-tour-gallery-grid figure:first-child,
.wft-tour-gallery-grid figure:nth-child(2) {
    grid-column: span 3;
}

.wft-tour-gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
}

/* Tablet */

@media (max-width: 1080px) {

    .wft-tour-gallery-split {
        gap: 42px;
    }

}

/* Mobile */

@media (max-width: 760px) {

    .wft-tour-gallery-wrap {
        width: calc(100% - 36px);
    }

    .wft-tour-gallery-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wft-tour-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 30px;
    }

    .wft-tour-gallery-grid figure,
    .wft-tour-gallery-grid figure:first-child,
    .wft-tour-gallery-grid figure:nth-child(2) {
        grid-column: span 1;
    }

    .wft-tour-gallery-grid figure:last-child {
        grid-column: 1 / -1;
    }

    .wft-tour-gallery-grid img {
        border-radius: 16px;
    }

}

@media (max-width: 520px) {

    .wft-tour-gallery-section h2 {
        font-size: 2.7rem;
    }

}
