/*
 * Tour detail — styles.
 *
 * One tour: photo gallery, description, itinerary, meeting and pick-up points,
 * prices and an availability calendar. Its Book button opens the booking page.
 *
 * Shortcode: [exb_experience_detail]
 * Page:      /<tour detail base>/<tour slug>/
 *
 * To change it: Settings → Experiences & Booking → Templates → CSS.
 * Edits made directly in this file are lost on the next plugin update.
 */
.exd *,
    .exd *::before,
    .exd *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .exd {
        font-family: 'Plus Jakarta Sans', sans-serif;
        color: #1b1c1a;
        background: #fbf9f5;
    }

    .exd .ms {
        font-family: 'Material Symbols Outlined';
        font-size: 18px;
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
    }

    .exd-svic {
        width: 17px;
        height: 17px;
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0;
    }

    .exd-meta-item .exd-svic {
        color: #af1d5a;
    }

    .exd-hero-eyebrow .exd-svic {
        color: #af1d5a;
        width: 14px;
        height: 14px;
    }

    .exd-variant-badge .exd-svic {
        width: 14px;
        height: 14px;
    }

    .exd-share-btn .exd-svic {
        width: 20px;
        height: 20px;
    }

    /* ===== QUICK FACTS STRIP ===== */
    .exd-facts-wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 14px 32px 0;
        box-sizing: border-box;
    }

    .exd-facts {
        display: flex;
        flex-wrap: wrap;
        background: #fff;
        border: 1px solid rgba(223, 190, 197, 0.3);
        border-radius: 14px;
        padding: 4px 2px;
        box-shadow: 0 4px 14px rgba(88, 65, 70, 0.04);
    }

    .exd-fact {
        flex: 1 1 130px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 14px 18px;
        border-right: 1px solid rgba(223, 190, 197, 0.25);
        min-width: 0;
    }

    .exd-fact:last-child {
        border-right: none;
    }

    .exd-fact-ic {
        color: #af1d5a;
        flex-shrink: 0;
        display: flex;
    }

    .exd-fact-ic .exd-svic {
        width: 20px;
        height: 20px;
    }

    .exd-fact-txt {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .exd-fact-lbl {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #b09aa0;
    }

    .exd-fact-val {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #1b1c1a;
        line-height: 1.25;
    }

    @media(max-width:640px) {
        .exd-facts-wrap {
            padding-left: 20px;
            padding-right: 20px;
        }

        .exd-fact {
            flex: 1 1 44%;
            border-right: none;
            padding: 12px 14px;
        }
    }

    .exd-loading,
    .exd-error {
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        color: #584146;
        font-size: 16px;
    }

    .exd-error h2 {
        font-size: 24px;
        font-weight: 700;
        color: #1b1c1a;
        margin: 0;
    }
    .exd-error p { margin: 0; max-width: 440px; text-align: center; line-height: 1.55; }
    /* The way on from a dead end: the tour list, or a retry when the page could
       not tell. A link or a button, styled alike. */
    .exd-error-cta {
        display: inline-block;
        margin-top: 8px;
        padding: 12px 22px;
        border: 0;
        border-radius: 10px;
        background: #af1d5a;
        color: #fff !important;
        font: 600 15px/1.2 'Inter', sans-serif;
        text-decoration: none !important;
        cursor: pointer;
    }
    .exd-error-cta:hover { background: #8e1449; }
    .exd-error-cta:focus-visible { outline: 3px solid rgba(175, 29, 90, .28); outline-offset: 2px; }

    /* ===== HERO GALLERY ===== */
    .exd-hero-gallery {
        background: #FBF9F5;
    }

    .exd-hg-desktop {
        padding: 32px 32px;
        max-width: 1200px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .exd-hero-gallery-grid {
        display: grid;
        height: 52vh;
        min-height: 320px;
        gap: 4px;
        overflow: hidden;
        border-radius: 16px;
    }

    .exd-hero-gallery-grid.cols-1 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .exd-hero-gallery-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }

    .exd-hero-gallery-grid.cols-3 {
        grid-template-columns: 3fr 2fr;
        grid-template-rows: 1fr 1fr;
    }

    .exd-hero-gallery-grid.cols-3 .exd-hg-cell:first-child {
        grid-row: 1 / span 2;
    }

    .exd-hero-gallery-grid.cols-5 {
        grid-template-columns: 3fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .exd-hero-gallery-grid.cols-5 .exd-hg-cell:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .exd-hg-cell {
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    /* Two classes: Elementor's `.elementor img { height: auto }` loads after
       this file with the same weight and would shrink the photo in its cell. */
    .exd-hero-gallery .exd-hg-cell img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.35s ease;
    }

    .exd-hero-gallery .exd-hg-cell:hover img {
        transform: scale(1.04);
    }

    .exd-hg-more {
        position: absolute;
        inset: 0;
        background: rgba(27, 28, 26, 0.52);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #fff;
        cursor: pointer;
    }

    .exd-hg-more-count {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .exd-hg-more-label {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        opacity: 0.85;
    }

    .exd-hg-mobile {
        display: none;
        position: relative;
        height: 54vw;
        min-height: 220px;
        max-height: 480px;
        overflow: hidden;
        background: #1b1c1a;
    }

    .exd-hg-mob-track {
        display: flex;
        height: 100%;
        transition: transform 0.42s ease;
    }

    .exd-hg-mob-slide {
        flex: 0 0 100%;
        height: 100%;
    }

    .exd-hero-gallery .exd-hg-mob-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .exd-hg-mob-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(4px);
        border: none;
        cursor: pointer;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.85);
        z-index: 3;
        transition: background 0.18s;
    }

    .exd-hg-mob-arrow:hover {
        background: rgba(0, 0, 0, 0.42);
    }

    .exd-hg-mob-arrow-prev {
        left: 12px;
    }

    .exd-hg-mob-arrow-next {
        right: 12px;
    }

    .exd-hg-mob-dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 3;
    }

    .exd-hg-mob-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background 0.2s;
    }

    .exd-hg-mob-dot.active {
        background: #fff;
    }

    /* ===== HERO INFO STRIP ===== */
    .exd-hero-info {
        background: #fbf9f5;
        padding: 24px 32px 20px;
        border-bottom: 1px solid rgba(223, 190, 197, 0.15);
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 1200px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .exd-hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(175, 29, 90, 0.09);
        padding: 4px 12px;
        border-radius: 100px;
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #af1d5a;
        width: fit-content;
    }

    .exd-hero-eyebrow .ms {
        font-size: 14px;
        color: #af1d5a;
    }

    .exd-hero-h1 {
        font-size: 40px;
        font-weight: 800;
        color: #1b1c1a;
        letter-spacing: -1.2px;
        line-height: 1.08;
    }

    .exd-hero-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .exd-share-wrap {
        position: relative;
        flex-shrink: 0;
    }

    .exd-share-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(88, 65, 70, 0.18);
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #584146;
        transition: background .2s, border-color .2s;
        padding: 0;
    }

    @media (hover: hover) and (pointer: fine) {
        .exd-share-btn:hover {
            background: rgb(245, 238, 240);
            border-color: rgba(88, 65, 70, 0.3);
        }
    }

    .exd-share-btn:focus {
        outline: none;
    }

    .exd-share-btn:focus-visible {
        outline: 2px solid #af1d5a;
        outline-offset: 2px;
    }

    .exd-share-btn:focus-visible {
        outline: 2px solid rgba(175, 29, 90, 0.4);
        outline-offset: 2px;
    }

    .exd-share-btn.exd-copied {
        background: rgba(175, 29, 90, 0.12);
        border-color: rgba(175, 29, 90, 0.35);
        color: #af1d5a;
    }

    .exd-share-btn .ms {
        font-size: 20px;
    }

    .exd-share-tooltip {
        position: absolute;
        top: -40px;
        right: 0;
        background: #1b1c1a;
        color: #fff;
        font-size: 12px;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transform: translateY(4px);
        transition: opacity .2s, transform .2s;
        pointer-events: none;
    }

    .exd-share-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 14px;
        border: 5px solid transparent;
        border-top-color: #1b1c1a;
    }

    .exd-share-tooltip.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    @media (max-width:600px) {
        .exd-hero-title-row {
            align-items: flex-start;
        }

        .exd-share-btn {
            width: 38px;
            height: 38px;
        }

        .exd-share-btn .ms {
            font-size: 18px;
        }
    }

    /* ===== LIGHTBOX ===== */
    .exd-lb {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(15, 12, 12, 0.96);
        flex-direction: column;
        align-items: stretch;
    }

    .exd-lb.open {
        display: flex;
    }

    .exd-lb-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        flex-shrink: 0;
    }

    .exd-lb-counter {
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
    }

    .exd-lb-close {
        background: none;
        border: none;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.7);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 22px;
        line-height: 1;
        transition: background 0.15s, color 0.15s;
    }

    .exd-lb-close:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .exd-lb-stage {
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: #1e1e1e;
        padding: 0 72px;
        overflow: hidden;
    }

    .exd-lb-main-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 6px;
        user-select: none;
        display: block;
    }

    .exd-lb-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.85);
        cursor: pointer;
        transition: background 0.18s, color 0.18s;
        z-index: 2;
    }

    .exd-lb-arrow:hover {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }

    .exd-lb-arrow-prev {
        left: 12px;
    }

    .exd-lb-arrow-next {
        right: 12px;
    }

    .exd-lb-thumbs {
        display: flex;
        gap: 6px;
        padding: 10px 20px;
        overflow-x: auto;
        flex-shrink: 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        background: #141414;
    }

    .exd-lb-thumbs::-webkit-scrollbar {
        height: 4px;
    }

    .exd-lb-thumbs::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .exd-lb-thumb {
        flex-shrink: 0;
        width: 72px;
        height: 50px;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.18s, opacity 0.18s;
        opacity: 0.45;
    }

    .exd-lb-thumb.active {
        border-color: #af1d5a;
        opacity: 1;
    }

    .exd-lb-thumb:hover {
        opacity: 0.8;
    }

    .exd-lb .exd-lb-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ===== META BAR ===== */
    .exd-meta-bar {
        background: #fbf9f5;
        padding: 16px 32px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 24px;
        border-bottom: 1px solid rgba(223, 190, 197, 0.12);
        max-width: 1200px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .exd-meta-item {
        display: flex;
        align-items: center;
        gap: 7px;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #584146;
    }

    .exd-meta-item .ms {
        color: #af1d5a;
        font-size: 17px;
    }

    .exd-meta-sep {
        color: rgba(88, 65, 70, 0.25);
        font-size: 14px;
    }

    /* ===== LAYOUT ===== */
    .exd-layout {
        display: grid;
        grid-template-columns: 3fr 2fr;
        align-items: start;
        gap: 40px;
        padding: 48px 32px 80px;
        background: #fbf9f5;
        max-width: 1200px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .exd-left {
        min-width: 0;
    }

    .exd-right {
        min-width: 0;
    }

    .exd-section {
        margin-bottom: 36px;
    }

    .exd-section-title {
        font-size: 20px;
        font-weight: 700;
        color: #1b1c1a;
        letter-spacing: -0.3px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(223, 190, 197, 0.18);
    }

    .exd-content-block {
        margin-bottom: 20px;
    }

    :root {
        --otd-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    }

    /* The sections under the tab row collapse. Native <details>, so the
       keyboard, find-in-page and screen readers get it for free and there is no
       state to keep in sync.

       Styled as the card accordion the live Oishii page uses — white card, soft
       pink hairline, the border warming and a shadow appearing on open — rather
       than the underlined row this first shipped as. Values lifted from
       `wp/live/experience-detail.html` (.exd-acc-item / .exd-acc-head /
       .exd-acc-body) so the two read as the same component.

       All closed on load: Oishii's own page opens its first accordion and
       closes the rest (measured on /tours/private-yanaka), and here the thing
       that was open — the overview — is already inside the first tab. */
    .exd-acc {
        background: #f8f7f5;
        border: 1px solid #e7e4dc;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
        transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

    .exd-acc:hover {
        background: #fdfdfc;
        border-color: rgba(175, 29, 90, 0.32);
        box-shadow: 0 3px 12px rgba(88, 65, 70, 0.05);
    }

    .exd-acc[open] {
        background: #fff;
        border-color: rgba(175, 29, 90, 0.35);
        box-shadow: 0 4px 16px rgba(88, 65, 70, 0.06);
    }

    .exd-acc > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 20px;
        margin: 0;
        border: none;
        cursor: pointer;
        list-style: none;
        font-size: 16px;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: -0.2px;
        transition: color .18s ease;
    }

    .exd-acc > summary::-webkit-details-marker {
        display: none;
    }

    .exd-acc > summary:hover,
    .exd-acc > summary:focus {
        background: transparent;
    }

    .exd-acc:hover > summary,
    .exd-acc[open] > summary {
        color: #af1d5a;
    }

    .exd-acc[open] > summary {
        border-bottom: 1px solid #f2efea;
        margin-bottom: 16px;
    }

    /* The card sets `overflow: hidden`, so a ring on the summary is clipped to
       the card edge and reads as two stray lines rather than a box. Put it on
       the card instead, where it can sit outside. The summary rule stays as the
       fallback for a browser without :has() — dropping it there would leave no
       focus indicator at all. */
    .exd-acc > summary:focus {
        outline: none;
    }

    .exd-acc > summary:focus-visible {
        outline: 2px solid #af1d5a;
        outline-offset: -2px;
    }

    @supports selector(:has(*)) {
        .exd-acc > summary:focus-visible {
            outline: none;
        }

        .exd-acc:has(> summary:focus-visible) {
            outline: 2px solid #af1d5a;
            outline-offset: 2px;
        }
    }

    /* The same filled caret the live page draws, and the same 180deg turn. */
    .exd-acc > summary::after {
        content: "";
        flex: none;
        width: 22px;
        height: 22px;
        background: #af1d5a;
        opacity: 0.8;
        transition: transform .22s ease, opacity .18s ease;
        -webkit-mask: var(--otd-caret) center / 22px 22px no-repeat;
        mask: var(--otd-caret) center / 22px 22px no-repeat;
    }

    .exd-acc:hover > summary::after,
    .exd-acc[open] > summary::after {
        opacity: 1;
    }

    .exd-acc[open] > summary::after {
        transform: rotate(180deg);
    }

    .exd-acc > :not(summary) {
        padding: 0 20px 20px;
    }

    .exd-acc .exd-content-block {
        margin-bottom: 0;
    }

    .exd-content-block h4 {
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #af1d5a;
        font-family: 'Inter', sans-serif;
        margin-bottom: 8px;
    }

    .exd-content-block p {
        font-size: 16px;
        color: #000000;
        line-height: 1.75;
        margin-bottom: 12px;
    }

    .exd-content-block a {
        color: #af1d5a;
        text-decoration: none;
    }

    .exd-content-block a:hover {
        text-decoration: underline;
    }

    .exd-content-block ul,
    .exd-content-block ol {
        padding-left: 20px;
        margin-bottom: 12px;
    }

    .exd-content-block li {
        font-size: 16px;
        color: #000000;
        line-height: 1.75;
        margin-bottom: 4px;
    }

    /* ===== CONTENT TABS =====
       One tab per content section, the way Beauty of Japan's tour pages read:
       Description / Itinerary / Pick-up sit side by side and the guest picks
       one, instead of unrolling six stacked panels to find the one they want.

       It replaced an accordion, which is why the tab bar SCROLLS rather than
       wraps: the labels come from GTMS (`SECTION_TITLES` plus whatever a block
       titles itself), so their number and width are not ours to predict. A
       wrapping bar turns into three ragged rows of buttons at 375px; a
       scrolling one stays one row at every width, and the fade on the right
       edge is what says there is more to the right. */
    .exd-tabs {
        background: #fff;
        border: 1px solid rgba(223, 190, 197, 0.22);
        border-radius: 12px;
        overflow: hidden;
    }

    .exd-tabbar {
        display: flex;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(223, 190, 197, 0.3);
        background: #fbf9f5;
        /* The fade is a mask, not a gradient overlay, so it works over the
           tab bar's own background without a second stacking layer. Both edges
           fade by default and initTabs removes the side that has nothing more
           to show — a fade on an edge you have already scrolled to reads as a
           disabled tab rather than as "keep going". */
        --fade-l: transparent;
        --fade-r: transparent;
        -webkit-mask-image: linear-gradient(to right, var(--fade-l) 0, #000 28px, #000 calc(100% - 28px), var(--fade-r) 100%);
        mask-image: linear-gradient(to right, var(--fade-l) 0, #000 28px, #000 calc(100% - 28px), var(--fade-r) 100%);
    }

    /* Chrome/Safari: the bar is scrolled by drag, wheel and the arrow keys, so
       the scrollbar itself is noise inside a 46px-tall strip. */
    .exd-tabbar::-webkit-scrollbar {
        display: none;
    }

    /* Scrolled hard against an edge: nothing hidden that way, so no fade.
       `fits` is both at once, the common case on a wide desktop. */
    .exd-tabbar.at-start { --fade-l: #000; }
    .exd-tabbar.at-end   { --fade-r: #000; }

    .exd-tabbar.fits {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .exd-tab {
        flex: 0 0 auto;
        padding: 14px 18px;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        white-space: nowrap;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: #6d5a60 !important;
        letter-spacing: -0.2px;
        transition: color 0.15s, border-color 0.15s, background 0.15s;
    }

    .exd-tab:hover,
    .exd-tab:focus-visible {
        background: #fff;
        color: #000 !important;
    }

    /* The dark box around the selected tab is the THEME's, not the browser's:
       Twenty Twenty-Five ships `:where(.wp-site-blocks :focus){outline-width:2px;
       outline-style:solid}`. It sets no colour, so the ring inherits
       currentColor — black on the selected tab — and it keys on `:focus`, which
       a mouse click satisfies. A `:focus-visible` rule can never override it for
       a mouse user, however specific, because it simply does not match.
       So: drop it on :focus, put our own back on :focus-visible. Never just
       drop it — a tab row is keyboard-navigable and the ring is the only thing
       telling a keyboard user where they are. */
    .exd-tab:focus {
        outline: none;
    }

    .exd-tab:focus-visible {
        outline: 2px solid #af1d5a;
        outline-offset: -2px;
        border-radius: 8px 8px 0 0;
    }

    .exd-tab[aria-selected="true"] {
        background: #fff;
        color: #000 !important;
        font-weight: 700;
        border-bottom-color: #af1d5a;
    }

    .exd-panel {
        display: none;
        padding: 20px;
    }

    .exd-panel.active {
        display: block;
    }

    .exd-panel .exd-content-block {
        margin-bottom: 0;
    }

    /* The h4 inside a panel is the VALUE's own title (e.g. "Your Tokyo, your
       way"), not a repeat of the tab label — the label is the section's key.
       Toned down from the pink uppercase h4 so it reads as a subheading. */
    .exd-panel .exd-content-block h4 {
        font-size: 15px;
        font-weight: 700;
        text-transform: none;
        letter-spacing: 0;
        color: #3a2b30;
        font-family: 'Plus Jakarta Sans', sans-serif;
        margin-bottom: 6px;
    }

    @media (max-width: 640px) {
        .exd-tab {
            padding: 13px 14px;
            font-size: 14px;
        }

        .exd-panel {
            padding: 16px;
        }
    }

    .exd-variant-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }


    /* THEME HARDENING. Hello Biz ships `.page-content a { text-decoration:
         underline }` — one element selector more specific than a bare `.exd-variant-item`,
         so the button's own `text-decoration: none` loses and the variant link grows an
         underline. Scoping under the block root wins the cascade without reaching
         for !important, and it is the same class of bug as the focus ring: the
         block was relying on the theme's defaults rather than stating its own. */
    .exd .exd-variant-item {
        text-decoration: none;
    }

    .exd-variant-item {
        background: #fff;
        border-radius: 10px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid rgba(223, 190, 197, 0.15);
        text-decoration: none;
        transition: border-color 0.18s, box-shadow 0.18s;
    }

    .exd-variant-item:hover {
        border-color: rgba(175, 29, 90, 0.3);
        box-shadow: 0 4px 12px rgba(88, 65, 70, 0.06);
    }

    .exd-variant-item-left {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .exd-variant-name {
        font-size: 14px;
        font-weight: 600;
        color: #1b1c1a;
    }

    .exd-variant-label {
        font-size: 12px;
        color: #584146;
        font-family: 'Inter', sans-serif;
    }

    .exd-variant-badge {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 3px 10px;
        border-radius: 100px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .exd-variant-badge.private {
        background: rgba(175, 29, 90, 0.08);
        color: #af1d5a;
    }

    .exd-variant-badge.shared {
        background: rgba(88, 65, 70, 0.07);
        color: #584146;
    }

    .exd-variant-badge .ms {
        font-size: 14px;
    }

    /* ===== BOOKING CARD ===== */
    .exd-bk-card {
        background: #fff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 20px 40px rgba(88, 65, 70, 0.08);
        position: sticky;
        top: 80px;
    }

    .exd-bk-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 18px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(223, 190, 197, 0.15);
    }

    .exd-cal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .exd-cal-nav {
        background: none;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
        color: #000000;
        font-size: 20px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
    }

    @media (hover: hover) and (pointer: fine) {
        .exd-cal-nav:hover:not([disabled]) {
            background: rgba(34, 197, 94, 0.18);
            color: #15803d;
        }
    }

    .exd-cal-nav:focus {
        outline: none;
    }

    .exd-cal-nav:focus-visible {
        outline: 2px solid #af1d5a;
        outline-offset: 2px;
    }

    .exd-cal-nav:focus-visible {
        outline: 2px solid rgba(175, 29, 90, 0.4);
        outline-offset: 2px;
    }

    .exd-cal-nav[disabled] {
        color: #94a3b8;
        cursor: default;
    }

    .exd-cal-nav[disabled]:hover {
        background: rgba(148, 163, 184, 0.18);
    }

    .exd-cal-month {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 15px;
        font-weight: 700;
        color: #1b1c1a;
    }

    .exd-cal-dows {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        margin-bottom: 4px;
    }

    .exd-cal-dow {
        text-align: center;
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 600;
        color: #b09aa0;
        padding: 4px 0;
    }

    .exd-cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }

    .exd-cal-day {
        aspect-ratio: 1;
        width: 95%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: #000000;
        cursor: pointer;
        border: none;
        background: transparent;
        transition: background 0.15s, color 0.15s;
        padding: 0;
    }

    .exd-cal-day:hover:not([disabled]):not(.exd-cal-empty) {
        background: rgba(34, 197, 94, 0.18);
        color: #15803d;
    }

    .exd-cal-dis:hover {
        background: rgba(148, 163, 184, 0.18);
        color: #94a3b8;
    }

    .exd-cal-today {
        font-weight: 700;
        color: #af1d5a;
        background: rgba(175, 29, 90, 0.12);
    }

    .exd-cal-sel {
        background: #af1d5a !important;
        color: #fff !important;
        font-weight: 700;
    }

    .exd-cal-dis {
        color: #dfbec5;
        cursor: default;
    }

    .exd-cal-empty {
        cursor: default;
    }

    .exd-ts-section {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(223, 190, 197, 0.15);
    }

    .exd-ts-label {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #584146;
        margin-bottom: 10px;
    }

    .exd-ts-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .exd-ts-chip {
        padding: 7px 15px;
        border-radius: 8px;
        border: 1.5px solid rgba(223, 190, 197, 0.35);
        background: #fff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #000000;
        cursor: pointer;
        transition: border-color 0.15s, background 0.15s, color 0.15s;
    }

    .exd-ts-chip:hover {
        border-color: #22c55e;
        background: rgba(34, 197, 94, 0.12);
        color: #15803d;
    }

    .exd-ts-active {
        background: #af1d5a !important;
        color: #fff !important;
        border-color: #af1d5a !important;
    }

    /* Adults, Children and Infants on one row of three fixed columns. A tour
       that gates Children/Infants hides them, and Adults keeps its own third
       rather than stretching across the card. */
    .exd-pax-section {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(223, 190, 197, 0.15);
    }

    .exd-pax-label {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #584146;
        margin-bottom: 8px;
    }

    .exd-spinner {
        display: flex;
        align-items: center;
        border: 1.5px solid rgba(223, 190, 197, 0.4);
        border-radius: 8px;
        overflow: hidden;
        height: 38px;
    }

    .exd-spin-btn {
        flex-shrink: 0;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 12px;
        height: 100%;
        color: #584146;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
    }

    @media (hover: hover) and (pointer: fine) {
        .exd-spin-btn:hover:not([disabled]) {
            background: rgba(34, 197, 94, 0.18);
            color: #15803d;
        }
    }

    .exd-spin-btn:focus {
        outline: none;
    }

    .exd-spin-btn:focus-visible {
        outline: 2px solid #af1d5a;
        outline-offset: 2px;
    }

    .exd-spin-btn:focus-visible {
        outline: 2px solid rgba(175, 29, 90, 0.4);
        outline-offset: 2px;
    }

    .exd-spin-btn[disabled]:hover {
        background: rgba(148, 163, 184, 0.18);
        color: #94a3b8;
    }

    .exd-spin-btn[disabled] {
        opacity: 0.3;
        cursor: default;
    }

    .exd-spin-val {
        flex: 1;
        text-align: center;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #1b1c1a;
    }

    .exd-price-box {
        display: none;
        margin-top: 16px;
        border-radius: 10px;
        background: #fbf9f5;
        border: 1px solid rgba(223, 190, 197, 0.25);
        overflow: hidden;
    }

    .exd-price-box.visible {
        display: block;
    }

    .exd-price-box.loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

    .exd-price-loading {
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: #b09aa0;
        font-style: italic;
    }

    .exd-price-tbl-head {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 8px 14px;
        border-bottom: 1px solid rgba(223, 190, 197, 0.25);
    }

    .exd-price-tbl-head span {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #b09aa0;
    }

    .exd-price-tbl-head span:last-child {
        text-align: right;
    }

    .exd-price-item {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 8px 14px;
        border-bottom: 1px solid rgba(223, 190, 197, 0.12);
        align-items: center;
    }

    .exd-price-item:last-of-type {
        border-bottom: none;
    }

    .exd-price-item-name {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #1b1c1a;
    }

    .exd-price-item-total {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 14px;
        color: #000000;
        text-align: right;
    }

    .exd-price-sum {
        padding: 8px 14px;
        border-top: 1px solid rgba(223, 190, 197, 0.25);
    }

    .exd-price-sum-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
    }

    .exd-price-sum-label {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        color: #584146;
    }

    .exd-price-sum-val {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #584146;
    }

    .exd-price-divider {
        height: 1px;
        background: rgba(223, 190, 197, 0.25);
        margin: 4px 0;
    }

    .exd-price-tax-note {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        color: #b09aa0;
        font-style: italic;
        padding: 4px 0;
    }

    .exd-price-total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 14px;
        border-top: 1px solid rgba(223, 190, 197, 0.25);
        background: #fff;
    }

    .exd-price-total-label {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #1b1c1a;
    }

    .exd-price-total-val {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 24px;
        font-weight: 800;
        color: #af1d5a;
    }

    .exd-book-btn {
        display: block;
        width: 100%;
        margin-top: 12px;
        padding: 14px;
        border-radius: 10px;
        border: none;
        background: #af1d5a;
        color: #fff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.18s;
    }

    .exd-book-btn:hover:not([disabled]) {
        background: #d03972;
    }

    .exd-book-btn[disabled] {
        background: #eae8e4;
        color: #b09aa0;
        cursor: default;
    }

    .exd-book-note {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 12px;
        color: #b09aa0;
        text-align: center;
        margin-top: 10px;
    }

    .exd-sched-note {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        color: #b09aa0;
        text-align: center;
        margin-top: 8px;
        font-style: italic;
    }

    /* ===== RESPONSIVE ===== */
    @media(max-width:1400px) {
        .exd-hg-desktop {
            padding: 0 160px;
        }
    }

    @media(max-width:1200px) {
        .exd-hg-desktop {
            padding: 0 80px;
        }

        .exd-right {
            width: 380px;
        }
    }

    @media(max-width:1100px) {
        .exd-hg-desktop {
            padding: 0 40px;
        }

        .exd-hero-h1 {
            font-size: 32px;
        }

        .exd-hero-info {
            padding: 20px 40px 16px;
        }

        .exd-meta-bar {
            padding-left: 40px;
            padding-right: 40px;
        }

        .exd-layout {
            padding-left: 40px;
            padding-right: 40px;
            gap: 28px;
        }

        .exd-right {
            width: 360px;
        }
    }

    @media(max-width:860px) {
        .exd-layout {
            grid-template-columns: 1fr;
        }

        .exd-right {
            width: 100%;
        }

        .exd-bk-card {
            position: static;
        }
    }

    @media(max-width:640px) {
        .exd-hg-desktop {
            display: none;
        }

        .exd-hg-mobile {
            display: block;
        }

        .exd-hero-h1 {
            font-size: 26px;
        }

        .exd-hero-info {
            padding: 16px 20px 12px;
        }

        .exd-meta-bar {
            padding-left: 20px;
            padding-right: 20px;
        }

        .exd-layout {
            padding: 24px 20px 48px;
            gap: 24px;
        }

        .exd-lb-stage {
            padding: 0 48px;
        }

        .exd-lb-arrow-prev {
            left: 4px;
        }

        .exd-lb-arrow-next {
            right: 4px;
        }
    }

    /* Age band under each counter ("Ages : 0 - 2"), from the operator's
       biz.guest_age_ranges. Empty when the tenant has no band. */
    .exd-pax-age {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        color: #8a7278;
        margin: -4px 0 6px;
    }
    .exd-pax-age:empty { display: none; }
    /* Three counters share a 360px card: narrower buttons leave the number room. */
    .exd-pax-section .exd-spin-btn { padding: 0 8px; }

    /* Pick-up / drop-off on the booking card: a switch per leg, as on the
       agent dashboard; switched on, a free-text location and a transport option. */
    .exd-pudo {
        display: grid;
        gap: 10px;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid rgba(223, 190, 197, 0.15);
    }
    /* Drawn like the booking page's Edit popup (2026-10-14): a tab with a
       round check, an icon and the leg's name sits on top of the card that
       holds its fields. Off, the leg folds to the tab alone and reads as an
       offer: "Add pick-up service". */
    .exd-pudo-leg { min-width: 0; }
    .exd-pudo-sw {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        min-width: 50%;
        padding: 7px 12px;
        border: 1px solid #e4e4de;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: #777;
    }
    .exd-pudo-leg.on .exd-pudo-sw { margin-bottom: -1px; border-bottom-color: #fff; border-radius: 10px 10px 0 0; color: #1a1a1a; }
    .exd-pudo-sw input {
        appearance: none;
        -webkit-appearance: none;
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin: 0;
        border: 1.5px solid #c8c8c0;
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
    }
    .exd-pudo-sw input:checked {
        border-color: #af1d5a;
        background: #af1d5a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat;
    }
    .exd-pudo-sw input:disabled { cursor: default; }
    .exd-pudo-sw input:focus-visible { outline: 2px solid rgba(175, 29, 90, 0.28); outline-offset: 2px; }
    .exd-pudo-ic { display: inline-flex; color: #555; }
    .exd-pudo-note { margin: 0; font-size: 11px; color: #8a7278; }
    .exd-pudo-body { display: grid; gap: 6px; padding: 10px 12px 12px; border: 1px solid #e4e4de; border-radius: 0 10px 10px 10px; background: #fff; }
    .exd-pudo-lbl { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: #584146; margin-top: 4px; }
    .exd-pudo-body input,
    .exd-pudo-body select {
        width: 100%;
        box-sizing: border-box;
        height: 38px;
        padding: 0 10px;
        border: 1.5px solid rgba(223, 190, 197, 0.4);
        border-radius: 8px;
        font: inherit;
        font-size: 14px;
        background: #fff;
    }
    .exd-pudo-body input:focus,
    .exd-pudo-body select:focus { outline: 2px solid #af1d5a; outline-offset: -1px; }
    .exd-req { color: #c0392b; }
    .exd-pudo-err { margin: 2px 0 0; font-size: 12px; color: #c0392b; }
    .exd-pudo-err[hidden] { display: none; }

    /* Price rows as on the booking page's rail: a quiet label on the left, the
       detail and its tax-inclusive amount in bold on the right. */
    .exd-price-item-label {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 13px;
        color: #555;
    }
    .exd-price-item .exd-price-item-total {
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    /* THEME HARDENING: hover and focus colours. A theme's button:hover /
       button:focus (Hello Biz: white text on a #c36 fill) and a:hover (#336)
       weigh more than one class, so a state that sets only a background or
       only a border takes the theme's colour for the rest: the share button
       filled pink, the variant link turned navy, and a focused calendar day,
       arrow, time, guest count or Book button went white on pink (Chrome keeps
       focus on a clicked button; the keyboard always gives it). Each keeps its
       resting colours while focused and not hovered; a day's own states
       (today, unavailable, chosen) keep theirs. */
    @media (hover: hover) and (pointer: fine) {
        .exd-share-btn:hover {
            color: #584146;
        }
    }

    .exd-share-btn:focus:not(:hover) {
        background: #fff;
        color: #584146;
    }

    .exd .exd-variant-item,
    .exd .exd-variant-item:hover,
    .exd .exd-variant-item:focus {
        color: inherit;
    }

    .exd-cal-nav:focus:not(:hover):not([disabled]),
    .exd-cal-day:focus:not(:hover):not(.exd-cal-today):not(.exd-cal-dis):not(.exd-cal-sel) {
        background: none;
        color: #000000;
    }

    .exd-cal-dis:focus {
        background: none;
        color: #dfbec5;
    }

    .exd-cal-today:focus:not(:hover) {
        background: rgba(175, 29, 90, 0.12);
        color: #af1d5a;
    }

    .exd-ts-chip:focus:not(:hover) {
        background: #fff;
        color: #000000;
    }

    .exd-spin-btn:focus:not(:hover) {
        background: none;
        color: #584146;
    }

    .exd-book-btn:focus:not([disabled]) {
        background: #af1d5a;
        color: #fff;
    }

    .exd-book-btn:hover:not([disabled]) {
        background: #d03972;
    }

    .exd-book-btn[disabled]:hover,
    .exd-book-btn[disabled]:focus {
        background: #eae8e4;
        color: #b09aa0;
    }
