/* =====================================================================
   Red Thread — Tour Landing Page stylesheet
   Composition:
     1) this scaffold (web page layout — the app's TourDetailPage is
        app-only chrome; this adapts its visual language to a normal,
        responsive document)
     2) component families extracted from the app's unified_styles.css
     3) web-only additions (sticky section nav, buy bar, footer, modal, map)
   ===================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.page {
    max-width: 760px;
    margin: 0 auto;
    /* room for the fixed buy bar */
    padding-bottom: 150px;
}

:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}
/* EXTRACTED from src/mobile/ui/src/styles/unified_styles.css — do not edit
   by hand beyond the marked sections; regenerate via extract_tour_css.py */



/* =====================================================
   2. FONT FACES
   ===================================================== */

@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/tour/fonts/raleway-v36-latin_latin-ext-300.woff2') format('woff2');
}



@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/tour/fonts/raleway-v36-latin_latin-ext-regular.woff2') format('woff2');
}



@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/tour/fonts/raleway-v36-latin_latin-ext-500.woff2') format('woff2');
}



@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    src: url('/assets/tour/fonts/raleway-v36-latin_latin-ext-600.woff2') format('woff2');
}



@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/tour/fonts/raleway-v36-latin_latin-ext-700.woff2') format('woff2');
}



@font-face {
    font-display: swap;
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/tour/fonts/Caveat-Regular.woff2') format('woff2');
}

/* ---- design tokens (:root, light theme) ---- */
/* =====================================================
   RED THREAD - UNIFIED STYLES
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & PLATFORM DETECTION
   ===================================================== */

/* Base CSS Variables - Web Platform (Default) */
:root {
    --bg-color: #eaeff4;
    --card-bg: #FFFFFF;
    --accent-red: #b84f41;
    --accent-red-glow: rgba(186, 83, 69, 0.25);
    --accent-red-light: #b1594d;
    --accent-success: #33c27b;
    --text-dark: #4A4A4A;
    --text-light: #797979;
    --text-darkest: #000000;
    --border-color: #c9cdd1;
    --shadow-color: rgba(185, 175, 165, 0.2);
    --distance-box-bg: #d8d8d8;
    --font-main: 'Raleway', sans-serif;
    --font-handwriting: 'Caveat';
    --transition-speed: 0.5s;
    --animation-curve: cubic-bezier(0.2, 0.8, 0.2, 1);
    /* For header transparency */
    --bg-color-rgb: 235, 239, 244;
    /* Layout dimensions - default for web */
    --header-height: 80px;
    --bottom-nav-height: 80px;
    --bottom-nav-actual-height: 80px;
    --central-nav-button-bottom: 10px;
    --skeleton-color: #dfe4ef;
    --skeleton-highlight: rgba(255, 255, 255, 0.65);


    /* weather forecast icon colors */
    --sun: #e79e30;
    --light-cloud:#b6bdc5;
    --flash: #e39611;
    --dark-cloud:#828b96;
    --rain:#0a5ad4;
    --snow: #78afc5;
    --moon: #72b9d5;

}



.content-padding {
    padding: 1.5rem;
}



.theme-section {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}



.itinerary-content-padding {
    padding: 0 1.5rem;
}



/* Pills Navigation */
.pills-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 0.5rem;

}



.pills-nav-wrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
}



.pill-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    background-color: transparent;
    cursor: pointer;
    z-index: 2;
    transition: color 0.4s ease;
}



.pill-button.active {
    color: white;
}



.pill-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 20px;
    z-index: 1;
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}



.tab-content {
    display: none;
}



.tab-content.active {
    display: block;
  
}



.tour-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
     gap: 0rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}





.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-dark);
}



.tour-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}



.tour-meta-item .star-icon {
    fill: currentColor;
    stroke: none;
}



.tour-intro {
    padding: 1rem 1rem 1.25rem;
    position: relative;
    padding-top: calc(1rem + 2.75rem);
}



.tour-intro__back {
    position: absolute;
    top: calc(0.35rem + var(--safe-area-top, 0px));
    left: 0.9rem;
    z-index: 3;
    display: flex;
}



.tour-intro__back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



.tour-intro__back-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}



.tour-intro--has-image .tour-intro__back-button {
    background: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    color: #ffffff;
}



.tour-intro__back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}



.tour-intro--has-image {
    position: relative;
    overflow: hidden;
}



.tour-intro--has-image::before,
.tour-intro--has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}



.tour-intro--has-image::before {
    background-image: var(--tour-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: saturate(0.65) brightness(0.8);
    transform: scale(1.05);
    z-index: 0;
}



.tour-intro--has-image::after {
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(5, 7, 12, 0.55) 0%,
        rgba(5, 7, 12, 0.35) 30%,
        rgba(var(--bg-color-rgb), 0.75) 65%,
        rgba(var(--bg-color-rgb), 0.95) 85%,
        rgba(var(--bg-color-rgb), 1) 100%
    );
}



.tour-intro--has-image > * {
    position: relative;
    z-index: 2;
}



.tour-intro--has-image > .tour-intro__back {
    position: absolute;
    z-index: 3;
}



.tour-intro--has-image .tour-detailpage-title {
    color: #ffffff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}



.tour-intro--has-image .tour-meta-item p {
    color: var(--text-dark);
    text-shadow: none;
}



.tour-intro--has-image .tour-meta-item:not(:last-child)::after {
    color: var(--text-light);
}



.tour-intro--has-image .tour-meta--detail {
    color: var(--text-dark);
}



.tour-detailpage-title {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 0rem;
    position: relative;
}



.tour-detailpage-title__text {
    position: relative;
    z-index: 1;
}



.tour-detail-free-badge {
    display: inline-block;
    margin-left: 0.35rem;
    vertical-align: middle;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
    pointer-events: none;
}



.tour-detail-premium-badge {
    display: inline-block;
    margin-left: 0.35rem;
    vertical-align: middle;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.9);
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, rgba(139, 90, 43, 0.4) 100%);
    z-index: 0;
    pointer-events: none;
}



.tour-meta {
    color: var(--text-light);
    font-weight: 500;
}



.tour-meta--detail {
    color: var(--text-dark);
}



.tour-meta--detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.7rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;

}



.tour-meta--detail__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}



/* optional centerdot
.tour-meta-item:not(:last-child)::after {
    content: '•';
    color: var(--text-light);
    ;
   
    margin-left: 0.5rem;
  
}

 */

/* Optional: Ensure the <p> tag inside doesn't have extra margins */
.tour-meta-item p {
    margin: 0;
    padding: 0;

    color: var(--text-dark);
    /* Match the tile below */

}



.tour-meta-item svg {
    width: 18px;
    height: 18px;
    
}



.desc-block {
    margin-bottom: 1.5rem;
}



.desc-block h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}



.desc-block p {
    font-size: 0.9rem;
    line-height: 1.6;

}



.guide-audio-section {
    margin-top: 0.75rem;
}



.guide-audio-player {
    --guide-progress-color: #8a8f99;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}



.guide-audio-player__media {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.6rem;
}



.guide-audio-player__avatar {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}



.guide-audio-player__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.guide-audio-player__badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    color: var(--text-light);
    margin-left: auto;
}



.guide-audio-player__controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
}



.guide-audio-player__play-wrapper {
    display: flex;
    justify-content: center;
    width: 60px;
    flex-shrink: 0;
}



.guide-audio-player__play {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #2f2f2f, #70757f);
    color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}



.guide-audio-player__play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.guide-audio-player__pause-icon {
    display: none;
}

.guide-audio-player.is-playing .guide-audio-player__play-icon {
    display: none;
}

.guide-audio-player.is-playing .guide-audio-player__pause-icon {
    display: block;
}



.guide-audio-player__play:active {
    transform: scale(0.98);
}



.guide-audio-player__progress {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}



.guide-audio-player__progress input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            var(--guide-progress-color) var(--guide-progress, 0%),
            rgba(255, 255, 255, 0.12) var(--guide-progress, 0%));
}



.guide-audio-player__progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f3f3f3;
    border: 3px solid var(--guide-progress-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}



.guide-audio-player__progress input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 999px;
    background: #f3f3f3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}



.guide-audio-player__progress input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            var(--guide-progress-color) var(--guide-progress, 0%),
            rgba(255, 255, 255, 0.2) var(--guide-progress, 0%));
}



.guide-audio-player__timecodes {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}



.guide-profile-details {
    margin-top: 1rem;
    padding: 0 0.15rem;
}



.guide-profile-details__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}



.guide-info-section {
    margin-top: 0.75rem;
}



.guide-profile-details--info {
    margin-bottom: 1.5rem;
}



.guide-profile-details__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}



.guide-profile-details__meta li {
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 140px;
}



.guide-profile-details__meta li span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}



.guide-profile-details__meta li strong {
    font-size: 0.9rem;
    font-weight: 600;
}



.guide-profile-details__bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}



.line-clamp-4 {
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}




.read-more-link {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--accent-red);
}



/* --- NEW/UPDATED ITINERARY TIMELINE STYLES --- */
.itinerary-timeline-container {
    position: relative;
    padding-left: 55px;
    /* Provides space for the timeline */
}



.itinerary-timeline-container::before {
    content: '';
    position: absolute;
    left: 19px;
    /* Position of the line within the padding */
    top: 30px;
    /* Start line after the first stop's circle */
    bottom: 40px;
    /* End line before the last stop's circle */
    width: 2px;
    background-image: linear-gradient(var(--border-color) 40%, transparent 60%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
    z-index: 0;
}



.itinerary-stop {
    position: relative;
    padding-bottom: 1.5rem;
}



.itinerary-stop--interlude {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0.06) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1.25rem 1.5rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}



.itinerary-stop--interlude .stop-header {
    color: var(--text-light);
}



.stop-header--interlude {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1.6rem;
}



.stop-header__title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}



.stop-header__subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    opacity: 0.75;
}



.itinerary-stop--interlude .stop-title {
    margin-top: 0.2rem;
}



.itinerary-stop--approach {
    padding: 1.4rem 1.75rem 1rem;
    border-radius: 18px;
}



.itinerary-stop--approach:not(.is-open) {
    background: none;
    box-shadow: none;
    padding-bottom: 0.5rem;
}



.itinerary-stop--approach.is-open {}



.itinerary-stop--approach .stop-marker {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.85);
}



.itinerary-walk-segment--approach {}



.stop-marker {
    position: absolute;
    top: 38px;
    /* Aligns marker with the top of the header */
    left: -54px;
    /* (24px line pos - 55px padding) = -31px */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-red);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-color);
    z-index: 2;
    /* Sits on top of the dashed line */
}



.stop-marker--interlude {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.9) 0%, rgba(100, 116, 139, 0.95) 100%);
    border-color: rgba(148, 163, 184, 0.85);
    color: #f8fafc;
}



.stop-marker--interlude svg {
    width: 18px;
    height: 18px;
    display: block;
}



.stop-header {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 700;
    padding-top: 1.7rem;
}



.stop-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}



.stop-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 1rem;
}



.stop-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1rem;
}



.itinerary-walk-segment {
    position: relative;
    padding: 1.5rem 0;
    /* Creates vertical space between stops */
    display: flex;
    flex-direction: column;
    align-items: left;
}



.itinerary-walk-segment--interlude .walk-info {
    gap: 0.25rem;
}



.itinerary-walk-segment--interlude .walk-info__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    opacity: 0.75;
}



.walk-marker {
    position: absolute;
    left: -41px;
    /* (24px line pos - 55px padding) + (12px width/2) = -25px */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: 3px solid var(--bg-color);
    z-index: 1;
}



.walk-marker-approach {
    top: 46%
}



.walk-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}



.walk-info svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}



.walk-info span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* =====================================================================
   3) Web-only additions & app-CSS overrides
   ===================================================================== */

/* --- top bar (logo + language switch, on page background) --- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.25rem;
}

.top-bar__logo img {
    height: 26px;
    width: auto;
    display: block;
}

.top-bar__lang {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.top-bar__lang:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* --- hero: web adaptation. Title sits at the top like in the app, where
   the overlay gradient is darkest — keeps white text readable. --- */
.tour-intro--has-image {
    min-height: 300px;
    padding-top: 2rem;
}

@media (min-width: 700px) {
    .tour-intro--has-image {
        min-height: 380px;
        border-radius: 0 0 24px 24px;
    }

    .tour-detailpage-title {
        font-size: 2.1rem;
    }
}

/* --- pills as sticky section nav (anchors + scroll-spy) --- */
.pills-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-shadow: 0 6px 12px -8px var(--shadow-color);
}

.pill-button {
    display: inline-block;
    text-decoration: none;
    line-height: 1.4;
}

.pill-button:hover {
    color: var(--text-dark);
}

.pill-button.active:hover {
    color: #fff;
}

/* sections are always visible on the web page (no app tabs) */
.lp-section {
    scroll-margin-top: 4.5rem;
}

.lp-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-darkest);
    margin-bottom: 0.75rem;
}

/* --- itinerary: attribution line under stop images --- */
.stop-attribution {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    line-height: 1.35;
}

.stop-attribution a {
    color: var(--text-light);
    text-decoration: underline;
}

/* --- map --- */
.tour-map {
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.tour-map-note {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* --- buy bar --- */
.buy-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 760px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px var(--shadow-color);
    padding: 0.8rem 1.25rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    border-radius: 18px 18px 0 0;
}

.buy-bar__legal {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.65rem;
}

.buy-bar__legal input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent-red);
    flex-shrink: 0;
}

.buy-bar__legal a,
.buy-bar__legal-button {
    color: var(--accent-red);
    text-decoration: underline;
}

.buy-bar__legal-button {
    display: inline;
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.buy-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.buy-bar__price {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.buy-bar__amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-darkest);
}

.buy-bar__vat {
    font-size: 0.68rem;
    color: var(--text-light);
}

.buy-bar__cta {
    flex: 1;
    max-width: 62%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.buy-bar__cta:hover:not(:disabled) {
    background: var(--accent-red-light);
}

.buy-bar__cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.buy-bar__error {
    font-size: 0.78rem;
    color: var(--accent-red);
    margin-top: 0.45rem;
}

.buy-bar__error[hidden] {
    display: none;
}

/* --- footer --- */
.tour-footer {
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.tour-footer__logo img {
    height: 34px;
    width: auto;
    margin-bottom: 1rem;
}

.tour-footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.tour-footer__links a,
.tour-footer__links button {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.tour-footer__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
}

.tour-footer__badges a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 42px;
    transition: transform 0.2s ease;
}

.tour-footer__badges a:hover {
    transform: translateY(-2px);
}

.tour-footer__badges img {
    display: block;
    max-width: 140px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- imprint modal --- */
.tour-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tour-modal[hidden] {
    display: none;
}

.tour-modal.is-topmost {
    z-index: 2100;
}

.tour-modal__box {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.75rem 1.5rem;
    font-size: 0.9rem;
}

.tour-modal__box h2 {
    margin-bottom: 0.9rem;
    color: var(--text-darkest);
    font-size: 1.15rem;
}

.tour-modal__box p {
    margin-bottom: 0.6rem;
}

.legal-document {
    color: var(--text-dark);
    line-height: 1.55;
}

.legal-document p {
    margin: 0 0 0.9rem;
}

.legal-document ul {
    margin: 0 0 0.9rem 1.25rem;
    padding: 0;
}

.legal-document li + li {
    margin-top: 0.5rem;
}

.legal-document a,
.legal-document span {
    overflow-wrap: anywhere;
}

.tour-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
}

.tour-modal__box--contact {
    max-width: 600px;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--text-darkest);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    background: #fff;
    color: var(--text-darkest);
    font: inherit;
    font-weight: 400;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent-red) 45%, transparent);
    border-color: var(--accent-red);
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
}

.contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--text-dark);
    font-size: 0.8rem;
    line-height: 1.45;
}

.contact-form__consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--accent-red);
}

.contact-form__submit {
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    background: var(--accent-red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* --- audio player: web niceties --- */
.guide-audio-player__play {
    cursor: pointer;
}

/* =====================================================================
   4) Design pass — "der rote Faden"
   The brand name is the design element: the itinerary line becomes a
   literal red thread laid across the page; stops are its knots. Caveat
   (the brand handwriting face) appears in exactly two places — the city
   above the hero title and the interlude asides — as the journal voice.
   ===================================================================== */

/* the thread: seamless wavy tile, same center (x=20px) as the old line */
.itinerary-timeline-container::before {
    left: 15px;
    top: 26px;
    width: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='48' viewBox='0 0 10 48'%3E%3Cpath d='M5 0 C 8.5 8, 1.5 16, 5 24 C 8.5 32, 1.5 40, 5 48' fill='none' stroke='%23b84f41' stroke-width='2' stroke-linecap='round' opacity='0.8'/%3E%3C/svg%3E");
    background-size: 10px 48px;
    background-repeat: repeat-y;
}

/* knots: a loop of thread wrapped around each stop marker */
.stop-marker {
    box-shadow: 0 0 0 2px rgba(184, 79, 65, 0.3);
}

/* beads on the thread instead of grey dots */
.walk-marker {
    width: 8px;
    height: 8px;
    left: -39px;
    background: var(--accent-red-light);
    opacity: 0.75;
    border: none;
}

/* journal voice: handwritten city above the hero title */
.hero-city-script {
    font-family: var(--font-handwriting), cursive;
    font-size: 2.1rem;
    line-height: 1;
    color: #fff;
    opacity: 0.92;
    transform: rotate(-2deg);
    transform-origin: left bottom;
    margin: 0 0 0.2rem 0.1rem;
    text-shadow: 0 1px 14px rgba(5, 7, 12, 0.5);
}

/* journal voice: interlude asides */
.stop-header--interlude .stop-header__subtitle {
    font-family: var(--font-handwriting), cursive;
    font-size: 1.35rem;
    letter-spacing: 0;
    text-transform: none;
}

/* gentle scroll reveal along the thread (JS-gated, motion-safe) */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.6s var(--animation-curve), transform 0.6s var(--animation-curve);
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================================
   5) Design pass v2 — main-LP skeleton & surface
   redthread.world's landing page defines the web property's look: Inter,
   warm paper surfaces (#F9F8F6 / #EFEBE5), primary #A52A2A, glass panels,
   a full-bleed hero with a floating nav pill, and generous full-width
   section bands with centered content columns. The tour pages adopt that
   skeleton; the red thread timeline and the handwritten city note stay
   as the tour pages' own signature within the family.
   ===================================================================== */

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/tour/fonts/inter-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/tour/fonts/inter-medium.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('/assets/tour/fonts/inter-semibold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/tour/fonts/inter-bold.woff2') format('woff2');
}

/* token override: every extracted component re-skins through these vars */
:root {
    --bg-color: #F9F8F6;
    --bg-accent: #EFEBE5;
    --card-bg: #FFFFFF;
    --accent-red: #A52A2A;
    --accent-red-light: #8B2222;
    --accent-red-glow: rgba(165, 42, 42, 0.25);
    --text-dark: #333333;
    --text-light: #666666;
    --text-darkest: #1a1a1a;
    --border-color: #e5e1da;
    --shadow-color: rgba(0, 0, 0, 0.06);
    --bg-color-rgb: 249, 248, 246;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

h1, h2, h3 {
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* --- skeleton: full-width canvas, centered content columns --- */
.page {
    max-width: none;
    padding-bottom: 0;
}

.container {
    max-width: 46rem;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.container--wide {
    max-width: 64rem;
}

.band {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.band--white {
    background: var(--card-bg);
}

.band--accent {
    background: var(--bg-accent);
}

main {
    padding-bottom: 9rem; /* room for the fixed buy bar */
}

/* --- floating glass nav pill (main-LP pattern) --- */
.nav-wrap {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

.nav-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: 42rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.92);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-pill__logo img {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.nav-pill__logo:hover img {
    opacity: 1;
}

.nav-pill__links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-pill__links {
        display: flex;
    }
}

.nav-pill__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-pill__links a:hover,
.nav-pill__links a.active {
    color: var(--accent-red);
}

.nav-pill__lang {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.nav-pill__lang:hover {
    color: var(--text-darkest);
}

/* --- full-bleed hero --- */
.tour-hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.25rem 4.5rem;
    background-image: var(--tour-hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.tour-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 8, 6, 0.45) 0%,
        rgba(10, 8, 6, 0.30) 45%,
        rgba(10, 8, 6, 0.55) 100%);
}

.tour-hero > * {
    position: relative;
}

.tour-hero .hero-city-script {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.tour-hero__title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 60rem;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.5rem;
}

.tour-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.tour-hero__meta span + span::before {
    content: "•";
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.tour-hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
    .tour-hero__scroll {
        animation: hero-bounce 1.6s infinite;
    }

    @keyframes hero-bounce {
        0%, 100% { transform: translate(-50%, 0); }
        50% { transform: translate(-50%, 8px); }
    }
}

/* --- section headings in the LP register --- */
.lp-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: none;
    color: var(--text-darkest);
    margin-bottom: 1.5rem;
}

/* theme block: quiet lead text, no app card framing */
.theme-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
}

/* --- buy bar: full-width, content column inside --- */
.buy-bar {
    max-width: none;
    left: 0;
    transform: none;
    border-radius: 0;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.buy-bar__inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 0.25rem;
}

/* thread + markers keep working on white bands */
.band--white .stop-marker {
    border-color: var(--card-bg);
}

/* v2 fine-tuning */
.lp-section {
    scroll-margin-top: 6rem;
}

@media (min-width: 768px) {
    .tour-map {
        height: 440px;
    }
}

/* =====================================================================
   6) Feedback round — warmth & guidance
   Second highlight: warm ochre on parchment for the guide's voice
   (pills, sample badge) — sits in the paper family without competing
   with the primary red, which stays reserved for actions.
   ===================================================================== */

:root {
    --highlight: #8C6A1D;
    --highlight-bg: #F3E9D2;
    --highlight-border: #E3D3AC;
}

/* guide pills: parchment chips instead of near-invisible glass */
.guide-profile-details__meta li {
    background: var(--highlight-bg);
    border: 1px solid var(--highlight-border);
    color: var(--text-dark);
}

.guide-profile-details__meta li span {
    color: var(--highlight);
}

/* audio player: white card, red play — the section's listen-action */
.guide-audio-player {
    --guide-progress-color: var(--accent-red);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.guide-audio-player__play {
    background: var(--accent-red);
    color: #fff;
}

.guide-audio-player__play:hover {
    background: var(--accent-red-light);
}

.guide-audio-player__badge {
    background: var(--highlight-bg);
    border: 1px solid var(--highlight-border);
    color: var(--highlight);
}

/* buy bar: explainer link + price support */
.buy-bar__hint {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.55rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.buy-bar__now-only {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-red);
}

/* redeem explainer: a real sequence — numbered steps carry the order */
.redeem-steps {
    list-style: none;
    counter-reset: redeem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.redeem-steps li {
    counter-increment: redeem;
    position: relative;
    padding-left: 2.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.redeem-steps li::before {
    content: counter(redeem);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redeem-steps strong {
    color: var(--text-darkest);
}

.redeem-steps span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* FAQ: native disclosure, quiet borders */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-darkest);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--accent-red);
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin-top: 0.6rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    max-width: 40rem;
}

/* footer: tagline + white band so it no longer reads empty */
.tour-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.tour-footer__tagline {
    max-width: 26rem;
    margin: 0 auto 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Keep the complete footer above the fixed purchase bar. The exact offset is
   maintained by tour.js so it also follows wrapped legal copy on mobile. */
body {
    padding-bottom: var(--buy-bar-height, 11rem);
}

/* mobile nav: a single "Preview" anchor instead of an empty middle */
.nav-pill__preview {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: none;
}

.nav-pill__preview:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .nav-pill__preview {
        display: none;
    }
}

/* player details on the white card: visible track, separated timecodes */
.guide-audio-player__controls {
    border-top-color: var(--border-color);
}

.guide-audio-player__progress input[type="range"] {
    background: linear-gradient(90deg,
            var(--guide-progress-color) var(--guide-progress, 0%),
            var(--border-color) var(--guide-progress, 0%));
}

.guide-audio-player__timecodes {
    gap: 0.35rem;
}

.guide-audio-player__timecodes span + span::before {
    content: "/";
    margin-right: 0.35rem;
    color: var(--border-color);
}

/* Tour-to-city navigation: a quiet way back in the hero and a stronger
   discovery path after the tour-specific content. */
.tour-hero__city-backlink {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(12, 10, 8, 0.25);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 180ms ease, border-color 180ms ease,
                transform 180ms ease;
}

.tour-hero__city-backlink:hover {
    background: rgba(12, 10, 8, 0.45);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.city-discovery {
    padding-top: 1rem;
}

.city-discovery__card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 5vw, 2.5rem);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(184, 79, 65, 0.22), transparent 42%),
        var(--bg-color);
    border: 1px solid rgba(184, 79, 65, 0.2);
    box-shadow: 0 18px 45px rgba(42, 38, 34, 0.08);
}

.city-discovery__title {
    max-width: 30rem;
    color: var(--text-darkest);
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.2;
    text-wrap: balance;
}

.city-discovery__copy {
    max-width: 31rem;
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.city-discovery__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: min(100%, 18rem);
    margin-top: 1.5rem;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    border-radius: 14px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px var(--accent-red-glow);
    transition: background 180ms ease, box-shadow 180ms ease,
                transform 180ms ease;
}

.city-discovery__cta:hover {
    background: #a84438;
    box-shadow: 0 12px 28px var(--accent-red-glow);
    transform: translateY(-1px);
}

.city-discovery__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}
