/* deal-flights.css — flight-specific rules only.
 * Reuses .trip5 tokens/classes from deal-post-v5.css. Mobile-first; one
 * @media (min-width:1200px) block for desktop, matching v5 breakpoints.
 */

.trip5--flights {
	--t5-blue-select: #F2F7FB;
	--t5-amber-tint: #FBF1DE;
	--t5f-parking: #6B3FA0;
	--t5f-transfer: #14706A;
	padding-bottom: 0;
}

/* ---------- Site CSS bleed ----------
 * izletnadlani.com Additional CSS (#wp-custom-css) contains a GLOBAL
 *   button { margin:2px auto; width:200px; height:40px; background:#e74c3c; font-weight:100; transition:… }
 *   button:hover { background:#c0392b }
 * Class selectors beat it, but only for the properties they set, so every flights
 * button class below also neutralises width/height/weight and its hover background.
 * Do not remove: without this all chips/months/cards become 200 px wide red-on-hover buttons.
 */
.trip5--flights button { margin: 0; transition: none; }

/* ---------- Price teaser (§7.3) ---------- */
.trip5--flights .t5-teaser--cd { flex-direction: column; align-items: stretch; gap: 12px; }
.t5f-teaser-row { display: flex; align-items: center; gap: 12px; }
.t5f-teaser-row .t5-teaser-main { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.t5f-count { display: flex; flex-direction: column; gap: 7px; }
.t5f-count--dark { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
.t5f-count--light { border-top: 1px solid var(--t5-border); padding-top: 12px; }
.t5f-count-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.t5f-count-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.t5f-count--dark .t5f-count-text { color: #fff; }
.t5f-count--dark .t5f-count-text svg { color: #FFD29A; }
.t5f-count--light .t5f-count-text { color: var(--t5-rust-text); }
.t5f-count-sub { color: var(--t5-blue-soft, #BFD3E1); }
.t5f-count--light .t5f-count-sub { color: var(--t5-muted); }
.t5f-count-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); }
.t5f-count--light .t5f-count-bar { background: var(--t5-border); }
.t5f-count-bar i { display: block; height: 5px; border-radius: 3px; background: #FFD29A; }
.t5f-count--light .t5f-count-bar i { background: var(--t5-rust); }

/* ---------- Selector (§7.4) ---------- */
.t5f-block { padding-top: 24px; }
.t5f-sel-wrap { padding-top: 24px; }
.t5f-ad-block { padding-top: 28px; }
.t5f-sel {
	display: flex; flex-direction: column; gap: 12px;
	padding: 16px 14px;
	border: 1px solid var(--t5-border); border-radius: 18px;
	background: #fff;
}
.t5f-sel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.t5f-eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .8px;
	text-transform: uppercase; color: var(--t5-muted);
}
.t5f-sel-aside { font-size: 13px; color: var(--t5-muted); }
.t5f-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.t5f-opt {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	width: auto; height: auto; min-height: 96px; box-sizing: border-box; padding: 12px 12px 12px 14px;
	text-align: left; cursor: pointer; border-radius: 14px;
	background: #fff; border: 1.5px solid var(--t5-border); color: var(--t5-ink);
	font-family: inherit; font-weight: 400;
}
.t5f-opt:hover, .t5f-opt:focus, .t5f-opt:active { background: #fff; color: var(--t5-ink); }
.t5f-opt.is-on { background: var(--t5-blue-select); border-color: var(--t5-blue); box-shadow: 0 6px 18px rgba(30,77,107,.14); }
.t5f-opt-tab {
	position: absolute; top: -9px; right: 10px;
	padding: 3px 7px; border-radius: 6px; background: #2F6B45; color: #fff;
	font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
}
.t5f-opt-code { font-family: Lora, serif; font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.3px; }
.t5f-opt-city { font-size: 14px; font-weight: 700; margin-top: 4px; }
.t5f-opt-sub { font-size: 12px; color: var(--t5-muted); }
.t5f-opt-count { font-size: 12px; color: var(--t5-muted); }
.t5f-opt-count b { color: var(--t5-blue); font-weight: 800; }
.t5f-opt-from { display: none; }
.t5f-rule { height: 1px; margin: 2px 0; border: 0; background: var(--t5-line); }
.t5f-row { display: flex; }
.t5f-row--len { flex-direction: column; gap: 8px; }
.t5f-row--month { flex-direction: column; gap: 8px; }
.t5f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t5f-chip {
	position: relative; flex-shrink: 0; width: auto; height: 36px; padding: 0 12px;
	border-radius: 999px; border: 1px solid #D3D9E0; background: #fff; color: var(--t5-body);
	font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.t5f-chip::before { content: ""; position: absolute; inset: -4px 0; }
.t5f-chip.is-on { background: var(--t5-blue); border-color: var(--t5-blue); color: #fff; }
.t5f-chip:hover, .t5f-chip:focus, .t5f-chip:active { background: #fff; color: var(--t5-body); }
.t5f-chip.is-on:hover, .t5f-chip.is-on:focus, .t5f-chip.is-on:active { background: var(--t5-blue); color: #fff; }
/* Več mesecev kot prostora: vrstica drsi vodoravno, gumbi se ne krčijo. */
.t5f-months { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 8px 6px 0 0; }
.t5f-months::-webkit-scrollbar { display: none; }
/* Puščici za drsenje po mesecih (JS ju pokaže, ko meseci ne gredo v vrstico). */
.t5f-months-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.t5f-months-wrap .t5f-months { flex: 1 1 auto; min-width: 0; }
.t5f-mscroll {
	position: relative; flex: 0 0 auto; width: 36px; min-width: 36px; height: 36px; margin-top: 8px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid var(--t5-border); background: #fff; color: var(--t5-blue);
	font-weight: 400; cursor: pointer;
}
.t5f-mscroll::before { content: ""; position: absolute; inset: -4px; }
.t5f-mscroll[hidden] { display: none; }
.t5f-mscroll:hover, .t5f-mscroll:focus, .t5f-mscroll:active { background: var(--t5-blue-tint); color: var(--t5-blue); }
.t5f-mscroll:disabled { opacity: .35; cursor: default; background: #fff; }
.t5f-month {
	flex: 0 0 84px; width: auto; min-width: 84px; min-height: 48px; padding: 0 8px; font-weight: 400;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	border-radius: 12px; border: 1px solid var(--t5-border); background: #fff; color: var(--t5-blue);
	font-family: inherit; cursor: pointer; scroll-snap-align: start;
}
.t5f-month span:first-child { font-size: 15px; font-weight: 700; line-height: 1.1; }
.t5f-month span:last-child { font-size: 11px; font-weight: 600; color: var(--t5-muted); white-space: nowrap; }
.t5f-month.is-on { background: var(--t5-blue); border-color: var(--t5-blue); color: #fff; }
.t5f-month.is-on span:last-child { color: #BFD3E1; }
.t5f-month:hover, .t5f-month:focus, .t5f-month:active { background: #fff; color: var(--t5-blue); }
.t5f-month.is-on:hover, .t5f-month.is-on:focus, .t5f-month.is-on:active { background: var(--t5-blue); color: #fff; }
/* Cheapest month: same green tint, border and ★ badge as the cheapest day in the calendar (.t5f-cell--dep.is-min). */
.t5f-month.is-min { position: relative; background: var(--t5-green-bg); border: 2px solid var(--t5-green); box-shadow: 0 2px 6px rgba(47,107,69,.25); }
.t5f-month.is-min span:first-child { color: var(--t5-green-ink); }
.t5f-month.is-min::after {
	content: "★";
	position: absolute; top: -7px; right: -6px;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--t5-green); color: #fff;
	font-size: 9px; line-height: 16px; text-align: center;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}
.t5f-sel .t5f-month.is-min:not(.is-on),
.t5f-sel .t5f-month.is-min:not(.is-on):hover,
.t5f-sel .t5f-month.is-min:not(.is-on):focus,
.t5f-sel .t5f-month.is-min:not(.is-on):active { background: var(--t5-green-bg); }

/* ---------- Date lines (§7.5) ---------- */
.t5f-dates { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.t5f-date {
	display: flex; align-items: center; gap: 10px;
	padding: 7px 7px 7px 12px; border-radius: 14px;
	border: 1.5px solid var(--t5-border); background: #fff;
}
.t5f-date.is-on { border-color: var(--t5-blue); background: var(--t5-blue-select); }
.t5f-date.is-off-promo { background: #FFFBF3; border-color: #E8CF9C; }
.t5f-date.is-off-promo.is-on { background: var(--t5-blue-select); border-color: var(--t5-blue); }
.t5f-date-pick {
	flex-grow: 1; width: auto; height: auto; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 10px;
	padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--t5-ink);
	font-family: inherit; font-weight: 400;
}
.t5f-date-pick:hover, .t5f-date-pick:focus, .t5f-date-pick:active { background: transparent; color: var(--t5-ink); }
.t5f-radio { flex-shrink: 0; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid #C3CAD2; display: flex; align-items: center; justify-content: center; }
.t5f-date.is-on .t5f-radio { border-color: var(--t5-blue); }
.t5f-date.is-on .t5f-radio i { width: 8px; height: 8px; border-radius: 50%; background: var(--t5-blue); }
.t5f-date-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t5f-date-range { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.t5f-date-air { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t5-muted); flex-wrap: wrap; }
.t5f-air-code { padding: 1px 5px; border: 1px solid #C9D8E4; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .4px; color: var(--t5-blue); }
.t5f-air-code--img { padding: 0; border: 0; line-height: 0; }
.t5f-air-code--img img { display: block; height: auto; width: auto; max-width: 48px; border-radius: 3px; }
.t5f-air-name { font-weight: 600; color: var(--t5-body); }
.t5f-date-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--t5-muted); }
.t5f-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.t5f-pill--ok { background: var(--t5-green-bg); color: var(--t5-green-ink); }
.t5f-pill--warn { background: var(--t5-amber-tint); color: var(--t5-amber-deep); }
.t5f-go {
	flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	min-width: 84px; height: 50px; box-sizing: border-box; padding: 0 10px;
	border-radius: 12px; border: 1.5px solid var(--t5-blue);
	background: var(--t5-blue) !important; color: #fff !important;
	text-decoration: none; font-family: inherit;
}
.t5f-go:hover, .t5f-go:focus, .t5f-go:active { color: #fff !important; }
.t5f-date.is-off-promo .t5f-go { background: #fff !important; color: var(--t5-blue) !important; }
.t5f-go-price { font-family: Lora, serif; font-size: 18px; font-weight: 600; line-height: 1; }
.t5f-go-cta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; }
.t5f-go-off { display: none; }
.t5f-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--t5-muted); }
.t5f-legend span { display: inline-flex; align-items: center; gap: 5px; }
.t5f-legend svg { color: var(--t5-green); }
.t5f-muted { color: var(--t5-muted); }

.t5f-tile-ico { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--t5-blue-tint); color: var(--t5-blue); display: flex; align-items: center; justify-content: center; }

/* ---------- Ad (§7.6) ---------- */
.trip5--flights .t5-ad-body { min-height: 250px; }

/* ---------- Hotels (§7.8) ---------- */
.t5f-hotel-cta {
	grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; border: 1.5px solid var(--t5-blue); color: var(--t5-blue) !important;
	border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none;
}
.t5f-hotel-cta:hover, .t5f-hotel-cta:focus, .t5f-hotel-cta:active { color: var(--t5-blue) !important; }
.t5f-src { display: block; font-size: 11px; color: var(--t5-faint); text-align: center; margin-top: 6px; }

/* ---------- Dopolni potovanje (§7.9) ---------- */
.t5f-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.t5f-sec-head .t5-sec-sub { margin: 4px 0 0; font-size: 13px; color: var(--t5-muted); }
.t5f-sec-aside { flex-shrink: 0; font-size: 11px; color: var(--t5-faint); padding-bottom: 2px; }
.t5f-tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.t5f-tile {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
	min-height: 176px; padding: 16px; box-sizing: border-box;
	background: var(--t5f-tile); border-radius: 20px; color: #fff !important; text-decoration: none;
	box-shadow: 0 10px 24px rgba(16,24,40,.14);
}
.t5f-tile:hover, .t5f-tile:focus, .t5f-tile:active { color: #fff !important; }
.t5f-tile-bgicon { position: absolute; right: -22px; bottom: -22px; opacity: .14; }
.t5f-tile-ico { position: relative; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.18); }
.t5f-tile-body { position: relative; display: flex; flex-direction: column; gap: 3px; }
.t5f-tile-title { font-family: Lora, serif; font-size: 18px; font-weight: 600; line-height: 1.15; }
.t5f-tile-sub { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.35; }
.t5f-tile-pill { position: relative; align-self: flex-start; display: flex; align-items: center; height: 34px; padding: 0 11px; background: #fff; color: var(--t5f-tile); border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- Summary (§7.11) ---------- */
.t5f-sum-head { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 0; }
.t5f-sum-rows { padding: 18px; }
.t5f-sum-sub { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; color: var(--t5-muted); }
.t5f-sum-cal { display: inline-flex; flex-shrink: 0; color: var(--t5-muted); }
.t5f-sum-rows { display: flex; flex-direction: column; gap: 18px; }
/* WIZ rows use the trip summary list (.t5-sum-bookings, deal-post-v5.css); the rows already get padding from .t5f-sum-rows. */
.t5f-sum-rows > .t5-sum-bookings { padding: 0; }
/* Hotel cards / note: hidden when no price for the chosen dates (the author display rules would win over [hidden]). */
.t5f-hotels [hidden] { display: none !important; }
.t5f-hotels.is-loading .t5-alt-grid { opacity: .5; transition: opacity .15s; }
/* Star tiles are selectors (buttons) on flight deals: reset the theme button paint, mark the active star. */
.t5f-hotels .t5-alt-card.t5f-star,
.t5f-hotels .t5-alt-card.t5f-star:hover,
.t5f-hotels .t5-alt-card.t5f-star:focus,
.t5f-hotels .t5-alt-card.t5f-star:active {
	-webkit-appearance: none !important; appearance: none !important;
	display: flex !important;
	width: auto !important; min-width: 0 !important; margin: 0 !important;
	border: 1px solid var(--t5-border) !important; background: #fff !important;
	color: var(--t5-ink) !important; box-shadow: none !important;
	font-family: inherit !important; text-align: left !important;
	text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
	/* Theme button hover/focus must not resize or move the card. */
	transform: none !important; outline: none !important; transition: none !important;
	font-size: inherit !important; font-weight: inherit !important; box-sizing: border-box !important;
}
/* The display:flex !important above outranks .t5f-hotels [hidden]; a star tile without a price must still hide. */
.t5f-hotels .t5-alt-card.t5f-star[hidden] { display: none !important; }
.t5f-hotels .t5-alt-card.t5f-star.is-active,
.t5f-hotels .t5-alt-card.t5f-star.is-active:hover,
.t5f-hotels .t5-alt-card.t5f-star.is-active:focus { border: 1.5px solid var(--t5-blue) !important; background: var(--t5-blue-tint) !important; }
.t5f-hotels .t5-alt-card.t5f-star:focus-visible { outline: 2px solid var(--t5-blue) !important; outline-offset: 2px !important; }
/* Full price card from tablet up (mobile keeps the compact 56px tiles). */
@media (min-width: 761px) {
	.t5f-hotels .t5-alt-card.t5f-star,
	.t5f-hotels .t5-alt-card.t5f-star:hover,
	.t5f-hotels .t5-alt-card.t5f-star:focus,
	.t5f-hotels .t5-alt-card.t5f-star:active {
		flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important;
		gap: 6px !important; min-height: 0 !important; padding: 18px 18px 20px !important; border-radius: 18px !important;
		/* The theme's inline `button { height: 40px }` would clip the card and spill the price out of it. */
		height: auto !important; line-height: normal !important;
	}
	.t5f-hotels .t5-alt-card.t5f-star .t5-alt-price { white-space: nowrap !important; }
	.t5f-hotels .t5-alt-card.t5f-star .t5-alt-label { color: var(--t5-blue) !important; font-size: 15px !important; }
	.t5f-hotels .t5-alt-card.t5f-star .t5-alt-from { font-size: 13px !important; }
	.t5f-hotels .t5-alt-card.t5f-star .t5-alt-price { font-size: 30px !important; }
	.t5f-hotels .t5-alt-card.t5f-star .t5-alt-price small { font-size: 14px !important; }
}
@media (min-width: 1200px) {
	.t5f-hotels .t5-alt-card.t5f-star,
	.t5f-hotels .t5-alt-card.t5f-star:hover,
	.t5f-hotels .t5-alt-card.t5f-star:focus,
	.t5f-hotels .t5-alt-card.t5f-star:active { width: 156px !important; }
}
.t5f-opt-pill { padding: 2px 7px; border-radius: 6px; background: var(--t5-block); font-size: 11px; font-weight: 700; color: var(--t5-muted); }
.trip5--flights .t5-sum-cta { height: 44px; padding: 0 14px; }

/* Summary v2: two-line rows, per-row CTAs, hotel switch, footer states */
.t5f-opt-pill--ok { background: var(--t5-green-bg); color: var(--t5-green-ink); }
.trip5--flights .t5f-summary .t5-sum-cta { height: 44px; padding: 0 14px; margin-top: 0; align-self: flex-end; border-radius: 12px; font-size: 14px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }

/* The theme paints generic <button>s (rust background/border, full width); reset the summary controls hard. */
.t5f-switch {
	-webkit-appearance: none !important; appearance: none !important;
	display: inline-flex !important; align-items: center; align-self: flex-start; gap: 10px;
	width: auto !important; min-width: 0 !important; min-height: 44px;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important; text-decoration: none !important;
	font-family: inherit !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.3 !important;
	color: var(--t5-body) !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
}
.t5f-switch:hover, .t5f-switch:focus, .t5f-switch:active { background: transparent !important; box-shadow: none !important; color: var(--t5-body) !important; }
.t5f-switch[hidden] { display: none !important; }
.t5f-switch-track { position: relative; flex-shrink: 0; width: 40px; height: 24px; box-sizing: border-box; border-radius: 999px; background: #C3CAD2; transition: background .15s ease; }
.t5f-switch.is-on .t5f-switch-track { background: var(--t5-blue); }
.t5f-switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.3); transition: left .15s ease; }
.t5f-switch.is-on .t5f-switch-knob { left: 19px; }
.t5f-switch-label { white-space: nowrap; }

.t5f-sum-foot-state { display: flex; flex-direction: column; gap: 14px; }
.t5f-sum-foot-state[hidden] { display: none !important; }
.t5f-sum-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.t5f-sum-foot-row > .t5-sum-total-label { white-space: nowrap; }
.t5f-sum-foot-row--totals { align-items: flex-end; }
.t5f-foot-total { margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--t5-blue); }
.trip5--flights .t5f-summary .t5-sum-price-box { font-size: 34px; }
.t5f-seg { display: inline-flex; flex-shrink: 0; gap: 3px; padding: 3px; border-radius: 12px; background: var(--t5-border); }
.t5f-seg-btn {
	-webkit-appearance: none !important; appearance: none !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	width: auto !important; min-width: 0 !important; height: 34px !important;
	margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 9px !important;
	background: transparent !important; box-shadow: none !important; text-decoration: none !important;
	font-family: inherit !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1 !important;
	color: var(--t5-muted) !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
}
.t5f-seg-btn:hover, .t5f-seg-btn:focus, .t5f-seg-btn:active { background: transparent !important; color: var(--t5-muted) !important; box-shadow: none !important; }
.t5f-seg-btn.is-on, .t5f-seg-btn.is-on:hover, .t5f-seg-btn.is-on:focus, .t5f-seg-btn.is-on:active { background: #fff !important; color: var(--t5-ink) !important; box-shadow: 0 1px 3px rgba(16,24,40,.18) !important; }
.t5f-pre-cta {
	-webkit-appearance: none !important; appearance: none !important;
	display: flex !important; align-items: center; justify-content: center; gap: 8px;
	width: 100% !important; height: 48px !important; margin: 0 !important; padding: 0 !important;
	border: 1.5px solid var(--t5-blue) !important; border-radius: 12px !important;
	background: transparent !important; box-shadow: none !important; text-decoration: none !important;
	font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important;
	color: var(--t5-blue) !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
}
.t5f-pre-cta:hover, .t5f-pre-cta:focus, .t5f-pre-cta:active { background: var(--t5-blue-tint) !important; color: var(--t5-blue) !important; }
@media (max-width: 359px) {
	.t5f-sum-foot-row { flex-wrap: wrap; }
}
.t5f-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Summary, compact mobile layout (<1200 px) ----------
   Desktop keeps the sidebar card: the new elements are hidden by default and only shown below 1200 px.
   Scoped to .t5f-summary so the package-post summary (deal-post-v5.css) is untouched. */
.t5f-sum-hprice, .t5f-sum-main, .t5f-sum-extras-label, .t5f-sum-mtotals, .t5f-sum-meta { display: none; }
@media (max-width: 1199px) {
	.trip5--flights .t5f-summary .t5-sum-foot { display: none; }
	.trip5--flights .t5f-summary .t5f-sum-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: start; padding: 16px 16px 0; }
	.trip5--flights .t5f-summary .t5f-sum-head > .t5-sec-kicker,
	.trip5--flights .t5f-summary .t5f-sum-head > .t5-sec-title,
	.trip5--flights .t5f-summary .t5f-sum-head > .t5f-sum-sub { grid-column: 1; min-width: 0; }
	.trip5--flights .t5f-summary .t5-sec-title { font-size: 24px; line-height: 1.15; }
	.trip5--flights .t5f-summary .t5f-sum-hprice { display: flex; flex-direction: column; align-items: flex-end; grid-column: 2; grid-row: 1 / span 3; }
	.trip5--flights .t5f-summary .t5f-sum-hprice-num { font-family: 'Lora', serif; font-size: 30px; font-weight: 600; line-height: 1; color: var(--t5-ink); white-space: nowrap; }
	.trip5--flights .t5f-summary .t5f-sum-hprice-sub { margin-top: 3px; font-size: 11px; color: var(--t5-muted); }

	/* One main button (flight price) + its note, directly under the header. */
	.trip5--flights .t5f-summary .t5f-sum-main { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 0; }
	.trip5--flights .t5f-summary .t5f-sum-main-cta {
		-webkit-appearance: none; appearance: none; display: flex; align-items: center; justify-content: center; gap: 6px;
		box-sizing: border-box; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 0; border-radius: 12px;
		background: var(--t5-blue); box-shadow: none; color: #fff !important; font-family: inherit; font-size: 15px; font-weight: 700;
		line-height: 1.2; text-decoration: none !important; text-transform: none; letter-spacing: normal; cursor: pointer;
	}
	.trip5--flights .t5f-summary .t5f-sum-main-cta:hover,
	.trip5--flights .t5f-summary .t5f-sum-main-cta:focus { background: var(--t5-blue-dark); color: #fff !important; text-decoration: none !important; }
	.trip5--flights .t5f-summary .t5f-sum-main-cta.is-disabled { background: #C3CAD2; cursor: default; pointer-events: none; }
	.trip5--flights .t5f-summary .t5f-sum-main-cta[hidden] { display: none !important; }
	/* The theme paints generic buttons: reset the pre-selection button property by property (same approach as .t5f-pre-cta). */
	.trip5--flights .t5f-summary button.t5f-sum-main-pre,
	.trip5--flights .t5f-summary button.t5f-sum-main-pre:hover,
	.trip5--flights .t5f-summary button.t5f-sum-main-pre:focus,
	.trip5--flights .t5f-summary button.t5f-sum-main-pre:active {
		-webkit-appearance: none !important; appearance: none !important;
		display: flex !important; align-items: center; justify-content: center; gap: 6px;
		box-sizing: border-box !important; width: 100% !important; min-width: 0 !important; height: 46px !important;
		margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 12px !important;
		background: var(--t5-blue) !important; box-shadow: none !important; color: #fff !important;
		font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important;
		text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
	}
	.trip5--flights .t5f-summary button.t5f-sum-main-pre:hover,
	.trip5--flights .t5f-summary button.t5f-sum-main-pre:focus { background: var(--t5-blue-dark) !important; }
	.trip5--flights .t5f-summary .t5f-sum-main-note { font-size: 12px; line-height: 1.4; color: var(--t5-muted); text-align: center; }

	/* Rows: no timeline, no footer, no flight row. */
	.trip5--flights .t5f-summary .t5f-sum-rows { display: flex; flex-direction: column; gap: 0; padding: 0 0 6px; }
	.trip5--flights .t5f-summary .t5f-sum-extras-label { display: block; padding: 14px 16px 6px; margin-top: 12px; border-top: 1px solid var(--t5-border); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--t5-muted); }
	.trip5--flights .t5f-summary li[data-t5f-row="flight"] { display: none; }
	.trip5--flights .t5f-summary .t5-sum-booking { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 8px 16px; }
	.trip5--flights .t5f-summary .t5-sum-booking-main { display: contents; }
	.trip5--flights .t5f-summary .t5-sum-ico { grid-column: 1; grid-row: 1 / span 2; display: block; width: 26px; }
	.trip5--flights .t5f-summary .t5-sum-ico-tile { width: 26px; height: 26px; border-radius: 8px; }
	.trip5--flights .t5f-summary .t5-sum-ico-tile svg { width: 15px; height: 15px; }
	.trip5--flights .t5f-summary .t5-sum-ico-line { display: none; }
	.trip5--flights .t5f-summary .t5-sum-booking-head { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
	.trip5--flights .t5f-summary .t5-sum-booking-title { font-size: 13px; font-weight: 700; color: var(--t5-ink); }
	.trip5--flights .t5f-summary .t5-leader,
	.trip5--flights .t5f-summary .t5-sum-booking-price,
	.trip5--flights .t5f-summary .t5-sum-booking-sub { display: none; }
	.trip5--flights .t5f-summary .t5f-sum-meta { display: block; grid-column: 2; grid-row: 2; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--t5-muted); }
	.trip5--flights .t5f-summary .t5-sum-cta { position: relative; grid-column: 3; grid-row: 1 / span 2; align-self: center; height: 36px; margin: 0; padding: 0 11px; border-radius: 10px; font-size: 13px; }
	.trip5--flights .t5f-summary .t5-sum-cta::after { content: ""; position: absolute; inset: -4px; }
	.trip5--flights .t5f-summary .t5-cta-long { display: none; }
	.trip5--flights .t5f-summary .t5f-switch { grid-column: 2 / span 2; grid-row: 3; justify-self: start; min-height: 44px; font-size: 13px !important; }
	.trip5--flights .t5f-summary .t5f-switch-track { width: 34px; height: 20px; }
	.trip5--flights .t5f-summary .t5f-switch-knob { width: 14px; height: 14px; top: 3px; left: 3px; }
	.trip5--flights .t5f-summary .t5f-switch.is-on .t5f-switch-knob { left: 17px; }

	/* Totals under the switch (hotel added). Same nodes/logic as the footer copy. */
	.trip5--flights .t5f-summary .t5f-sum-mtotals { display: block; list-style: none; margin: 0 !important; padding: 0; }
	.trip5--flights .t5f-summary .t5f-sum-mtotals .t5-sum-price-box { font-size: 20px !important; font-family: 'Lora', serif; font-weight: 600; line-height: 1.1; }
	.trip5--flights .t5f-summary .t5f-sum-mtotals .t5f-foot-total { font-size: 15px; font-weight: 700; }
	.trip5--flights .t5f-summary .t5f-sum-mtotals .t5-sum-foot-note { display: block; padding: 0; margin: 0; border: 0; font-size: 12px; }
	.trip5--flights .t5f-summary .t5f-sum-mtotals > .t5f-sum-foot-state { margin: 0 16px 8px 52px; padding: 10px 12px; gap: 8px; border-radius: 12px; background: var(--t5-block); }
}
/* ---------- Admin warning ---------- */
.t5f-warn { display: flex; gap: 10px; margin: 16px 20px; padding: 14px 16px; background: #FBF1DE; border: 1px solid #E8CF9C; border-radius: 14px; font-size: 13px; }
.t5f-warn ul { margin: 6px 0 0; padding-left: 18px; }

.t5f-d-only { display: none; }

/* ============================ Desktop ============================ */
@media (min-width: 1200px) {
	.trip5--flights { padding-bottom: 0; }
	.trip5--flights .t5-teaser { display: none; }

	.t5f-block { padding-top: 0; }
	.trip5--flights .t5-main { gap: 20px; }
	.trip5--flights .t5-main > .t5f-block { padding: 0; }
	.t5f-sel { gap: 16px; padding: 22px; border-radius: 20px; }
	.t5f-cards { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
	.t5f-opt { min-height: 112px; padding: 14px 16px; border-radius: 16px; }
	.t5f-opt-code { font-size: 28px; }
	.t5f-opt-city { font-size: 15px; margin-top: 6px; }
	.t5f-opt-sub { font-size: 13px; }
	.t5f-opt-count { display: none; }
	.t5f-opt-from { display: block; font-size: 13px; color: var(--t5-muted); margin-top: 4px; }
	.t5f-opt-from b { font-family: Lora, serif; font-size: 20px; font-weight: 600; color: var(--t5-blue); }
	.t5f-row--len { flex-direction: row; align-items: center; gap: 16px; }
	.t5f-row--len .t5f-eyebrow { width: 90px; flex-shrink: 0; }
	.t5f-row--month { flex-direction: row; align-items: center; gap: 16px; }
	.t5f-row--month .t5f-eyebrow { width: 90px; flex-shrink: 0; }
	.t5f-months-wrap { flex-grow: 1; }
	.t5f-months { flex-grow: 1; min-width: 0; }
	.t5f-month { flex: 1 0 84px; min-width: 84px; min-height: 48px; flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: 6px; }
	.t5f-month span:first-child { font-size: 15px; }
	.t5f-month span:last-child { font-size: 12px; }
	.t5f-dates { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
	.t5f-date-range { font-size: 15px; }
	.t5f-m-only { display: none; }
	.t5f-d-only { display: inline; }


	.trip5--flights .t5-ad-body { min-height: 96px; }

	.t5f-hotel-cta-label { font-size: 16px; font-weight: 700; }
	.t5f-hotel-cta-src { font-size: 12px; color: var(--t5-muted); }
	.t5f-src { display: none; }

	.t5f-tiles { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
	.t5f-tile { min-height: 170px; }
	.t5f-sec-aside { font-size: 12px; }

	.t5f-sum-head { padding: 22px 22px 0; }
	.t5f-sum-rows { gap: 8px; padding: 14px 22px 20px; }
	.trip5--flights .t5-sum-price-box { font-size: 36px; }

	/* Elements whose desktop display is not the inline default. */
	.t5f-count.t5f-d-only { display: flex; }
}

@media (max-width: 359px) {
	.t5f-date-text { flex-wrap: wrap; }
}

/* =====================================================================
 * Flight selector � view switch + month calendar (feature addition)
 * ===================================================================== */
.t5f-row--tools { display: flex; flex-direction: column; gap: 10px; }
.t5f-viewswitch {
	display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 4px; padding: 4px; background: var(--t5-line); border-radius: 12px;
}
.t5f-vs {
	width: auto; min-width: 0; height: 38px; margin: 0; border: 0; border-radius: 9px; background: transparent;
	color: var(--t5-muted); font-family: inherit; font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.t5f-vs.is-on { background: #fff; color: var(--t5-ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.t5f-vs:hover, .t5f-vs:focus, .t5f-vs:active { color: var(--t5-muted); }
.t5f-vs.is-on:hover, .t5f-vs.is-on:focus, .t5f-vs.is-on:active { color: var(--t5-ink); }

.t5f-cal { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t5f-monthhead { display: flex; align-items: center; gap: 8px; }
.t5f-monthhead-mid { flex-grow: 1; min-width: 0; text-align: center; }
.t5f-monthhead-title { font-family: Lora, serif; font-size: 20px; font-weight: 600; text-transform: capitalize; line-height: 1.1; }

.t5f-cal-grids { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t5f-grid { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t5f-grid--next { display: none; }
.t5f-grid-title { font-family: Lora, serif; font-size: 16px; font-weight: 600; text-transform: capitalize; text-align: center; }
.t5f-wd, .t5f-cells { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.t5f-wd { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--t5-faint); text-align: center; }
.t5f-cell {
	width: 100%; height: 52px; box-sizing: border-box; padding: 0; border-radius: 10px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	font-family: inherit; background: transparent; border: 1px solid transparent; color: #9AA3AD; cursor: default;
}
.t5f-cell--empty { visibility: hidden; }
.t5f-cell-num { font-size: 14px; font-weight: 500; line-height: 1; }
.t5f-cell-price { font-size: 11px; font-weight: 700; line-height: 1.1; color: #5B6470; }
.t5f-cell--dep { background: var(--t5-blue-select); border-color: #C9D8E4; color: var(--t5-ink); cursor: pointer; }
.t5f-cell--dep .t5f-cell-num { font-weight: 700; }
.t5f-cell--dep .t5f-cell-price { color: var(--t5-blue); }
.t5f-cell--dep.is-min .t5f-cell-price { color: var(--t5-green); }

/* Cheapest day(s): green tint + border + ★ badge + heavier price, so they pop in the grid.
   Only on selectable states; selected out/return states keep their own look. */
.t5f-cell--dep.is-min,
.t5f-sel .t5f-cell--return.is-min {
	position: relative;
	background: var(--t5-green-bg);
	border: 2px solid var(--t5-green);
	box-shadow: 0 2px 6px rgba(47,107,69,.25);
}
.t5f-cell--dep.is-min::after,
.t5f-sel .t5f-cell--return.is-min::after {
	content: "★";
	position: absolute; top: -7px; right: -6px;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--t5-green); color: #fff;
	font-size: 9px; line-height: 16px; text-align: center;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}
.t5f-cell--dep.is-min .t5f-cell-num,
.t5f-sel .t5f-cell--return.is-min .t5f-cell-num { color: var(--t5-green-ink); }
.t5f-cell--dep.is-min .t5f-cell-price,
.t5f-sel .t5f-cell--return.is-min .t5f-cell-price { color: var(--t5-green-ink); font-weight: 800; font-size: 12px; }
.t5f-cell--in { background: var(--t5-blue-tint); border-color: var(--t5-blue-tint); color: var(--t5-blue-dark); }
.t5f-cell--in .t5f-cell-num { font-weight: 700; }
.t5f-cell--in .t5f-cell-price { color: var(--t5-blue-dark); }
.t5f-cell--back { background: #fff; border: 2px solid var(--t5-blue); color: var(--t5-blue); }
.t5f-cell--back .t5f-cell-num,
.t5f-cell--back .t5f-cell-price { font-weight: 700; color: var(--t5-blue); }
.t5f-cell--out { background: var(--t5-blue); border-color: var(--t5-blue); color: #fff; }
.t5f-cell--out .t5f-cell-num { font-weight: 700; }
.t5f-cell--out .t5f-cell-price { color: #BFD3E1; }
.t5f-cell:not(.is-disabled):hover { border-color: var(--t5-blue); }
.t5f-cell:focus-visible { outline: 2px solid var(--t5-blue); outline-offset: 2px; }

.t5f-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--t5-muted); }
.t5f-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.t5f-cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; box-sizing: border-box; }
.t5f-cal-legend b {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 1px 7px; border-radius: 6px;
	background: var(--t5-green-bg); border: 1.5px solid var(--t5-green);
	color: var(--t5-green-ink); font-weight: 800;
}
.t5f-cal-legend b::before { content: "★"; font-size: 10px; color: var(--t5-green); }

.t5f-sel.is-list .t5f-cal-grids,
.t5f-sel.is-list .t5f-cal-legend,
.t5f-sel.is-list .t5f-monthhead { display: none; }
.t5f-row--title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.t5f-row--title > span:first-child { font-size: 14px; font-weight: 700; }
.t5f-row--title > span:last-child { font-size: 12px; color: var(--t5-muted); white-space: nowrap; }

@media (min-width: 1200px) {
	.t5f-row--tools { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
	.t5f-viewswitch { width: 240px; flex-shrink: 0; }
	.t5f-cal-grids { flex-direction: row; gap: 28px; }
	.t5f-grid { flex: 1 1 0; }
	.t5f-grid--next { display: flex; }
	.t5f-grid-title.t5f-d-only { display: block; font-size: 20px; line-height: 1.1; }
	/* Desktop: each grid carries its own title, so both months line up. */
	.t5f-monthhead { display: none; }
	.t5f-row--title > span:first-child { font-size: 15px; }
	.t5f-row--title > span:last-child { font-size: 13px; }
}

.t5f-row--tools > .t5f-viewswitch { margin-left: auto; }

/* ---------------------------------------------------------------------
 * Guards against the Gridlove theme's global `button` / `button:hover`
 * (it sets a red background on bare button elements, which bleeds into
 *  the selector controls). Only :hover/:focus/:active outrank our base
 *  rules, so each control's state background is repeated for them.
 * ------------------------------------------------------------------- */
.t5f-sel .t5f-opt:hover, .t5f-sel .t5f-opt:focus, .t5f-sel .t5f-opt:active { background: #fff; }
.t5f-sel .t5f-opt.is-on:hover, .t5f-sel .t5f-opt.is-on:focus, .t5f-sel .t5f-opt.is-on:active { background: var(--t5-blue-select); }
.t5f-sel .t5f-chip:hover, .t5f-sel .t5f-chip:focus, .t5f-sel .t5f-chip:active { background: #fff; }
.t5f-sel .t5f-chip.is-on:hover, .t5f-sel .t5f-chip.is-on:focus, .t5f-sel .t5f-chip.is-on:active { background: var(--t5-blue); }
.t5f-sel .t5f-month:hover, .t5f-sel .t5f-month:focus, .t5f-sel .t5f-month:active { background: #fff; }
.t5f-sel .t5f-month.is-on:hover, .t5f-sel .t5f-month.is-on:focus, .t5f-sel .t5f-month.is-on:active { background: var(--t5-blue); }
.t5f-sel .t5f-date-pick:hover, .t5f-sel .t5f-date-pick:focus, .t5f-sel .t5f-date-pick:active { background: transparent; }
.t5f-sel .t5f-vs:hover, .t5f-sel .t5f-vs:focus, .t5f-sel .t5f-vs:active { background: transparent; color: var(--t5-muted); }
.t5f-sel .t5f-vs.is-on:hover, .t5f-sel .t5f-vs.is-on:focus, .t5f-sel .t5f-vs.is-on:active { background: #fff; color: var(--t5-ink); }
.t5f-sel .t5f-cell:hover, .t5f-sel .t5f-cell:focus, .t5f-sel .t5f-cell:active { background: transparent; color: #9AA3AD; border-color: transparent; }
.t5f-sel .t5f-cell--dep:hover, .t5f-sel .t5f-cell--dep:focus, .t5f-sel .t5f-cell--dep:active { background: var(--t5-blue-select); color: var(--t5-ink); border-color: var(--t5-blue); }
.t5f-sel .t5f-cell--in:hover, .t5f-sel .t5f-cell--in:focus, .t5f-sel .t5f-cell--in:active { background: var(--t5-blue-tint); color: var(--t5-blue-dark); border-color: var(--t5-blue-tint); }
.t5f-sel .t5f-cell--back:hover, .t5f-sel .t5f-cell--back:focus, .t5f-sel .t5f-cell--back:active { background: #fff; color: var(--t5-blue); border-color: var(--t5-blue); }
.t5f-sel .t5f-cell--out:hover, .t5f-sel .t5f-cell--out:focus, .t5f-sel .t5f-cell--out:active { background: var(--t5-blue); color: #fff; border-color: var(--t5-blue); }

/* Toolbar row: let the chip row shrink so the switch never overflows. */
.t5f-row--tools { flex-wrap: wrap; row-gap: 10px; }
.t5f-row--tools > .t5f-row--len { flex: 1 1 auto; min-width: 0; }
.t5f-row--tools > .t5f-viewswitch { max-width: 100%; }

/* Selected return among several return options in the back phase. */
.t5f-sel .t5f-cell--back.is-on { background: var(--t5-blue-select); border-color: var(--t5-blue); color: var(--t5-blue); }
.t5f-sel .t5f-cell--back.is-on .t5f-cell-num,
.t5f-sel .t5f-cell--back.is-on .t5f-cell-price { color: var(--t5-blue); }
.t5f-sel .t5f-cell--back.is-on:hover, .t5f-sel .t5f-cell--back.is-on:focus, .t5f-sel .t5f-cell--back.is-on:active { background: var(--t5-blue-select); color: var(--t5-blue); border-color: var(--t5-blue); }

/* =====================================================================
 * Two-step range picker (out/back), step line, return chips, legend
 * ===================================================================== */
.t5f-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--t5-muted); }
.t5f-step svg { color: var(--t5-blue); flex-shrink: 0; }
.t5f-step-label { font-weight: 700; color: var(--t5-blue); }
.t5f-step-hint { min-width: 0; }
.t5f-step-clear {
	margin-left: auto; width: auto; height: 30px; padding: 0 10px; border: 1px solid var(--t5-border);
	background: #fff; color: var(--t5-blue); border-radius: 8px; font-family: inherit;
	font-size: 12px; font-weight: 700; cursor: pointer;
}
.t5f-step-clear:hover, .t5f-step-clear:focus, .t5f-step-clear:active { background: #fff; color: var(--t5-blue); }
/* Beats `.trip5--flights button { margin: 0 }` (0,1,1), which would otherwise cancel the auto margin. */
.t5f-step .t5f-step-clear { margin-left: auto; }

.t5f-later {
	align-self: flex-end; width: auto; height: 38px; padding: 0 14px; border: 1.5px solid var(--t5-blue);
	background: #fff; color: var(--t5-blue); border-radius: 999px; font-family: inherit;
	font-size: 13px; font-weight: 700; cursor: pointer;
}
.t5f-later:hover, .t5f-later:focus, .t5f-later:active { background: var(--t5-blue-select); color: var(--t5-blue); }

/* Cell states */
.t5f-sel .t5f-cell--plain { color: #B4BCC5; }
.t5f-sel .t5f-cell--plain .t5f-cell-num { font-weight: 500; }
.t5f-sel .t5f-cell--muted-dep { background: transparent; border-color: transparent; color: #8A939D; cursor: pointer; }
.t5f-sel .t5f-cell--muted-dep .t5f-cell-num { font-weight: 700; }
.t5f-sel .t5f-cell--muted-dep:hover, .t5f-sel .t5f-cell--muted-dep:focus, .t5f-sel .t5f-cell--muted-dep:active { background: transparent; color: #8A939D; border-color: var(--t5-blue); }
.t5f-sel .t5f-cell--sel-out { background: var(--t5-blue); border-color: var(--t5-blue); color: #fff; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1E4D6B; }
.t5f-sel .t5f-cell--sel-out .t5f-cell-num { font-weight: 700; }
.t5f-sel .t5f-cell--sel-out .t5f-cell-price { color: #BFD3E1; }
.t5f-sel .t5f-cell--sel-out:hover, .t5f-sel .t5f-cell--sel-out:focus, .t5f-sel .t5f-cell--sel-out:active { background: var(--t5-blue); color: #fff; border-color: var(--t5-blue); }
.t5f-sel .t5f-cell--return { background: #fff; border: 1.5px solid var(--t5-blue); color: var(--t5-ink); cursor: pointer; }
.t5f-sel .t5f-cell--return .t5f-cell-num { font-weight: 700; }
.t5f-sel .t5f-cell--return .t5f-cell-price { color: var(--t5-blue); }
.t5f-sel .t5f-cell--return.is-min .t5f-cell-price { color: var(--t5-green); }
.t5f-sel .t5f-cell--return:hover, .t5f-sel .t5f-cell--return:focus, .t5f-sel .t5f-cell--return:active { background: var(--t5-blue-select); color: var(--t5-ink); border-color: var(--t5-blue); }
.t5f-sel .t5f-cell--return-sel { background: var(--t5-blue); border: 1px solid var(--t5-blue); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1E4D6B; }
.t5f-sel .t5f-cell--return-sel .t5f-cell-num { font-weight: 700; }
.t5f-sel .t5f-cell--return-sel .t5f-cell-price { color: #BFD3E1; font-weight: 700; }
.t5f-sel .t5f-cell--return-sel:hover, .t5f-sel .t5f-cell--return-sel:focus, .t5f-sel .t5f-cell--return-sel:active { background: var(--t5-blue); color: #fff; border-color: var(--t5-blue); }
.t5f-sel .t5f-cell--night { background: #BFD3E1; border-color: #BFD3E1; color: #143851; }
.t5f-sel .t5f-cell--night .t5f-cell-num { font-weight: 700; }
.t5f-sel .t5f-cell--night .t5f-cell-price { color: #143851; }
.t5f-sel .t5f-cell--night:hover, .t5f-sel .t5f-cell--night:focus, .t5f-sel .t5f-cell--night:active { background: #BFD3E1; border-color: #BFD3E1; color: #143851; }
.t5f-sel .t5f-cell--between { background: #F6F8FA; color: #B4BCC5; }
.t5f-sel .t5f-cell--between:hover, .t5f-sel .t5f-cell--between:focus, .t5f-sel .t5f-cell--between:active { background: #F6F8FA; color: #B4BCC5; border-color: transparent; }
/* Departures other than the chosen one, while a trip is selected: faded, still enabled. */
.t5f-sel .t5f-cell--dep-dim { background: #fff; border: 1px solid var(--t5-border); color: #5B6470; cursor: pointer; }
.t5f-sel .t5f-cell--dep-dim .t5f-cell-num { font-weight: 500; }
.t5f-sel .t5f-cell--dep-dim .t5f-cell-price { color: #8A939D; }
.t5f-sel .t5f-cell--dep-dim:hover, .t5f-sel .t5f-cell--dep-dim:focus, .t5f-sel .t5f-cell--dep-dim:active { background: #fff; color: #5B6470; border-color: var(--t5-blue); }


/* Legend squares */
.t5f-cal-legend .t5f-sq-dep { background: var(--t5-blue-select); border: 1px solid #C9D8E4; }
.t5f-cal-legend .t5f-sq-sel { background: var(--t5-blue); }
.t5f-cal-legend .t5f-sq-back { border: 2px solid var(--t5-blue); }
.t5f-cal-legend .t5f-sq-in { background: #BFD3E1; }

/* Disabled summary CTA */
.t5-sum-cta.is-disabled {
	background: #C3CAD2 !important; border-color: #C3CAD2 !important; color: #fff !important;
	pointer-events: none; opacity: 1;
}
.t5-sum-cta.is-disabled { background: transparent !important; border-color: #C3CAD2 !important; color: #C3CAD2 !important; }

@media (min-width: 1200px) {
	/* Desktop shows the next month's returns directly in the grid, so the mobile pill is redundant. */
	.t5f-later { display: none !important; }
}

/* Load more */
.t5f-more-wrap { display: flex; justify-content: center; margin-top: 4px; }
.t5f-more {
	width: auto; margin: 0; height: 44px; padding: 0 20px; border: 1.5px solid var(--t5-blue);
	border-radius: 12px; background: #fff; color: var(--t5-blue); font-family: inherit;
	font-size: 14px; font-weight: 700; cursor: pointer;
}
.t5f-more:hover, .t5f-more:focus, .t5f-more:active { background: var(--t5-blue-select); color: var(--t5-blue); }
/* Empty list and hidden "Naloži več": no flex-gap slot in the selector (the gap was the blank space above the legend). */
.t5f-dates:empty { display: none; }
/* Theme adds 24px bottom margin to ul and 4px to li (same as the WIZ and bag lists in deal-post-v5.css). */
.trip5 .t5f-sel .t5f-dates { margin: 0 !important; }
.trip5 .t5f-sel .t5f-date { margin: 0 !important; }
/* Desktop: fixed order of the main column. Package-deal blocks (newsletter, support) sit between the flight selector and the info section. */
@media (min-width: 1200px) {
	.trip5--flights .t5-main > .t5f-sel-wrap { order: 1; }
	.trip5--flights .t5-main > .t5f-hotels { order: 3; }
	.trip5--flights .t5-main > .t5f-ad-block { order: 4; }
	.trip5--flights .t5-main > .t5-support--main { order: 5; }
	.trip5--flights .t5-main > .t5-nl-sec { order: 6; }
	/* Diners kartica: tik nad "Dopolni potovanje". */
	.trip5--flights .t5-main > .t5-diners-sec { order: 7; }
	.trip5--flights .t5-main > .t5f-extras { order: 8; }
	/* Drugi oglas (place="info"): isti order kot info, v HTML je tik pred njim. */
	.trip5--flights .t5-main > .t5-ad--info,
	.trip5--flights .t5-main > .t5-info-sec { order: 9; }
	/* v5 .t5-alt-sec is a row on desktop: the CTA wraps onto its own full-width line below the cards. */
	.trip5--flights .t5-main > .t5f-hotels { flex-wrap: wrap; }
	.trip5--flights .t5-main > .t5f-hotels > .t5f-hotel-cta-wrap { flex: 1 0 100%; }
}

/* Mobile: .t5-main and .t5-side are display:contents, so all blocks share one flex column and need explicit orders.
   Same sequence as desktop: selector, hotels, ad, Hvala (sidebar copy shown on mobile), e-novice, Diners, Dopolni,
   then summary, WIZ, info and the Google source card. */
@media (max-width: 1199px) {
	.trip5--flights .t5-main > .t5f-sel-wrap { order: 1; }
	.trip5--flights .t5-main > .t5f-hotels { order: 3; }
	.trip5--flights .t5-main > .t5f-ad-block { order: 4; }
	.trip5--flights .t5-side > .t5-support--side { order: 5; }
	.trip5--flights .t5-main > .t5-nl-sec { order: 6; }
	.trip5--flights .t5-main > .t5-diners-sec { order: 7; }
	.trip5--flights .t5-main > .t5f-extras { order: 8; }
	.trip5--flights .t5-side > .t5f-summary,
	.trip5--flights .t5-side > .t5-wiz-sec { order: 9; }
	/* Drugi oglas (place="info") tik nad info; preglasi .t5-ad--info{order:3} iz deal-post-v5.css. */
	.trip5--flights .t5-main > .t5-ad--info,
	.trip5--flights .t5-main > .t5-info-sec { order: 10; }
	.trip5--flights .t5-side > .t5-gsource { order: 11; }
}

/* Hotel CTA below the star cards (flights). */
.t5f-hotel-cta-wrap { display: flex; width: 100%; }
.t5f-hotel-cta-wrap .t5f-hotel-cta { width: 100%; }
