/**
 * Travail — Tour Booking Manager visual re-skin.
 *
 * IMPORTANT: this file does not alter any plugin markup, JS behaviour,
 * data or business logic — it only retints/re-skins the plugin's own
 * CSS. Loaded only on tour-related views — see travail_is_tour_view()
 * in inc/enqueue.php — and enqueued at PHP_INT_MAX priority so it
 * always prints after the plugin's own stylesheets (confirmed via
 * testing that Tour Booking Manager enqueues its frontend CSS at
 * priority 90; anything earlier gets outranked and silently ignored).
 *
 * Scope note from QA: an earlier draft of this file tried to re-lay-out
 * the single tour page's hero/stats/booking sections (display:grid /
 * display:flex overrides). A screenshot taken during QA showed the
 * plugin's own #ttbm_content .ttbm_default_theme … rules (which use
 * ID-qualified, high-specificity selectors and already implement a
 * genuinely well-designed responsive layout — two-column content +
 * sticky-feeling sidebar, icon-card stats row, gallery with price/date
 * pills) either winning the cascade unpredictably or losing it in a way
 * that broke the layout (squashed columns). Re-testing with this file
 * removed entirely showed the plugin's native single-tour page already
 * looks polished. So this file deliberately does NOT touch layout for
 * anything already proven to look good untouched — it only retints
 * colors (via the plugin's own CSS custom properties, which is safe
 * because changing a variable's value can never break a layout) and
 * re-skins the archive/grid card + search-bar markup, which WAS
 * verified visually after fixing.
 */

/* ══════════════════════════════════════════════════════════════
   Brand retint — the plugin's own design-token custom properties.
   ══════════════════════════════════════════════════════════════
   Tour Booking Manager already themes almost everything (buttons,
   links, active states) through CSS custom properties defined in an
   inline <style> block it prints itself (inc/TTBM_Global_Style.php,
   hooked at wp_head priority 100 — later than a normal enqueued
   stylesheet's priority-10 wp_print_styles call, so a plain :root
   override in an ordinary stylesheet would actually be OVERWRITTEN by
   the plugin's later inline block regardless of enqueue order). Using
   !important here — the one deliberate exception to "avoid !important"
   in this theme — sidesteps that entirely: it beats the plugin's
   non-important declaration regardless of print order, safely, because
   only the *value* of a variable changes, never a selector or a layout
   property. This single block re-themes buttons/links/active-states
   everywhere in the plugin's UI (archive, single tour, search, admin)
   without touching a single layout rule.
   Site owners can reach the same result with zero CSS by changing
   Tour Booking Manager's own Theme Color setting — this block exists
   so Travail looks on-brand immediately, out of the box. */
:root {
	--color_theme: var( --travail-color-primary ) !important;
	/* The plugin also has a SEPARATE r,g,b-triplet variable — used
	   everywhere it needs an rgba() with custom opacity (icon badge
	   gradients, hover borders/shadows) instead of a solid color — that
	   this block never covered until now. It isn't derived from
	   --color_theme by the plugin itself (TTBM_Global_Style.php computes
	   it from its OWN separate "Theme Color" setting via hexToRgb()), so
	   without an explicit override here it stayed the plugin's default
	   purple (90, 86, 224) even after every solid --color_theme use
	   above turned green — confirmed: every icon badge in the hero stats
	   grid was still purple-tinted. CSS can't derive r,g,b components
	   from a hex custom property on its own, so this is the decomposed
	   RGB of --travail-forest (#16352d) — the theme's actual default
	   primary — rather than a var() reference; update it to match if
	   that default color ever changes. */
	--color_theme_rgb: 22, 53, 45 !important;
	--color_theme_secondary: var( --travail-forest-mid ) !important;
	/* _ee/_cc/_aa/_88/_77 were "theme_color + hex alpha suffix" in the
	   plugin's own PHP (93%/80%/67%/53%/47% opacity) — reproduced with
	   color-mix() so hover/overlay states keep their intended translucency
	   instead of turning fully solid. */
	--color_theme_ee: color-mix( in srgb, var( --travail-color-primary ) 93%, transparent ) !important;
	--color_theme_cc: color-mix( in srgb, var( --travail-color-primary ) 80%, transparent ) !important;
	--color_theme_aa: color-mix( in srgb, var( --travail-color-primary ) 67%, transparent ) !important;
	--color_theme_88: color-mix( in srgb, var( --travail-color-primary ) 53%, transparent ) !important;
	--color_theme_77: color-mix( in srgb, var( --travail-color-primary ) 47%, transparent ) !important;
	--color_navy_blue: var( --travail-color-primary ) !important;
	--button_bg: var( --travail-color-primary ) !important;
	--color_button: #ffffff !important;
	--color_active: var( --travail-color-primary ) !important;
	--color_blue: var( --travail-color-primary ) !important;
}

/* ══════════════════════════════════════════════════════════════
   Shared: price/badge colors, section titles (cosmetic only)
   ══════════════════════════════════════════════════════════════ */

.ttbm_regular_price.strikeLine,
.ttbm_hero_price_regular {
	text-decoration: line-through;
	color: var( --travail-color-text-muted );
	font-weight: 400;
	font-size: 0.85em;
	margin-inline-end: 6px;
}

.ttbm_start_price_display .woocommerce-Price-amount,
.ttbm-gc-price-current .woocommerce-Price-amount,
.ttbm_list_price .woocommerce-Price-amount {
	color: var( --travail-color-primary );
	font-weight: 700;
}

.ribbon,
.ttbm-gc-badge-sale,
._bgWarning {
	font-family: var( --travail-font-body );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 6px;
	background: var( --travail-color-accent );
	color: #fff;
	padding: 5px 10px;
}

._bgWarning {
	background: var( --travail-ink );
}

.content-title.ttbm_section_title {
	font-family: var( --travail-font-heading );
	font-weight: 400;
	font-size: 28px;
	color: var( --travail-ink );
	margin-bottom: 20px;
}

/*
 * The hero "Book Now" button is a deliberate exception: the plugin
 * hardcodes a 3-stop gradient (`--color_theme` → a fixed indigo → a
 * fixed red) rather than reading theme_color throughout, so the :root
 * variable retint above only recolors its first stop. Matching the
 * plugin's own exact selector (confirmed in ttbm_details.css) swaps the
 * whole gradient for Travail's palette while keeping the same nice
 * diagonal-gradient CTA effect.
 */
#ttbm_content .ttbm_default_theme .ttbm_hero_book_now {
	background: linear-gradient( 135deg, var( --travail-color-primary ) 0%, var( --travail-forest-mid ) 48%, var( --travail-color-accent ) 100% ) !important;
}

/* ══════════════════════════════════════════════════════════════
   Reviews & ratings (Pro — TTBM_Review_Rating) — color only.
   ══════════════════════════════════════════════════════════════ */

.ttbm-rating-stars {
	color: var( --travail-color-accent );
	font-size: 14px;
	margin: 2px 0 5px 0;
}

/* ══════════════════════════════════════════════════════════════
   WooCommerce My Account — "My Bookings" (Pro) / "Wishlist" (Free)
   Typography only — table/column layout stays exactly as WooCommerce
   and the plugin already render it.
   ══════════════════════════════════════════════════════════════ */

.woocommerce-account .ttbm-portal-dashboard,
.woocommerce-account .ttbm-wishlist-list {
	font-family: var( --travail-font-body );
}

/* ══════════════════════════════════════════════════════════════
   Archive filter sidebar vs. this theme's fixed header — a second
   deliberate exception to "no layout changes, colors only" (see the
   file header): the plugin's own JS ( ttbm_sticky_management() in
   ttbm_plugin_global.js ) sticks the "Filters" sidebar to the viewport
   on scroll by adding an .mpSticky class ( position: fixed ) and
   setting an inline top:100px, with z-index:1111 on its inner scroll
   area — both numbers chosen with no knowledge of this theme's own
   fixed header ( .travail-header, z-index:100, ~72px tall, and taller
   still once body.admin-bar shifts it down to clear the WP toolbar —
   see header-footer.css ). Confirmed via screenshot: the sidebar's
   higher z-index rendered it above the header, and 100px wasn't enough
   clearance once the admin-bar offset was added, so the fixed sidebar
   overlapped the logo/nav on scroll. !important is required only to
   beat the plugin's own inline style (inline beats any non-!important
   stylesheet rule regardless of print order) — this still doesn't
   touch the plugin's markup, JS, or the sidebar's actual layout,
   only the two numbers that collide with the theme's header.
   ══════════════════════════════════════════════════════════════ */

.ttbm_style .ttbm_sticky_area.mpSticky {
	top: 88px !important; /* 72px header + a little breathing room */
	z-index: 90 !important; /* stay under .travail-header's z-index:100 */
}

.ttbm_style .ttbm_sticky_area.mpSticky .ttbm_sticky_on_scroll {
	z-index: auto !important; /* was 1111 — no need to out-rank its own parent */
}

body.admin-bar .ttbm_style .ttbm_sticky_area.mpSticky {
	top: 120px !important; /* + 32px admin bar */
}

@media ( max-width: 782px ) {
	body.admin-bar .ttbm_style .ttbm_sticky_area.mpSticky {
		top: 134px !important; /* + 46px admin bar (WP's own mobile breakpoint) */
	}
}

/* Same stacking-context fix, applied before .mpSticky even kicks in:
   .leftSidebar has no z-index of its own in the plugin's CSS (only
   width/max-width), so give it an explicit, low value now rather than
   leaving it at the default `auto` and only correcting things once JS
   adds .mpSticky on scroll. */
.ttbm_filter_area .leftSidebar {
	z-index: 10;
}

/* ══════════════════════════════════════════════════════════════
   Single tour page — outer container width vs. the theme's header/nav.
   ══════════════════════════════════════════════════════════════
   Confirmed by reading the plugin's rendered markup + its whole CSS:
   the actual wrapper chain is
     #ttbm_content > .ttbm_default_theme > .ttbm_style.ttbm_wraper > .ttbm_container > .ttbm_details_page > …
   and NONE of those ancestors carry a max-width/centering of their
   own anywhere in the plugin's CSS — the block just fills whatever
   it's inside. TTBM_Global_Style.php even defines a
   `--dcontainer_width: 1320px` custom property that looks like it
   should be the page width, but nothing in the plugin ever actually
   reads it (grepped the whole plugin — dead variable). Meanwhile
   this theme's header/footer/every other page use `.travail-container`,
   capped at `--travail-container` (1280px by default, Customizer-
   editable) — hence the mismatch between the tour details page's
   content width and the menu above it.
   Constraining the outermost of the plugin's own wrapper divs — rather
   than something further down (`.ttbm_container`, tried first) — means
   there's exactly one element doing the centering for this whole page,
   instead of two nested containers each adding their own margin/padding
   and compounding the gap. Rather than guess at whatever width the
   plugin's un-constrained markup happens to render at across themes/
   viewports, just give it the exact same box model as `.travail-container`
   so it's guaranteed to line up. This only touches this OUTER wrapper's
   width/centering — not the two-column content+sidebar layout inside
   it, which the scope note above already found to be best left alone.

`.ttbm_default_theme` is only ONE of four such outer wrappers — each
   single-tour "Theme File" choice (Tour edit screen → Layout) renders
   through its own template with its own class (checked every file
   under templates/themes/):
     default.php      → .ttbm_default_theme   (also used, +modifier
                          class, by hotel_default.php for single hotels)
     smart.php         → .ttbm_smart_theme
     viator.php        → .ttbm_viator_theme
   A tour set to "Smart" or "Viator" layout wasn't covered by the first
   pass of this fix (confirmed: /tour/highlights-of-naples-and-the-amalfi-
   coast/ uses smart.php and was still full-width) — listed together so
   a future template variant is easy to add to the same rule.

   Second pass, found via DevTools (Boga Lake / default.php still didn't
   line up after the above): ttbm_registration.css:28-34 has its own
     div.ttbm_default_theme, div.ttbm_viator_theme {
         width: 100%; max-width: 1400px; margin: auto; background: #fff;
     }
   `div.ttbm_default_theme` (element + class, specificity 0,1,1) beats a
   plain `.ttbm_default_theme` (0,1,0) regardless of stylesheet order —
   that's why Smart Theme lined up immediately (no such div-qualified
   rule exists for `.ttbm_smart_theme`) while Default/Viator silently
   kept the plugin's own hardcoded 1400px and its own solid #fff
   background (a second, separate white from the page's actual parchment
   background — the source of an earlier "extra white margin" report).
   Matching the plugin's own `div.` element qualifier here brings this
   rule to the same 0,1,1 specificity, so — combined with this
   stylesheet always printing last (enqueued at PHP_INT_MAX, see
   travail_enqueue_tbm_restyle() in inc/enqueue.php) — it wins on
   cascade order alone, no !important needed. `background: transparent`
   removes the plugin's own white fill so this box shows the page's
   real background instead of a second, separately-colored one.

   Third pass, measured in-headless-browser against the site header:
   `.travail-container`'s own box model is max-width + margin-inline:auto
   and NO side padding, but this rule originally added
   `padding-inline: var(--travail-gutter)` (80px desktop) — so the outer
   wrapper box was 1280px wide but its content only spanned 1120px,
   visibly inset ~80px from each edge of the header/nav above it
   (confirmed: header .travail-container left:73..1353, this wrapper's
   content left:153..1273 at 1440px viewport). Removed the padding so
   the wrapper genuinely shares .travail-container's box model; the
   plugin's own .ttbm_container inside it already supplies its own
   internal padding for the details page. */
div.ttbm_default_theme,
div.ttbm_smart_theme,
div.ttbm_viator_theme {
	width: 100%;
	max-width: var( --travail-container );
	margin-inline: auto;
	background: transparent;
}

/* Same container-width fix for the Travello single-tour template
   (templates/themes/travello.php → .ttbm-travello-container). Its own
   rule in the plugin's ttbm_travello_details.css:37-41 already caps the
   box at 1280px and centers it, but ALSO adds
   `padding-inline: clamp(20px, 5vw, 80px)` — the static reference mock
   (travail/tour-details.html) pairs that padding with a padded header,
   but Travail's real header (`.travail-container`) has no side padding,
   so the travello content rendered inset ~5vw from each edge of the nav
   above it (measured in-headless-browser: header content left:73..1353,
   travello content left:145..1271 at 1440px viewport). Zeroing the
   padding gives it the same flush box model as the header/default theme;
   the template's own grid gaps and section margins keep the interior
   breathing on every viewport. Same specificity (0,1,0), wins on this
   stylesheet's later print order — no !important needed. */
.ttbm-travello-container {
	padding-inline: 0;
}

/* The scroll-nav tabs (ttbm_travello_details.css:443-454) are a flex row of
   `white-space:nowrap` buttons, so their intrinsic min-content (~579px)
   inflates the mobile grid track: `.ttbm-travello-layout` is 375px wide at
   a 390px viewport but its single `1fr` column (minmax auto → min-content)
   measured 578.688px, dragging both `.ttbm-travello-main` and
   `.ttbm-travello-sidebar` off-screen. `min-width: 0` releases the
   automatic minimum and the nav's own `overflow-x: auto` + hidden scrollbar
   (plugin rules above) handle the rest — tabs scroll horizontally if they
   ever outgrow the viewport. */
.ttbm-travello-tabs {
	min-width: 0;
}

.ttbm_travello_theme .ttbm-travello-tab.is-active {
	background: var(--travail-forest);
	color: #fff;
	border-radius: var(--travail-radius-sm);
}

/* Similar-tours card footer — plugin rule (ttbm_travello_details.css:2168)
   had `padding: 0` flush against the card body; the reference mock keeps
   20px breathing room above/below the divider + price row. */
.ttbm-travello-similar .ttbm-gc-footer {
	padding: 20px 0;
}

.ttbm_travello_theme .ttbm_widget_content {
	padding-left: 0;
}

/* ── Section titles — unify font size, weight, color ────────────────
   .ttbm_section_title (Overview), .ttbm-travello-section-title
   (Traveler reviews, Location Map), and .content-title (Discover
   Your Next Adventure) all share the same font / weight / color but
   .content-title is 32px instead of 18px. Normalise to 18px so every
   section heading in the travello template reads consistently. */
.ttbm_travello_theme .ttbm_section_title,
.ttbm_travello_theme .ttbm-travello-section-title,
.ttbm_travello_theme #ttbm_related_tour .content-title {
	font-family: var(--travail-font-heading);
	font-size: 18px;
	font-weight: 700;
	color: var(--travail-ink);
	letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════
   Travello booking card — date selection bar
   (templates/ticket/regular_ticket.php → .ttbm-date-select__*)
   ══════════════════════════════════════════════════════════════
   The plugin's own "modern select bar" (ttbm_details.css:2437-2652)
   is already rounded/soft, but uses an accent color fetched from the
   setting palette (--ttbm-date-accent) and lays the date field + CTA
   out as one horizontal row. In this theme the widget lives inside
   the ~380px booking-card sidebar, where that row squeezes the date
   input to ~92px (the "Mon 17 Aug, 2026" placeholder truncated) and
   the CTA snaps to the label row, not the field. This pass ties the
   widget to Travail's own design system — forest focus rings, a
   coral CTA with the theme's soft shadows, the theme radius tokens,
   a calendar-glyph micro-label — and always stacks the toolbar
   vertically (label → field → full-width CTA), which is the layout
   the card has room for on every viewport. Everything else
   (datepicker wiring, hidden input, JS validation) stays untouched.
   Scoped to .ttbm_travello_theme; outranks the plugin rules by
   specificity (1,2,0 vs :is()'s 1,1,0), !important kept on the
   handful of properties the plugin itself pins. */
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__toolbar {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__field {
	flex: 1 1 auto;
	max-width: 100%;
	width: 100%;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --travail-color-text-muted );
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__label::before {
	content: "";
	flex-shrink: 0;
	width: 11px;
	height: 11px;
	background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17'/%3E%3Cpath d='M8 3.5v3'/%3E%3Cpath d='M16 3.5v3'/%3E%3C/svg%3E" )
		center / contain no-repeat;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__control {
	display: flex;
	align-items: center;
	text-align: left;
	background: var( --travail-white );
	border: 1.5px solid var( --travail-beige );
	border-radius: var( --travail-radius-sm );
	box-shadow: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__control:hover,
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__control:focus-within {
	background: var( --travail-white );
	border-color: rgba( 22, 53, 45, 0.4 );
	box-shadow: 0 0 0 4px rgba( 22, 53, 45, 0.08 );
	transform: none;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__label {
	margin-bottom: 2px;
}

/* The standalone icon chip is removed (display:none); the calendar glyph
   moves INTO the input itself as a coral background image, left-aligned,
   so the control reads as a single clean field. The plugin pins
   `padding: 0 !important` on the input, so the icon gutters are !important
   here too (same specificity otherwise, later print order wins). */
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__icon {
	display: none;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__control {
	width: 100%;
}

.ttbm_travello_theme #ttbm_booking_section #ttbm_select_date {
	flex: 1;
	min-width: 0;
	min-height: 54px;
	text-align: left;
	padding-left: 40px !important;
	padding-right: 40px !important;
	background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17'/%3E%3Cpath d='M8 3.5v3'/%3E%3Cpath d='M16 3.5v3'/%3E%3C/svg%3E" )
		left 14px center / 18px no-repeat,
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151716' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E" )
		right 14px center / 18px no-repeat;
	font-family: var( --travail-font-body );
	font-weight: 600;
	font-size: 15px;
	color: var( --travail-ink );
}

.ttbm_travello_theme #ttbm_booking_section #ttbm_select_date::placeholder {
	color: rgba( 21, 23, 22, 0.4 );
}

/* The chevron span becomes a background image of the input above (same
   treatment as the time select), so the span itself is removed from the
   flow — the date control then renders as input-with-glyphs only. */
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__control .ttbm_date_chevron {
	display: none !important;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm_check_ability,
.ttbm_travello_theme #ttbm_booking_section .navy_blueButton.ttbm_check_ability,
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__action {
	min-height: 54px;
	height: 54px;
	width: 100%;
	border-radius: var( --travail-radius-sm );
	padding: 0 22px;
	background: var( --travail-coral ) !important;
	color: var( --travail-white ) !important;
	border: 0 !important;
	font-family: var( --travail-font-body );
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.01em;
	box-shadow: 0 10px 24px rgba( 255, 107, 74, 0.28 );
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm_check_ability:hover,
.ttbm_travello_theme #ttbm_booking_section .navy_blueButton.ttbm_check_ability:hover,
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__action:hover {
	background: #ff5c38 !important;
	transform: translateY( -1px );
	box-shadow: 0 14px 30px rgba( 255, 107, 74, 0.34 );
}

.ttbm_travello_theme #ttbm_booking_section .ttbm_check_ability:active,
.ttbm_travello_theme #ttbm_booking_section .navy_blueButton.ttbm_check_ability:active,
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__action:active {
	transform: translateY( 0 );
	box-shadow: 0 6px 16px rgba( 255, 107, 74, 0.24 );
}

.ttbm_travello_theme #ttbm_booking_section .ttbm_check_ability:focus-visible,
.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__action:focus-visible {
	outline: 2px solid var( --travail-forest );
	outline-offset: 2px;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-date-select__action-icon {
	font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   Travello booking card — time slot selector
   (templates/ticket/tour_default_selection.php → .ttbm-time-slots__*)
   ══════════════════════════════════════════════════════════════
   The PHP template hides .ttbm_select_time_area with an inline
   `display:none` when no date is pre-selected; this forces it
   visible so the section always sits under the date picker.
   The select dropdown is restyled to match the date-control
   aesthetic (white surface, beige border, 12px radius, 54px
   height, forest focus ring) — same tokens as the date-control
   above it. The header gets a clock glyph matching the calendar
   glyph on the date label. */
.ttbm_travello_theme #ttbm_booking_section .ttbm_select_time_area {
	display: block !important;
	margin-top: 16px;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm_select_date_area {
	display: block !important;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots {
	width: 100%;
	padding: 0;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --travail-color-text-muted );
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__title::before {
	content: "";
	flex-shrink: 0;
	width: 11px;
	height: 11px;
	background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E" )
		center / contain no-repeat;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__count {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
	color: var( --travail-forest );
	background: rgba( 22, 53, 45, 0.08 );
	border-radius: 999px;
	white-space: nowrap;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__select {
	display: block;
	width: 100%;
	max-width: none;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__select select {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 54px;
	height: 54px;
	box-sizing: border-box;
	background: var( --travail-white );
	border: 1.5px solid var( --travail-beige );
	border-radius: var( --travail-radius-sm );
	padding: 0 44px 0 40px;
	font-family: var( --travail-font-body );
	font-weight: 600;
	font-size: 15px;
	color: var( --travail-ink );
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E" ),
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151716' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: left 14px center, right 14px center;
	background-size: 18px;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__select select:hover,
.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__select select:focus {
	border-color: rgba( 22, 53, 45, 0.4 );
	box-shadow: 0 0 0 4px rgba( 22, 53, 45, 0.08 );
	outline: none;
}

.ttbm_travello_theme #ttbm_booking_section .ttbm-time-slots__select select:focus-visible {
	border-color: var( --travail-forest );
	box-shadow: 0 0 0 3px rgba( 22, 53, 45, 0.12 );
}

/* The real minimum-width lock is on the two grid items in
   `.ttbm-travello-layout` (travello.php), not the tabs themselves: flex-row
   nowrap tabs give the MAIN item a content-based automatic minimum (~579px),
   and since `grid-template-columns: 1fr` is `minmax(auto,1fr)` the track
   grows to that min-content and pushes the whole sidebar off-screen.
   `min-width: 0` on the items releases the automatic minimum so the track
   stays the container width; overflow stays inside the tabs' own
   `overflow-x:auto` scrollport. */
.ttbm-travello-layout > .ttbm-travello-main,
.ttbm-travello-layout > .ttbm-travello-sidebar {
	min-width: 0;
}

/* Same box-model class the plugin itself uses on the gallery, matched for
   the single-featured-image case (no gallery enabled on the tour). The
   plugin's hero grid (#ttbm_travello_gallery > .superSlider, same rule
   that made the two stacked photos above) is always 2 rows of 260px —
   but when the tour has no gallery, TTBM_Custom_Slider::featured_image_
   slider() emits only `.superSlider.ttbm-featured-only > .sliderAllItem`
   (no .ttbm_slider-wrapper at all), and that lone grid child defaults to
   just row 1. Result, measured in-headless-browser on a featured-only
   Travello tour: hero 530px tall but the image only 260px, with ~270px
   of empty parchment below it. Spanning the item across both rows makes
   the single photo fill the full hero height, exactly like a gallery
   tour's big slide. Scoped to `#ttbm_travello_gallery` like all the
   plugin's own travello-gallery rules, on desktop only (the plugin's
   own <=768px single-row grid already handles the small screen), and
   `min-width: 769px` matches the plugin's own mobile breakpoint. */
@media ( min-width: 769px ) {
	#ttbm_travello_gallery > .superSlider.ttbm-featured-only .sliderAllItem {
		grid-row: 1 / span 2;
	}
}

/* ══════════════════════════════════════════════════════════════
   Travello booking card — keep ticket-row price content inside the
   row/card (fixes content spilling outside the table area).
   ══════════════════════════════════════════════════════════════
   The plugin's own price line (ttbm_travello_details.css:1632-1642)
   aligns the price under the ticket name with a negative-margin
   hack — `margin: 0 -35px` + `padding-left: 44px`. Measured in-headless
   on a real tour: with an icon it visually slips 35px left of its own
   cell, so the box (left:977) ended up 20px OUTSIDE the ticket row
   card (left:997), and without an icon the row's `white-space:nowrap`
   + `flex-wrap:nowrap` still overflowed the price cell (scrollWidth
   207 > clientWidth 188) with "price ~~struck~~ - N left" all on one
   rigid line. Redesign: drop the negative margin entirely, keep the
   44px icon-alignment padding only for icon rows (name shifts by the
   icon+gap, so +44px lines the price up under it), and let the three
   segments (sale / struck / stock) WRAP within the cell instead of
   forcing one unbreakable line — stock count drops to its own line
   when the price is long, so nothing can leave the table. Same
   selectors as the plugin rules (equal specificity) — wins on this
   stylesheet's later print order, no !important. */
.ttbm_travello_theme #ttbm_booking_section .ttbm_price_container {
	margin: 0;
	flex-wrap: wrap;
	min-width: 0;
	white-space: normal;
}

div.ttbm_wraper {
	margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   Travello — date picker popup (jQuery UI, appended to <body>)
   ══════════════════════════════════════════════════════════════
   The plugin's generic popup skin (ttbm_details.css:2066-2120) is
   already rounded/soft but uses the blue setting palette
   (--color_theme) accent and a tinted-available-day scheme. This
   pass re-skins the popup with Travail's own tokens: parchment nav
   buttons, coral hover, forest selected/today rings, beige borders,
   the theme radius/shadow — and drops the accent tint on available
   days for a calmer, more minimal read (plain ink on white, forest
   only on hover/select). Scoped exactly like the plugin's own
   per-theme skins via `body:has(.ttbm_travello_theme)`, so it only
   runs on Travello-themed tour pages. */
body:has( .ttbm_travello_theme ) #ui-datepicker-div.ui-datepicker {
	width: 288px;
	padding: 16px 18px 14px;
	margin-top: 8px;
	border: 1px solid var( --travail-beige );
	border-radius: var( --travail-radius-md );
	background: var( --travail-white );
	box-shadow: var( --travail-shadow-md );
	font-family: var( --travail-font-body );
	font-size: 13px;
	color: var( --travail-ink );
	z-index: 1000000 !important;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-header {
	background: transparent;
	border: 0;
	padding: 0 0 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid var( --travail-beige );
	position: relative;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var( --travail-ink );
	line-height: 30px;
	background: transparent;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-title select.ui-datepicker-month,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-title select.ui-datepicker-year {
	font-family: var( --travail-font-body );
	font-size: 13px;
	font-weight: 600;
	color: var( --travail-ink );
	padding: 4px 8px;
	margin: 0 3px;
	border: 1px solid var( --travail-beige );
	border-radius: 8px;
	background: var( --travail-white );
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-title select:hover,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-title select:focus {
	border-color: rgba( 22, 53, 45, 0.4 );
	box-shadow: 0 0 0 3px rgba( 22, 53, 45, 0.08 );
	outline: none;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next {
	top: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var( --travail-parchment );
	cursor: pointer;
	border: 0;
	transition: background 0.2s ease;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev {
	left: 0;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next {
	right: 0;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev:hover,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next:hover {
	background: var( --travail-coral );
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev span,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next span {
	display: none;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev::after,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next::after {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	line-height: 30px;
	text-align: center;
	font-size: 16px;
	color: var( --travail-ink );
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev::after {
	content: "\2039";
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next::after {
	content: "\203A";
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-prev:hover::after,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-next:hover::after {
	color: #fff;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div table.ui-datepicker-calendar {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 0;
	font-size: 13px;
	overflow: hidden;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar th {
	padding: 6px 0 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba( 21, 23, 22, 0.4 );
	background: transparent;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td {
	padding: 2px;
	text-align: center;
	border: 0;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td a,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td span {
	display: block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var( --travail-ink );
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td a.ui-state-default:hover,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td a.ui-state-hover {
	background: var( --travail-forest );
	color: #fff;
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td.ui-datepicker-today a,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td.ui-datepicker-today span {
	box-shadow: inset 0 0 0 2px var( --travail-coral );
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td a.ui-state-active,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td a.ui-state-highlight {
	background: var( --travail-forest );
	color: #fff;
	box-shadow: 0 4px 10px rgba( 22, 53, 45, 0.25 );
}

body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td.ui-datepicker-unselectable span,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td.ui-state-disabled span,
body:has( .ttbm_travello_theme ) #ui-datepicker-div .ui-datepicker-calendar td.ttbm-date-unavailable span {
	color: rgba( 21, 23, 22, 0.25 );
	background: transparent;
	text-decoration: line-through;
	opacity: 1;
	cursor: not-allowed;
}

div.ttbm_container {
	border-radius: var( --travail-radius-lg );
	box-shadow: var( --travail-shadow-sm );
	overflow: hidden;
	margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════════
   Single tour page (Smart / Default) — unify type, spacing,
   and borders onto Travail tokens. Plugin markup unchanged.
   ══════════════════════════════════════════════════════════════ */

#ttbm_content .ttbm_details_page,
#ttbm_content .ttbm_smart_theme {
	--ttbm_d_text: var( --travail-color-text );
	--ttbm_d_heading: var( --travail-ink );
	--ttbm_d_muted: var( --travail-color-text-muted );
	--ttbm_d_border: var( --travail-color-border );
	--ttbm_d_section-gap: 28px;
	font-family: var( --travail-font-body );
	color: var( --travail-color-text );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_hero_overlay .ttbm_default__title h1 {
	font-family: var( --travail-font-heading );
	font-weight: 400;
	letter-spacing: 0;
}

#ttbm_content .ttbm_details_page .ttbm_section_title,
#ttbm_content .ttbm_details_page .content-title,
#ttbm_content .ttbm_smart_theme .ttbm_section_title,
#ttbm_content .ttbm_smart_theme .content-title,
#ttbm_content .ttbm_pa_heading {
	font-family: var( --travail-font-heading );
	font-size: 26px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var( --travail-ink );
	margin: 0 0 16px;
	padding: 0;
}

#ttbm_content .ttbm_details_page .ttbm_widget_content,
#ttbm_content .ttbm_details_page .ttbm_wp_editor,
#ttbm_content .ttbm_details_page .ttbm_description,
#ttbm_content .ttbm_details_page .ttbm_widget_content p,
#ttbm_content .ttbm_details_page .ttbm_wp_editor p,
#ttbm_content .ttbm_details_page .ttbm_description p,
#ttbm_content .ttbm_details_page .ttbm_widget_content li,
#ttbm_content .ttbm_details_page .ttbm_wp_editor li {
	font-family: var( --travail-font-body );
	font-size: 15px;
	line-height: 1.7;
	color: var( --travail-color-text );
	text-align: start;
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_overview > * {
	padding: 28px 0;
	margin: 0;
	border-top: 1px solid var( --travail-color-border );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_overview > *:first-child {
	padding-top: 12px;
	border-top: none;
}

#ttbm_content .ttbm_smart_theme .ttbm_registration_before_area {
	padding: 0;
	margin: 0;
	border: none;
	min-height: 0;
}

#ttbm_content .ttbm_smart_theme .ttbm_registration_before_area:not( :has( * ) ) {
	display: none;
}

#ttbm_content .ttbm_details_page .ttbm_faq_list,
#ttbm_content .ttbm_details_page .ttbm_wp_editor > .ttbm_faq_content {
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-md );
	box-shadow: var( --travail-shadow-sm );
}

#ttbm_content .ttbm_details_page .ttbm_faq_item {
	border-bottom-color: var( --travail-color-border );
}

#ttbm_content .ttbm_details_page .ttbm_faq_item:hover,
#ttbm_content .ttbm_details_page .ttbm_faq_item:has( .ttbm_faq_title.active ) {
	background: var( --travail-color-bg );
	border-color: var( --travail-color-border );
}

#ttbm_content .ttbm_details_page .ttbm_faq_item .ttbm_faq_title h5 {
	font-family: var( --travail-font-body );
	font-size: 15px;
	font-weight: 600;
	color: var( --travail-ink );
}

#ttbm_content .ttbm_details_page .ttbm_faq_item .ttbm_faq_title.active h5 {
	color: var( --travail-color-primary );
}

#ttbm_content .ttbm_details_page .ttbm_faq_item .ttbm_faq_title span[data-icon] {
	background: var( --travail-color-bg );
	border: 1.5px solid var( --travail-color-border );
	color: var( --travail-color-primary );
	border-radius: var( --travail-radius-sm );
}

#ttbm_content .ttbm_details_page .ttbm_faq_item .ttbm_faq_title.active span[data-icon] {
	background: var( --travail-color-primary );
	border-color: var( --travail-color-primary );
	color: #fff;
}

#ttbm_content .ttbm_activity_pill {
	border-color: var( --travail-color-border );
	box-shadow: var( --travail-shadow-sm );
}

#ttbm_content .ttbm_activity_pill_icon {
	background: color-mix( in srgb, var( --travail-color-primary ) 10%, #fff );
	color: var( --travail-color-primary );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_booking_card {
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-md );
	box-shadow: var( --travail-shadow-sm );
	padding: 20px;
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_booking_title {
	font-family: var( --travail-font-heading );
	font-size: 22px;
	font-weight: 400;
	color: var( --travail-ink );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_booking_subtitle {
	font-size: 13px;
	color: var( --travail-color-text-muted );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card {
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-sm );
	background: var( --travail-color-bg );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card__name {
	font-size: 15px;
	color: var( --travail-ink );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card__price,
#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card__price .woocommerce-Price-amount {
	font-size: 18px;
	color: var( --travail-color-primary );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card__per,
#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card__desc {
	color: var( --travail-color-text-muted );
}

#ttbm_content .ttbm_smart_theme .ttbm_smart_ticket_card__badge {
	background: color-mix( in srgb, var( --travail-color-accent ) 16%, #fff );
	color: var( --travail-color-accent );
}

#ttbm_content .ttbm_why_choose_us {
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-md );
	box-shadow: var( --travail-shadow-sm );
}

#ttbm_content .ttbm_why_choose_us .ttbm_title_style_2 {
	border-bottom-color: var( --travail-color-border );
}

#ttbm_content .ttbm_why_choose_us .ttbm_title_style_2 h5 {
	font-family: var( --travail-font-heading );
	font-size: 20px;
	font-weight: 400;
	color: var( --travail-ink );
}

#ttbm_content .ttbm_why_choose_us .ttbm_why_choose_us_list li,
#ttbm_content .ttbm_content__right .ttbm_why_choose_us .ttbm_widget_content ul.ttbm_why_choose_us_list li {
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-sm );
	background: var( --travail-color-bg );
	font-size: 14px;
	color: var( --travail-color-text );
}

#ttbm_content .ttbm_why_choose_us .ttbm_why_choose_us_list li:hover {
	background: #fff;
	border-color: color-mix( in srgb, var( --travail-color-primary ) 28%, var( --travail-color-border ) );
}

@media ( max-width: 768px ) {
	#ttbm_content .ttbm_details_page .ttbm_section_title,
	#ttbm_content .ttbm_details_page .content-title,
	#ttbm_content .ttbm_smart_theme .ttbm_section_title,
	#ttbm_content .ttbm_smart_theme .content-title {
		font-size: 22px;
	}

	#ttbm_content .ttbm_smart_theme .ttbm_smart_overview > * {
		padding: 22px 0;
	}
}

/* ══════════════════════════════════════════════════════════════
   Single tour hero — Location/Duration/Age Limit/Available seat/
   Language stat cards: tighter, more compact spacing.
   ══════════════════════════════════════════════════════════════
   The plugin's own rules (ttbm_details.css) are ID-qualified
   (`#ttbm_content .ttbm_default_theme …`), so this reuses the exact
   same selectors to reach equal specificity and win on this
   stylesheet's later print order — no !important needed, same
   approach as the container-width fix above. Only spacing values
   change (gap/padding/min-height/icon size); the grid structure,
   colors and hover behaviour are left exactly as the plugin built
   them. */
#ttbm_content .ttbm_default_theme .ttbm_hero_stats_grid {
	gap: 6px;
	padding: 10px;
}

#ttbm_content .ttbm_smart_theme .ttbm_hero_stats {
	margin: 18px 0 10px;
}

/* Plugin default (ttbm_details.css:781-785) switches to a fixed
   5-column row at this same breakpoint — 4 reads less cramped with
   these tighter card sizes above. Collapse/"Load more" membership
   (which stat is marked .ttbm_hero_stat_item--extra) is decided by
   the plugin's own PHP/JS and is unaffected by this — changing the
   column count here only changes how many of the always-visible
   stats sit per row before wrapping. */
@media ( min-width: 1100px ) {
	#ttbm_content .ttbm_default_theme .ttbm_hero_stats_grid {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}
}

#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon {
	grid-template-columns: 32px minmax( 0, 1fr );
	column-gap: 8px;
	row-gap: 2px;
	padding: 8px 10px;
	min-height: 52px;
}

#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon i {
	width: 32px;
	height: 32px;
	font-size: 15px;
}

@media ( max-width: 768px ) {
	#ttbm_content .ttbm_default_theme .ttbm_hero_stats_grid {
		gap: 6px;
		padding: 8px;
	}

	#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon {
		grid-template-columns: 30px minmax( 0, 1fr );
		column-gap: 7px;
		padding: 7px 9px;
		min-height: 46px;
	}

	#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon i {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
}

/* ══════════════════════════════════════════════════════════════
   Same stat cards — a second, "stylish" pass on top of the spacing
   fix above: brand color, hover polish, and a proper button for
   "Load more" instead of a bare underlined link.
   ══════════════════════════════════════════════════════════════
   The icon badges' purple tint (rgba(var(--color_theme_rgb, 90, 86,
   224))) is now on-brand for free, via the --color_theme_rgb fix
   added to the retint block near the top of this file — nothing
   below re-states that. Same equal-specificity approach as every
   other rule in this file: reuse the plugin's own selectors, let
   this stylesheet's later print order win, no !important. */
#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon {
	border-radius: var( --travail-radius-sm );
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon:hover {
	transform: translateY( -2px );
	box-shadow: var( --travail-shadow-sm );
}

#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon i {
	border-radius: var( --travail-radius-sm );
}

/* label — "LOCATION" / "DURATION" / etc. eyebrow above the value */
#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon::before {
	color: var( --travail-color-text-muted );
}

/* Location gets a light brand tint — the one stat worth a glance first. */
#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon.ttbm_hero_loc {
	background: color-mix( in srgb, var( --travail-color-primary ) 6%, #fff );
	border-color: color-mix( in srgb, var( --travail-color-primary ) 18%, #fff );
}

/* Sale price (Price stat is normally hidden — see ttbm_details.css's
   own `:has(.mi-coins)` rule — styled anyway for parity if that ever
   changes, e.g. a browser without :has() support). */
#ttbm_content .ttbm_default_theme .ttbm_hero_stats .item_icon .ttbm_start_price_display > .woocommerce-Price-amount {
	color: var( --travail-color-accent );
}

#ttbm_content .ttbm_default_theme .ttbm_hero_stats_load_more {
	padding: 5px 12px;
	border: 1px solid color-mix( in srgb, var( --travail-color-primary ) 30%, transparent );
	border-radius: var( --travail-radius-sm );
	background: transparent;
	color: var( --travail-color-primary );
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#ttbm_content .ttbm_default_theme .ttbm_hero_stats_load_more:hover {
	background: var( --travail-color-primary );
	color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   Single tour page — narrower booking sidebar column.
   ══════════════════════════════════════════════════════════════
   Plugin default (ttbm_registration.css:151-158, inside the same
   min-width:960px breakpoint): .ttbm_content__right at 360px with
   .ttbm_content__left filled via calc(100% - 376px) — the 16px
   difference is the gap between the two columns. Narrowing the
   sidebar to 300px, so the 16px gap is preserved by matching
   .ttbm_content__left to calc(100% - 316px). Same bare selectors as
   the plugin (specificity 0,1,0 each) inside the same breakpoint, so
   this wins purely on this stylesheet printing last — no !important
   needed. */
@media ( min-width: 960px ) {
	.ttbm_content__right {
		width: 300px;
	}

	.ttbm_content__left {
		width: calc( 100% - 316px );
	}
}

/* Plugin default (ttbm_registration.css:125-131, unconditional — not inside
   a breakpoint) also sets `top:30px` (its sticky offset) and `margin-top:20px`
   on this same element, both requested off. Matching its bare selector at
   the same unconditional scope, same specificity, so this wins purely by
   printing last — no !important needed. */
.ttbm_content__right {
	top: 0;
	margin-top: 0;
}

/* ══════════════════════════════════════════════════════════════
   Single tour page — sidebar CTA price columns (From X / Adult
   Ticket, From Y / Child Ticket) re-skinned to feel like part of
   Travail rather than a generic admin-panel price table.
   ══════════════════════════════════════════════════════════════
   Same selectors as the plugin (ttbm_details.css:1229-1309, all
   #ttbm_content-qualified) for equal specificity, winning on this
   stylesheet's later print order — no !important needed. Structure
   (2-column grid, :has() single-ticket fallback, badge offset) is
   left exactly as the plugin built it; only colors/typography/
   spacing change, reusing the theme's own tokens (brand green,
   serif heading font, radius scale) instead of the plugin's generic
   grays and a plain border-bottom divider. Each price becomes its
   own soft, rounded "chip" with a gap between them instead of one
   flat block split by an internal border-left. */
#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_pricing {
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: none;
}

#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_pricing.has-badge {
	padding-top: 30px;
}

#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_price_col {
	padding: 14px 10px;
	background: var( --travail-color-bg );
	border-radius: var( --travail-radius-sm );
}

#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_price_col + .ttbm_sidebar_cta_price_col {
	border-left: none;
}

#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_from {
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --travail-color-text-muted );
}

#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_amount strong {
	font-family: var( --travail-font-heading );
	font-size: 22px;
	font-weight: 700;
	color: var( --travail-color-primary );
}

#ttbm_content .ttbm_details_page .ttbm_sidebar_cta_per {
	font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════
   Search results page (/find/, [ttbm-search-result]) — outer
   container width vs. the theme's header/nav.
   ══════════════════════════════════════════════════════════════
   This page never matched travail_is_tour_view() (it's an ordinary
   WP Page, not the tour CPT archive/taxonomy/our own page template),
   so this stylesheet wasn't even enqueued here at all — fixed
   separately in inc/enqueue.php. The width culprit itself is
   ttbm_plugin_global.css:1811-1819's theme-name-sniffing fallback:
     body.theme-astra div.mpContainer, …, div.mpContainer {
         max-width: 1460px; width: 100%; margin: 0 auto;
     }
   Travail isn't one of the explicitly-named themes, so it always
   fell through to the bare `div.mpContainer` rule and its hardcoded
   1460px — unrelated to `--travail-container`. The plugin also ships
   ttbm_theme_align.css, a generic-theme compatibility layer keyed off
   the body class this same detection adds (`ttbm-page-with-shortcode`).
   Almost every selector in it targets block-theme markup (`.entry-content`,
   `.wp-block-post-content`, `.is-layout-constrained`) that Travail — a
   classic PHP theme — never outputs (page.php uses `.travail-entry-content`,
   not `.entry-content`), so most of it doesn't apply here — EXCEPT one
   rule that isn't block-theme-scoped at all:
     body.ttbm-page-with-shortcode main { display:flex; flex-direction:column;
       align-items:center; … }
   `main` is a bare element selector, so it also matches Travail's own
   `<main id="main" class="travail-main">` in page.php. `align-items:center`
   on a column-flex container makes every direct child shrink to its own
   content width instead of stretching full-width — invisible on this
   page's actual results grid (its content is wide enough to hit
   --travail-container's max-width anyway) but very visible on the
   travail_page_title() header added for this page (see inc/template-hooks.php):
   a short heading + breadcrumb shrink-wrapped into a narrow, centered box
   instead of spanning edge-to-edge like the identical markup does on the
   tour archive (whose <main> never gets .ttbm-page-with-shortcode/this
   flex treatment at all, since a post-type archive isn't "an ordinary page
   carrying a shortcode"). Opting this theme's own <main> back out of that
   generic fallback — rather than fighting it child-by-child — matches the
   file's own stated intent that none of this compatibility layer should
   apply to Travail. */
body.ttbm-page-with-shortcode main.travail-main {
	display: block;
}

div.mpContainer {
	max-width: var( --travail-container );
	margin-inline: auto;
}

/* Related tours ("Discover Your Next Adventure") — drop card dividers */
#ttbm_related_tour .ttbm-gc-divider {
	display: none;
}

/* ══════════════════════════════════════════════════════════════
   Places You'll See + Location map (.ttbm_hiphop_area)
   Match other details-page sections: serif titles, soft cards,
   forest carousel controls. Markup/JS unchanged.
   ══════════════════════════════════════════════════════════════ */

.ttbm_hiphop_area {
	padding: 0;
	border-top: none;
	margin-top: 0;
}

#place_you_see.place_you_see {
	position: relative;
	padding-top: 0;
	margin-bottom: 28px;
}

#place_you_see .content-title,
.ttbm_hiphop_area > .content-title {
	font-family: var( --travail-font-heading );
	font-size: 28px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var( --travail-ink );
	margin: 0 0 18px;
	padding: 0;
}

#place_you_see .carousel_area {
	position: absolute;
	top: 4px;
	inset-inline-end: 0;
	z-index: 2;
}

#place_you_see .carousel_area .w_50 {
	display: flex;
	align-items: center;
	gap: 8px;
	width: auto;
}

#place_you_see .carousel_area .prev,
#place_you_see .carousel_area .next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	line-height: 1;
	border-radius: var( --travail-radius-sm );
	border: 1.5px solid var( --travail-color-border );
	background: var( --travail-color-surface );
	color: var( --travail-color-primary );
	font-size: 12px;
	box-shadow: var( --travail-shadow-sm );
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#place_you_see .carousel_area .prev:hover,
#place_you_see .carousel_area .next:hover {
	background: var( --travail-color-primary );
	border-color: var( --travail-color-primary );
	color: #fff;
}

#place_you_see .ttbm_widget_content {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

#place_you_see .ttbm_widget_content.owl-carousel .owl-stage-outer {
	margin-left: 0;
	padding: 4px 2px 8px;
}

#place_you_see .filter_item {
	box-shadow: none !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	overflow: visible;
	margin: 0;
	height: auto;
	min-height: 0;
}

#place_you_see .filter_item .bg_image_area {
	position: relative;
	height: 180px;
	border-radius: var( --travail-radius-md );
	overflow: hidden;
	box-shadow: var( --travail-shadow-sm );
	border: 1px solid var( --travail-color-border );
	background: var( --travail-color-bg );
}

#place_you_see .filter_item .bg_image_area > div[data-bg-image] {
	width: 100%;
	height: 100%;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	transition: transform 0.45s ease;
}

#place_you_see .filter_item:hover .bg_image_area > div[data-bg-image] {
	transform: scale( 1.05 );
}

#place_you_see .filter_item .bg_image_area .circleIcon_xs {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.92 );
	color: var( --travail-color-primary );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var( --travail-shadow-sm );
}

#place_you_see .filter_item h6,
#place_you_see .filter_item h6._dFlex_mT {
	display: block;
	margin: 12px 0 0;
	padding: 0;
	font-family: var( --travail-font-body );
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: start;
	color: var( --travail-ink );
}

/* Hide duplicate Owl default controls — custom .carousel_area handles nav */
#place_you_see .owl-nav,
#place_you_see .owl-dots {
	display: none !important;
}

/* Location map card */
.ttbm_hiphop_area > div:has( iframe ),
.ttbm_hiphop_area > div:has( #gmap_canvas ) {
	width: 100% !important;
	height: 380px !important;
	margin: 0 0 12px !important;
	border-radius: var( --travail-radius-lg ) !important;
	overflow: hidden !important;
	border: 1px solid var( --travail-color-border );
	box-shadow: var( --travail-shadow-sm );
	background: var( --travail-color-bg );
}

.ttbm_hiphop_area > div:has( iframe ) iframe,
.ttbm_hiphop_area > div:has( #gmap_canvas ) #gmap_canvas {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media ( max-width: 767px ) {
	#place_you_see .content-title,
	.ttbm_hiphop_area > .content-title {
		font-size: 24px;
		padding-inline-end: 88px;
	}

	#place_you_see .filter_item .bg_image_area,
	#place_you_see .filter_item .bg_image_area > div[data-bg-image] {
		height: 160px;
		min-height: 160px;
	}

	.ttbm_hiphop_area > div:has( iframe ),
	.ttbm_hiphop_area > div:has( #gmap_canvas ) {
		height: 280px !important;
	}
}

/* ══════════════════════════════════════════════════════════════
   Reviews (.ttbm_review_area) — header, list, write-review modal.
   Match other details-page sections. Markup/JS unchanged.
   ══════════════════════════════════════════════════════════════ */

.ttbm_review_area {
	padding: 0;
	border-top: none;
	margin-top: 0;
}

.ttbm_review_container {
	margin-top: 0;
}

.ttbm-tour-review-list-wrapper {
	border: 1px solid var( --travail-color-border );
	border-radius: var( --travail-radius-lg );
	padding: 24px;
	background: #fff;
	box-shadow: var( --travail-shadow-sm );
}

.ttbm-avg-review-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 0;
	padding-bottom: 20px;
}

.ttbm-avg-review-header-content .ttbm-review-title,
h4.ttbm-review-title {
	font-family: var( --travail-font-heading );
	font-size: 28px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var( --travail-ink );
	margin: 0 0 6px;
}

.ttbm-avg-review-header-content p {
	font-family: var( --travail-font-body );
	font-size: 14px;
	font-weight: 500;
	color: var( --travail-color-text-muted );
	margin: 0;
	line-height: 1.5;
}

#give-review-btn {
	flex-shrink: 0;
	padding: 10px 20px;
	font-family: var( --travail-font-body );
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
	border-radius: var( --travail-radius-sm );
	border: none;
	background: var( --travail-color-primary );
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 22, 53, 45, 0.18 );
	transition: background 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

#give-review-btn:hover {
	background: var( --travail-forest-mid );
	color: #fff;
	text-decoration: none;
}

.ttbm-tour-review-list .ttbm-tour-review-item {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var( --travail-color-border );
	border-radius: 0;
}

.ttbm-tour-review-list .ttbm-tour-review-item:last-child {
	border-bottom: none;
	padding-bottom: 4px;
}

.ttbm-tour-review-list .ttbm-tour-review-item .ttbm-tour-review-img img {
	border: 2px solid var( --travail-color-border );
	box-shadow: var( --travail-shadow-sm );
}

.ttbm-tour-review-list .ttbm-tour-review-item .ttbm-tour-review-name {
	font-family: var( --travail-font-body );
	font-weight: 700;
	font-size: 15px;
	color: var( --travail-ink );
	text-transform: none;
}

.ttbm-tour-review-list .ttbm-tour-review-item .ttbm-tour-review-info .ttbm-review-title {
	font-family: var( --travail-font-body );
	font-size: 16px;
	font-weight: 700;
	color: var( --travail-ink );
}

.ttbm-tour-review-list .ttbm-tour-review-item .ttbm-tour-review-info .ttbm-tour-review-content,
.ttbm-tour-review-content p {
	font-family: var( --travail-font-body );
	font-size: 14px;
	line-height: 1.65;
	color: var( --travail-color-text );
}

.ttbm-tour-review-item .ttbm-rating-stars {
	color: var( --travail-color-accent );
}

/* Write-a-review modal */
.mage-modal {
	background-color: rgba( 21, 23, 22, 0.45 );
	backdrop-filter: blur( 4px );
}

.mage-modal-content {
	background: #fff;
	border: 1px solid var( --travail-color-border );
	border-radius: var( --travail-radius-lg );
	box-shadow: var( --travail-shadow-lg );
	overflow: hidden;
	width: min( 640px, 92vw );
	max-width: min( 640px, 92vw );
}

.mage-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row-reverse;
	padding: 16px 22px;
	border-bottom: 1px solid var( --travail-color-border );
	background: var( --travail-color-bg );
	color: var( --travail-ink );
}

.mage-modal-header h3,
.mage-modal-content .mage-modal-header h3 {
	font-family: var( --travail-font-heading );
	font-size: 22px;
	font-weight: 400;
	margin: 0;
	color: var( --travail-ink );
}

.mage-modal-header .close {
	float: none;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var( --travail-color-text-muted );
	padding: 0 2px;
}

.mage-modal-header .close:hover,
.mage-modal-header .close:focus {
	color: var( --travail-ink );
}

.mage-modal-body {
	padding: 8px 22px 22px;
}

.ttbm-tour-review-form {
	padding: 12px 0 8px;
}

.ttbm-tour-review-form .ttbm-tour-review-heading h3 {
	font-family: var( --travail-font-heading );
	font-size: 22px;
	font-weight: 400;
	color: var( --travail-ink );
	margin: 0 0 4px;
}

.ttbm-tour-review-form .ttbm-tour-review-heading p {
	font-size: 14px;
	color: var( --travail-color-text-muted );
	margin: 0 0 8px;
}

.ttbm-tour-review-form .label {
	font-family: var( --travail-font-body );
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --travail-ink );
	margin-bottom: 8px;
}

.ttbm-tour-review-form .group input[type="text"],
#ttbm_review_form #ttbm-tour-review-form--title {
	width: 100%;
	max-width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-sm );
	background: var( --travail-color-bg );
	font-family: var( --travail-font-body );
	font-size: 14px;
	color: var( --travail-ink );
	box-shadow: none;
}

.ttbm-tour-review-form .group input[type="text"]:focus,
#ttbm_review_form #ttbm-tour-review-form--title:focus {
	border-color: var( --travail-color-primary );
	outline: none;
	box-shadow: 0 0 0 3px color-mix( in srgb, var( --travail-color-primary ) 14%, transparent );
}

div.ttbm_style .rating-group label {
	font-size: 26px;
	color: var( --travail-color-border );
	line-height: 1;
}

.rating-group label:hover,
.rating-group label:hover ~ label,
.rating-group input:checked ~ label {
	color: var( --travail-color-accent );
}

.ttbm-tour-review-form input[type="submit"],
.ttbm-tour-review-form button[type="submit"] {
	background: var( --travail-color-primary );
	padding: 12px 28px;
	font-family: var( --travail-font-body );
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	border: none;
	border-radius: var( --travail-radius-sm );
	box-shadow: 0 4px 14px rgba( 22, 53, 45, 0.18 );
	cursor: pointer;
	transition: background 0.2s ease;
}

.ttbm-tour-review-form input[type="submit"]:hover,
.ttbm-tour-review-form button[type="submit"]:hover {
	background: var( --travail-forest-mid );
}

.ttbm-tour-review-form .wp-editor-wrap,
.ttbm-tour-review-form .wp-editor-container {
	border-radius: var( --travail-radius-sm );
	overflow: hidden;
	border-color: var( --travail-color-border );
}

@media ( max-width: 767px ) {
	.ttbm-avg-review-header {
		flex-direction: column;
		align-items: stretch;
	}

	.ttbm-avg-review-header-content .ttbm-review-title,
	h4.ttbm-review-title {
		font-size: 24px;
	}

	#give-review-btn {
		width: 100%;
		text-align: center;
	}

	.ttbm-tour-review-list-wrapper {
		padding: 18px 16px;
	}
}

/* ══════════════════════════════════════════════════════════════
   Day-wise itinerary timeline (.ttbm_day_wise_timeline)
   Match other details-page sections: forest markers, soft cards,
   Travail typography. Markup/JS unchanged.

   The bare `#ttbm_content .ttbm_day_wise_timeline` variant below (alongside
   the `.ttbm_details_page`-scoped one) exists to also reach smart.php/
   viator.php, which use their own root class instead of `.ttbm_details_page`.
   It's gated with `:not(:has(.ttbm_travello_theme))` because the Travello
   template has its own dedicated, deliberately flatter itinerary design in
   the plugin's own ttbm_travello_details.css (no cards/accordion, matching
   travail/tour-details.html's plain `.itinerary` list) — without this guard,
   this ID-anchored selector's specificity silently won over that template's
   plain-class overrides for the same shared markup/classes.
   ══════════════════════════════════════════════════════════════ */

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline {
	position: relative;
	margin: 0;
	padding: 4px 0 0 56px;
	background: transparent;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline::before,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 17px;
	width: 2px;
	background: var( --travail-color-border );
	border-radius: 999px;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: transparent;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_marker,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_marker {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-family: var( --travail-font-body );
	font-size: 12px;
	font-weight: 700;
	color: var( --travail-color-text-muted );
	background: var( --travail-color-bg );
	border: 1.5px solid var( --travail-color-border );
	box-shadow: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item.is-active .day_wise_details_marker,
#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item:has( .day_wise_details_item_title.mActive ) .day_wise_details_marker,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item.is-active .day_wise_details_marker,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item:has( .day_wise_details_item_title.mActive ) .day_wise_details_marker {
	color: #fff;
	background: var( --travail-color-primary );
	border-color: var( --travail-color-primary );
	box-shadow: 0 0 0 4px color-mix( in srgb, var( --travail-color-primary ) 14%, transparent );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_card,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_card {
	background: #fff;
	border: 1.5px solid var( --travail-color-border );
	border-radius: var( --travail-radius-md );
	box-shadow: var( --travail-shadow-sm );
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item.is-active .day_wise_details_card,
#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item:has( .day_wise_details_item_title.mActive ) .day_wise_details_card,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item.is-active .day_wise_details_card,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item:has( .day_wise_details_item_title.mActive ) .day_wise_details_card {
	box-shadow: 0 10px 28px rgba( 22, 53, 45, 0.08 );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item_title,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item_title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 18px 20px;
	cursor: pointer;
	background: #fff;
	border: 0;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_label,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_label {
	font-family: var( --travail-font-body );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --travail-color-primary );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_name,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_name {
	font-family: var( --travail-font-heading );
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: var( --travail-ink );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item_title span[data-icon],
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item_title span[data-icon] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: 0;
	border-radius: var( --travail-radius-sm );
	border: 1.5px solid var( --travail-color-border );
	background: var( --travail-color-bg );
	color: var( --travail-color-primary );
	font-size: 12px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item_title.mActive span[data-icon],
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item_title.mActive span[data-icon] {
	background: var( --travail-color-primary );
	border-color: var( --travail-color-primary );
	color: #fff;
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item_details,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item_details {
	padding: 0 20px 20px;
	border-top: 1px solid var( --travail-color-border );
	background: #fff;
	font-family: var( --travail-font-body );
	font-size: 14px;
	line-height: 1.65;
	color: var( --travail-color-text );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_item_details p,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_item_details p {
	margin: 14px 0 0;
	color: var( --travail-color-text-muted );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_activity_icon,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_activity_icon {
	color: var( --travail-color-primary );
	background: color-mix( in srgb, var( --travail-color-primary ) 10%, #fff );
	border-radius: var( --travail-radius-sm );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_activity_title,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_activity_title {
	font-family: var( --travail-font-body );
	font-weight: 600;
	color: var( --travail-ink );
}

#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_activity_desc,
#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_activity_desc {
	color: var( --travail-color-text-muted );
}

@media ( max-width: 768px ) {
	#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline,
	#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline {
		padding-left: 48px;
	}

	#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline::before,
	#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline::before {
		left: 13px;
	}

	#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_marker,
	#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_marker {
		left: -48px;
		width: 30px;
		height: 30px;
		font-size: 11px;
	}

	#ttbm_content .ttbm_details_page .ttbm_day_wise_timeline .day_wise_details_name,
	#ttbm_content:not(:has(.ttbm_travello_theme)) .ttbm_day_wise_timeline .day_wise_details_name {
		font-size: 18px;
	}
}

/* ══════════════════════════════════════════════════════════════
   Responsive — Travello single-tour template
   ══════════════════════════════════════════════════════════════
   Breakpoints match the theme's own system:
     max-width: 1024px  — tablet / small desktop
     max-width: 768px   — mobile
     max-width: 640px   — small mobile
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	/* Booking sidebar becomes static on tablet */
	.ttbm_travello_theme .ttbm-travello-sidebar {
		position: static;
	}

	/* Ticket table overflow scroll */
	.ttbm_travello_theme .mp_tour_ticket_type {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	/* Gallery: ensure single image fills width */
	.ttbm_travello_theme #ttbm_travello_gallery {
		height: 260px;
	}

	/* Tabs: tighter padding on mobile */
	.ttbm_travello_theme .ttbm-travello-tab {
		padding: 10px 16px;
		font-size: 13px;
		white-space: nowrap;
	}

	/* Section titles: slightly smaller on mobile */
	.ttbm_travello_theme .ttbm_section_title,
	.ttbm_travello_theme .ttbm-travello-section-title {
		font-size: 20px;
	}

	/* Booking card header: stack price info vertically */
	.ttbm_travello_theme .ttbm-travello-bc-price-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	/* Ticket row: ensure grid doesn't overflow */
	.ttbm_travello_theme .ttbm_ticket_row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	/* Price container: prevent overflow */
	.ttbm_travello_theme .ttbm_price_container {
		min-width: 0;
		flex-wrap: wrap;
	}

	/* Date/time controls: full width */
	.ttbm_travello_theme .ttbm-date-select__control {
		width: 100%;
	}

	.ttbm_travello_theme .ttbm-time-slots__select select {
		width: 100%;
	}

	.ttbm_travello_theme .ttbm_check_ability {
		width: 100%;
	}

	/* Similar tours: single column */
	.ttbm_travello_theme .ttbm-gc-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	/* Similar tours card */
	.ttbm_travello_theme .ttbm-gc-card {
		width: 100%;
	}

	/* Overview content: tighter padding */
	.ttbm_travello_theme .ttbm_overview_section {
		padding: 16px;
	}

	/* Widget content: no side padding */
	.ttbm_travello_theme .ttbm_widget_content {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (max-width: 640px) {
	/* Gallery: smaller height on small mobile */
	.ttbm_travello_theme #ttbm_travello_gallery {
		height: 220px;
	}

	/* Tabs: even tighter on small screens */
	.ttbm_travello_theme .ttbm-travello-tab {
		padding: 8px 12px;
		font-size: 12px;
	}

	/* Section titles: smaller on small mobile */
	.ttbm_travello_theme .ttbm_section_title,
	.ttbm_travello_theme .ttbm-travello-section-title {
		font-size: 18px;
	}

	/* Booking card: tighter spacing */
	.ttbm_travello_theme .ttbm-travello-bc-header {
		padding: 12px;
	}
}
