/*
 * Travelmania theme. Colours, radius and font come from theme.json tokens,
 * written by the platform as --tm-* custom properties on :root (the admin can
 * change them in Appearance → Themes). Nothing here loads from another host.
 */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tm-hero-ink: #ffffff;
    --tm-wrap: 1240px;
    --tm-gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.tm {
    margin: 0;
    background: var(--tm-ground);
    color: var(--tm-ink);
    font-family: var(--tm-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.tm img { max-width: 100%; }
.tm a { color: inherit; }
.tm h1, .tm h2, .tm h3 { text-wrap: balance; letter-spacing: -0.02em; }

.tm-wrap { max-width: var(--tm-wrap); margin: 0 auto; padding-inline: var(--tm-gutter); }
@media (max-width: 640px) { :root { --tm-gutter: 16px; } }

.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--tm-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.tm-skip:focus { left: 8px; }

.tm :focus-visible { outline: 2px solid var(--tm-hero-accent); outline-offset: 2px; }

/* Buttons ----------------------------------------------------------------- */
.tm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
    padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
    min-height: 44px;
}
.tm .tm-btn--dark { background: var(--tm-cta); color: #fff; }
.tm .tm-btn--dark:hover { filter: brightness(1.25); }
.tm-btn--lg { padding: 13px 22px; font-size: 15px; }

/* Header ------------------------------------------------------------------ */
.tm-header { position: relative; z-index: 20; background: var(--tm-ground); border-bottom: 1px solid var(--tm-line); }
.tm-header--overlay { position: absolute; inset: 0 0 auto 0; background: linear-gradient(rgba(255, 255, 255, .94), rgba(255, 255, 255, .80)); backdrop-filter: blur(8px); border-bottom-color: transparent; }
.tm-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 12px; }
.tm-header__brand img { display: block; height: 46px; width: auto; }
.tm-header__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; font-size: 14.5px; }
.tm-header__nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.tm-header__nav a:hover { border-bottom-color: var(--tm-brand); }
.tm-header__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tm-currency select {
    font: inherit; font-size: 13px; font-weight: 600; color: var(--tm-ink);
    border: 1px solid var(--tm-line); background: var(--tm-ground); border-radius: 999px; padding: 9px 12px; min-height: 40px;
}
@media (max-width: 900px) { .tm-header__nav { order: 3; width: 100%; } }

/* Hero -------------------------------------------------------------------- */
.tm-hero { position: relative; min-height: 760px; overflow: hidden; color: var(--tm-hero-ink); display: flex; flex-direction: column; background: #0f3d4d; }
.tm-hero__scene {
    position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
    background: var(--s1); background-size: cover; background-position: center;
}
.tm-hero__scene.is-active { opacity: 1; }
.tm-hero__sun { position: absolute; right: 18%; top: 120px; width: 120px; height: 120px; border-radius: 50%; background: var(--tm-hero-accent); }
.tm-hero__far, .tm-hero__near, .tm-hero__ground { position: absolute; left: 0; right: 0; bottom: 0; }
.tm-hero__far { height: 58%; background: var(--s2); clip-path: polygon(0 40%, 14% 18%, 26% 34%, 40% 8%, 56% 32%, 70% 16%, 86% 36%, 100% 22%, 100% 100%, 0 100%); }
.tm-hero__near { height: 36%; background: var(--s3); clip-path: polygon(0 30%, 20% 12%, 42% 34%, 62% 10%, 82% 30%, 100% 18%, 100% 100%, 0 100%); }
.tm-hero__ground { height: 20%; background: var(--s4); clip-path: polygon(0 26%, 100% 6%, 100% 100%, 0 100%); }
.tm-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 32, .80) 0%, rgba(10, 22, 32, .45) 48%, rgba(10, 22, 32, .10) 100%); }

.tm-hero__copy { position: relative; padding-top: 150px; width: 100%; }
.tm-hero__text { max-width: 720px; animation: tm-fade .5s ease; }
.tm-hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tm-hero-accent); }
.tm-hero__eyebrow span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 11px; }
.tm-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 700; max-width: 12ch; }
.tm-hero__lead { margin: 18px 0 0; font-size: 17px; max-width: 46ch; color: #dbe7ee; }
.tm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tm .tm-hero__actions .tm-btn--dark { background: #fff; color: var(--tm-ink); }

.tm-hero__strip { position: relative; margin-top: auto; padding-top: 32px; padding-bottom: 120px; width: 100%; }
.tm-hero__controls { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tm-hero__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .25); color: #fff; font-size: 20px; cursor: pointer; }
.tm-hero__dots { display: flex; gap: 6px; margin-left: 8px; }
.tm-hero__dot { width: 28px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.tm-hero__dot.is-active { background: var(--tm-hero-accent); }
.tm-hero__cards { display: flex; gap: 16px; overflow-x: auto; padding: 12px 2px 12px; scrollbar-width: none; }
.tm-hero__cards::-webkit-scrollbar { display: none; }
.tm-hero__card {
    flex: 0 0 236px; display: flex; flex-direction: column; text-align: left; font: inherit; color: #fff;
    border: 0; padding: 0; border-radius: var(--tm-radius); overflow: hidden; background: #13202b; cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28); transition: transform .45s ease, box-shadow .45s ease, outline-color .2s;
    outline: 2px solid transparent; order: var(--order, 0);
}
.tm-hero__thumb { position: relative; height: 128px; background: linear-gradient(180deg, var(--s1) 0 55%, var(--s3) 55% 82%, var(--s4) 82%); background-size: cover; background-position: center; }
.tm-hero__glyph { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: #13202b; display: grid; place-items: center; font-size: 13px; }
.tm-hero__card-body { display: block; padding: 12px 14px 14px; }
.tm-hero__card-name { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.tm-hero__card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.tm-hero__card-meta small { display: block; color: #bfcad3; font-size: 11px; }
.tm-hero__card-price { text-align: right; }
.tm-hero__card-price strong { color: var(--tm-hero-accent); font-size: 15px; }

@keyframes tm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm-hero__scene, .tm-hero__card, .tm-hero__text { transition: none; animation: none; } }
@media (max-width: 640px) { .tm-hero { min-height: 680px; } .tm-hero__copy { padding-top: 170px; } .tm-hero__card { flex-basis: 200px; } }

/* Search ------------------------------------------------------------------ */
/* Home search (blocks/search + js/search.js): frosted tabs over the hero, a white card of
   icon fields with popovers (suggestions, calendar, guests), the brand button. */
.tm-search { position: relative; z-index: 6; margin-top: -88px; scroll-margin-top: 24px; }
.tm-sf__tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 8px; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; background: var(--tm-surface); }
.tm-sf__tabs::-webkit-scrollbar { display: none; }
.tm-sf__tab { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; color: var(--tm-muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.tm-sf__tab:hover { color: var(--tm-ink); }
.tm-sf__tab[aria-selected="true"] { background: #fff; color: var(--tm-ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .1), 0 0 0 1px rgba(15, 23, 42, .04); }
.tm-sf__tab[aria-selected="true"] .tm-icon { color: var(--tm-brand); }
.tm-sf__tab:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 2px; }

.tm-sf__card { position: relative; background: #fff; border-radius: 24px; padding: 12px; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .35), 0 2px 8px rgba(15, 23, 42, .06); }
.tm-sf__form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.tm-sf__form[hidden] { display: none; }
.tm-sf__lead { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; margin: 2px 10px 8px; font-size: 13px; color: var(--tm-muted); }
.tm-sf__options { flex: 1 0 100%; display: flex; gap: 6px; margin: 2px 6px 8px; }

.tm-sf__field { position: relative; flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; transition: background .15s, box-shadow .15s; }
.tm-sf__field + .tm-sf__field::before, .tm-sf__pair + .tm-sf__field::before, .tm-sf__field + .tm-sf__pair::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--tm-line); }
.tm-sf__pair { position: relative; flex: 2.2 1 360px; display: flex; min-width: 0; }
.tm-sf__pair .tm-sf__field { flex: 1 1 0; }
.tm-sf__field--where { flex: 1.6 1 240px; }
.tm-sf__field--dates { flex: 1.5 1 230px; }
.tm-sf__field:hover { background: var(--tm-surface); }
.tm-sf__field:hover::before, .tm-sf__field:hover + .tm-sf__field::before, .tm-sf__field.is-open::before, .tm-sf__field.is-open + .tm-sf__field::before, .tm-sf__field:focus-within::before, .tm-sf__field:focus-within + .tm-sf__field::before { opacity: 0; }
.tm-sf__field:focus-within, .tm-sf__field.is-open { background: #fff; box-shadow: 0 0 0 2px var(--tm-ink), 0 10px 28px rgba(15, 23, 42, .12); z-index: 3; }
.tm-sf__field.is-invalid { animation: tm-sf-shake .4s; box-shadow: 0 0 0 2px var(--tm-brand); }
@keyframes tm-sf-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.tm-sf__icon { flex: 0 0 auto; color: var(--tm-muted); }
.tm-sf__field:focus-within .tm-sf__icon, .tm-sf__field.is-open .tm-sf__icon { color: var(--tm-brand); }
.tm-sf__text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; text-align: left; }
.tm-sf__label { font-size: 12px; font-weight: 600; color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-sf__value, .tm-sf__text input, .tm-sf__text select { font: inherit; font-size: 15px; font-weight: 700; color: var(--tm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-sf__text input, .tm-sf__text select { width: 100%; border: 0; outline: 0; padding: 0; margin: 0; background: transparent; min-height: 22px; }
.tm-sf__text input::placeholder { color: #9ca3af; font-weight: 500; }
.tm-sf__text select { appearance: none; cursor: pointer; padding-right: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center no-repeat; }
.tm-sf__field.is-empty .tm-sf__value { color: #9ca3af; font-weight: 500; }
.tm-sf__trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; outline: 0; }
/* The whole field is the button (padding included). */
.tm-sf__trigger::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tm-sf__field--where, .tm-sf__field--select { cursor: text; }
.tm-sf__field--select { cursor: pointer; }
.tm-sf__text input:focus, .tm-sf__text input:focus-visible, .tm-sf__text select:focus, .tm-sf__text select:focus-visible { outline: none; box-shadow: none; }
.tm-sf__badge { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--tm-ink); background: var(--tm-surface); border-radius: 999px; padding: 4px 9px; }
.tm-sf__badge[hidden] { display: none; }

.tm-sf__swap { position: absolute; left: 50%; top: 50%; z-index: 4; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--tm-line); background: #fff; color: var(--tm-ink); cursor: pointer; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); transition: transform .3s, border-color .2s; }
.tm-sf__swap:hover { border-color: var(--tm-ink); }
.tm-sf__swap.is-spun { transform: rotate(180deg); }
.tm-sf__pair .tm-sf__field:first-child { padding-right: 26px; }
.tm-sf__pair .tm-sf__field:last-child { padding-left: 26px; }
.tm-sf__pair .tm-sf__field + .tm-sf__swap + .tm-sf__field::before { display: none; }

.tm-sf__go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-left: 6px; min-height: 64px; padding: 0 28px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; border: 0; border-radius: 18px; cursor: pointer;
    background: linear-gradient(135deg, var(--tm-brand), color-mix(in srgb, var(--tm-brand) 70%, #7a0ad9)); box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--tm-brand) 70%, transparent); transition: transform .15s, box-shadow .2s, filter .2s; }
.tm-sf__go:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 16px 32px -8px color-mix(in srgb, var(--tm-brand) 75%, transparent); }
.tm-sf__go:active { transform: translateY(0); }
.tm-sf__go:focus-visible { outline: 3px solid color-mix(in srgb, var(--tm-brand) 40%, transparent); outline-offset: 2px; }
.tm-sf__go:disabled { background: var(--tm-surface); color: var(--tm-muted); box-shadow: none; cursor: not-allowed; transform: none; }

.tm-sf__chip { position: relative; display: inline-flex; cursor: pointer; }
.tm-sf__chip input { position: absolute; opacity: 0; pointer-events: none; }
.tm-sf__chip span { font-size: 13px; font-weight: 600; color: var(--tm-muted); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tm-line); background: #fff; transition: all .15s; }
.tm-sf__chip input:checked + span { color: #fff; background: var(--tm-ink); border-color: var(--tm-ink); }
.tm-sf__chip input:focus-visible + span { outline: 2px solid var(--tm-brand); outline-offset: 2px; }

.tm-sf__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--tm-muted); }
.tm-sf__notes li { display: inline-flex; align-items: center; gap: 7px; }
.tm-sf__notes .tm-icon { color: #16a34a; }

/* Popovers */
.tm-sf__pop { color: var(--tm-ink); position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; min-width: 100%; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .3), 0 0 0 1px rgba(15, 23, 42, .06); animation: tm-sf-pop .16s ease-out; }
.tm-sf__pop[hidden] { display: none; }
@keyframes tm-sf-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.tm-sf__pop--list { width: max(100%, 380px); max-height: 420px; overflow-y: auto; }
.tm-sf__pop--guests { width: 340px; left: auto; right: 0; padding: 8px 18px 14px; }
.tm-sf__pop--calendar { width: 680px; padding: 18px 20px 14px; }
.tm-sf__field--dates .tm-sf__pop--calendar { left: 50%; transform: translateX(-50%); animation: none; }
.tm-sf__group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-muted); padding: 10px 10px 6px; }
.tm-sf__option { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.tm-sf__option[aria-selected="true"] { background: var(--tm-surface); }
.tm-sf__thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--tm-surface) center / cover no-repeat; }
.tm-sf__thumb--icon { display: grid; place-items: center; color: var(--tm-ink); }
.tm-sf__opt-text { display: grid; min-width: 0; flex: 1 1 auto; }
.tm-sf__opt-text strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-sf__opt-text small { font-size: 12px; color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-sf__count { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--tm-muted); }
.tm-sf__code { flex: 0 0 auto; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--tm-ink); background: var(--tm-surface); border-radius: 8px; padding: 4px 8px; }
.tm-sf__go-arrow { color: var(--tm-muted); }
.tm-sf__empty { padding: 14px 12px; font-size: 13px; color: var(--tm-muted); }

.tm-sf__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tm-line); }
.tm-sf__row-text { display: grid; }
.tm-sf__row-text strong { font-size: 15px; }
.tm-sf__row-text small { font-size: 12px; color: var(--tm-muted); }
.tm-sf__stepper { display: inline-flex; align-items: center; gap: 12px; }
.tm-sf__stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tm-line); background: #fff; font: inherit; font-size: 18px; line-height: 1; color: var(--tm-ink); cursor: pointer; transition: border-color .15s; }
.tm-sf__stepper button:hover:not(:disabled) { border-color: var(--tm-ink); }
.tm-sf__stepper button:disabled { opacity: .35; cursor: not-allowed; }
.tm-sf__stepper output { min-width: 18px; text-align: center; font-weight: 700; }
.tm-sf__cabins { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 4px; }
.tm-sf__hint { margin: 10px 0 0; font-size: 12px; color: var(--tm-muted); }
.tm-sf__pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.tm-sf__pop--guests .tm-sf__pop-foot { justify-content: flex-end; }
.tm-sf__pop-actions { display: flex; gap: 8px; }
.tm-sf__pop-foot .tm-btn { padding: 9px 18px; font-size: 14px; }

/* Calendar */
.tm-cal__nav { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.tm-cal__arrow { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tm-line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--tm-ink); }
.tm-cal__arrow:disabled { opacity: .3; cursor: default; }
.tm-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tm-cal__title { text-align: center; font-weight: 700; font-size: 15px; text-transform: capitalize; margin: 6px 0 12px; }
.tm-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.tm-cal__grid--head span { text-align: center; font-size: 11px; font-weight: 700; color: var(--tm-muted); padding-bottom: 6px; text-transform: uppercase; }
.tm-cal__day { position: relative; height: 40px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--tm-ink); cursor: pointer; border-radius: 999px; }
.tm-cal__day:hover:not(:disabled):not(.is-start):not(.is-end)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; margin-left: -20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tm-ink); }
.tm-cal__day:disabled { color: #cbd5e1; cursor: default; text-decoration: line-through; text-decoration-color: transparent; }
.tm-cal__day.is-today { text-decoration: underline; text-underline-offset: 4px; }
.tm-cal__day { isolation: isolate; }
.tm-cal__day.is-between { background: var(--tm-surface); border-radius: 0; }
.tm-cal__day.is-start, .tm-cal__day.is-end { color: #fff; border-radius: 0; }
.tm-cal__day.is-start::before, .tm-cal__day.is-end::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 40px; margin-left: -20px; border-radius: 50%; background: var(--tm-ink); }
.tm-cal__day.is-start:has(+ .is-between, + .is-end) { background: linear-gradient(to right, transparent 50%, var(--tm-surface) 50%); }
.tm-cal__day.is-between + .is-end, .tm-cal__day.is-start + .is-end { background: linear-gradient(to left, transparent 50%, var(--tm-surface) 50%); }
/* Week edges (offset cells count as grid children, so a row is 7 children): the band ends round, never spills over. */
.tm-cal__grid > .is-between:nth-child(7n+1) { border-radius: 999px 0 0 999px; }
.tm-cal__grid > .is-between:nth-child(7n) { border-radius: 0 999px 999px 0; }
.tm-cal__grid > .is-end:nth-child(7n+1), .tm-cal__grid > .is-start:nth-child(7n) { background: none; }
.tm-cal__day:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 1px; }
.tm-cal__note { font-size: 13px; font-weight: 600; color: var(--tm-muted); }

@media (max-width: 1100px) {
    .tm-sf__go { flex: 1 0 100%; margin: 8px 0 0; }
    .tm-sf__field--dates .tm-sf__pop--calendar { left: 0; transform: none; }
}
@media (max-width: 760px) {
    .tm-search { margin-top: -56px; }
    .tm-sf__tabs { width: auto; }
    .tm-sf__tab { padding: 9px 13px; font-size: 13px; }
    .tm-sf__card { border-radius: 20px; padding: 8px; }
    .tm-sf__field, .tm-sf__pair { flex: 1 0 100%; }
    .tm-sf__pair { flex-direction: column; }
    .tm-sf__pair .tm-sf__field:first-child, .tm-sf__pair .tm-sf__field:last-child { padding: 10px 56px 10px 16px; }
    .tm-sf__swap { left: auto; right: 14px; transform: rotate(90deg); }
    .tm-sf__swap.is-spun { transform: rotate(270deg); }
    .tm-sf__field + .tm-sf__field::before, .tm-sf__pair + .tm-sf__field::before, .tm-sf__field + .tm-sf__pair::before, .tm-sf__pair .tm-sf__field + .tm-sf__swap + .tm-sf__field::before { display: block; left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
    .tm-sf__pop--list { width: 100%; }
    .tm-sf__notes { justify-content: flex-start; flex-direction: column; gap: 6px; }
    /* Calendar and guests open as bottom sheets. */
    body.tm-sf-sheet::after { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .45); }
    body.tm-sf-sheet { overflow: hidden; }
    body.tm-sf-sheet .tm-search { z-index: 95; }
    .tm-sf__pop--calendar, .tm-sf__pop--guests, .tm-sf__field--dates .tm-sf__pop--calendar { position: fixed; z-index: 100; left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; max-height: 86vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); animation: tm-sf-sheet .22s ease-out; }
    @keyframes tm-sf-sheet { from { transform: translateY(30px); opacity: 0; } }
    .tm-cal { grid-template-columns: 1fr; gap: 18px; }
    .tm-cal__day { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .tm-sf__pop, .tm-sf__field.is-invalid, .tm-sf__swap { animation: none; transition: none; } }

/* Sections ---------------------------------------------------------------- */
.tm-section-head { margin-bottom: 32px; }
.tm-section-head h2 { margin: 0; font-size: 34px; font-weight: 700; }
.tm-section-head p { margin: 8px 0 0; color: var(--tm-muted); font-size: 14px; }
.tm-section-head--center { text-align: center; }

.tm-how { padding: 96px 0 72px; }
.tm-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tm-how__step { border-radius: var(--tm-radius); padding: 26px 26px 28px; background: #ffe8e0; }
.tm-how__step--1 { background: #d9f5ea; }
.tm-how__step--2 { background: #dbeafe; }
.tm-how__num { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.tm-how__step h3 { margin: 16px 0 6px; font-size: 17px; }
.tm-how__step p { margin: 0; font-size: 14px; color: #374151; }
@media (max-width: 860px) { .tm-how__steps { grid-template-columns: 1fr; } }

.tm-message { padding-block: 120px; text-align: center; max-width: 640px; }
.tm-message h1 { font-size: 32px; margin: 0 0 12px; }
.tm-message p { color: var(--tm-muted); margin: 0 0 24px; }

/* Footer ------------------------------------------------------------------ */
.tm-footer { background: var(--tm-ink); color: #c7ccd6; margin-top: 48px; }
.tm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 32px; padding-block: 52px 36px; }
.tm-footer__brand { display: grid; gap: 10px; align-content: start; }
.tm-footer__brand strong { color: #fff; font-size: 18px; }
.tm-footer__brand p { margin: 0; max-width: 40ch; font-size: 13.5px; }
.tm-footer__contact { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 13.5px; }
.tm-footer h2 { margin: 0 0 12px; font-size: 13px; color: #fff; letter-spacing: .02em; }
.tm-footer__grid a { display: block; text-decoration: none; font-size: 13.5px; margin-bottom: 8px; }
.tm-footer__grid a:hover, .tm-footer__bar a:hover { color: #fff; }
.tm-footer__bar { border-top: 1px solid #1f2937; }
.tm-footer__bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: 12.5px; }
.tm-footer__bar a { color: #fff; text-decoration: none; }
.tm-heart { color: var(--tm-badge-top); }
@media (max-width: 1000px) { .tm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tm-footer__grid { grid-template-columns: 1fr; } }

/* M2: content ------------------------------------------------------------ */
.tm .tm-btn--line { background: #fff; color: var(--tm-ink); border-color: var(--tm-line); }
.tm-h2 { margin: 0 0 8px; font-size: 32px; font-weight: 700; }
.tm-muted { color: var(--tm-muted); font-size: 14px; margin: 0 0 20px; }
.tm-section-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.tm-section-row > a { margin-left: auto; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tm-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tm-line); background: #fff; color: var(--tm-ink); text-decoration: none; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.tm-chip small { font-weight: 500; color: var(--tm-muted); }
.tm-chip.is-active { background: var(--tm-ink); color: #fff; border-color: var(--tm-ink); }
.tm-chip.is-active small { color: #c7ccd6; }
.tm-chip.is-off { color: var(--tm-muted); cursor: default; }
.tm-round { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; border: 1px solid var(--tm-line); background: #fff; color: var(--tm-ink); font-size: 18px; cursor: pointer; }
.tm-round:hover { background: var(--tm-surface); }
.tm-empty { color: var(--tm-muted); padding: 40px 0; }
.tm-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; }
.tm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tm-ink); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 32px; }
.tm-pill-link { margin-left: auto; font-size: 12.5px; font-weight: 600; background: var(--tm-surface); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.tm-notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.tm-notice--ok { background: #d9f5ea; color: #065f46; }
.tm-error { color: #b91c1c; font-size: 13px; }
.tm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-fine { font-size: 12.5px; color: var(--tm-muted); margin: 0; }

.tm-promos { padding: 32px 0 48px; }
.tm-promos__row { display: flex; align-items: center; gap: 16px; }
.tm-promos__track, .tm-reviews__track { flex: 1; min-width: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; }
.tm-promos__track::-webkit-scrollbar, .tm-reviews__track::-webkit-scrollbar { display: none; }
.tm-promo { flex: 0 0 calc((100% - 48px) / 3); min-width: 260px; min-height: 230px; border-radius: var(--tm-radius); position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; background: var(--promo-bg); }
.tm-promo--dark { color: #fff; }
.tm-promo__art { position: absolute; right: 0; top: 0; height: 100%; width: 46%; object-fit: cover; }
.tm-promo__label { position: relative; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.tm-promo h3 { position: relative; margin: 0 0 16px; font-size: 24px; line-height: 1.2; max-width: 14ch; }
.tm-promo .tm-btn { position: relative; align-self: flex-start; font-size: 12.5px; padding: 9px 16px; min-height: 0; }
.tm-mark { background: #fde047; color: var(--tm-ink); padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 760px) { .tm-promo { flex-basis: 85%; } .tm-promos .tm-round { display: none; } }

.tm-faq { padding: 64px 0; }
.tm-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.tm-faq__item { border: 1px solid var(--tm-line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.tm-faq__item summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.tm-faq__item summary::-webkit-details-marker { display: none; }
.tm-faq__item summary span { margin-left: auto; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--tm-surface); display: grid; place-items: center; }
.tm-faq__item[open] summary span { transform: rotate(45deg); }
.tm-faq__item .tm-prose { padding: 0 18px 16px; }
.tm-faq__group { margin-bottom: 32px; }
.tm-help { margin-top: 28px; border: 1px solid var(--tm-line); border-radius: 16px; padding: 20px 22px; background: var(--tm-surface); }
.tm-help strong { display: block; margin-bottom: 4px; }
.tm-help p { margin: 0 0 14px; font-size: 13.5px; color: #4b5563; }
.tm-help__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .tm-faq__grid { grid-template-columns: 1fr; } }

.tm-reviews { background: #fdfbf3; padding: 56px 0 64px; }
.tm-reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.tm-reviews__nav { margin-left: auto; display: flex; gap: 8px; }
.tm-review { flex: 0 0 360px; background: #fff; border-radius: var(--tm-radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(17, 24, 39, .06); scroll-snap-align: start; }
.tm-review h3 { margin: 0; font-size: 16px; }
.tm-review p { margin: 0; font-size: 13.5px; color: #4b5563; flex: 1; }
.tm-review__who { display: flex; align-items: center; gap: 12px; }
.tm-review__who strong { display: block; font-size: 13.5px; }
.tm-review__who small { font-size: 12px; color: var(--tm-muted); }
.tm-stars { margin-left: auto; color: var(--tm-star); letter-spacing: 1px; white-space: nowrap; }
@media (max-width: 640px) { .tm-review { flex-basis: 85%; } }

.tm-blog { padding: 56px 0 64px; }
.tm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tm-post { border: 1px solid var(--tm-line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.tm-post__img { position: relative; display: block; height: 220px; background: #cfe3ea center / cover no-repeat; }
.tm-post__cat { position: absolute; left: 14px; top: 14px; background: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.tm-post__body { margin: -22px 14px 14px; background: #fff; border-radius: 14px; padding: 16px; position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tm-post__meta { display: flex; gap: 12px; font-size: 12px; color: var(--tm-muted); }
.tm-post h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.tm-post h3 a { text-decoration: none; }
.tm-post__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 12.5px; }
.tm-pages { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
@media (max-width: 960px) { .tm-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tm-posts { grid-template-columns: 1fr; } }

.tm-listing { padding-block: 48px 64px; }
.tm-listing .tm-section-head h1 { margin: 0; font-size: 36px; }
.tm-article { padding-block: 40px 56px; max-width: 820px; }
.tm-article h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 12px 0; }
.tm-article__lead { font-size: 18px; color: #374151; margin: 0 0 24px; }
.tm-article__meta { color: var(--tm-muted); font-size: 13.5px; margin: 0 0 20px; }
.tm-article__cover { width: 100%; border-radius: var(--tm-radius); margin-bottom: 24px; }
.tm-crumbs { font-size: 13px; color: var(--tm-muted); }
.tm-crumbs a { color: var(--tm-muted); }
.tm-prose { font-size: 16px; line-height: 1.7; color: #1f2937; }
.tm-prose > :first-child { margin-top: 0; }
.tm-prose h2 { font-size: 24px; margin: 32px 0 10px; }
.tm-prose h3 { font-size: 19px; margin: 24px 0 8px; }
.tm-prose a { color: var(--tm-brand); }
.tm-prose img { border-radius: 12px; height: auto; }
.tm-prose blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--tm-line); color: #4b5563; }

.tm-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding-block: 48px 64px; }
.tm-contact h1 { font-size: 38px; margin: 0 0 12px; }
.tm-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tm-contact__list strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tm-muted); }
.tm-form { display: grid; gap: 14px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 24px; position: relative; }
.tm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tm-input { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; }
.tm-input input, .tm-input textarea { font: inherit; font-weight: 400; font-size: 15px; border: 1px solid var(--tm-line); border-radius: 10px; padding: 11px 12px; color: var(--tm-ink); background: #fff; }
.tm-input input:focus, .tm-input textarea:focus { outline: 2px solid var(--tm-ink); outline-offset: -1px; }
.tm-form .tm-btn { justify-self: start; }
@media (max-width: 860px) { .tm-contact { grid-template-columns: 1fr; } .tm-form__row { grid-template-columns: 1fr; } }

.tm-footer__news p { font-size: 13px; margin: 0 0 12px; }
.tm-news { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.tm-news input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 13.5px; padding: 8px 14px; background: transparent; color: var(--tm-ink); }
.tm-news button { font: inherit; font-size: 13px; font-weight: 600; background: var(--tm-ink); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.tm-footer .tm-error { color: #fca5a5; }
.tm-footer .cf-turnstile { margin-top: 10px; }

/* M3 · Inventory: shared ---------------------------------------------------- */
.tm-media { position: relative; overflow: hidden; background: var(--tm-surface); display: block; }
.tm-media img, .tm-media .tm-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tm .tm-btn--sm { padding: 8px 15px; min-height: 36px; font-size: 13px; }
.tm .tm-btn--block { width: 100%; }
.tm .tm-btn--ghost { background: #fff; color: var(--tm-ink); border-color: var(--tm-line); }
.tm .tm-btn--ghost:hover { border-color: var(--tm-ink); }
.tm-badge { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 11.5px; font-weight: 600; color: #fff; padding: 5px 11px; border-radius: 999px; }
.tm-badge--top { background: var(--tm-badge-top); }
.tm-badge--sale { background: var(--tm-badge-sale); color: var(--tm-ink); }
.tm-badge--off { background: var(--tm-badge-off); color: var(--tm-ink); }
.tm-detail__name .tm-badge { position: static; }
.tm-star { color: var(--tm-star); }
.tm-score { background: var(--tm-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tm-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; background: var(--tm-surface); padding: 5px 10px; border-radius: 8px; color: #374151; }
.tm-tag--ok { background: #d9f5ea; color: #065f46; font-weight: 600; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tm-small { font-size: 12.5px; }
.tm-right { text-align: right; }
.tm-center { text-align: center; }
.tm-link { text-decoration: underline; color: inherit; }
.tm-ok { display: inline-flex; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #d9f5ea; color: #065f46; }
.tm-ok-text { color: #065f46; font-weight: 600; }
.tm-warn { display: inline-flex; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; }
.tm-note { background: var(--tm-surface); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 12px; }
.tm-note--warn { background: #fef3c7; color: #92400e; }
.tm-empty-card { background: #fff; border: 1px dashed var(--tm-line); border-radius: var(--tm-radius); padding: 32px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.tm-empty-card h2 { margin: 0; font-size: 20px; }
.tm-empty-card p { margin: 0; color: var(--tm-muted); }
.tm-count { margin: 0 0 16px; font-size: 13px; }

/* Search bars (hotels, tours) */
.tm-staybar, .tm-tripfilters { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr auto; gap: 10px; align-items: stretch; }
.tm-tripfilters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.tm-staybar__field { display: grid; gap: 2px; background: #fff; border: 1px solid var(--tm-line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.tm-staybar__field span { font-size: 11px; color: var(--tm-muted); }
.tm-staybar__field input, .tm-staybar__field select { border: 0; outline: 0; font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: var(--tm-ink); width: 100%; padding: 0; min-height: 24px; }
.tm-staybar__field:focus-within { border-color: var(--tm-ink); }
.tm-staybar .tm-btn { border-radius: 12px; padding-inline: 26px; }

/* Trip cards */
.tm-trips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tm-trip { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
.tm-trip:hover { box-shadow: 0 14px 34px rgba(17, 24, 39, .08); transform: translateY(-3px); }
.tm-trip__img { height: 210px; }
.tm-trip__rating { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; align-items: center; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.tm-trip__rating small { font-weight: 400; color: var(--tm-muted); }
.tm-trip__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tm-trip__body h3 { margin: 0; font-size: 16.5px; line-height: 1.3; }
.tm-trip__body h3 a { color: inherit; text-decoration: none; }
.tm-trip__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--tm-muted); }
.tm-trip__next { font-size: 12.5px; color: var(--tm-muted); }
.tm-trip__next strong { color: var(--tm-ink); }
.tm-trip__foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.tm-trip__price { font-size: 19px; font-weight: 700; }
.tm-trip__per, .tm-trip__was { font-size: 12px; color: var(--tm-muted); }
.tm-trip__foot .tm-btn { margin-left: auto; }
.tm-tours__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.tm-tours__filters a { background: var(--tm-surface); }
.tm-tours__more { display: flex; justify-content: center; margin-top: 32px; }

/* Hotel results */
.tm-results-page { background: var(--tm-surface); padding: 18px 0 56px; }
.tm-results { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.tm-filters { background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 18px 20px; position: sticky; top: 16px; }
.tm-filters__head { display: flex; align-items: center; margin-bottom: 6px; }
.tm-filters__head h2 { margin: 0; font-size: 16px; }
.tm-filters__head a { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--tm-muted); }
.tm-filters__set { border: 0; border-top: 1px solid var(--tm-line); margin: 0; padding: 14px 0; }
.tm-filters__set:first-of-type { border-top: 0; }
.tm-filters__set legend { font-size: 13.5px; font-weight: 700; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.tm-filters__set legend span { font-weight: 400; color: var(--tm-muted); }
.tm-filters__price { display: flex; align-items: center; gap: 8px; font-size: 13px; clear: both; }
.tm-filters__price input { width: 110px; font: inherit; border: 1px solid var(--tm-line); border-radius: 8px; padding: 6px 8px; }
.tm-opt { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 4px 0; cursor: pointer; clear: both; }
.tm-opt span { margin-left: auto; font-size: 12px; color: var(--tm-muted); }
.tm-filters__stars { display: flex; gap: 6px; clear: both; }
.tm-starchip input { position: absolute; opacity: 0; }
.tm-starchip span { display: inline-flex; font-size: 12.5px; padding: 6px 11px; border-radius: 8px; background: var(--tm-surface); cursor: pointer; }
.tm-starchip input:checked + span { background: var(--tm-ink); color: #fff; }
.tm-starchip input:focus-visible + span { outline: 2px solid var(--tm-ink); }
.tm-results__main { display: grid; gap: 14px; min-width: 0; }
.tm-results__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.tm-results__head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.tm-results__head p { margin: 2px 0 0; font-size: 13px; color: var(--tm-muted); }
.tm-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tm-muted); }
.tm-sort select { font: inherit; font-weight: 600; color: var(--tm-ink); padding: 8px 10px; border: 1px solid var(--tm-line); border-radius: 10px; background: #fff; }
.tm-hotel { background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; overflow: hidden; }
.tm-hotel__img { min-height: 220px; }
.tm-hotel__src { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 600; background: #fff; color: #065f46; padding: 4px 9px; border-radius: 999px; }
.tm-hotel__count { position: absolute; left: 12px; bottom: 12px; font-size: 11.5px; background: rgba(17, 24, 39, .75); color: #fff; padding: 3px 8px; border-radius: 999px; }
.tm-hotel__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tm-hotel__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-hotel__title h2 { margin: 0; font-size: 19px; }
.tm-hotel__title h2 a { color: inherit; text-decoration: none; }
.tm-hotel__title .tm-stars { margin-left: 0; font-size: 12px; }
.tm-hotel__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.tm-hotel__body p { margin: 0; font-size: 13.5px; color: #4b5563; line-height: 1.55; }
.tm-hotel__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tm-hotel__side { padding: 18px 20px; border-left: 1px solid var(--tm-line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tm-hotel__side .tm-small { color: var(--tm-muted); }
.tm-hotel__side .tm-small strong { color: var(--tm-ink); }
.tm-hotel__price { margin-top: auto; display: grid; }
.tm-hotel__price strong { font-size: 24px; letter-spacing: -.02em; }
.tm-hotel__price span, .tm-hotel__price small { font-size: 12px; color: var(--tm-muted); }

/* Detail pages (hotel, tour, package) */
.tm-detail { padding-top: 16px; padding-bottom: 56px; }
.tm-crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-crumbs [aria-current] { color: var(--tm-ink); }
.tm-detail__title { display: flex; gap: 12px; margin-top: 10px; }
.tm-detail__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-detail__name h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.tm-detail__name .tm-stars { margin-left: 0; }
.tm-detail__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; }
.tm-detail__info a { color: inherit; }
.tm-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; margin-top: 16px; position: relative; }
.tm-gallery--single { grid-template-columns: 1fr; grid-template-rows: 380px; }
.tm-gallery button { border: 0; padding: 0; cursor: zoom-in; font: inherit; }
.tm-gallery__main { grid-row: span 2; border-radius: 12px; }
.tm-gallery--single .tm-gallery__main { grid-row: auto; }
.tm-gallery__thumb { border-radius: 12px; }
.tm-gallery .tm-gallery__all { position: absolute; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--tm-line); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-lightbox { border: 0; padding: 0; background: #0b0f14; width: min(1100px, 96vw); max-height: 92vh; border-radius: 14px; overflow: hidden; }
.tm-lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.tm-lightbox img { display: block; width: 100%; max-height: 86vh; object-fit: contain; }
.tm-lightbox__close, .tm-lightbox__nav { position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 18px; }
.tm-lightbox__close { right: 12px; top: 12px; }
.tm-lightbox__nav { top: 50%; transform: translateY(-50%); }
.tm-lightbox__nav--prev { left: 12px; }
.tm-lightbox__nav--next { right: 12px; }
.tm-tabsbar { display: flex; gap: 26px; overflow-x: auto; border-bottom: 1px solid var(--tm-line); margin-top: 18px; position: sticky; top: 0; background: var(--tm-ground); z-index: 5; }
.tm-tabsbar a { font-size: 13.5px; font-weight: 600; color: var(--tm-muted); padding: 14px 0; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.tm-tabsbar a:hover { color: var(--tm-ink); border-bottom-color: var(--tm-ink); }
.tm-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-top: 24px; }
.tm-detail__main { display: grid; gap: 36px; min-width: 0; }
.tm-detail__section { scroll-margin-top: 64px; }
.tm-detail__section h2 { margin: 0 0 12px; font-size: 20px; }
.tm-detail__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tm-detail__h span { font-size: 13px; color: var(--tm-muted); }
.tm-rooms { display: grid; gap: 12px; }
.tm-room { border: 1px solid var(--tm-line); border-radius: 14px; display: grid; grid-template-columns: 190px minmax(0, 1fr) 210px; overflow: hidden; background: #fff; }
.tm-room.is-selected { border-color: var(--tm-ink); box-shadow: 0 0 0 1px var(--tm-ink); }
.tm-room.is-off { opacity: .6; }
.tm-room__img { min-height: 150px; }
.tm-room__body { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.tm-room__body > strong { font-size: 16px; }
.tm-room__body .tm-tags { margin-top: 0; }
.tm-room__side { padding: 16px 18px; border-left: 1px solid var(--tm-line); display: flex; flex-direction: column; gap: 3px; align-items: flex-end; text-align: right; }
.tm-room__side > strong { font-size: 21px; letter-spacing: -.02em; }
.tm-select { margin-top: auto; font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--tm-ink); background: #fff; color: var(--tm-ink); text-decoration: none; white-space: nowrap; }
.tm-select .tm-select__on { display: none; }
.tm-select[aria-pressed="true"] { background: var(--tm-ink); color: #fff; }
.tm-select[aria-pressed="true"] .tm-select__on { display: inline; }
.tm-select[aria-pressed="true"] .tm-select__off { display: none; }
.tm-amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; font-size: 13.5px; }
.tm-amenities span { display: flex; align-items: center; gap: 8px; }
.tm-amenities i { font-style: normal; width: 22px; text-align: center; }
.tm-nearby { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: 13.5px; }
.tm-nearby li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--tm-line); padding: 5px 0; }
.tm-policies { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 13.5px; }
.tm-policies dt, .tm-facts dt { font-weight: 600; }
.tm-policies dd, .tm-facts dd { margin: 2px 0 0; color: #4b5563; }
.tm-facts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; font-size: 13.5px; border-top: 1px solid var(--tm-line); padding-top: 16px; }
.tm-components { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-components li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--tm-line); border-radius: 12px; padding: 12px 14px; }
.tm-components li div { display: grid; gap: 2px; font-size: 13.5px; }
.tm-components a { color: inherit; }
.tm-components__day { flex: 0 0 auto; font-size: 12px; font-weight: 700; background: var(--tm-surface); border-radius: 8px; padding: 5px 9px; }
.tm-itinerary { margin: 0; padding: 0 0 0 22px; display: grid; gap: 14px; }
.tm-itinerary p { margin: 4px 0 0; color: #4b5563; font-size: 14px; line-height: 1.6; }
.tm-incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tm-incl h3 { margin: 0 0 8px; font-size: 16px; }
.tm-incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.tm-departures { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm-departures li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; border: 1px solid var(--tm-line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.tm-departures li.is-selected { border-color: var(--tm-ink); box-shadow: 0 0 0 1px var(--tm-ink); }
.tm-departures__date { display: grid; }
.tm-departures__price { display: flex; gap: 8px; align-items: baseline; }
.tm-departures__price strong { font-size: 16px; }
.tm-departures .tm-select { margin-top: 0; }
.tm-reviewsum { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.tm-reviewsum__tile { border: 1px solid var(--tm-line); border-radius: 14px; padding: 16px; text-align: center; display: grid; gap: 2px; }
.tm-reviewsum__tile strong { font-size: 40px; letter-spacing: -.03em; }
.tm-reviewsum__tile small { font-size: 12.5px; color: var(--tm-muted); }
.tm-reviewlist { display: grid; gap: 12px; }
.tm-reviewitem { border: 1px solid var(--tm-line); border-radius: 14px; padding: 14px; font-size: 13px; }
.tm-reviewitem > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-reviewitem h3 { margin: 8px 0 2px; font-size: 14.5px; }
.tm-reviewitem p { margin: 0; font-size: 13.5px; color: #374151; line-height: 1.55; }
.tm-reserve { position: sticky; top: 60px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 20px; background: #fff; box-shadow: 0 12px 32px rgba(17, 24, 39, .08); display: grid; gap: 12px; scroll-margin-top: 64px; }
.tm-reserve .tm-staybar, .tm-reserve__form { grid-template-columns: 1fr 1fr; display: grid; gap: 8px; }
.tm-reserve .tm-staybar label:nth-of-type(3), .tm-reserve__form label:first-child, .tm-reserve .tm-staybar .tm-btn { grid-column: span 2; }
.tm-reserve__room { border-top: 1px solid var(--tm-line); padding-top: 12px; display: grid; }
.tm-reserve__room strong { font-size: 15px; }
.tm-reserve__lines { display: grid; gap: 4px; font-size: 13px; }
.tm-reserve__lines > div { display: flex; justify-content: space-between; gap: 10px; }
.tm-reserve__total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--tm-line); padding-top: 8px; margin-top: 4px; }
.tm-reserve__terms { background: #d9f5ea; color: #065f46; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.tm-reserve__terms p { margin: 0; }
.tm-reserve__terms.is-strict { background: #fef3c7; color: #92400e; }
.tm-reserve__notes { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--tm-line); display: grid; gap: 4px; font-size: 12.5px; color: #4b5563; }

/* Services block */
.tm-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tm-service { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 24px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: #fff; color: var(--tm-ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.tm-service:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(17, 24, 39, .08); }
.tm-service__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.tm-service h3 { margin: 0; font-size: 18px; }
.tm-service p { margin: 0; font-size: 13.5px; color: #4b5563; line-height: 1.55; flex: 1; }
.tm-service__meta { font-size: 12px; color: var(--tm-muted); }
.tm-service__go { font-size: 13px; font-weight: 600; }

@media (max-width: 1080px) {
    .tm-trips, .tm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-results { grid-template-columns: 1fr; }
    .tm-filters { position: static; }
    .tm-hotel { grid-template-columns: 240px minmax(0, 1fr); }
    .tm-hotel__side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--tm-line); flex-direction: row; flex-wrap: wrap; align-items: center; }
    .tm-hotel__side .tm-btn--block { width: auto; margin-left: auto; }
    .tm-detail__grid { grid-template-columns: 1fr; }
    .tm-reserve { position: static; }
    .tm-staybar { grid-template-columns: 1fr 1fr; }
    .tm-staybar__field--wide, .tm-staybar .tm-btn { grid-column: span 2; }
}
@media (max-width: 720px) {
    .tm-trips, .tm-services, .tm-amenities, .tm-policies, .tm-nearby, .tm-incl, .tm-reviewsum { grid-template-columns: 1fr; }
    .tm-hotel, .tm-room { grid-template-columns: 1fr; }
    .tm-hotel__img, .tm-room__img { min-height: 190px; }
    .tm-room__side { border-left: 0; border-top: 1px solid var(--tm-line); align-items: flex-start; text-align: left; }
    .tm-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px; }
    .tm-gallery__main { grid-column: span 2; grid-row: auto; }
    .tm-gallery__thumb:nth-of-type(n+4) { display: none; }
    .tm-departures li { grid-template-columns: 1fr auto; }
    .tm-detail__name h1 { font-size: 24px; }
}

/* Hero v2 (owner, 2026-10-08): full-screen, under a glass header, 3D slide
   changes, bottom faded into the page. ---------------------------------- */
.tm-header--overlay {
    background: linear-gradient(180deg, rgba(8, 18, 26, .42), rgba(8, 18, 26, .18));
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
}
.tm-header--overlay .tm-header__nav a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.tm-header--overlay .tm-header__nav a:hover { border-bottom-color: var(--tm-hero-accent); }
.tm-header--overlay .tm-currency select { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.tm-header--overlay .tm-currency option { color: var(--tm-ink); }
.tm .tm-header--overlay .tm-btn--dark { background: #fff; color: var(--tm-ink); }
.tm-header--overlay .tm-header__brand img { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }

.tm-hero { min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: visible; overflow-x: clip;
    /* The last pixels are page-coloured: a fractional height would otherwise show a dark seam under the fade. */
    background: linear-gradient(180deg, #0b1a24 calc(100% - 6px), var(--tm-ground) calc(100% - 6px)); }
.tm-hero__scene {
    transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, opacity, filter;
    transform: translate3d(8%, 0, -260px) rotateY(-14deg) scale(1.08); filter: blur(6px) brightness(.8);
    transition: opacity 1.1s cubic-bezier(.22, .8, .2, 1), transform 1.4s cubic-bezier(.22, .8, .2, 1), filter 1.1s ease;
}
.tm-hero__scene.is-active { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); filter: none; animation: tm-kenburns 14s ease-out forwards; }
.tm-hero__scene.is-leaving { opacity: 0; transform: translate3d(-10%, 0, -320px) rotateY(16deg) scale(1.02); filter: blur(4px) brightness(.7); }
.tm-hero[data-dir="prev"] .tm-hero__scene:not(.is-active):not(.is-leaving) { transform: translate3d(-8%, 0, -260px) rotateY(14deg) scale(1.08); }
.tm-hero[data-dir="prev"] .tm-hero__scene.is-leaving { transform: translate3d(10%, 0, -320px) rotateY(-16deg) scale(1.02); }
@keyframes tm-kenburns { from { scale: 1; } to { scale: 1.09; } }
.tm-hero__scene:not([style*="background-image"]) { animation: none; }

/* Shade for the copy, and the fade into the page below. */
.tm-hero__shade { background: linear-gradient(90deg, rgba(8, 18, 26, .72) 0%, rgba(8, 18, 26, .38) 50%, rgba(8, 18, 26, .08) 100%), linear-gradient(180deg, rgba(8, 18, 26, .35) 0%, rgba(8, 18, 26, 0) 22%); }
.tm-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, color-mix(in srgb, var(--tm-ground) 55%, transparent) 62%, var(--tm-ground) 100%);
}
.tm-hero__copy, .tm-hero__strip { z-index: 1; }
.tm-hero__copy { padding-top: clamp(130px, 18vh, 200px); }
.tm-hero__strip { padding-bottom: clamp(110px, 14vh, 160px); }

/* Copy: each line rises and turns in, one after the other. */
.tm-hero__text { animation: none; perspective: 900px; }
.tm-hero__text > * { transform-origin: 0 100%; }
.tm-hero__text.is-active > * { animation: tm-rise3d .9s cubic-bezier(.2, .8, .2, 1) both; }
.tm-hero__text.is-active > :nth-child(2) { animation-delay: .08s; }
.tm-hero__text.is-active > :nth-child(3) { animation-delay: .16s; }
.tm-hero__text.is-active > :nth-child(4) { animation-delay: .24s; }
@keyframes tm-rise3d { from { opacity: 0; transform: translate3d(0, 34px, -60px) rotateX(-38deg); } to { opacity: 1; transform: none; } }

/* Cards: tilt in space, the active one stands up. */
.tm-hero__cards { perspective: 1200px; padding: 22px 30px; margin-inline: -30px; }
.tm-hero__card { transform-style: preserve-3d; transition: transform .6s cubic-bezier(.22, .8, .2, 1), box-shadow .6s ease, outline-color .2s, opacity .4s; background: rgba(13, 24, 33, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tm-hero__thumb { transition: transform 1.2s cubic-bezier(.22, .8, .2, 1); }
.tm-hero__card.is-active .tm-hero__thumb { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
    .tm-hero__scene, .tm-hero__scene.is-active, .tm-hero__scene.is-leaving { transform: none; filter: none; animation: none; transition: opacity .3s; }
    .tm-hero__text.is-active > * { animation: none; transform: none; }
}
@media (max-width: 640px) { .tm-hero__copy { padding-top: 150px; } }

/* M4 · Checkout, booking page, account ---------------------------------- */
.tm-checkout-page { background: var(--tm-surface); padding: 20px 0 56px; min-height: 60vh; }
.tm-panel { background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 22px 24px; }
.tm-panel h2 { margin: 0 0 14px; font-size: 17px; }
.tm-panel__h { display: flex; align-items: center; gap: 10px; }
.tm-num { width: 26px; height: 26px; border-radius: 50%; background: var(--tm-ink); color: #fff; font-size: 12.5px; display: inline-grid; place-items: center; flex: 0 0 26px; }
.tm-steps { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--tm-muted); }
.tm-steps i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #d1d5db; display: inline-grid; place-items: center; font-style: normal; font-size: 12px; margin-right: 8px; }
.tm-steps .is-done, .tm-steps .is-current { color: var(--tm-ink); }
.tm-steps .is-done i, .tm-steps .is-current i { background: var(--tm-ink); border-color: var(--tm-ink); color: #fff; }
.tm-steps__note { margin-left: auto; font-weight: 500; font-size: 12.5px; }
.tm-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.tm-checkout__form { display: grid; gap: 16px; min-width: 0; }
.tm-checkout__aside { position: sticky; top: 16px; display: grid; gap: 12px; }
.tm-checkout__signin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; font-size: 13.5px; }
.tm-checkout__signin .tm-btn { margin-left: auto; }
.tm-checkout__confirm { display: grid; gap: 12px; }
.tm-checkout__notes { display: grid; gap: 6px; padding: 14px 20px; }
.tm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.tm-span2 { grid-column: span 2; }
.tm-stack { display: grid; gap: 4px; }
.tm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; margin-top: 12px; cursor: pointer; }
.tm-check input { margin-top: 3px; }
.tm-input small { font-weight: 400; color: var(--tm-muted); }
.tm-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.tm-paymethod { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; border: 1.5px solid var(--tm-ink); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.tm-paymethod small { display: block; font-size: 12.5px; color: var(--tm-muted); }
.tm-paymethod__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tm-ink); display: grid; place-items: center; }
.tm-paymethod__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tm-ink); }
.tm-summary { padding: 0; overflow: hidden; }
.tm-summary__img { height: 140px; }
.tm-summary__body { padding: 16px 20px; display: grid; gap: 10px; }
.tm-summary__title { display: block; font-size: 16px; }
.tm-summary__facts { display: grid; gap: 3px; font-size: 13px; color: #374151; }
.tm-summary__lines { display: grid; gap: 5px; font-size: 13px; border-top: 1px solid var(--tm-line); padding-top: 10px; }
.tm-panel.tm-summary__lines { border-top: 1px solid var(--tm-line); padding: 14px 20px; }
.tm-summary__lines > div { display: flex; justify-content: space-between; gap: 12px; }
.tm-warn-text { color: #b8371b; font-weight: 600; }
.tm-badge-status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; justify-self: start; }
.tm-badge-status--warn { background: #ffe8e0; color: #b8371b; }
.tm-badge-status--ok { background: #d9f5ea; color: #065f46; }
.tm-badge-status--off { background: var(--tm-surface); color: #374151; }
.tm-state { display: flex; gap: 18px; align-items: flex-start; }
.tm-state h1 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.tm-state p { margin: 0; color: #374151; line-height: 1.6; }
.tm-state__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: 0 0 52px; }
.tm-state__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tm-state__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tm-state--warn { border-color: #f4a28c; } .tm-state--warn .tm-state__icon { background: #ffe8e0; color: #b8371b; } .tm-state--warn .tm-state__eyebrow { color: #b8371b; }
.tm-state--ok { border-color: #8fd8b5; } .tm-state--ok .tm-state__icon { background: #d9f5ea; color: #065f46; } .tm-state--ok .tm-state__eyebrow { color: #065f46; }
.tm-state--off .tm-state__icon { background: var(--tm-surface); color: #374151; } .tm-state--off .tm-state__eyebrow { color: var(--tm-muted); }
.tm-paygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tm-bank { display: grid; gap: 6px; }
.tm-bank__row { display: flex; align-items: center; gap: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--tm-surface); border-radius: 8px; padding: 8px 10px; }
.tm-bank__row span { color: var(--tm-muted); font-family: var(--tm-font); font-size: 12px; min-width: 76px; }
.tm-copy { margin-left: auto; font: inherit; font-family: var(--tm-font); font-size: 11px; border: 1px solid var(--tm-line); background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.tm-slip { display: grid; gap: 10px; }
.tm-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tm-todo li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; font-size: 13.5px; }
.tm-todo i { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--tm-surface); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.tm-todo .is-done i { background: #d9f5ea; color: #065f46; }
.tm-todo .is-now i { background: var(--tm-ink); color: #fff; }
.tm-todo span { color: #4b5563; line-height: 1.5; }
.tm-doc { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--tm-line); }
.tm-doc:last-child { border-bottom: 0; }
.tm-doc a, .tm-doc .tm-muted { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.tm-cancel summary { cursor: pointer; font-weight: 600; }
.tm-cancel form { display: grid; gap: 10px; margin-top: 12px; max-width: 460px; }
.tm-header__account { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tm-header--overlay .tm-header__account { color: #fff; }
.tm-account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.tm-account__nav { padding: 12px; position: sticky; top: 16px; display: grid; gap: 2px; }
.tm-account__nav a, .tm-account__nav button { display: block; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--tm-ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; border: 0; background: none; width: 100%; cursor: pointer; }
.tm-account__nav a[aria-current] { background: var(--tm-surface); }
.tm-account__nav button { color: var(--tm-muted); border-top: 1px solid var(--tm-line); border-radius: 0; margin-top: 6px; }
.tm-account__me { display: flex; align-items: center; gap: 10px; padding: 8px 12px 14px; }
.tm-account__me small { display: block; font-size: 12px; color: var(--tm-muted); }
.tm-avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.tm-account__main { display: grid; gap: 16px; min-width: 0; }
.tm-account__main h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.tm-account__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.tm-account__head p { margin: 2px 0 0; font-size: 13px; }
.tm-account__head > :last-child { margin-left: auto; }
.tm-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-color: #f4a28c; background: #fff7f4; }
.tm-action strong { display: block; margin: 4px 0; font-size: 16px; }
.tm-action span { font-size: 13.5px; color: #374151; }
.tm-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.tm-glance div { background: var(--tm-surface); border-radius: 12px; padding: 12px; }
.tm-glance strong { display: block; font-size: 22px; }
.tm-glance span { font-size: 12px; color: var(--tm-muted); }
.tm-table-wrap { padding: 6px 10px; overflow-x: auto; }
.tm-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tm-table th { text-align: left; font-weight: 600; color: var(--tm-muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--tm-line); }
.tm-table td { padding: 12px 10px; border-bottom: 1px solid var(--tm-surface); vertical-align: middle; }
.tm-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--tm-surface); color: #374151; white-space: nowrap; }
.tm-pill--warn { background: #ffe8e0; color: #b8371b; }
.tm-pill--ok { background: #d9f5ea; color: #065f46; }
@media (max-width: 1080px) {
    .tm-checkout, .tm-account { grid-template-columns: 1fr; }
    .tm-checkout__aside, .tm-account__nav { position: static; }
}
@media (max-width: 720px) {
    .tm-grid2, .tm-paygrid { grid-template-columns: 1fr; }
    .tm-span2 { grid-column: auto; }
    .tm-action { grid-template-columns: 1fr; }
    .tm-steps__note { margin-left: 0; width: 100%; }
}
.tm-input select { font: inherit; font-weight: 400; font-size: 15px; border: 1px solid var(--tm-line); border-radius: 10px; padding: 11px 12px; color: var(--tm-ink); background: #fff; }
.tm [hidden] { display: none !important; }
.tm-summary__lines small { display: block; color: var(--tm-muted); font-size: 12px; }

/* The active card keeps the accent outline. */
.tm-hero__card.is-active { outline-color: var(--tm-hero-accent); }

/* Owner, 2026-10-08: lighter glass bar; cards stay in order, the active one centred and raised. */
.tm-header--overlay {
    background: linear-gradient(180deg, rgba(8, 18, 26, .22), rgba(8, 18, 26, .06));
    -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
    border-bottom-color: rgba(255, 255, 255, .12);
}
.tm-hero__cards {
    position: relative; overflow: visible; display: block; height: 260px; margin-inline: 0; padding: 0;
    --step: 252px; perspective: 1400px;
}
.tm-hero__card {
    order: 0; position: absolute; left: 50%; top: 24px; width: 236px; margin-left: -118px;
    --tilt: 0deg; --depth: 0px; --lift: 0px; --scale: 1;
    transform: translateX(calc(var(--pos, 0) * var(--step))) translateY(var(--lift)) translateZ(var(--depth)) rotateY(var(--tilt)) scale(var(--scale));
    opacity: clamp(0, calc(1.25 - var(--abs, 0) * .25), 1);
    transition: transform .9s cubic-bezier(.22, .8, .2, 1), opacity .6s ease, box-shadow .6s ease, outline-color .2s;
    z-index: calc(10 - var(--abs, 0));
}
/* Only the middle five show; the rest wait (invisible) to come round. */
.tm-hero__card[data-far] { opacity: 0; pointer-events: none; }
.tm-hero__card[data-side="left"] { --tilt: 18deg; --depth: calc(var(--abs, 1) * -50px); --scale: .94; }
.tm-hero__card[data-side="right"] { --tilt: -18deg; --depth: calc(var(--abs, 1) * -50px); --scale: .94; }
.tm-hero__card[data-side="active"] { --depth: 60px; --lift: -16px; --scale: 1.07; box-shadow: 0 34px 70px rgba(0, 0, 0, .5); outline-color: var(--tm-hero-accent); }
.tm-hero__card[data-side="left"]:hover, .tm-hero__card[data-side="right"]:hover { --tilt: 0deg; --scale: 1; }
@media (prefers-reduced-motion: reduce) { .tm-hero__card { transition: opacity .2s; } }
@media (max-width: 900px) { .tm-hero__cards { --step: 200px; } .tm-hero__card { width: 196px; margin-left: -98px; } }
@media (max-width: 640px) { .tm-hero__cards { --step: 172px; height: 230px; } .tm-hero__card { width: 164px; margin-left: -82px; } .tm-hero__card[data-side="left"], .tm-hero__card[data-side="right"] { --tilt: 0deg; } }
.tm-paymethods { display: grid; gap: 8px; }
.tm-paymethods .tm-paymethod { cursor: pointer; border-color: var(--tm-line); margin-top: 0; }
.tm-paymethods .tm-paymethod input { position: absolute; opacity: 0; }
.tm-paymethods .tm-paymethod__dot::after { background: transparent; }
.tm-paymethods .tm-paymethod:has(input:checked) { border-color: var(--tm-ink); box-shadow: 0 0 0 1px var(--tm-ink); }
.tm-paymethods .tm-paymethod:has(input:checked) .tm-paymethod__dot::after { background: var(--tm-ink); }
.tm-paymethods .tm-paymethod:has(input:focus-visible) { outline: 2px solid var(--tm-ink); outline-offset: 2px; }
.tm-spin { animation: tm-spin 1.2s linear infinite; }
@keyframes tm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tm-spin { animation: none; } }
.tm-hotel__src--partner { color: #1f2937; }

/* M7 · Flights */
.tm-flightbar { grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr .8fr 1fr auto; }
.tm-flight { background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); display: grid; grid-template-columns: minmax(0, 1fr) 220px; overflow: hidden; }
.tm-flight__slices { padding: 16px 20px; display: grid; gap: 14px; }
.tm-flight__label { font-size: 12px; color: var(--tm-muted); }
.tm-flight__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 4px; }
.tm-flight__time { display: grid; text-align: center; }
.tm-flight__time strong { font-size: 20px; letter-spacing: -.02em; }
.tm-flight__time small { font-size: 12px; color: var(--tm-muted); font-weight: 600; }
.tm-flight__time sup { font-size: 11px; color: #b8371b; margin-left: 2px; }
.tm-flight__line { display: grid; justify-items: center; gap: 3px; font-size: 12px; color: var(--tm-muted); }
.tm-flight__line i { display: block; width: 100%; height: 2px; background: var(--tm-line); position: relative; }
.tm-flight__line i::after { content: "✈"; position: absolute; right: -2px; top: -9px; font-style: normal; font-size: 13px; color: var(--tm-ink); }
.tm-flight__meta { font-size: 13px; border-top: 1px dashed var(--tm-line); padding-top: 10px; }
.tm-flight__side { padding: 16px 20px; border-left: 1px solid var(--tm-line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tm-passenger { border: 1px solid var(--tm-line); border-radius: 12px; padding: 14px; margin-top: 12px; display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px 12px; }
.tm-passenger legend { font-weight: 700; font-size: 13.5px; padding: 0 6px; }
.tm-itinerary-mini { display: grid; gap: 4px; font-size: 13px; }
@media (max-width: 1080px) { .tm-flightbar { grid-template-columns: 1fr 1fr; } .tm-flightbar .tm-btn { grid-column: span 2; } }
@media (max-width: 720px) { .tm-flight { grid-template-columns: 1fr; } .tm-flight__side { border-left: 0; border-top: 1px solid var(--tm-line); } .tm-passenger { grid-template-columns: 1fr; } }

/* M8 · Trip builder */
.tm-tripsum { display: grid; gap: 8px; }
.tm-tripsum__part { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--tm-line); padding-bottom: 8px; font-size: 13.5px; }
.tm-tripsum__part small { display: block; font-size: 12px; color: var(--tm-muted); }
.tm-builderbar { grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.3fr auto; }
.tm-builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 20px; }
.tm-builder__section { display: grid; gap: 10px; }
.tm-builder__section h2 { margin: 6px 0 0; font-size: 20px; }
.tm-builder__section h2 small { font-size: 13px; font-weight: 500; color: var(--tm-muted); margin-left: 6px; }
.tm-builder__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 10px; }
.tm-builder__row a { color: inherit; }
.tm-builder__img { height: 84px; border-radius: 10px; }
.tm-builder__side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.tm-builder__side > strong { font-size: 18px; }
.tm-builder__flight { display: grid; gap: 6px; }
.tm-builder__flight .tm-addtrip { justify-self: end; }
.tm-basket { position: sticky; top: 16px; display: grid; gap: 12px; }
.tm-basket h2 { margin: 0; font-size: 18px; }
.tm-basket__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-basket__parts li { display: grid; gap: 2px; border-bottom: 1px dashed var(--tm-line); padding-bottom: 10px; font-size: 13.5px; }
.tm-basket__kind { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tm-muted); }
.tm-basket__row { display: flex; justify-content: space-between; align-items: center; }
.tm-basket__row button { background: none; border: 0; cursor: pointer; color: var(--tm-muted); padding: 0; }
.tm-addtrip { margin: 0; }
.tm-header__trip { font-size: 13px; font-weight: 700; text-decoration: none; background: var(--tm-hero-accent); color: var(--tm-ink); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 1080px) { .tm-builder { grid-template-columns: 1fr; } .tm-basket { position: static; } .tm-builderbar { grid-template-columns: 1fr 1fr; } .tm-builderbar .tm-btn { grid-column: span 2; } }
@media (max-width: 640px) { .tm-builder__row { grid-template-columns: 80px minmax(0, 1fr); } .tm-builder__side { grid-column: span 2; justify-items: start; text-align: left; } }
.tm-addtrip__link { background: none; border: 0; cursor: pointer; padding: 4px 0 0; color: var(--tm-ink); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; }


/* Photos and shade live in their own clipped layer, so the hero itself does not clip what
   opens over its edge (the search's calendar and guests). */
.tm-hero__stage { position: absolute; inset: 0 0 3px; z-index: 0; overflow: hidden; perspective: 1600px; perspective-origin: 50% 40%; }

/* ---------- Glass search, inside the hero ---------- */
.tm-hero--search .tm-hero__copy { padding-top: clamp(118px, 15vh, 170px); }
.tm-hero--search .tm-hero h1, .tm-hero--search h1 { font-size: clamp(38px, 5.2vw, 64px); }
.tm-hero--search .tm-hero__strip { padding-top: 22px; }
.tm-hero .tm-search { position: relative; z-index: 4; margin: clamp(22px, 4vh, 38px) 0 0; }
.tm-sf--glass .tm-sf__card {
    background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .32);
    box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    color: #fff;
}
.tm-sf--glass .tm-sf__tabs { background: rgba(10, 20, 30, .28); }
.tm-sf--glass .tm-sf__tab { color: rgba(255, 255, 255, .82); }
.tm-sf--glass .tm-sf__tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tm-sf--glass .tm-sf__tab[aria-selected="true"] { background: #fff; color: var(--tm-ink); }
.tm-sf--glass .tm-sf__lead { color: rgba(255, 255, 255, .8); }
.tm-sf--glass .tm-sf__field { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); margin: 3px; }
.tm-sf--glass .tm-sf__field::before { display: none !important; }
.tm-sf--glass .tm-sf__pair { gap: 0; }
.tm-sf--glass .tm-sf__field:hover { background: rgba(255, 255, 255, .18); }
.tm-sf--glass .tm-sf__label { color: rgba(255, 255, 255, .72); }
.tm-sf--glass .tm-sf__icon { color: rgba(255, 255, 255, .8); }
.tm-sf--glass .tm-sf__value, .tm-sf--glass .tm-sf__text input, .tm-sf--glass .tm-sf__text select { color: #fff; }
.tm-sf--glass .tm-sf__text input::placeholder, .tm-sf--glass .tm-sf__field.is-empty .tm-sf__value { color: rgba(255, 255, 255, .62); }
.tm-sf--glass .tm-sf__text select option { color: var(--tm-ink); }
.tm-sf--glass .tm-sf__text select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.tm-sf--glass .tm-sf__badge { background: rgba(255, 255, 255, .2); color: #fff; }
/* Focused or open: the field turns solid white, like a lifted card. */
.tm-sf--glass .tm-sf__field:focus-within, .tm-sf--glass .tm-sf__field.is-open { background: #fff; border-color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.tm-sf--glass .tm-sf__field:focus-within .tm-sf__label, .tm-sf--glass .tm-sf__field.is-open .tm-sf__label { color: var(--tm-muted); }
.tm-sf--glass .tm-sf__field:focus-within .tm-sf__value, .tm-sf--glass .tm-sf__field.is-open .tm-sf__value,
.tm-sf--glass .tm-sf__field:focus-within input, .tm-sf--glass .tm-sf__field:focus-within select { color: var(--tm-ink); }
.tm-sf--glass .tm-sf__field:focus-within input::placeholder { color: #9ca3af; }
.tm-sf--glass .tm-sf__field:focus-within .tm-sf__badge, .tm-sf--glass .tm-sf__field.is-open .tm-sf__badge { background: var(--tm-surface); color: var(--tm-ink); }
.tm-sf--glass .tm-sf__swap { background: rgba(255, 255, 255, .92); border-color: transparent; }
.tm-sf--glass .tm-sf__chip span { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.tm-sf--glass .tm-sf__chip input:checked + span { background: #fff; color: var(--tm-ink); border-color: #fff; }
.tm-sf--glass .tm-sf__go { margin: 3px 3px 3px 6px; min-height: 62px; }
.tm-sf--glass .tm-sf__notes { color: rgba(255, 255, 255, .92); justify-content: flex-start; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.tm-sf--glass .tm-sf__notes .tm-icon { color: var(--tm-hero-accent); }
.tm-sf--glass .tm-sf__field.is-restricted .tm-sf__badge { display: none; }
/* Packages: four fields; the destination and the optional origin give room to dates and guests. */
.tm-sf__form--packages .tm-sf__field--where { flex: 1 1 170px; }
.tm-sf__form--packages .tm-sf__field--dates { flex: 1.6 1 240px; }
.tm-sf__form--packages .tm-sf__field--guests { flex: 1.25 1 200px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tm-sf--glass .tm-sf__card { background: rgba(12, 24, 34, .82); }
}
@media (max-width: 1100px) { .tm-sf--glass .tm-sf__go { margin: 6px 3px 3px; } }
@media (max-width: 760px) {
    .tm-hero .tm-search { margin-top: 22px; }
    .tm-sf--glass .tm-sf__field { margin: 2px 0; }
    body.tm-sf-sheet .tm-hero { z-index: 95; }
}
.tm-cal__note--dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tm-ink); margin-right: 8px; vertical-align: 1px; }

/* ---------- Offers (blocks/promos + js/flow.js): a 3D coverflow of photo cards ---------- */
.tm-offers { position: relative; padding: 76px 0 64px; overflow: hidden;
    background: radial-gradient(60% 50% at 50% 55%, color-mix(in srgb, var(--tm-brand) 7%, transparent), transparent 70%); }
.tm-offers__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tm-offers__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-brand); }
.tm-offers__head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; }
.tm-offers__nav { display: flex; gap: 10px; }

.tm-flow { --step: 360px; --w: min(420px, 78vw); position: relative; height: 560px; margin-top: 34px; perspective: 1500px; perspective-origin: 50% 45%; outline: none; touch-action: pan-y; user-select: none; }
.tm-flow:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 8px; border-radius: 24px; }
.tm-flow .tm-offer {
    position: absolute; left: 50%; top: 10px; width: var(--w); height: 520px; margin-left: calc(var(--w) / -2);
    transform-style: preserve-3d; cursor: pointer;
    transform: translate3d(calc(var(--d, 0) * var(--step)), 0, calc(var(--abs, 0) * -170px)) rotateY(calc(var(--d, 0) * -34deg)) scale(calc(1 - var(--abs, 0) * .06));
    z-index: calc(20 - var(--abs, 0)); opacity: calc(1 - var(--abs, 0) * .18);
    transition: transform .85s cubic-bezier(.22, .8, .2, 1), opacity .6s ease, filter .6s ease;
}
.tm-flow .tm-offer[data-side="active"] { cursor: default; }
.tm-flow .tm-offer[data-side="left"], .tm-flow .tm-offer[data-side="right"] { filter: brightness(.78) saturate(.9); }
.tm-flow .tm-offer[data-side="left"]:hover, .tm-flow .tm-offer[data-side="right"]:hover { filter: brightness(.92); }
.tm-flow .tm-offer[data-far] { opacity: 0; pointer-events: none; }

.tm-offer__inner { position: relative; height: 100%; border-radius: 28px; overflow: hidden; isolation: isolate; background: var(--offer-bg);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .6s;
    box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .04); }
.tm-flow .tm-offer[data-side="active"] .tm-offer__inner { box-shadow: 0 44px 90px -28px rgba(15, 23, 42, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.tm-offer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.12); transition: transform 1.6s cubic-bezier(.22, .8, .2, 1); pointer-events: none; }
.tm-offer[data-side="active"] .tm-offer__img, .tm-offers__grid .tm-offer__img { transform: scale(1.02); }
.tm-offer--photo .tm-offer__inner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 15, 24, .38) 0%, rgba(8, 15, 24, 0) 26%, rgba(8, 15, 24, .08) 48%, rgba(8, 15, 24, .82) 100%); }
.tm-offer__shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 60%); mix-blend-mode: soft-light; }
.tm-offer[data-side="active"]:hover .tm-offer__shine { opacity: 1; }

.tm-offer__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 8px; transform: translateZ(40px); }
.tm-offer__label, .tm-offer__until { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tm-offer__until { background: rgba(8, 15, 24, .35); }
.tm-offer__body { position: absolute; left: 24px; right: 24px; bottom: 24px; color: #fff; transform: translateZ(60px); }
.tm-offer__body h3 { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; max-width: 14ch; text-wrap: balance; }
.tm-offer__body h3 .is-highlight { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--tm-hero-accent) 80%, transparent) 60%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 4px; margin-left: -4px; }
.tm .tm-offer__cta { display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 18px; border-radius: 999px; background: #fff; color: var(--tm-ink); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .2s; }
.tm-offer__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tm-ink); color: #fff; transition: transform .25s; }
.tm .tm-offer__cta:hover .tm-offer__arrow { transform: translateX(3px) rotate(-30deg); }
.tm .tm-offer__cta:hover { transform: translateY(-1px); }

/* Without a photo: the promo colour with soft light shapes. */
.tm-offer--plain .tm-offer__inner { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--offer-bg) 70%, #fff) 0%, var(--offer-bg) 55%); }
.tm-offer__blob { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.tm-offer__blob--a { width: 260px; height: 260px; right: -80px; top: -60px; background: color-mix(in srgb, #fff 30%, transparent); }
.tm-offer__blob--b { width: 180px; height: 180px; left: -50px; bottom: 90px; background: color-mix(in srgb, var(--tm-brand) 22%, transparent); }
.tm-offer--plain.tm-offer--light .tm-offer__body { color: var(--tm-ink); }
.tm-offer--plain.tm-offer--light .tm-offer__label, .tm-offer--plain.tm-offer--light .tm-offer__until { color: var(--tm-ink); background: rgba(255, 255, 255, .55); border-color: rgba(15, 23, 42, .08); }
.tm .tm-offer--plain.tm-offer--light .tm-offer__cta { background: var(--tm-ink); color: #fff; }
.tm-offer--plain.tm-offer--light .tm-offer__arrow { background: #fff; color: var(--tm-ink); }

/* Progress dots: the active one fills during the autoplay interval. */
.tm-offers__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.tm-offers__dot { width: 26px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--tm-ink) 14%, transparent); cursor: pointer; overflow: hidden; transition: width .4s; }
.tm-offers__dot[aria-selected="true"] { width: 52px; }
.tm-offers__dot span { display: block; height: 100%; width: 0; background: var(--tm-ink); border-radius: inherit; }
.tm-offers__dot[aria-selected="true"] span { width: 100%; }
.tm-offers.is-ticking .tm-offers__dot[aria-selected="true"] span { animation: tm-offer-progress var(--progress-duration, 6s) linear forwards; }
@keyframes tm-offer-progress { from { width: 0; } to { width: 100%; } }

/* One or two offers: a plain grid. */
.tm-offers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; width: min(var(--tm-wrap), calc(100% - 2 * var(--tm-gutter))); margin: 30px auto 0; }
.tm-offers__grid .tm-offer { height: 400px; }

/* No script yet, or reduced motion: a swipeable row instead of the ring. */
.tm-flow:not(.is-ready) { display: flex; gap: 20px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--tm-gutter); perspective: none; }
.tm-flow:not(.is-ready) .tm-offer { position: relative; left: auto; margin: 0; flex: 0 0 var(--w); transform: none; opacity: 1; scroll-snap-align: center; }
@media (prefers-reduced-motion: reduce) {
    .tm-flow { display: flex; gap: 20px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--tm-gutter); perspective: none; }
    .tm-flow .tm-offer { position: relative; left: auto; top: 0; margin: 0; flex: 0 0 var(--w); transform: none !important; opacity: 1 !important; filter: none !important; scroll-snap-align: center; }
    .tm-offer__img, .tm-offer__inner { transition: none; transform: none; }
}
@media (max-width: 900px) { .tm-flow { --step: 250px; --w: min(360px, 78vw); height: 500px; } .tm-flow .tm-offer { height: 460px; } }
@media (max-width: 640px) {
    .tm-offers { padding: 56px 0 48px; }
    .tm-offers__nav { display: none; }
    .tm-flow { --step: 66vw; --w: 76vw; height: 440px; }
    .tm-flow .tm-offer { height: 410px; transform: translate3d(calc(var(--d, 0) * var(--step)), 0, calc(var(--abs, 0) * -120px)) rotateY(calc(var(--d, 0) * -22deg)) scale(calc(1 - var(--abs, 0) * .08)); }
}
