/*
Theme Name: Travinity
Theme URI: https://example.com/travinity
Author: Jigar
Description: Travinity – Travel Beyond Boundaries. A tour and travel agency theme. Tours with prices, day-by-day plans, package options and a booking form; destinations; reviews; a wishlist; WhatsApp chat; and a homepage whose sections, order and trips are all set from the Customizer.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trailmark
Tags: travel, tours, booking, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Fonts (served from the theme: no third-party requests) ----------
   Hanken Grotesk (one variable file covers weights 400–900) and La Belle Aurore,
   both SIL Open Font License. Latin + Latin Extended only, like Google sends. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin.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; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "La Belle Aurore"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/la-belle-aurore-latin.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; }
@font-face { font-family: "La Belle Aurore"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/la-belle-aurore-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	--tm-primary: #1e1852;
	--tm-accent: #2f3a8f;
	--tm-gold: #c49a5c;
	--tm-gold-light: #e2c995;
	--tm-sale: #d64532;
	--tm-dark: #0b1a3a;
	--tm-text: #444;
	--tm-muted: #7a8790;
	--tm-line: #e3e8ec;
	--tm-tint: #f2f7fa;
	--tm-white: #fff;
	--tm-radius: 12px;
	--tm-shadow: 0 10px 30px rgba(15, 42, 54, .08);
	--tm-font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tm-script: "La Belle Aurore", cursive;
	--tm-wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--tm-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--tm-text);
	background: var(--tm-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tm-primary); text-decoration: none; }
a:hover { color: var(--tm-accent); }
h1, h2, h3, h4 { color: var(--tm-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tm-accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--tm-white); padding: 10px 16px; border-radius: 6px;
}
.tm-hp { position: absolute; left: -9999px; }

.tm-container { width: 100%; max-width: var(--tm-wrap); margin: 0 auto; padding: 0 20px; }
.tm-container--narrow { max-width: 860px; }
.tm-center { text-align: center; }
.tm-section { padding: 80px 0; }
.tm-section--tint { background: var(--tm-tint); }
.tm-empty { color: var(--tm-muted); text-align: center; padding: 30px 0; }
.tm-icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons ---------- */
.tm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--tm-primary); color: var(--tm-white);
	border: 2px solid var(--tm-primary); border-radius: 6px;
	padding: 12px 26px; font-weight: 700; cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.tm-btn:hover { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-white); }
.tm-btn--sm { padding: 7px 16px; font-size: 14px; }
.tm-btn--ghost { background: transparent; color: var(--tm-primary); }
.tm-btn--ghost:hover { color: var(--tm-white); }
.tm-btn--light { background: var(--tm-white); color: var(--tm-primary); border-color: var(--tm-white); }
.tm-btn--light:hover { background: transparent; color: var(--tm-white); border-color: var(--tm-white); }
.tm-btn--block { width: 100%; }
.tm-link { font-weight: 600; }
.tm-link--arrow { display: inline-flex; align-items: center; gap: 4px; }
.tm-center .tm-btn { margin-top: 36px; }

/* ---------- Header ---------- */
.tm-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--tm-white);
	box-shadow: 0 1px 0 var(--tm-line);
	transition: background .3s, box-shadow .3s;
}
.admin-bar .tm-header { top: 32px; }
.tm-header__inner { display: flex; align-items: center; gap: 20px; min-height: 92px; }
.tm-logo { flex: none; }
.tm-logo__link { display: inline-flex; align-items: center; position: relative; }
/*
 * Logo: the ORIGINAL full logo followed by the ORIGINAL name, as supplied.
 * Only their size is set here: no filters, recolouring or cropping, ever.
 */
.tm-logo__lockup { display: inline-flex; align-items: center; gap: 12px; }
.tm-logo__img { display: block; width: auto; height: auto; }
/* Sized so logo + name + the full menu fit on one line inside the container. */
.tm-logo__img--logo { height: 64px; }
.tm-logo__img--name { height: 21px; }
.tm-logo__img--custom { max-height: 72px; }
.tm-logo__text { font-size: 24px; font-weight: 900; color: var(--tm-primary); letter-spacing: .02em; text-transform: uppercase; }
.tm-nav__brand { padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--tm-line); }
.tm-nav__brand .tm-logo__img--logo { height: 60px; }
.tm-nav__brand .tm-logo__img--name { height: 20px; }
.tm-nav { flex: 1; }
.tm-menu, .tm-menu ul { list-style: none; margin: 0; padding: 0; }
.tm-menu { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tm-menu > li { position: relative; }
.tm-menu a { display: block; color: var(--tm-dark); font-weight: 500; font-size: 15px; padding: 6px 0; }
.tm-menu a:hover, .tm-menu .current-menu-item > a, .tm-menu .current-menu-ancestor > a { color: var(--tm-accent); }
.tm-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.tm-menu .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px; z-index: 10;
	background: var(--tm-white); border-radius: 10px; box-shadow: var(--tm-shadow);
	padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.tm-menu .sub-menu a { padding: 7px 18px; font-size: 15px; }
.tm-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.tm-menu li:hover > .sub-menu, .tm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.tm-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.tm-header__auth { display: flex; align-items: center; gap: 12px; }
.tm-cart, .tm-wish-link { position: relative; color: var(--tm-accent); display: inline-flex; }
.tm-cart .tm-icon, .tm-wish-link .tm-icon { width: 26px; height: 26px; }
.tm-cart__count {
	position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--tm-accent); color: var(--tm-white);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.tm-burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--tm-dark); }
.tm-burger .tm-icon { width: 28px; height: 28px; }
.tm-mobile-only { display: none; }

/* ---------- Hero ---------- */
/* The header is a solid white bar above the hero (so the logo keeps its white background). */
.tm-hero {
	position: relative; min-height: calc(100vh - 92px); display: flex; align-items: center;
	padding: 90px 0 120px; color: var(--tm-white);
	background: var(--tm-dark) center / cover no-repeat; overflow: hidden;
}
.tm-hero--large { min-height: 80vh; }
.tm-hero--medium { min-height: 60vh; }
.tm-hero__video, .tm-hero__yt, .tm-hero__slides { position: absolute; inset: 0; overflow: hidden; }
.tm-hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.tm-hero__video.is-playing { opacity: 1; }
/* Keep a 16:9 iframe covering the hero at any aspect ratio. */
.tm-hero__yt iframe {
	position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
	width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%);
	opacity: 0; transition: opacity 1s;
}
.tm-hero__yt iframe.is-ready { opacity: 1; }
.tm-hero__bg, .tm-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.tm-hero__slide.is-active { opacity: 1; animation: tm-kenburns 12s ease-out forwards; }
@keyframes tm-kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.tm-hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .3)),
		rgba(0, 0, 0, var(--tm-hero-shade, .3));
}
.tm-hero__content { position: relative; z-index: 2; }
.tm-hero__script { font-family: var(--tm-script); font-size: clamp(22px, 3vw, 32px); margin: 0; color: var(--tm-gold-light); }
.tm-hero__title {
	color: var(--tm-white); font-size: clamp(48px, 9vw, 130px); font-weight: 900;
	line-height: .95; text-transform: uppercase; margin: 10px 0 50px; max-width: 900px;
}
.tm-hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; color: var(--tm-white); }
/* Hero search bar */
.tm-search {
	display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; align-items: center;
	background: var(--tm-white); color: var(--tm-dark); border-radius: 14px;
	padding: 10px 10px 10px 4px; max-width: 1080px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.tm-search__field { display: flex; flex-direction: column; gap: 2px; padding: 8px 20px; min-width: 0; position: relative; }
.tm-search__field + .tm-search__field::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--tm-line); }
.tm-search__label { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--tm-dark); }
.tm-search__label .tm-icon { color: var(--tm-accent); width: 17px; height: 17px; }
.tm-search select, .tm-search input[type="search"] {
	width: 100%; height: 34px; border: 0; padding: 0; background-color: transparent; color: var(--tm-text);
	font-size: 15px; outline: none; text-overflow: ellipsis;
}
.tm-search input[type="search"]::placeholder { color: var(--tm-muted); }
.tm-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.tm-search select {
	appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237a8790' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right center / 16px no-repeat;
}
.tm-search__field:focus-within { background: var(--tm-tint); border-radius: 10px; }
.tm-search__field:focus-within::before, .tm-search__field:focus-within + .tm-search__field::before { opacity: 0; }
.tm-search__guests { display: flex; align-items: center; gap: 6px; height: 34px; color: var(--tm-text); }
.tm-search__guests button {
	width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--tm-line); background: var(--tm-white);
	color: var(--tm-dark); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.tm-search__guests button:hover { border-color: var(--tm-accent); color: var(--tm-accent); }
.tm-search__guests button:disabled { opacity: .4; cursor: default; }
.tm-search__guests input {
	width: 30px; border: 0; padding: 0; background: transparent; text-align: center; font-weight: 700; font-size: 15px;
	-moz-appearance: textfield; outline: none;
}
.tm-search__guests input::-webkit-inner-spin-button, .tm-search__guests input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tm-search__unit { color: var(--tm-muted); font-size: 14px; }
.tm-search__submit {
	height: 60px; padding: 0 26px; border: 0; border-radius: 10px; cursor: pointer; gap: 8px; font-weight: 700; font-size: 16px;
	background: linear-gradient(135deg, var(--tm-gold), var(--tm-gold-light)); color: var(--tm-primary);
	display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.tm-search__submit:hover { background: var(--tm-primary); color: var(--tm-white); }

/* Live suggestions */
.tm-suggest { position: relative; }
.tm-suggest__panel {
	position: absolute; top: calc(100% + 18px); left: -20px; z-index: 40; width: min(460px, 86vw); max-height: 440px; overflow-y: auto;
	background: var(--tm-white); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); padding: 8px 0; text-align: left;
}
.tm-suggest__group { padding: 10px 18px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-muted); }
.tm-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--tm-dark); cursor: pointer; }
.tm-suggest__item[aria-selected="true"], .tm-suggest__item:hover { background: var(--tm-tint); color: var(--tm-dark); }
.tm-suggest__thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--tm-tint); display: grid; place-items: center; color: var(--tm-accent); }
.tm-suggest__thumb .tm-icon { width: 20px; height: 20px; }
.tm-suggest__text { display: grid; min-width: 0; flex: 1; }
.tm-suggest__text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-suggest__text small { color: var(--tm-muted); font-size: 13px; }
.tm-suggest__price { color: var(--tm-sale); font-weight: 800; font-size: 14px; white-space: nowrap; }
.tm-suggest mark { background: none; color: var(--tm-accent); font-weight: 800; }
.tm-suggest__all { border-top: 1px solid var(--tm-line); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--tm-accent); }
.tm-suggest__empty { padding: 14px 18px; color: var(--tm-muted); font-size: 14px; margin: 0; }

/* ---------- Section heading ---------- */
.tm-heading { margin-bottom: 44px; }
.tm-heading--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.tm-heading__kicker { font-family: var(--tm-script); color: var(--tm-gold); font-size: 26px; margin: 0; }
/* Small gold infinity under centred section titles, echoing the logo. */
.tm-heading--center .tm-heading__title::after {
	content: ""; display: block; width: 46px; height: 16px; margin: 12px auto 0;
	background: var(--tm-gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 16'%3E%3Cpath d='M11.5 2.5c-3.6 0-6 2.5-6 5.5s2.4 5.5 6 5.5c5 0 8.6-11 13.5-11 3.6 0 6 2.5 6 5.5s-2.4 5.5-6 5.5c-4.9 0-8.5-11-13.5-11z' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 16'%3E%3Cpath d='M11.5 2.5c-3.6 0-6 2.5-6 5.5s2.4 5.5 6 5.5c5 0 8.6-11 13.5-11 3.6 0 6 2.5 6 5.5s-2.4 5.5-6 5.5c-4.9 0-8.5-11-13.5-11z' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tm-heading__title { font-size: clamp(30px, 4vw, 46px); margin: 4px 0 10px; }
.tm-heading__text { color: var(--tm-muted); margin: 0; }

/* ---------- Tour card ---------- */
.tm-card {
	background: var(--tm-white); border-radius: var(--tm-radius); overflow: hidden;
	box-shadow: var(--tm-shadow); display: flex; flex-direction: column; height: 100%;
	transition: transform .25s, box-shadow .25s;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 42, 54, .14); }
.tm-card__media { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--tm-tint); }
.tm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tm-card:hover .tm-card__media img { transform: scale(1.05); }
.tm-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--tm-line); }
.tm-card__placeholder .tm-icon { width: 64px; height: 64px; }
.tm-tag {
	position: absolute; top: 14px; left: 14px; background: var(--tm-gold); color: var(--tm-primary);
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em;
}
.tm-wish {
	position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .92); color: var(--tm-dark); cursor: pointer;
	display: grid; place-items: center; transition: transform .2s, color .2s;
}
.tm-wish:hover { transform: scale(1.1); }
.tm-wish[aria-pressed="true"] { color: var(--tm-sale); }
.tm-wish[aria-pressed="true"] path { fill: currentColor; }
.tm-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tm-card__days, .tm-card__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 14px; }
.tm-card__days .tm-icon, .tm-card__loc .tm-icon { color: var(--tm-accent); width: 16px; height: 16px; }
.tm-card__title { font-size: 19px; margin: 2px 0 0; text-transform: uppercase; }
.tm-card__title a { color: var(--tm-dark); }
.tm-card__title a:hover { color: var(--tm-accent); }
.tm-card__excerpt { display: none; margin: 4px 0 0; color: var(--tm-muted); font-size: 15px; }
.tm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--tm-line); }
.tm-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tm-price__now { color: var(--tm-sale); font-weight: 800; font-size: 18px; }
.tm-price__was { color: var(--tm-muted); font-size: 14px; }

/* Big card used in the category browser */
.tm-card--hero { position: relative; min-height: 460px; }
.tm-card--hero .tm-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.tm-card--hero .tm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7)); pointer-events: none; }
.tm-card--hero .tm-card__body { position: relative; z-index: 1; margin-top: auto; flex: none; color: var(--tm-white); pointer-events: none; }
.tm-card--hero .tm-card__body a, .tm-card--hero .tm-card__body .tm-btn { pointer-events: auto; }
.tm-card--hero .tm-card__title { font-size: 26px; }
.tm-card--hero .tm-card__title a, .tm-card--hero .tm-card__days, .tm-card--hero .tm-card__loc, .tm-card--hero .tm-price__was { color: var(--tm-white); }
.tm-card--hero .tm-card__foot { border-color: rgba(255, 255, 255, .25); }

/* ---------- Grids ---------- */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.tm-grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tm-grid.is-list { grid-template-columns: 1fr; }
.tm-grid.is-list .tm-card { flex-direction: row; }
.tm-grid.is-list .tm-card__media { width: 38%; aspect-ratio: auto; min-height: 240px; flex: none; }
.tm-grid.is-list .tm-card__excerpt { display: block; }

/* ---------- Carousel ---------- */
.tm-carousel { position: relative; }
.tm-carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 28px) / 4);
	gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 4px 24px; margin: -6px -4px 0; scrollbar-width: none;
}
.tm-carousel__track::-webkit-scrollbar { display: none; }
.tm-carousel__slide { scroll-snap-align: start; min-width: 0; }
.tm-carousel--single .tm-carousel__track { grid-auto-columns: 100%; }
.tm-carousel__nav {
	position: absolute; top: 42%; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--tm-white); color: var(--tm-dark); box-shadow: var(--tm-shadow);
	cursor: pointer; display: grid; place-items: center; transition: opacity .2s, background .2s;
}
.tm-carousel__nav:hover { background: var(--tm-accent); color: var(--tm-white); }
.tm-carousel__nav--prev { left: -18px; }
.tm-carousel__nav--next { right: -18px; }
.tm-carousel__nav:disabled { opacity: 0; pointer-events: none; }
.tm-carousel--single .tm-carousel__nav--prev { left: 16px; }
.tm-carousel--single .tm-carousel__nav--next { right: 16px; }
.tm-carousel .is-filtered-out { display: none; }

/* ---------- Category browser ---------- */
.tm-browse { padding-top: 40px; }
/* Fixed-height row: the list scrolls up and down inside it, however many states there are. */
.tm-browse__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: 532px; gap: 30px; align-items: stretch; }
.tm-browse__grid > * { min-width: 0; min-height: 0; }
.tm-browse__side { background: var(--tm-tint); border-radius: var(--tm-radius); padding: 28px 16px 16px 22px; display: flex; flex-direction: column; overflow: hidden; }
.tm-browse__side .tm-browse__list {
	flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
	align-content: start; padding: 2px 8px 12px 2px; margin-right: -4px;
	scrollbar-width: thin; scrollbar-color: var(--tm-gold) transparent;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}
.tm-browse__side .tm-browse__list::-webkit-scrollbar { width: 6px; }
.tm-browse__side .tm-browse__list::-webkit-scrollbar-thumb { background: var(--tm-gold); border-radius: 3px; }
.tm-browse__side .tm-browse__list::-webkit-scrollbar-track { background: transparent; }
.tm-browse__stage { position: relative; transition: opacity .2s; }
.tm-browse.is-loading .tm-browse__stage, [data-states].is-loading .tm-browse__stage { opacity: .45; cursor: progress; }
.tm-browse__counter {
	position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
	background: rgba(11, 26, 58, .55); color: var(--tm-white); font-size: 13px; font-weight: 700;
	padding: 4px 12px; border-radius: 20px; letter-spacing: .04em; backdrop-filter: blur(4px);
}
.tm-browse__empty { display: grid; place-items: center; height: 100%; margin: 0; background: var(--tm-tint); border-radius: var(--tm-radius); }
.tm-browse__title { font-size: 24px; position: relative; padding-bottom: 14px; margin-bottom: 20px; }
.tm-browse__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--tm-gold); border-radius: 2px; }
.tm-browse__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-browse__list button {
	width: 100%; display: flex; justify-content: space-between; align-items: center;
	background: var(--tm-white); border: 0; border-radius: 6px; padding: 12px 16px;
	font-weight: 600; color: var(--tm-dark); cursor: pointer; text-align: left;
}
.tm-browse__list button:hover, .tm-browse__list button.is-active { background: var(--tm-accent); color: var(--tm-white); }
.tm-browse__list .tm-icon { width: 16px; height: 16px; }
.tm-browse__stage .tm-carousel__track { padding: 0; margin: 0; height: 100%; }
.tm-browse__stage .tm-carousel, .tm-browse__stage .tm-card--hero { height: 100%; }

/* ---------- Reviews ---------- */
.tm-reviews .tm-carousel__track { grid-auto-columns: calc((100% - 2 * 28px) / 3); }
.tm-review {
	margin: 0; height: 100%; background: var(--tm-white); border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius); padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.tm-review__text { margin: 0; font-size: 15px; flex: 1; }
.tm-review__text p { margin: 0 0 .7em; }
.tm-review__who { display: flex; align-items: center; gap: 12px; }
.tm-review__who strong { display: block; color: var(--tm-dark); }
.tm-review__who small { color: var(--tm-muted); }
.tm-review__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.tm-review__avatar--initial { display: grid; place-items: center; background: var(--tm-primary); color: var(--tm-white); font-weight: 800; font-size: 20px; }
.tm-stars { display: inline-flex; gap: 2px; }
.tm-stars .tm-icon { width: 18px; height: 18px; }
.tm-stars .on { color: var(--tm-gold); }
.tm-stars .off { color: var(--tm-line); }

/* ---------- Feature cards ---------- */
.tm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tm-feature {
	position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: var(--tm-radius);
	overflow: hidden; background: var(--tm-primary); color: var(--tm-white); padding: 28px;
}
.tm-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.tm-feature:hover .tm-feature__img { transform: scale(1.05); }
.tm-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .65)); }
.tm-feature__icon { position: absolute; top: 24px; left: 24px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.tm-feature__body { position: relative; z-index: 1; display: grid; gap: 4px; }
.tm-feature__title { font-size: 24px; }
.tm-feature__text { opacity: .9; }
a.tm-feature, a.tm-feature:hover { color: var(--tm-white); }

/* ---------- Blog cards ---------- */
.tm-post-card { background: var(--tm-white); border-radius: var(--tm-radius); overflow: hidden; box-shadow: var(--tm-shadow); display: flex; flex-direction: column; }
.tm-post-card__media { aspect-ratio: 16 / 10; overflow: hidden; display: block; background: var(--tm-tint); }
.tm-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tm-post-card:hover .tm-post-card__media img { transform: scale(1.05); }
.tm-post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tm-post-card__body p { margin: 0; color: var(--tm-muted); font-size: 15px; }
.tm-post-card__body .tm-link--arrow { margin-top: auto; padding-top: 10px; }
.tm-post-card__title { font-size: 20px; margin: 0; }
.tm-post-card__title a { color: var(--tm-dark); }
.tm-meta { color: var(--tm-accent) !important; font-size: 13px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- CTA ---------- */
.tm-cta { background: linear-gradient(110deg, var(--tm-primary) 55%, #3a2f5c 80%, #8a6a45); color: var(--tm-white); padding: 40px 0; }
.tm-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tm-cta__text { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }

/* ---------- Footer ---------- */
.tm-footer { background: var(--tm-dark); color: rgba(255, 255, 255, .75); padding: 70px 0 0; }
.tm-footer a { color: rgba(255, 255, 255, .75); }
.tm-footer a:hover { color: var(--tm-white); }
.tm-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 50px; }
.tm-footer .tm-logo__text { color: var(--tm-white); }
/* Dark footer: the original logo sits on a white panel instead of being recoloured. */
.tm-footer__logo { display: inline-block; background: var(--tm-white); border-radius: 12px; padding: 12px 16px; }
.tm-footer__logo .tm-logo__img--full { width: 190px; max-width: 100%; }
.tm-footer__brand { min-width: 0; }
.tm-footer__tagline { margin: 16px 0; }
.tm-footer__title { color: var(--tm-white); font-size: 19px; margin-bottom: 18px; }
.tm-footer__menu, .tm-footer__contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-footer__contact li { display: flex; gap: 10px; }
.tm-footer__contact .tm-icon { color: var(--tm-gold); margin-top: 4px; }
.tm-footer__title { position: relative; padding-bottom: 10px; }
.tm-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--tm-gold); }
.tm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; text-align: center; font-size: 14px; }
.tm-social { display: flex; gap: 10px; flex-wrap: wrap; }
.tm-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background .2s; }
.tm-social a:hover { background: var(--tm-gold); color: var(--tm-dark); }
.tm-social .tm-icon { width: 18px; height: 18px; }
.tm-contact .tm-social a { background: var(--tm-tint); color: var(--tm-primary); }
.tm-contact .tm-social a:hover { background: var(--tm-accent); color: var(--tm-white); }

/* ---------- Floating buttons ---------- */
.tm-float {
	position: fixed; right: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
	display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--tm-shadow);
}
/* Floating WhatsApp button: phones only (desktop visitors use the footer and contact links). */
.tm-float--wa { display: none; bottom: 22px; background: #25d366; color: var(--tm-white); }
.tm-float--wa .tm-icon { width: 30px; height: 30px; }
.tm-float--wa:hover { color: var(--tm-white); transform: scale(1.06); }
.tm-float--top { bottom: 22px; width: 44px; height: 44px; right: 27px; background: var(--tm-accent); color: var(--tm-white); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.tm-float--top.is-visible { opacity: 1; visibility: visible; }
@media (max-width: 767px) {
	.tm-float--wa { display: grid; }
	/* Stack back-to-top above the WhatsApp button when both are shown. */
	.tm-float--wa ~ .tm-float--top { bottom: 88px; }
}

/* ---------- Page banner ---------- */
.tm-banner {
	position: relative; padding: 110px 0 90px; text-align: center; color: var(--tm-white);
	background: var(--tm-primary) center / cover no-repeat;
}
.tm-banner { overflow: hidden; }
.tm-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1; }
.tm-banner__img { z-index: 0; }
.tm-banner .tm-container { position: relative; z-index: 2; }
.tm-banner__title { color: var(--tm-white); font-size: clamp(32px, 5vw, 56px); margin: 0; }
.tm-banner__sub { margin: 10px auto 0; max-width: 700px; opacity: .9; }
.tm-banner__sub p { margin: 0; }

/* ---------- Archive filters ---------- */
.tm-filters { margin-bottom: 18px; padding: 16px; background: var(--tm-tint); border-radius: var(--tm-radius); display: grid; gap: 14px; }
.tm-filters__main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tm-filters select, .tm-filters input[type="number"] { height: 44px; padding: 0 14px; border: 1px solid var(--tm-line); border-radius: 8px; background-color: var(--tm-white); min-width: 0; }
.tm-filters__q { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--tm-white); border: 1px solid var(--tm-line); border-radius: 8px; }
.tm-filters__q:focus-within { border-color: var(--tm-accent); box-shadow: 0 0 0 3px rgba(30, 115, 190, .15); }
.tm-filters__q .tm-icon { color: var(--tm-muted); width: 18px; height: 18px; }
.tm-filters__q input { flex: 1; border: 0; outline: none; background: transparent; min-width: 0; height: 100%; }
.tm-filters .tm-btn--sm { height: 44px; }
.tm-filters__more[aria-expanded="true"] { background: var(--tm-primary); color: var(--tm-white); }
.tm-filters__more-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--tm-line); }
.tm-filters__more-panel label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--tm-dark); }
.tm-filters__more-panel select, .tm-filters__more-panel input { width: 100%; font-weight: 400; font-size: 15px; }
.tm-results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.tm-filters__count { margin: 0; color: var(--tm-muted); }
.tm-results-bar .tm-view { margin-left: auto; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tm-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; background: var(--tm-white); border: 1px solid var(--tm-line); color: var(--tm-dark); font-size: 14px; font-weight: 600; }
.tm-chips a:hover { border-color: var(--tm-sale); color: var(--tm-sale); }
.tm-chips a span { font-size: 16px; line-height: 1; }
.tm-chips .tm-chips__clear { border: 0; background: none; color: var(--tm-accent); }
.tm-noresults h2 { font-size: 24px; color: var(--tm-dark); }
.tm-noresults__alt { font-size: 24px; margin: 40px 0 20px; }
.tm-view { display: flex; gap: 6px; }
.tm-view button { width: 42px; height: 42px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white); cursor: pointer; display: grid; place-items: center; color: var(--tm-muted); }
.tm-view button[aria-pressed="true"] { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-white); }

.pagination { margin-top: 44px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid var(--tm-line); color: var(--tm-dark); font-weight: 600; padding: 0 10px; }
.page-numbers.current, .page-numbers:hover { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-white); }

/* ---------- Single tour ---------- */
.tm-tour__gallery { position: relative; display: grid; gap: 8px; height: min(70vh, 560px); }
.tm-tour__gallery--1 { grid-template-columns: 1fr; }
.tm-tour__gallery--2 { grid-template-columns: 2fr 1fr; }
.tm-tour__gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.tm-tour__gallery--3 .tm-tour__shot:first-child { grid-row: span 2; }
.tm-tour__shot { overflow: hidden; display: block; }
.tm-tour__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tm-tour__shot:hover img { transform: scale(1.04); }
.tm-tour__count {
	position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
	background: var(--tm-white); color: var(--tm-dark); border: 0; border-radius: 6px; padding: 10px 16px; font-weight: 700; cursor: pointer;
}
.tm-tour__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 50px; padding-top: 50px; padding-bottom: 80px; align-items: start; }
.tm-tour__head { position: relative; padding-right: 50px; }
.tm-tour__head .tm-wish { top: 0; right: 0; box-shadow: var(--tm-shadow); }
.tm-tour__title { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; margin-bottom: 6px; }
.tm-facts { list-style: none; padding: 22px; margin: 26px 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; background: var(--tm-tint); border-radius: var(--tm-radius); }
.tm-facts li { display: flex; align-items: center; gap: 12px; }
.tm-facts .tm-icon { width: 34px; height: 34px; color: var(--tm-accent); }
.tm-facts small { display: block; color: var(--tm-muted); font-size: 13px; }
.tm-facts strong { color: var(--tm-dark); }
.tm-tour__block { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--tm-line); }
.tm-tour__block h2 { font-size: 28px; }
.tm-highlights { padding-left: 1.2em; }
.tm-highlights li { margin-bottom: 8px; }
.tm-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tm-incl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.tm-incl__list li { display: flex; gap: 10px; }
.tm-incl__list .tm-icon { margin-top: 4px; width: 18px; height: 18px; }
.tm-incl__list--yes .tm-icon { color: #1f9d55; }
.tm-incl__list--no .tm-icon { color: var(--tm-sale); }
.tm-plan { display: grid; gap: 12px; }
.tm-plan__day { border: 1px solid var(--tm-line); border-radius: 10px; overflow: hidden; }
.tm-plan__day summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 700; color: var(--tm-dark); }
.tm-plan__day summary::-webkit-details-marker { display: none; }
.tm-plan__day summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--tm-accent); line-height: 1; }
.tm-plan__day[open] summary::after { content: "−"; }
.tm-plan__day[open] summary { background: var(--tm-tint); }
.tm-plan__num { flex: none; background: var(--tm-accent); color: var(--tm-white); font-size: 13px; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.tm-plan__body { padding: 4px 18px 16px; }

/* Booking box */
.tm-tour__side { position: sticky; top: 110px; }
.tm-book { background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: 0 10px 40px rgba(15, 42, 54, .12); overflow: hidden; }
.tm-book__price { background: var(--tm-primary); color: var(--tm-white); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tm-book__price small { opacity: .85; }
.tm-book__price .tm-price__now { color: var(--tm-white); font-size: 28px; }
.tm-book__price .tm-price__was { color: rgba(255, 255, 255, .7); }
.tm-book__badge { background: var(--tm-sale); color: var(--tm-white); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.tm-book__form, .tm-contact__form { padding: 24px; display: grid; gap: 16px; }
.tm-book__title { font-size: 22px; margin: 0; }
.tm-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tm-field > span, .tm-field legend { font-weight: 700; color: var(--tm-dark); font-size: 15px; padding: 0; margin-bottom: 6px; }
.tm-field input:not([type="radio"]):not([type="checkbox"]), .tm-field select, .tm-field textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white);
}
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus { border-color: var(--tm-accent); outline: none; box-shadow: 0 0 0 3px rgba(30, 115, 190, .15); }
.tm-stepper { display: flex; }
.tm-stepper button { width: 46px; border: 1px solid var(--tm-line); background: var(--tm-tint); cursor: pointer; font-size: 20px; }
.tm-stepper button:first-child { border-radius: 6px 0 0 6px; }
.tm-stepper button:last-child { border-radius: 0 6px 6px 0; }
.tm-stepper input { text-align: center; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; -moz-appearance: textfield; }
.tm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tm-choice { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.tm-choice small { margin-left: auto; color: var(--tm-muted); }
.tm-choice input { accent-color: var(--tm-accent); width: 18px; height: 18px; flex: none; }
.tm-terms { font-size: 14px; }
.tm-book__totals { margin: 0; background: var(--tm-tint); border-radius: 8px; padding: 14px 16px; display: grid; gap: 6px; }
.tm-book__totals div { display: flex; justify-content: space-between; }
.tm-book__totals dt { color: var(--tm-muted); }
.tm-book__totals dd { margin: 0; font-weight: 800; color: var(--tm-dark); }
.tm-notice { margin: 16px 24px 0; padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.tm-contact__form .tm-notice { margin: 0; }
.tm-notice--success { background: #e6f6ec; color: #17693a; }
.tm-notice--error { background: #fdecea; color: #a12a1b; }

/* Lightbox */
.tm-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 60px 70px; }
.tm-lightbox img { max-height: 85vh; width: auto; border-radius: 6px; }
.tm-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: var(--tm-white); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.tm-lightbox__close { top: 20px; right: 20px; }
.tm-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.tm-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Content ---------- */
.tm-prose > * + * { margin-top: 1em; }
.tm-prose h2 { margin-top: 1.4em; }
.tm-prose img { border-radius: 8px; }
.tm-prose blockquote { border-left: 4px solid var(--tm-accent); margin-left: 0; padding-left: 20px; font-style: italic; }
.tm-prose .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.tm-full .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.tm-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; align-items: start; }
.tm-sidebar .widget { background: var(--tm-tint); border-radius: var(--tm-radius); padding: 24px; margin-bottom: 24px; }
.tm-sidebar .widget ul { padding-left: 1.1em; margin: 0; }
.widget-title { font-size: 19px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 10px 14px; border: 1px solid var(--tm-line); border-radius: 6px; }
.search-submit { background: var(--tm-primary); color: var(--tm-white); border: 0; border-radius: 6px; padding: 0 18px; cursor: pointer; }
.tm-404 .search-form, .tm-center .search-form { max-width: 480px; margin: 20px auto; }
.tm-404__mark { width: 220px; height: auto; margin: 0 auto 24px; }
.post-navigation .nav-links { justify-content: space-between; margin-top: 40px; }
.post-navigation a { display: grid; color: var(--tm-dark); font-weight: 700; }
.post-navigation small { color: var(--tm-muted); font-weight: 400; }
.tm-tags a { display: inline-block; background: var(--tm-tint); border-radius: 4px; padding: 3px 10px; margin: 0 6px 6px 0; font-size: 14px; }
.tm-comments { margin-top: 40px; }
.tm-comments__list { padding-left: 0; list-style: none; }
.tm-comments__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--tm-line); }
.tm-comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--tm-line); border-radius: 6px; }
.comment-form .submit { background: var(--tm-primary); color: var(--tm-white); border: 0; border-radius: 6px; padding: 12px 26px; font-weight: 700; cursor: pointer; }

/* Contact page */
.tm-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.tm-contact__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.tm-contact__list li { display: flex; gap: 12px; }
.tm-contact__list .tm-icon { color: var(--tm-accent); margin-top: 3px; }

/* ---------- Quotes (prices on request) ---------- */
.tm-btn--gold, .tm-btn--quote { background: linear-gradient(135deg, var(--tm-gold), var(--tm-gold-light)); border-color: var(--tm-gold); color: var(--tm-primary); }
.tm-btn--gold:hover, .tm-btn--quote:hover { background: var(--tm-primary); border-color: var(--tm-primary); color: var(--tm-white); }
.tm-btn--lg { padding: 15px 30px; font-size: 17px; }
.tm-btn .tm-icon { width: 18px; height: 18px; }
.tm-card__more { font-size: 14px; white-space: nowrap; }
.tm-trip-cta { white-space: nowrap; }
.tm-book__onrequest { font-size: 22px; font-weight: 800; color: var(--tm-white); }
.tm-book--quote .tm-book__form { gap: 14px; }
.tm-book__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-book__facts li { display: flex; align-items: center; gap: 10px; color: var(--tm-text); }
.tm-book__facts .tm-icon { width: 18px; height: 18px; color: var(--tm-gold); flex: none; }

/* Pop-up */
.tm-quote { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(11, 26, 58, .35); color: var(--tm-text); }
.tm-quote::backdrop { background: rgba(11, 26, 58, .6); backdrop-filter: blur(3px); }
.tm-quote[open] { animation: tm-pop .22s ease-out; }
@keyframes tm-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.tm-quote__form { padding: 28px; display: grid; gap: 14px; position: relative; }
.tm-quote__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--tm-tint); color: var(--tm-dark); cursor: pointer; display: grid; place-items: center; }
.tm-quote__close:hover { background: var(--tm-line); }
.tm-quote__title { font-size: 26px; margin: 0; padding-right: 44px; }
.tm-quote__lead { margin: -6px 0 0; color: var(--tm-muted); }
.tm-quote__summary { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--tm-tint); border-left: 4px solid var(--tm-gold); }
.tm-quote__summary:empty { display: none; }
.tm-quote__summary img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.tm-quote__summary strong { display: block; color: var(--tm-dark); font-size: 17px; text-transform: uppercase; }
.tm-quote__summary small { color: var(--tm-muted); }
.tm-quote__plan { width: 100%; }
.tm-quote__plan strong { text-transform: none; margin-bottom: 6px; }
.tm-quote__plan dl { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.tm-quote__plan dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.tm-quote__plan dt { color: var(--tm-muted); }
.tm-quote__plan dd { margin: 0; color: var(--tm-dark); font-weight: 600; }
.tm-quote__fields { display: grid; gap: 14px; }
.tm-quote__fields[hidden] { display: none; }
.tm-quote__small { margin: 0; text-align: center; font-size: 13px; color: var(--tm-muted); }
.tm-quote__done { text-align: center; padding: 10px 0; }
.tm-quote__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f6ec; color: #17693a; margin-bottom: 8px; }
.tm-quote__tick .tm-icon { width: 30px; height: 30px; }
.tm-quote__done-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tm-quote .tm-notice { margin: 0; }

/* My quotes */
.tm-status--q-new { background: #fff4de; color: #8a5a00; }
.tm-status--q-quoted { background: #e8f2fb; color: #17507d; }
.tm-status--q-booked { background: #e6f6ec; color: #17693a; }
.tm-status--q-closed { background: #f1f1f1; color: #6b6b6b; }
.tm-quote-reply { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--tm-tint); border-left: 4px solid var(--tm-gold); }
.tm-quote-reply p { margin: 6px 0 0; }
.tm-quote-reply__price { font-size: 22px; font-weight: 800; color: var(--tm-primary); }
.tm-quote-reply .tm-btn { margin-top: 10px; }

/* ---------- Create A Trip ---------- */
.tm-search-tabs__create { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: var(--tm-white); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--tm-gold-light); }
.tm-search-tabs__create .tm-icon { width: 17px; height: 17px; color: var(--tm-gold-light); }
.tm-search-tabs__create:hover { color: var(--tm-gold-light); }
.tm-builder__intro { margin-bottom: 24px; }
.tm-steps { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 6px; counter-reset: step; overflow-x: auto; }
.tm-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--tm-tint); color: var(--tm-muted); font-weight: 600; font-size: 14px; min-width: max-content; }
.tm-steps__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tm-white); color: var(--tm-muted); font-weight: 800; flex: none; }
.tm-steps li.is-current { background: var(--tm-primary); color: var(--tm-white); }
.tm-steps li.is-current .tm-steps__num { background: var(--tm-gold); color: var(--tm-primary); }
.tm-steps li.is-done { color: var(--tm-primary); }
.tm-steps li.is-done .tm-steps__num { background: var(--tm-primary); color: var(--tm-white); }
.tm-builder__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.tm-step__title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.tm-step__lead { color: var(--tm-muted); margin: 0 0 22px; }
.tm-step { display: grid; gap: 18px; }
.tm-step[hidden] { display: none; }
.tm-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tm-pick-card { position: relative; display: grid; border-radius: var(--tm-radius); overflow: hidden; cursor: pointer; background: var(--tm-white); box-shadow: var(--tm-shadow); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.tm-pick-card:hover { transform: translateY(-2px); }
.tm-pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.tm-pick-card__img { display: block; aspect-ratio: 4 / 3; background: var(--tm-tint) center / cover no-repeat; }
.tm-pick-card__body { padding: 12px 14px; display: grid; gap: 2px; }
.tm-pick-card__body strong { color: var(--tm-dark); }
.tm-pick-card__body small { color: var(--tm-muted); font-size: 13px; }
.tm-pick-card__tick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: transparent; display: grid; place-items: center; border: 2px solid var(--tm-white); }
.tm-pick-card__tick .tm-icon { width: 16px; height: 16px; }
.tm-pick-card:has(input:checked) { border-color: var(--tm-gold); }
.tm-pick-card:has(input:checked) .tm-pick-card__tick { background: var(--tm-gold); color: var(--tm-primary); }
.tm-pick-card:has(input:focus-visible) { outline: 3px solid var(--tm-accent); outline-offset: 2px; }
.tm-more-states summary { cursor: pointer; font-weight: 700; color: var(--tm-accent); margin: 6px 0 12px; }
.tm-chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tm-chip-pick span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 22px; border: 1px solid var(--tm-line); background: var(--tm-white); color: var(--tm-dark); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.tm-chip-pick span:hover { border-color: var(--tm-gold); }
.tm-chip-pick input:checked + span { background: var(--tm-primary); border-color: var(--tm-primary); color: var(--tm-white); }
.tm-chip-pick input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--tm-gold-light); }
.tm-chip-pick input:focus-visible + span { outline: 3px solid var(--tm-accent); outline-offset: 2px; }
.tm-pick-group legend { font-weight: 700; color: var(--tm-dark); margin-bottom: 8px; }
.tm-when__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tm-when__row select, .tm-when__row input { padding: 11px 14px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white); }
.tm-when__or { color: var(--tm-muted); font-size: 14px; }
.tm-builder__nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--tm-line); }
.tm-builder__nav [data-step-next] { margin-left: auto; }
.tm-builder__error { margin: 0; color: #b3261e; font-weight: 600; }
.tm-builder__side { position: sticky; top: 110px; }
.tm-trip-so-far h3 { font-size: 18px; }
.tm-trip-so-far dl { margin: 0; display: grid; gap: 10px; }
.tm-trip-so-far dt, .tm-plan-review dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--tm-muted); }
.tm-trip-so-far dd, .tm-plan-review dd { margin: 0; color: var(--tm-dark); font-weight: 600; }
.tm-plan-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 22px; border-radius: var(--tm-radius); background: var(--tm-tint); border-left: 4px solid var(--tm-gold); }
.tm-plan-review + .tm-btn { justify-self: start; }
.tm-muted { color: var(--tm-muted); margin: 0; }

/* Step 1: start town and how to travel */
.tm-from { display: grid; gap: 10px; max-width: 520px; }
.tm-prefill { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 9px 16px; border-radius: 22px; border: 1px dashed var(--tm-gold); background: var(--tm-white); color: var(--tm-primary); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s; }
.tm-prefill:hover { background: var(--tm-tint); }
.tm-prefill .tm-icon { width: 18px; height: 18px; color: var(--tm-gold); }
.tm-from__hint { margin: 0; font-size: 14px; color: var(--tm-muted); }
.tm-from__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--tm-muted); }
.tm-from__status.is-ok { color: #17693a; font-weight: 600; }
.tm-from__status.is-ok::before { content: "✓ "; }
.tm-modes { margin-top: 8px; }
.tm-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tm-mode-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 12px 16px; text-align: center; border-radius: var(--tm-radius); border: 2px solid var(--tm-line); background: var(--tm-white); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tm-mode-card:hover { border-color: var(--tm-gold); transform: translateY(-2px); }
.tm-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.tm-mode-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tm-tint); color: var(--tm-primary); margin-bottom: 4px; }
.tm-mode-card__icon .tm-icon { width: 28px; height: 28px; }
.tm-mode-card strong { color: var(--tm-dark); font-size: 16px; }
.tm-mode-card small { color: var(--tm-muted); font-size: 12.5px; line-height: 1.35; }
.tm-mode-card:has(input:checked) { border-color: var(--tm-primary); box-shadow: 0 0 0 3px rgba(30, 24, 82, .12); }
.tm-mode-card:has(input:checked) .tm-mode-card__icon { background: var(--tm-primary); color: var(--tm-gold); }
.tm-mode-card:has(input:focus-visible) { outline: 3px solid var(--tm-accent); outline-offset: 2px; }

/* Live distance estimate */
.tm-estimate { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tm-line); }
.tm-estimate h4 { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--tm-muted); }
.tm-estimate__km { margin: 0; font-size: 30px; font-weight: 800; color: var(--tm-primary); line-height: 1.15; }
.tm-estimate__route { margin: 6px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--tm-dark); }
.tm-estimate__route span { color: var(--tm-gold); }
.tm-estimate__legs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.tm-estimate__legs li { display: flex; justify-content: space-between; gap: 10px; color: var(--tm-muted); }
.tm-estimate__legs strong { color: var(--tm-dark); white-space: nowrap; }
.tm-estimate__skip { margin: 0 0 8px; font-size: 12.5px; color: #8a5a00; }
.tm-estimate small { display: block; font-size: 12px; color: var(--tm-muted); line-height: 1.4; }
@media (max-width: 680px) {
	.tm-mode-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tm-mode-card { padding: 14px 8px 12px; }
}
.tm-auth-tabs__list { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--tm-tint); margin-bottom: 18px; }
.tm-auth-tabs__list button { border: 0; background: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--tm-muted); }
.tm-auth-tabs__list button[aria-selected="true"] { background: var(--tm-white); color: var(--tm-primary); box-shadow: var(--tm-shadow); }
.tm-auth-tabs [role="tabpanel"] { max-width: 560px; }
.tm-nav__cta { margin-top: 20px; }
.tm-nav__cta .tm-btn { width: 100%; }
@media (max-width: 1279px) and (min-width: 1101px) {
	.tm-header__actions .tm-trip-cta span { display: none; } /* icon only while space is tight */
	.tm-header__actions .tm-trip-cta { padding: 8px 10px; }
}
@media (max-width: 960px) {
	.tm-builder__layout { grid-template-columns: 1fr; }
	.tm-builder__side { position: static; order: -1; }
	.tm-trip-so-far:not(:has(dl)) { display: none; }
	.tm-steps__label { display: none; }
	.tm-steps li { flex: 0 0 auto; min-width: 0; }
	.tm-steps li.is-current .tm-steps__label { display: inline; }
}
@media (max-width: 680px) {
	.tm-pick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.tm-quote__form { padding: 22px 18px; }
	.tm-quote__plan dl div { grid-template-columns: 90px 1fr; }
	.tm-search-tabs__create { margin: 8px 0 0; display: flex; }
}

/* ---------- Recommendations ---------- */
.tm-tag--near {
	top: auto; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px;
	background: rgba(11, 26, 58, .78); color: var(--tm-white); text-transform: none; letter-spacing: 0; font-size: 12px; backdrop-filter: blur(4px);
}
.tm-tag--near .tm-icon { width: 13px; height: 13px; color: var(--tm-gold-light); }
.tm-recs__ask { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.tm-recs__ask p { margin: 4px 0 0; color: var(--tm-muted); }
.tm-recs__ask .tm-btn { margin-left: auto; flex: none; }
.tm-recs__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--tm-tint); color: var(--tm-gold); }
.tm-recs__loc { display: flex; align-items: center; gap: 6px; margin: 18px 0 0; color: var(--tm-muted); font-size: 14px; }
.tm-recs__loc .tm-icon { width: 16px; height: 16px; color: var(--tm-gold); }
.tm-recs__loc a { font-weight: 700; }
.tm-recs__note { color: var(--tm-muted); margin-top: -6px; }
.tm-recs__more { margin-top: 10px; font-size: 14px; color: var(--tm-muted); }
.tm-foryou .tm-recs__ask { margin-top: 0; }
@media (max-width: 680px) {
	.tm-recs__ask { flex-direction: column; align-items: flex-start; }
	.tm-recs__ask .tm-btn { margin-left: 0; }
}

/* ---------- Breadcrumbs ---------- */
.tm-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; }
.tm-crumbs li { display: inline-flex; align-items: center; color: var(--tm-muted); }
.tm-crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--tm-gold); }
.tm-crumbs a { color: var(--tm-text); }
.tm-crumbs a:hover { color: var(--tm-accent); }
.tm-crumbs [aria-current] { color: var(--tm-muted); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-banner .tm-crumbs ol { justify-content: center; }
.tm-banner .tm-crumbs a, .tm-banner .tm-crumbs li { color: rgba(255, 255, 255, .85); }
.tm-banner .tm-crumbs a:hover { color: var(--tm-white); }
.tm-banner .tm-crumbs li + li::before { color: var(--tm-gold-light); }
.tm-tour__main > .tm-crumbs ol { margin-bottom: 18px; }

/* ---------- Hero search tabs: Trips | Flights ---------- */
.tm-search-tabs { max-width: 1080px; }
.tm-search-tabs__list { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 10px; border-radius: 12px; background: rgba(11, 26, 58, .45); backdrop-filter: blur(6px); }
.tm-search-tabs__list button {
	display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 9px 18px; cursor: pointer;
	background: transparent; color: var(--tm-white); font-weight: 700; font-size: 15px;
}
.tm-search-tabs__list button .tm-icon { width: 18px; height: 18px; color: var(--tm-gold-light); }
.tm-search-tabs__list button[aria-selected="true"] { background: var(--tm-white); color: var(--tm-primary); }
.tm-search-tabs__list button[aria-selected="true"] .tm-icon { color: var(--tm-gold); }

/* ---------- Flight search form ---------- */
.tm-search--flights { grid-template-columns: minmax(0, 1.15fr) 36px minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; padding-top: 6px; }
.tm-fl__way { grid-column: 1 / -1; display: flex; gap: 18px; padding: 6px 20px 2px; font-size: 14px; }
.tm-fl__way label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--tm-text); }
.tm-fl__way input { accent-color: var(--tm-primary); }
.tm-search--flights .tm-search__field + .tm-search__field::before { display: none; }
.tm-search--flights .tm-fl__to::before, .tm-search--flights .tm-fl__dates::before, .tm-search--flights .tm-fl__pax::before {
	content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--tm-line); display: block !important;
}
.tm-search--flights .tm-fl__to::before { display: none !important; }
.tm-fl__swap {
	align-self: center; justify-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tm-line);
	background: var(--tm-white); color: var(--tm-primary); cursor: pointer; display: grid; place-items: center; transition: transform .25s, border-color .2s;
}
.tm-fl__swap:hover { border-color: var(--tm-gold); transform: rotate(180deg); }
.tm-fl__swap .tm-icon { width: 17px; height: 17px; }
.tm-search--flights input[type="text"], .tm-search--flights input[type="date"] {
	width: 100%; height: 34px; border: 0; padding: 0; background: transparent; color: var(--tm-text); font-size: 15px; outline: none; min-width: 0;
}
.tm-search--flights input::placeholder { color: var(--tm-muted); }
.tm-fl__datepair { display: flex; align-items: center; gap: 6px; }
.tm-fl__datepair input[type="date"] { font-size: 14px; }
.tm-fl__dash { color: var(--tm-muted); }
.tm-search--flights.is-oneway [data-return-part] { display: none; }

/* Airport suggestions */
.tm-airport { position: relative; display: block; }
.tm-airport__list {
	position: absolute; top: calc(100% + 14px); left: -20px; z-index: 45; width: min(380px, 86vw); max-height: 320px; overflow-y: auto;
	background: var(--tm-white); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); padding: 6px 0; text-align: left;
}
.tm-airport__opt { display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer; }
.tm-airport__opt[aria-selected="true"], .tm-airport__opt:hover { background: var(--tm-tint); }
.tm-airport__code { flex: none; width: 46px; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--tm-primary); background: var(--tm-tint); border-radius: 6px; padding: 4px 0; }
.tm-airport__opt[aria-selected="true"] .tm-airport__code, .tm-airport__opt:hover .tm-airport__code { background: var(--tm-white); }
.tm-airport__opt strong { display: block; font-size: 14px; color: var(--tm-dark); }
.tm-airport__opt small { display: block; font-size: 12px; color: var(--tm-muted); }
.tm-airport__opt mark { background: none; color: var(--tm-accent); font-weight: 800; }
.tm-airport__empty { padding: 10px 16px; margin: 0; font-size: 13px; color: var(--tm-muted); }

/* Travellers popover */
.tm-pax { position: relative; }
.tm-pax summary { list-style: none; cursor: pointer; height: 34px; display: flex; align-items: center; font-size: 15px; color: var(--tm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-pax summary::-webkit-details-marker { display: none; }
.tm-pax summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237a8790' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tm-pax__panel {
	position: absolute; top: calc(100% + 14px); right: -20px; z-index: 45; width: 290px; padding: 16px;
	background: var(--tm-white); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); display: grid; gap: 12px;
}
.tm-pax__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-pax__row strong { display: block; font-size: 15px; color: var(--tm-dark); }
.tm-pax__row small { display: block; font-size: 12px; color: var(--tm-muted); }
.tm-pax__class { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--tm-dark); }
.tm-pax__class select { height: 40px; border: 1px solid var(--tm-line); border-radius: 8px; padding: 0 10px; font-weight: 400; background: var(--tm-white); }

/* Official widget container */
.tm-flight-embed { background: var(--tm-white); border-radius: 14px; padding: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); min-height: 120px; }

/* ---------- Flights page ---------- */
.tm-flights__card { margin-top: -110px; position: relative; z-index: 2; }
.tm-flights__card .tm-notice { margin: 0 0 12px; }
.tm-flights__note { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; color: var(--tm-muted); font-size: 14px; }
.tm-flights__note .tm-icon { color: var(--tm-gold); width: 18px; height: 18px; }
.tm-flights__perks { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
.tm-flights__perks p { margin: 4px 0 0; color: var(--tm-muted); }
.tm-flights__content { margin-top: 40px; }
.tm-panel--flush { padding: 0; box-shadow: none; background: none; }
.tm-panel--flush .tm-search { box-shadow: var(--tm-shadow); }

.tm-flight-recent { margin-top: 34px; }
.tm-flight-recent h2 { font-size: 20px; }
.tm-flight-recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.tm-flight-recent li { position: relative; }
.tm-flight-recent__link { display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 14px; background: var(--tm-white); border: 1px solid var(--tm-line); border-radius: 12px; color: var(--tm-dark); }
.tm-flight-recent__link:hover { border-color: var(--tm-gold); color: var(--tm-dark); }
.tm-flight-recent__link strong { display: block; font-size: 15px; }
.tm-flight-recent__link small { color: var(--tm-muted); }
.tm-flight-recent__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tm-tint); color: var(--tm-gold); }
.tm-flight-recent__go { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--tm-accent); white-space: nowrap; }
.tm-flight-recent form { position: absolute; top: 8px; right: 8px; }
.tm-flight-recent__forget { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--tm-muted); font-size: 18px; cursor: pointer; }
.tm-flight-recent__forget:hover { background: #fdecea; color: #b3261e; }

/* Flights on a booked trip */
.tm-trip__flights { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--tm-line); }
.tm-trip__legs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tm-trip__legs li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tm-trip__legs .tm-icon { color: var(--tm-gold); width: 18px; height: 18px; }
.tm-trip__legs small { color: var(--tm-muted); }
.tm-trip__legs a { margin-left: auto; font-weight: 700; font-size: 13px; }
.tm-trip__flight-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 18px; }
.tm-trip__flight-actions > .tm-btn .tm-icon { width: 16px; height: 16px; }
.tm-trip__flight-form { flex: 1 1 100%; }
.tm-trip__flight-form summary { cursor: pointer; font-weight: 700; color: var(--tm-accent); font-size: 14px; display: inline-block; }
.tm-trip__flight-form form { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border-radius: 10px; background: var(--tm-tint); }
.tm-trip__flight-form .tm-btn { justify-self: start; }
.tm-field__hint { display: block; margin: 0; font-size: 13px; color: var(--tm-muted); font-weight: 400; }

/* ---------- User menu (header) ---------- */
.tm-usermenu { position: relative; }
.tm-usermenu__toggle { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px; cursor: pointer; color: var(--tm-dark); font-weight: 600; }
.tm-usermenu__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tm-white); box-shadow: 0 0 0 1px var(--tm-line); }
.tm-usermenu__list {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; z-index: 20; list-style: none; margin: 0; padding: 8px 0;
	background: var(--tm-white); border-radius: 10px; box-shadow: var(--tm-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.tm-usermenu.is-open .tm-usermenu__list { opacity: 1; visibility: visible; transform: none; }
.tm-usermenu__list a { display: flex; align-items: center; gap: 10px; padding: 8px 18px; color: var(--tm-dark); font-size: 15px; }
.tm-usermenu__list a:hover { background: var(--tm-tint); color: var(--tm-accent); }
.tm-usermenu__list .tm-icon { width: 18px; height: 18px; color: var(--tm-accent); }

/* ---------- Login / sign up ---------- */
.tm-auth {
	min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 60px 16px;
	background: linear-gradient(135deg, var(--tm-tint), #fff 60%);
}
.tm-auth__card { width: 100%; max-width: 480px; background: var(--tm-white); border-radius: 16px; box-shadow: 0 20px 60px rgba(15, 42, 54, .12); padding: 40px 36px; }
.tm-auth__logo { text-align: center; margin: -8px 0 18px; }
.tm-auth__logo .tm-logo__img { height: auto; width: 170px; max-width: 100%; margin: 0 auto; }
.tm-auth__logo .tm-logo__link { display: inline-block; }
.tm-auth__title { font-size: 30px; margin-bottom: 6px; text-align: center; }
.tm-auth__lead { text-align: center; }
.tm-auth__lead { color: var(--tm-muted); margin: 0 0 22px; }
.tm-auth__form { display: grid; gap: 16px; }
.tm-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tm-auth__switch { text-align: center; margin: 22px 0 0; color: var(--tm-muted); }
.tm-auth__switch a { font-weight: 700; }
.tm-auth .tm-notice, .tm-dash .tm-notice { margin: 0 0 18px; }
.tm-notice--info { background: #e8f2fb; color: #17507d; }
.tm-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tm-field--wide { grid-column: 1 / -1; }

/* ---------- Dashboard ---------- */
.tm-dash { background: var(--tm-tint); padding: 50px 0 80px; min-height: 70vh; }
.tm-dash__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; align-items: start; }
.tm-dash__side { position: sticky; top: 110px; background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); overflow: hidden; }
.tm-dash__me { display: grid; justify-items: center; gap: 2px; padding: 28px 20px 22px; text-align: center; background: var(--tm-primary); color: var(--tm-white); }
.tm-dash__me small { opacity: .8; }
.tm-dash__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tm-gold); margin-bottom: 10px; background: var(--tm-tint); }
.tm-dash__nav { display: grid; padding: 10px 0; }
.tm-dash__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: var(--tm-dark); font-weight: 600; border-left: 3px solid transparent; }
.tm-dash__nav a:hover { background: var(--tm-tint); color: var(--tm-accent); }
.tm-dash__nav a[aria-current="page"] { border-left-color: var(--tm-accent); background: var(--tm-tint); color: var(--tm-accent); }
.tm-dash__nav .tm-icon { width: 20px; height: 20px; }
.tm-dash__head { margin-bottom: 24px; }
.tm-dash__head h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 4px; }
.tm-dash__head p { margin: 0; color: var(--tm-muted); }
.tm-dash__block { margin-top: 34px; }
.tm-dash__block h2 { font-size: 22px; }
.tm-dash .tm-carousel__track { grid-auto-columns: calc((100% - 2 * 28px) / 3); }
.tm-grid--dash { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.tm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm-stat { background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); padding: 22px; display: grid; gap: 2px; color: var(--tm-muted); }
.tm-stat strong { font-size: 34px; color: var(--tm-primary); line-height: 1.1; }
.tm-stat:hover { color: var(--tm-accent); }

.tm-panel { background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); padding: 26px; margin-bottom: 24px; }
.tm-panel h2 { font-size: 20px; }
.tm-panel h2:not(:first-of-type) { margin-top: 26px; }
.tm-panel--empty { text-align: center; color: var(--tm-muted); }
.tm-panel--empty .tm-btn { margin-top: 6px; }
.tm-progress { display: grid; grid-template-columns: 1fr 200px auto; gap: 20px; align-items: center; margin-top: 24px; }
.tm-progress p { margin: 2px 0 0; color: var(--tm-muted); font-size: 14px; }
.tm-progress__bar { height: 8px; background: var(--tm-tint); border-radius: 4px; overflow: hidden; }
.tm-progress__bar span { display: block; height: 100%; background: var(--tm-accent); border-radius: 4px; }

.tm-trips { display: grid; gap: 18px; }
.tm-trip { display: flex; gap: 20px; background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); padding: 18px; }
.tm-trip__media { width: 120px; height: 120px; flex: none; border-radius: 10px; overflow: hidden; background: var(--tm-tint); }
.tm-trip__media img { width: 100%; height: 100%; object-fit: cover; }
.tm-trip__body { flex: 1; min-width: 0; }
.tm-trip__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tm-trip__title { font-size: 19px; margin: 0; text-transform: uppercase; }
.tm-trip__title a { color: var(--tm-dark); }
.tm-trip__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 18px; margin: 14px 0 0; }
.tm-trip__facts dt { font-size: 12px; color: var(--tm-muted); text-transform: uppercase; letter-spacing: .04em; }
.tm-trip__facts dd { margin: 0; font-weight: 700; color: var(--tm-dark); }
.tm-trip__actions { margin-top: 14px; }
.tm-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.tm-status--pending { background: #fff4de; color: #8a5a00; }
.tm-status--confirmed { background: #e6f6ec; color: #17693a; }
.tm-status--completed { background: #e8f2fb; color: #17507d; }
.tm-status--cancelled { background: #f1f1f1; color: #6b6b6b; }
.tm-link--danger { color: #b3261e; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; }
.tm-link--danger:hover { text-decoration: underline; color: #b3261e; }

.tm-avatar-edit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tm-avatar-edit .tm-dash__avatar { width: 120px; height: 120px; margin: 0; border-color: var(--tm-tint); }
.tm-avatar-edit__form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tm-avatar-edit__form small { width: 100%; color: var(--tm-muted); }
.tm-file { position: relative; overflow: hidden; }
.tm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tm-settings { display: grid; gap: 16px; }
.tm-settings h2 { margin: 6px 0 0; }
.tm-settings .tm-btn { justify-self: start; }

/* ---------- Manage site (team panel) ---------- */
.tm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tm-sale); color: var(--tm-white); font-size: 12px; font-weight: 800; line-height: 1; }
.tm-dash__nav .tm-badge { margin-left: auto; }
.tm-usermenu { position: relative; }
.tm-usermenu > .tm-badge { position: absolute; top: -6px; left: 24px; pointer-events: none; }
.tm-usermenu__list .tm-badge { margin-left: auto; }
.tm-dash__sep { display: block; height: 1px; margin: 8px 22px; background: var(--tm-line); }
.tm-stats--4 { grid-template-columns: repeat(4, 1fr); }
.tm-stat--alert { box-shadow: inset 0 0 0 2px var(--tm-sale), var(--tm-shadow); }
.tm-stat--alert strong { color: var(--tm-sale); }
.tm-manage__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.tm-manage__muted { color: var(--tm-muted); font-size: 14px; margin: 0; }
.tm-manage__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tm-manage__bar h2 { margin: 0; }
.tm-manage__back { margin: 0 0 10px; font-weight: 600; }
.tm-manage__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tm-manage__head h1 { overflow-wrap: anywhere; }

.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; background: var(--tm-white); border: 1px solid var(--tm-line); color: var(--tm-dark); font-size: 14px; font-weight: 600; }
.tm-chip:hover { border-color: var(--tm-accent); color: var(--tm-accent); }
.tm-chip.is-active { background: var(--tm-primary); border-color: var(--tm-primary); color: var(--tm-white); }
.tm-manage__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.tm-manage__filters input[type="search"], .tm-manage__filters select { padding: 9px 12px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white); min-width: 0; }
.tm-manage__filters input[type="search"] { flex: 1 1 220px; }
.tm-manage__pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

.tm-inbox { display: grid; background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); overflow: hidden; }
.tm-inbox__row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; color: var(--tm-dark); border-bottom: 1px solid var(--tm-line); border-left: 4px solid transparent; }
.tm-inbox__row:last-child { border-bottom: 0; }
.tm-inbox__row:hover { background: var(--tm-tint); color: var(--tm-dark); }
.tm-inbox__row.is-waiting { border-left-color: var(--tm-sale); }
.tm-inbox__row.is-waiting .tm-inbox__who strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--tm-sale); vertical-align: middle; }
.tm-inbox__who, .tm-inbox__what, .tm-inbox__meta { display: grid; gap: 2px; min-width: 0; }
.tm-inbox__who strong, .tm-inbox__what strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-inbox small { color: var(--tm-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-inbox em { font-style: normal; font-weight: 600; color: var(--tm-accent); }
.tm-inbox__meta { justify-items: end; text-align: right; }

.tm-manage__split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tm-manage__aside .tm-panel { padding: 22px; }
.tm-manage__dl { display: grid; gap: 12px; margin: 0; }
.tm-manage__dl dt { font-size: 12px; color: var(--tm-muted); text-transform: uppercase; letter-spacing: .04em; }
.tm-manage__dl dd { margin: 0; font-weight: 600; color: var(--tm-dark); overflow-wrap: anywhere; }
.tm-manage__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.tm-manage__actions .tm-icon { width: 16px; height: 16px; }
.tm-manage .tm-trip__facts dd { overflow-wrap: anywhere; }
.tm-manage__inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.tm-manage__inline select { padding: 8px 12px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white); }

/* Conversation */
.tm-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tm-thread__msg { display: grid; gap: 4px; max-width: 86%; }
.tm-thread__msg--team { justify-self: end; justify-items: end; }
.tm-thread__who { font-size: 12px; color: var(--tm-muted); }
.tm-thread__bubble { padding: 12px 16px; border-radius: 14px; background: var(--tm-tint); color: var(--tm-dark); overflow-wrap: anywhere; }
.tm-thread__bubble p { margin: 0 0 8px; }
.tm-thread__bubble p:last-child { margin-bottom: 0; }
.tm-thread__msg--traveller .tm-thread__bubble { border-top-left-radius: 4px; }
.tm-thread__msg--team .tm-thread__bubble { background: var(--tm-primary); color: var(--tm-white); border-top-right-radius: 4px; }
.tm-thread__note { color: var(--tm-muted); font-style: italic; }
.tm-thread__price strong { color: var(--tm-gold); font-size: 17px; }
/* In the traveller's account the roles swap: their own messages sit on the right. */
.tm-thread--traveller { margin-top: 16px; }
.tm-thread--traveller .tm-thread__msg--traveller { justify-self: end; justify-items: end; }
.tm-thread--traveller .tm-thread__msg--traveller .tm-thread__bubble { background: var(--tm-primary); color: var(--tm-white); border-radius: 14px 4px 14px 14px; }
.tm-thread--traveller .tm-thread__msg--team { justify-self: start; justify-items: start; }
.tm-thread--traveller .tm-thread__msg--team .tm-thread__bubble { background: var(--tm-tint); color: var(--tm-dark); border-radius: 4px 14px 14px 14px; }
.tm-thread--traveller .tm-thread__msg--team .tm-thread__price strong { color: var(--tm-primary); }
.tm-quote-card.is-new { box-shadow: inset 0 0 0 2px var(--tm-gold), var(--tm-shadow); }
.tm-status--new { background: var(--tm-gold); color: var(--tm-primary); }
.tm-quote-write { margin-top: 14px; }
.tm-quote-write summary { cursor: pointer; font-weight: 700; color: var(--tm-accent); }
.tm-quote-write form { display: grid; gap: 10px; margin-top: 10px; }
.tm-quote-write textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--tm-line); border-radius: 6px; }
.tm-quote-write .tm-btn { justify-self: start; }

.tm-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--tm-dark); cursor: pointer; }
.tm-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--tm-primary); }
.tm-field__label { font-weight: 700; color: var(--tm-dark); font-size: 15px; }
.tm-field input[type="color"] { width: 90px; height: 44px; padding: 4px; }
.tm-range { display: flex; align-items: center; gap: 12px; }
.tm-field .tm-range input[type="range"] { padding: 0; border: 0; accent-color: var(--tm-primary); }
.tm-range output { min-width: 32px; font-weight: 700; }

.tm-danger { margin-top: 8px; padding: 14px 18px; border-radius: var(--tm-radius); border: 1px dashed #e5b3ad; background: var(--tm-white); }
.tm-danger summary { cursor: pointer; color: #b3261e; font-weight: 600; }
.tm-danger p { margin: 10px 0; color: var(--tm-muted); font-size: 14px; }
.tm-btn--danger { background: #b3261e; border-color: #b3261e; color: var(--tm-white); }
.tm-btn--danger:hover { background: #8c1d17; border-color: #8c1d17; color: var(--tm-white); }

.tm-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 14px 0; background: linear-gradient(to top, var(--tm-tint) 70%, transparent); }
.tm-panel .tm-savebar { background: var(--tm-white); margin: 0 -26px -26px; padding: 16px 26px; border-top: 1px solid var(--tm-line); border-radius: 0 0 var(--tm-radius) var(--tm-radius); }

/* Trips */
.tm-triplist { display: grid; background: var(--tm-white); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); overflow: hidden; }
.tm-triplist__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-triplist__row:last-child { border-bottom: 0; }
.tm-triplist__img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--tm-tint); }
.tm-triplist__img img { width: 100%; height: 100%; object-fit: cover; }
.tm-triplist__img .tm-icon { width: 28px; height: 28px; }
.tm-triplist__body { display: grid; gap: 2px; min-width: 0; }
.tm-triplist__title { font-weight: 700; color: var(--tm-dark); }
.tm-triplist__body small { color: var(--tm-muted); }
.tm-triplist__links { display: flex; gap: 14px; font-weight: 600; }

.tm-media { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tm-media__preview:empty { display: none; }
.tm-media__preview img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.tm-media__file { display: inline-block; padding: 8px 12px; border-radius: 6px; background: var(--tm-tint); font-size: 14px; }
.tm-gallery-edit__list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tm-gallery-edit__list:empty { display: none; }
.tm-gallery-edit__list li { position: relative; }
.tm-gallery-edit__list img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.tm-gallery-edit__list button, .tm-rep__tools button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--tm-line); background: var(--tm-white); color: var(--tm-dark); cursor: pointer; font-size: 15px; line-height: 1; }
.tm-gallery-edit__list button { position: absolute; top: -8px; right: -8px; box-shadow: var(--tm-shadow); }
.tm-gallery-edit__list button:hover, .tm-rep__tools [data-rep-remove]:hover { background: #b3261e; border-color: #b3261e; color: var(--tm-white); }
.tm-termtree ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.tm-termtree ul ul { display: block; margin: 6px 0 0 26px; }
.tm-termtree ul ul li { margin-top: 6px; }
.tm-termtree .tm-check { font-weight: 500; }

.tm-rep__rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; counter-reset: tmday; }
.tm-rep__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--tm-line); border-radius: 10px; background: var(--tm-tint); }
.tm-rep__fields { display: grid; gap: 8px; min-width: 0; }
.tm-rep__fields--inline { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tm-rep__fields input, .tm-rep__fields textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white); }
.tm-rep__tools { display: flex; gap: 6px; }
.tm-rep__row:first-child [data-rep-up], .tm-rep__row:last-child [data-rep-down] { visibility: hidden; }

/* Homepage sections table */
.tm-layout { display: grid; border: 1px solid var(--tm-line); border-radius: 10px; overflow: hidden; }
/* Each section: its name and on/off box on top, then its labelled settings in one wrapping line. */
.tm-layout__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--tm-line); }
.tm-layout__row:last-child { border-bottom: 0; }
.tm-layout__name { flex: 1 1 190px; align-self: center; }
.tm-layout__ctl { display: grid; gap: 4px; flex: 1 1 140px; min-width: 0; }
.tm-layout__ctl--num { flex: 0 0 84px; }
.tm-layout__ctl small { font-size: 12px; font-weight: 700; color: var(--tm-muted); text-transform: uppercase; letter-spacing: .04em; }
.tm-layout input[type="number"], .tm-layout select { width: 100%; padding: 8px 10px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-white); min-width: 0; }
.tm-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 8px; }

@media (max-width: 1200px) {
	.tm-manage__split { grid-template-columns: minmax(0, 1fr); }
	.tm-stats--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.tm-dash__sep { display: none; }
}
@media (max-width: 680px) {
	.tm-inbox__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
	.tm-inbox__what { grid-column: 1 / -1; grid-row: 2; }
	.tm-inbox__meta { grid-row: 1; grid-column: 2; }
	.tm-triplist__row { grid-template-columns: 52px minmax(0, 1fr) auto; }
	.tm-triplist__img { width: 52px; height: 52px; }
	.tm-triplist__links { grid-column: 2 / -1; }
	.tm-thread__msg { max-width: 100%; }
	.tm-rep__row { grid-template-columns: 1fr; }
	.tm-rep__fields--inline { grid-template-columns: 1fr; }
	.tm-stats--4 { grid-template-columns: 1fr 1fr; }
	.tm-panel .tm-savebar { margin: 0 -18px -18px; padding: 14px 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.tm-search--flights { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
	.tm-search--flights .tm-fl__dates { grid-column: 1 / 3; }
	.tm-search--flights .tm-search__submit { grid-column: 1 / -1; width: 100%; height: 52px; margin-top: 4px; }
	.tm-search--flights .tm-fl__pax::before { display: block; }
	.tm-pax__panel { right: auto; left: -20px; }
	.tm-search { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; row-gap: 4px; }
	.tm-search__field--q { grid-column: 1 / -1; }
	.tm-search__field--q + .tm-search__field::before { display: none; }
	.tm-carousel__track { grid-auto-columns: calc((100% - 2 * 28px) / 3); }
	.tm-footer__top { grid-template-columns: repeat(3, 1fr); }
	.tm-footer__brand { grid-column: 1 / -1; }
	.tm-tour__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; }
}
/* Slide-out menu (the logo and name need the room on smaller screens). */
@media (max-width: 1100px) {
	.tm-burger { display: inline-flex; }
	.tm-desktop-only { display: none !important; }
	.tm-mobile-only { display: flex; }
	.tm-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 150;
		background: var(--tm-white); padding: 90px 24px 30px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s; box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
	}
	.tm-nav.is-open { transform: none; }
	body.tm-menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 140; }
	/* The header is its own stacking context, so lift it above the backdrop. */
	.tm-menu-open .tm-header { z-index: 160; }
	.tm-menu { flex-direction: column; gap: 0; }
	.tm-menu a { color: var(--tm-dark); padding: 12px 0; border-bottom: 1px solid var(--tm-line); font-size: 17px; }
	.tm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; display: none; }
	.tm-menu li.is-open > .sub-menu { display: block; }
	.tm-nav__auth { gap: 14px; margin-top: 24px; flex-direction: column; align-items: stretch !important; }
	.tm-nav__auth .tm-link { color: var(--tm-dark); }
	.tm-nav__auth .tm-usermenu__list { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; min-width: 0; }
	.tm-nav__auth .tm-usermenu__toggle { pointer-events: none; margin-bottom: 6px; color: var(--tm-dark) !important; }
	.tm-nav__auth .tm-usermenu__list a { padding: 8px 0; }
	.tm-burger { position: relative; z-index: 160; }
	.tm-menu-open .tm-burger { color: var(--tm-dark) !important; }
}
@media (max-width: 960px) {
	.tm-browse__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 480px; }
	.tm-browse__side { padding: 22px 16px 14px; }
	/* On narrow screens the states sit in one row above the slider and scroll sideways. */
	.tm-browse__side .tm-browse__list {
		grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; margin-right: 0;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
	}
	.tm-browse__side .tm-browse__list::-webkit-scrollbar { height: 4px; }
	.tm-tour__layout, .tm-with-sidebar, .tm-contact { grid-template-columns: 1fr; }
	.tm-tour__side { position: static; }
	.tm-dash__layout { grid-template-columns: 1fr; }
	.tm-dash__side { position: static; }
	.tm-dash__me { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 18px; }
	.tm-dash__me .tm-dash__avatar { width: 56px; height: 56px; grid-row: span 2; margin: 0; border-width: 2px; }
	.tm-dash__nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 0; }
	.tm-dash__nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 14px 16px; }
	.tm-dash__nav a[aria-current="page"] { border-bottom-color: var(--tm-accent); }
	.tm-dash .tm-carousel__track { grid-auto-columns: calc((100% - 28px) / 2); }
	.tm-progress { grid-template-columns: 1fr; }
	.tm-features, .tm-grid--3 { grid-template-columns: 1fr 1fr; }
	.tm-reviews .tm-carousel__track { grid-auto-columns: calc((100% - 28px) / 2); }
}
@media (max-width: 782px) {
	.admin-bar .tm-header { top: 46px; }
}
@media (max-width: 680px) {
	.tm-section { padding: 56px 0; }
	.tm-container { padding: 0 16px; }
	.tm-header__inner { min-height: 66px; gap: 12px; }
	.tm-logo .tm-logo__img--logo { height: 52px; }
	.tm-logo .tm-logo__img--name { height: 17px; max-width: 150px; }
	.tm-logo .tm-logo__lockup { gap: 8px; }
	.tm-search { grid-template-columns: 1fr 1fr; padding: 8px; gap: 4px; }
	.tm-search__field { padding: 8px 12px; }
	.tm-search__field--q, .tm-search__field:nth-child(4) { grid-column: 1 / -1; }
	.tm-search__field + .tm-search__field::before { display: none; }
	.tm-search__field { border-bottom: 1px solid var(--tm-line); }
	.tm-search__submit { grid-column: 1 / -1; width: 100%; height: 52px; margin-top: 4px; }
	.tm-suggest__panel { left: -12px; width: calc(100vw - 32px); max-height: 60vh; }
	.tm-search--flights { grid-template-columns: minmax(0, 1fr) 36px; }
	.tm-search--flights .tm-fl__from, .tm-search--flights .tm-fl__to { grid-column: 1; }
	.tm-search--flights .tm-fl__swap { grid-column: 2; grid-row: 2 / 4; }
	.tm-search--flights .tm-fl__dates, .tm-search--flights .tm-fl__pax { grid-column: 1 / -1; }
	.tm-search--flights .tm-fl__to::before, .tm-search--flights .tm-fl__dates::before, .tm-search--flights .tm-fl__pax::before { display: none !important; }
	.tm-airport__list { left: -12px; width: calc(100vw - 32px); }
	.tm-pax__panel { left: -12px; width: calc(100vw - 32px); }
	.tm-search-tabs__list { display: flex; }
	.tm-search-tabs__list button { flex: 1; justify-content: center; }
	.tm-flights__card { margin-top: -70px; }
	.tm-flights__perks { flex-direction: column; align-items: flex-start; }
	.tm-flight-recent ul { grid-template-columns: 1fr; }
	.tm-filters__main > label:not(.tm-filters__q) { flex: 1 1 100%; }
	.tm-filters__main > label select { width: 100%; }
	.tm-filters__main .tm-btn { flex: 1; }
	.tm-results-bar .tm-view { margin-left: 0; }
	.tm-carousel__track, .tm-reviews .tm-carousel__track { grid-auto-columns: 82%; gap: 16px; }
	.tm-carousel__nav { display: none; }
	.tm-carousel--single .tm-carousel__track { grid-auto-columns: 100%; }
	.tm-features, .tm-grid--3, .tm-incl { grid-template-columns: 1fr; }
	.tm-footer__top { grid-template-columns: 1fr 1fr; }
	.tm-grid.is-list .tm-card { flex-direction: column; }
	.tm-grid.is-list .tm-card__media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
	.tm-tour__gallery { height: 300px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
	.tm-tour__gallery .tm-tour__shot:not(:first-child) { display: none; }
	.tm-cta__inner { justify-content: center; text-align: center; }
	.tm-prose .alignwide { margin-left: 0; margin-right: 0; }
	.tm-form-2, .tm-stats { grid-template-columns: 1fr; }
	.tm-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.tm-stat { padding: 14px 10px; font-size: 13px; }
	.tm-stat strong { font-size: 26px; }
	.tm-auth__card { padding: 28px 20px; }
	.tm-trip { flex-direction: column; }
	.tm-trip__media { width: 100%; height: 150px; }
	.tm-dash .tm-carousel__track { grid-auto-columns: 82%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
