/* Listings and deal pages. Theme tokens only. */

/* Price, shared */
.ttux-price { margin: 0; line-height: 1.2; }
.ttux-price__from, .ttux-price__note { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.ttux-price__value { display: inline-block; font-size: 1.375rem; font-weight: 800; color: var(--ink); box-shadow: inset 0 -.32em 0 var(--sun); }
.ttux-link { color: var(--ink); text-decoration: none; }
.ttux-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ttux-link:hover { color: var(--brand-dark); }
.ttux-link:focus-visible { outline: none; }
.ttux-img, .ttux-card__media .ttux-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Listing head and tabs */
.ttux-listing__head { padding: 12px 0 4px; }
.ttux-listing__head h1 { margin-bottom: 6px; }
.ttux-listing__head .tt-lead { color: var(--ink-2); font-size: 1rem; max-width: 70ch; }
.ttux-listing__head .tt-lead p { margin: 0; }
.ttux-tabs { margin: 12px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.ttux-tabs::-webkit-scrollbar { display: none; }
.ttux-tabs ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.ttux-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: .9375rem; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; }
.ttux-tabs a span { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.ttux-tabs a:hover { color: var(--ink); }
.ttux-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }

/* Toolbar: filter button + sort */
.ttux-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: #fff; }
.ttux-sort { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; min-width: 0; }
.ttux-sort label { font-size: .8125rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ttux-sort .tt-input { max-width: 190px; min-height: 44px; }
.ttux-filters-open { display: none; flex: none; }
.ttux-js .ttux-filters-open { display: inline-flex; }
.ttux-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; }

/* Filters. Without JavaScript the form simply sits in the page. */
.ttux-filters__panel { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ttux-filters__head, .ttux-filters__backdrop { display: none; }
.ttux-filters__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ttux-field { margin: 0; min-width: 0; }
.ttux-field label { display: block; margin-bottom: 4px; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.ttux-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

/* Bottom sheet on phones and small tablets */
@media (max-width: 899px) {
	.ttux-js .ttux-filters { display: none; }
	.ttux-js .ttux-filters.is-open { display: block; position: fixed; inset: 0; z-index: 1000; }
	.ttux-js .ttux-filters__backdrop { display: block; position: absolute; inset: 0; background: rgb(15 42 51 / 50%); }
	.ttux-js .ttux-filters__panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius) var(--radius) 0 0; background: #fff; }
	.ttux-js .ttux-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
	.ttux-filters__title { margin: 0; font-size: 1.125rem; font-weight: 800; }
	.ttux-filters__close { width: 44px; height: 44px; padding: 0; background: none; border: 0; font-size: 1.75rem; line-height: 1; color: var(--ink); cursor: pointer; }
	.ttux-js .ttux-filters__fields { flex: 1; grid-template-columns: 1fr; padding: 16px; overflow-y: auto; }
	.ttux-js .ttux-filters__actions { flex-direction: column; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
	.ttux-js .ttux-filters__actions .tt-btn { width: 100%; }
	body.ttux-sheet-open { overflow: hidden; }
}
@media (min-width: 900px) {
	.ttux-js .ttux-filters-open { display: none; }
	.ttux-listbar { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 16px 0 12px; }
	.ttux-toolbar { position: static; flex: none; margin: 0; padding: 0; }
	.ttux-listbar .ttux-results { margin: 0; min-height: 44px; }
	.ttux-filters { margin-top: 12px; }
	.ttux-filters__panel { display: flex; align-items: flex-end; gap: 12px; }
	.ttux-filters__fields { flex: 1; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
	.ttux-filters__actions { flex-wrap: nowrap; margin: 0; }
}

/* Quick links */
.ttux-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.ttux-quick__label { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.ttux-quick ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ttux-quick a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.ttux-quick a span { font-weight: 600; color: var(--ink-3); }
.ttux-quick a:hover { border-color: var(--brand); color: var(--brand-dark); }
.ttux-quick--foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 899px) {
	.ttux-listbar { display: contents; }
	.ttux-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ttux-sort .tt-input { max-width: none; }
	.ttux-quick { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.ttux-quick::-webkit-scrollbar { display: none; }
	.ttux-quick ul { flex-wrap: nowrap; white-space: nowrap; }
	.ttux-quick--foot { flex-wrap: wrap; overflow: visible; }
	.ttux-quick--foot ul { flex-wrap: wrap; white-space: normal; }
	.ttux-results { margin-top: 4px; }
	.ttux-deal__head .tt-share__btn { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
	.ttux-deal__head .tt-share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Results */
.ttux-results { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 12px; }
.ttux-results__count { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--ink-2); }
.ttux-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ttux-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px 4px 12px; background: var(--brand-tint); border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.ttux-chips a:hover { background: #c4e8e3; }
.ttux-chips__clear a { background: none; color: var(--brand); text-decoration: underline; }

/* Card */
.ttux-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ttux-cards > li { display: flex; min-width: 0; }
.ttux-card { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: 36% minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.ttux-card:hover { box-shadow: var(--shadow-hover); }
.ttux-card:focus-within { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.ttux-card.is-expired .ttux-card__media { opacity: .5; }
.ttux-card__media { position: relative; background: var(--brand-tint); overflow: hidden; min-height: 150px; }
.ttux-card__media .ttux-img { position: absolute; inset: 0; }
.ttux-badges { position: absolute; left: 6px; top: 6px; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ttux-badge { padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.ttux-badge.tt-flag--hot { background: #ffedd5; color: #9a3412; }
.ttux-badge.tt-flag--error { background: #fee4e2; color: #b42318; }
.ttux-badge.tt-flag--lastminute { background: var(--sun-tint); color: #6b4700; }
.ttux-card__body { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; }
.ttux-card__kicker { margin: 0 0 2px; font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.ttux-card__title { margin: 0 0 4px; font-size: 1rem; line-height: 1.25; font-weight: 800; }
.ttux-card__line { margin: 0; font-size: .8125rem; line-height: 1.35; }
.ttux-card__line--muted { margin-top: 2px; color: var(--ink-3); }
.ttux-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.ttux-cta { display: none; align-items: center; gap: 4px; font-size: .875rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.ttux-checked { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: .75rem; font-weight: 600; color: var(--ok); }
@media (min-width: 640px) {
	.ttux-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.ttux-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.ttux-card__media { aspect-ratio: 16 / 10; min-height: 0; }
	.ttux-card__body { padding: 12px 14px 14px; }
	.ttux-card__title { font-size: 1.0625rem; }
	.ttux-card__line { font-size: .875rem; }
	.ttux-cta { display: inline-flex; }
}
@media (min-width: 980px) { .ttux-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Empty state */
.ttux-empty { margin: 8px 0 24px; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.ttux-empty h2 { margin-bottom: 8px; font-size: 1.25rem; }
.ttux-empty__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ttux-alt-title { margin: 0 0 12px; font-size: 1.25rem; }

/* Deal page */
.ttux-deal__head { padding: 12px 0 12px; }
.ttux-deal__head .tt-kicker { margin-bottom: 6px; }
.ttux-deal__head .tt-offer__title { max-width: none; margin-bottom: 8px; }
.ttux-deal__head .tt-share { margin: 0; padding: 0; background: none; border: 0; }
.ttux-deal__head .tt-share__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ttux-deal__head .tt-share__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ttux-deal__head .tt-share__btn { min-height: 36px; padding: 4px 10px; font-size: .8125rem; }
.ttux-deal__head .tt-share__status { margin: 4px 0 0; font-size: .8125rem; }
.ttux-deal__layout { display: grid; gap: 16px; padding-bottom: 24px; }
.ttux-deal__media, .ttux-box, .ttux-deal__content { min-width: 0; }
.ttux-deal__image { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 16 / 8; overflow: hidden; background: var(--brand-tint); }
.ttux-deal__image img { width: 100%; height: 100%; object-fit: cover; }
.ttux-box { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.ttux-box__price { margin: 0 0 12px; line-height: 1.2; }
.ttux-box__value { display: block; font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.ttux-box__cta { margin-bottom: 12px; }
.ttux-facts { margin: 0 0 12px; }
.ttux-facts > div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.35; }
.ttux-facts dt { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-3); font-weight: 600; }
.ttux-facts dt .tt-icon { flex: none; margin-top: 1px; }
.ttux-facts dd { margin: 0; font-weight: 700; }
.ttux-box__checked { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; font-size: .875rem; color: var(--ink-2); }
.ttux-box__checked .tt-icon { flex: none; margin-top: 2px; color: var(--ok); }
.ttux-box__checked.is-stale .tt-icon { color: #b7791f; }
.ttux-box__small, .ttux-box .tt-aff-note { margin: 6px 0 0; font-size: .75rem; line-height: 1.4; color: var(--ink-3); }
.ttux-info { margin-bottom: 20px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); }
.ttux-info h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.0625rem; }
.ttux-info p { margin: 0; font-size: .9375rem; }
.ttux-prose > h2 { margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 1.25rem; }
.ttux-prose > h2:first-of-type { margin-top: 1.2em; }
.ttux-more { padding: 28px 0; }
@media (min-width: 900px) {
	.ttux-deal__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px 32px; align-items: start; }
	.ttux-deal__media { grid-column: 1; grid-row: 1; }
	.ttux-deal__content { grid-column: 1; grid-row: 2; }
	.ttux-box { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
	.ttux-deal__image { margin: 0; aspect-ratio: 16 / 7; border-radius: var(--radius); }
	.ttux-more { padding: 40px 0; }
}

/* Sticky booking bar: phones only */
.ttux-stickybar { display: none; }
@media (max-width: 899px) {
	.ttux-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(15 42 51 / 10%); transform: translateY(110%); visibility: hidden; transition: transform .18s, visibility .18s; }
	.ttux-stickybar[hidden] { display: none; }
	.ttux-stickybar.is-visible { transform: none; visibility: visible; }
	.ttux-stickybar__price { margin: 0; min-width: 0; line-height: 1.15; }
	.ttux-stickybar .tt-price__note, .ttux-stickybar .ttux-price__note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.ttux-stickybar .tt-btn { flex: none; font-size: .9375rem; padding-inline: 14px; }
	body.ttux-has-bar { padding-bottom: 72px; }
}

/* Destination and article pages */
.ttux-dest__actions { margin: 12px 0 0; }
#pakkumised { scroll-margin-top: calc(var(--header-h) + 16px); }
.ttux-prose { line-height: 1.7; }
.ttux-prose > p, .ttux-prose > ul, .ttux-prose > ol { margin-bottom: 1.15em; }
.ttux-prose li { margin-bottom: .4em; }
.ttux-article .tt-prose > h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.ttux-dest .tt-side__title { margin-top: 0; }
.ttux-grid--near { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .ttux-grid--near { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
