/* Poster-led hero layout for generated and checked-in tour pages. */

.tour-poster-hero {
    --poster-accent: #d9a441;
    position: relative;
    left: 50%;
    width: min(100vw, 76rem);
    min-height: min(46rem, calc(100svh - 1rem));
    transform: translateX(-50%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(6.5rem, 10vw, 8.5rem) clamp(1.25rem, 5vw, 4.5rem) clamp(4rem, 7vw, 5.5rem);
    background: #191917;
    color: #fff;
    isolation: isolate;
}

.tour-poster-hero__backdrop {
    position: absolute;
    z-index: -3;
    inset: -4rem;
    background-image: var(--tour-backdrop-image);
    background-position: center;
    background-size: cover;
    filter: blur(32px) saturate(0.72);
    opacity: 0.34;
    transform: scale(1.1);
}

/* Opt-in prototype: use the poster itself as a dark, tour-specific color field. */
.tour-poster-hero--poster-ambient .tour-poster-hero__backdrop {
    inset: -18%;
    background-position: 32% 48%;
    filter: blur(68px) saturate(1.45) contrast(1.06);
    opacity: 0.58;
    transform: scale(1.16);
}

.tour-poster-hero--poster-ambient::before {
    background:
        radial-gradient(ellipse at 20% 48%, rgba(241, 178, 76, 0.11), transparent 34%),
        radial-gradient(ellipse at 76% 18%, rgba(177, 54, 53, 0.17), transparent 39%),
        linear-gradient(105deg, rgba(8, 9, 8, 0.54), rgba(13, 13, 12, 0.82) 51%, rgba(8, 8, 8, 0.94));
}

.tour-poster-hero__ambient {
    display: none;
}

.tour-poster-hero--poster-ambient .tour-poster-hero__ambient {
    position: absolute;
    z-index: -1;
    inset: 0;
    display: block;
    background:
        radial-gradient(circle at 24% 54%, rgba(255, 210, 126, 0.13), transparent 20rem),
        radial-gradient(circle at 81% 20%, rgba(193, 62, 59, 0.13), transparent 22rem);
    mix-blend-mode: screen;
    pointer-events: none;
}

.tour-poster-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 21% 48%, rgba(217, 164, 65, 0.16), transparent 31%),
        radial-gradient(circle at 82% 22%, rgba(150, 48, 43, 0.2), transparent 34%),
        linear-gradient(105deg, rgba(13, 14, 13, 0.6), rgba(18, 18, 17, 0.9) 55%, rgba(13, 13, 12, 0.96));
}

.tour-poster-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
    pointer-events: none;
}

.tour-poster-hero__inner {
    width: 100%;
    max-width: 67rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.tour-poster-hero__poster-wrap {
    margin: 0;
    position: relative;
    transform: rotate(-0.65deg);
}

.tour-poster-hero__poster-wrap::before {
    content: "";
    position: absolute;
    inset: 7% -7% -5% 8%;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.42);
    filter: blur(24px);
    transform: rotate(3deg);
}

.tour-poster-hero__poster {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: #31332f;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
}

.tour-poster-hero__poster-caption {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tour-poster-hero__content {
    min-width: 0;
}

.tour-poster-hero .tour-hero__city-backlink {
    width: fit-content;
    margin-bottom: 1.5rem;
}

.tour-poster-hero__eyebrow {
    margin-bottom: 0.55rem;
    color: var(--poster-accent);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tour-poster-hero .hero-city-script {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    text-shadow: none;
}

.tour-poster-hero__title {
    max-width: 42rem;
    margin: 0 0 1.35rem;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.3rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.tour-poster-hero__title span,
.tour-poster-hero__title small {
    display: block;
}

.tour-poster-hero__title small {
    max-width: 34rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.tour-poster-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tour-poster-hero__tags span {
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 600;
}

.tour-poster-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tour-poster-hero__facts div {
    padding: 0.9rem 0.7rem 0.9rem 0;
}

.tour-poster-hero__facts div + div {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.tour-poster-hero__facts dt {
    margin-bottom: 0.18rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tour-poster-hero__facts dd {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 650;
}

.tour-poster-hero__summary {
    max-width: 40rem;
    margin-bottom: 1.45rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.65;
}

.tour-poster-hero__guide {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tour-poster-hero__guide img {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 12px;
    object-fit: cover;
}

.tour-poster-hero__guide-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.tour-poster-hero__guide-copy span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tour-poster-hero__guide-copy strong {
    color: #fff;
    font-size: 0.98rem;
}

.tour-poster-hero__guide-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-poster-hero__sample {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: #1a1a18;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.tour-poster-hero__sample:hover {
    background: #f3ead8;
    transform: translateY(-1px);
}

.tour-poster-hero__sample svg {
    width: 0.9rem;
    height: 0.9rem;
}

.tour-poster-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 1.15rem;
}

.tour-poster-hero__route-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 4px;
}

.tour-poster-hero__catalog-cta {
    display: inline-grid;
    grid-template-columns: 1.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.12;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tour-poster-hero__catalog-cta:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
}

.tour-poster-hero__catalog-cta svg {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--poster-accent);
}

.tour-poster-hero__catalog-cta span {
    display: flex;
    flex-direction: column;
}

.tour-poster-hero__catalog-cta small {
    margin-bottom: 0.12rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.54rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tour-poster-hero__catalog-cta b {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    transition: transform 160ms ease;
}

.tour-poster-hero__catalog-cta:hover b {
    transform: translateX(3px);
}

.tour-poster-hero__price {
    margin-left: auto;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.tour-poster-hero__price span {
    display: block;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.62rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .tour-poster-hero {
        min-height: auto;
        padding: 6.3rem 1rem 3rem;
    }

    .tour-poster-hero__inner {
        grid-template-columns: minmax(7.5rem, 36vw) minmax(0, 1fr);
        grid-template-areas:
            "backlink backlink"
            "poster eyebrow"
            "poster city"
            "poster title"
            "poster facts"
            "tags tags"
            "summary summary"
            "guide guide"
            "actions actions";
        align-items: start;
        gap: 0.55rem 1rem;
    }

    .tour-poster-hero__poster-wrap {
        grid-area: poster;
        width: 100%;
        max-width: 9rem;
        margin: 0;
        transform: rotate(-0.5deg);
    }

    .tour-poster-hero__poster-caption {
        display: none;
    }

    .tour-poster-hero__content {
        display: contents;
    }

    .tour-poster-hero .tour-hero__city-backlink {
        grid-area: backlink;
        margin-bottom: 0.7rem;
    }

    .tour-poster-hero__eyebrow {
        grid-area: eyebrow;
        align-self: end;
        margin: 0;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .tour-poster-hero .hero-city-script {
        grid-area: city;
        margin: 0;
        font-size: 1.35rem;
    }

    .tour-poster-hero__title {
        grid-area: title;
        align-self: start;
        margin: 0.1rem 0 0.35rem;
        font-size: clamp(1.7rem, 7.5vw, 2.15rem);
        line-height: 0.98;
    }

    .tour-poster-hero__title small {
        margin-top: 0.5rem;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .tour-poster-hero__tags {
        grid-area: tags;
        margin: 1rem 0 0.45rem;
    }

    .tour-poster-hero__tags span {
        padding: 0.32rem 0.55rem;
        font-size: 0.65rem;
    }

    .tour-poster-hero__facts {
        grid-area: facts;
        grid-template-columns: 1fr;
        align-self: end;
        margin: 0;
        border-bottom: 0;
    }

    .tour-poster-hero__facts div,
    .tour-poster-hero__facts div + div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.38rem 0;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .tour-poster-hero__facts dt {
        margin: 0;
        font-size: 0.55rem;
    }

    .tour-poster-hero__facts dd {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .tour-poster-hero__summary {
        grid-area: summary;
        margin: 0 0 0.65rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .tour-poster-hero__guide {
        grid-area: guide;
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .tour-poster-hero__guide img {
        width: 3rem;
        height: 3rem;
    }

    .tour-poster-hero__sample {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .tour-poster-hero__price {
        margin-left: 0;
    }

    .tour-poster-hero__actions {
        grid-area: actions;
        margin-top: 0.65rem;
    }

    .tour-poster-hero__catalog-cta {
        order: 3;
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .tour-poster-hero--poster-ambient .tour-poster-hero__backdrop {
        animation: tour-poster-ambient-drift 14s ease-in-out infinite alternate;
    }

    .tour-poster-hero__poster-wrap {
        animation: tour-poster-enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .tour-poster-hero__content {
        animation: tour-poster-copy-enter 700ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes tour-poster-enter {
        from { opacity: 0; transform: translateY(24px) rotate(-3deg); }
        to { opacity: 1; transform: translateY(0) rotate(-0.65deg); }
    }

    @keyframes tour-poster-copy-enter {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes tour-poster-ambient-drift {
        from { transform: scale(1.16) translate3d(-1.5%, -0.5%, 0); }
        to { transform: scale(1.22) translate3d(1.5%, 1%, 0); }
    }
}
