/*
Theme Name:   Traveltour Child
Template:     traveltour
Description:  Child theme for the travel tour project. All customisations live here (managed in Git).
Version:      0.7.8
Text Domain:  traveltour-child
*/

/*
 * LOOK & FEEL = Traveltour demo "Main Demo 4" (theme options applied by scripts/theme.py).
 * The theme IS the design system: colours, fonts, sizes, buttons, cards, forms come from it.
 * This file only styles components the theme does not have (docs/12-design-system.md):
 *   1. a few variables mirroring theme options   2. custom select (tt-select.js)
 *   3. trip request form   4. tour sidebar widgets   5. small fixes   6. a11y
 * Keep values in sync with data/site.yaml → theme (accent) – do not introduce new colours.
 */

/* ============================================================ 1. VARIABLES (mirror theme options) */
:root {
	--tt-accent: #B4581F;        /* data/site.yaml theme.accent (theme "skin" colour) */
	--tt-accent-dark: #9A4A19;   /* theme.accent_dark */
	--tt-heading: #383838;       /* Main 4 heading colour */
	--tt-text: #6b6b6b;          /* Main 4 body text (AA-adjusted) */
	--tt-border: #e5e5e5;        /* Main 4 input/divider grey */
	--tt-soft: #f3f3f3;          /* Main 4 light panel */
	--tt-white: #ffffff;
}

/* ============================================================ 2. CUSTOM SELECT (assets/js/tt-select.js) */
/* The trigger copies the native control's computed look in JS; here we only reset the
   parent theme's generic <button> styling and keep the theme's own arrow (wrapper :after). */
.tt-select { position: relative; }
.tt-select select.tt-select-native {
	position: absolute !important; inset: 0; width: 100%; height: 100%;
	opacity: 0; pointer-events: none;
}
.tt-select-btn {
	display: flex !important;
	align-items: center;
	width: 100% !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-align: left;
	line-height: 1.2 !important;
	cursor: pointer;
}
.tt-select-btn:hover { background-image: none !important; }
.tt-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 24px; }
.tt-select-list {
	position: absolute;
	z-index: 60;
	top: 100%;
	left: 0;
	min-width: 100%;
	max-height: 320px;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	list-style: none;
	background: var(--tt-white);
	border-top: 2px solid var(--tt-accent);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);   /* same depth as the theme's sub-menus */
}
.tt-select-list[hidden] { display: none; }
.tt-select-option {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 22px;
	color: var(--tt-heading);
	font-size: 15px;
	white-space: nowrap;
	cursor: pointer;
}
.tt-select-option.is-active { background: var(--tt-soft); }
.tt-select-option[aria-selected="true"] { color: var(--tt-accent-dark); font-weight: 600; }

/* ============================================================ 3. TRIP REQUEST FORM ([tt_trip_form]) */
.tt-trip-form { max-width: 820px; margin: 0 auto; padding: 40px; background: var(--tt-white); }
.tt-hp { position: absolute; left: -9999px; }
.tt-steps { display: flex; gap: 12px; list-style: none; margin: 0 0 30px; padding: 0; }
.tt-steps li {
	flex: 1;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--tt-border);
	color: var(--tt-text);
	font-size: 14px;
	font-weight: 600;
}
.tt-steps li span {
	display: inline-grid; place-items: center;
	width: 28px; height: 28px; margin-right: 6px;
	border-radius: 50%;
	background: var(--tt-soft);
	color: var(--tt-heading);
}
.tt-steps li.is-active { color: var(--tt-heading); border-color: var(--tt-accent); }
.tt-steps li.is-active span { background: var(--tt-accent); color: var(--tt-white); }
.tt-step { display: none; margin: 0; padding: 0; border: 0; }
.tt-step.is-active { display: block; }
.tt-step legend { margin: 6px 0 14px; padding: 0; color: var(--tt-heading); font-size: 20px; font-weight: 700; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tt-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--tt-border);
	background: var(--tt-white);
	color: var(--tt-heading);
	font-size: 15px;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.tt-chip input { margin: 0 8px 0 0; accent-color: var(--tt-accent); }
.tt-chip:has(input:checked) { border-color: var(--tt-accent); color: var(--tt-accent-dark); }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.tt-field { display: block; margin-bottom: 14px; color: var(--tt-heading); font-size: 14px; font-weight: 600; }
.tt-field input, .tt-field textarea {
	display: block; box-sizing: border-box; width: 100%;
	min-height: 50px; margin-top: 6px; padding: 12px 16px;
	border: 1px solid var(--tt-border); background: var(--tt-white);
	color: var(--tt-heading); font-size: 15px; font-weight: 400;
}
.tt-field input:focus, .tt-field textarea:focus { outline: none; border-color: var(--tt-accent); }
.tt-consent { display: block; margin: 6px 0 20px; font-size: 14px; }
.tt-invalid { outline: 2px solid var(--tt-accent-dark); outline-offset: 3px; }
.tt-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tt-nav .tt-next, .tt-nav .tt-submit { margin-left: auto; }
.tt-nav button { min-height: 50px; padding: 0 30px; border: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.tt-next, .tt-submit { background: var(--tt-accent); color: var(--tt-white); }
.tt-next:hover, .tt-submit:hover { background: var(--tt-accent-dark); }
.tt-prev { background: var(--tt-soft); color: var(--tt-heading); }
.tt-trip-done { max-width: 720px; margin: 0 auto; padding: 50px 30px; text-align: center; background: var(--tt-white); }
@media (max-width: 767px) {
	.tt-trip-form { padding: 24px 18px; }
	.tt-grid { grid-template-columns: 1fr; }
	.tt-steps li { font-size: 0; }
	.tt-steps li span { font-size: 14px; }
}

/* ============================================================ 4. TOUR SIDEBAR WIDGETS (scripts/pages.py) */
.tt-values-list { margin: 0; padding: 0; list-style: none; }
.tt-values-list li { padding: 12px 0; border-top: 1px solid var(--tt-border); font-size: 14px; color: var(--tt-text); }
.tt-values-list li:first-child { border-top: 0; padding-top: 0; }
.tt-contact h3 { margin: 0 0 6px; font-size: 18px; color: var(--tt-heading); }
.tt-contact p { margin: 0 0 16px; font-size: 14px; }
.tt-contact-actions { display: grid; gap: 10px; margin-bottom: 14px; }
.tt-contact-btn {
	display: flex; align-items: center; justify-content: center;
	min-height: 46px;
	background: var(--tt-accent);
	color: var(--tt-white) !important;
	font-size: 14px; font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s;
}
.tt-contact-btn:hover { background: var(--tt-accent-dark); }
.tt-contact-meta { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.tt-contact-meta li { padding: 6px 0; }

/* ============================================================ 5. SMALL FIXES */
/* text wordmark until a real logo is uploaded (inc/branding.php) */
.traveltour-logo .tt-logo-img { width: auto; height: 52px; max-width: none; }   /* scripts/brand.py logo (2× file) */
@media (max-width: 999px) { .traveltour-logo .tt-logo-img { height: 40px; } }
/* main menu in sentence case, as written in data/site.yaml (client 2026-12-02) */
.traveltour-navigation .sf-menu > li > a { text-transform: none; letter-spacing: 0; font-size: 15px; }
.tt-wordmark { display: inline-block; color: var(--tt-heading); font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
/* itinerary: per-day transport / meals / accommodation footer (scripts/tours.py) */
.tt-day-meta { margin-top: 12px; padding: 12px 16px; background: var(--tt-soft); border-left: 3px solid var(--tt-accent); font-size: 14px; line-height: 1.7; }
/* itinerary day titles: readable size */
.gdlr-core-toggle-box-item-title { font-size: 17px !important; line-height: 1.4 !important; }
.gdlr-core-toggle-box-item-content, .gdlr-core-toggle-box-item-content p { font-size: 15px; line-height: 1.75; }
/* heading icons sit on the text line */
.gdlr-core-title-item-title:has(.gdlr-core-title-item-left-icon) { display: flex; align-items: center; gap: 12px; }
.gdlr-core-title-item-left-icon { display: inline-flex; margin: 0 !important; line-height: 1 !important; }
/* wishlist needs user accounts (enquiry-only site) */
.tourmaster-tour-booking-bar-wrap .tourmaster-save-wish-list { display: none !important; }
/* card without a photo: keep the badge from covering the title */
.tourmaster-tour-grid:not(:has(.tourmaster-tour-thumbnail)) .tourmaster-tour-content-wrap { padding-top: 84px; }
.tt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================================ 6. FOCUS & A11Y */
/* fields: soft accent ring instead of the browser outline (also on mouse click) */
input:not([type=checkbox]):not([type=radio]):not([type=submit]):focus, textarea:focus, select:focus, .tt-select-btn:focus {
	outline: none !important;
	border-color: var(--tt-accent) !important;
	box-shadow: 0 0 0 3px rgba(180, 88, 31, .14) !important;
}
/* links & buttons: ring only for keyboard users */
a:focus-visible, button:focus-visible, input[type=submit]:focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible {
	outline: 2px solid var(--tt-accent) !important; outline-offset: 3px; border-radius: 2px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ============================================================ 7. MEGA MENU PROMO COLUMN (data/site.yaml → menu) */
.tt-mega-promo img { display: block; width: 100%; height: auto; margin-bottom: 12px; }
.tt-mega-promo p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; text-transform: none; letter-spacing: 0; }
.tt-mega-cta { display: inline-block; padding: 10px 18px; background: var(--tt-accent); color: var(--tt-white) !important; font-size: 13px; font-weight: 600; }
.tt-mega-cta:hover { background: var(--tt-accent-dark); }

/* ============================================================ 8. FOOTER WIDGETS (scripts/pages.py → footer_widgets) */
.tt-footer-links { margin: 0; padding: 0; list-style: none; }
.tt-footer-links li { padding: 5px 0; }
.tt-footer-legal { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; opacity: .85; }
.tt-footer-legal li { padding: 1px 0; }

/* ============================================================ 9. LIGHT SUB-MENUS (colours from scripts/theme.py) */
.traveltour-navigation .sf-menu > li > .sub-menu,
.traveltour-navigation .sf-menu > .traveltour-mega-menu .sf-mega { box-shadow: 0 12px 30px rgba(0, 0, 0, .10); border-top: 2px solid var(--tt-accent); }
.traveltour-navigation .sf-menu > li > .sub-menu .sub-menu { box-shadow: 0 12px 30px rgba(0, 0, 0, .10); }
.tt-mega-promo p { color: var(--tt-text); }
/* one line only: the panel's accent top border. The theme's sliding underline (grey bar + tick) sits on the
   nav's bottom edge, i.e. right on top of that border → hide it while a drop-down item is hovered */
.traveltour-navigation .traveltour-navigation-slide-bar { transition: opacity .15s; }
.traveltour-navigation:has(.sf-menu > li.menu-item-has-children:hover) .traveltour-navigation-slide-bar,
.traveltour-navigation:has(.sf-menu > li.sfHover) .traveltour-navigation-slide-bar { opacity: 0; }

/* header account link (inc/login.php → traveltour_custom_main_menu_right) */
.traveltour-main-menu-right-wrap .tt-account-link {
	float: left; display: flex; align-items: center; gap: 7px; margin-left: 22px; line-height: 25px;
	font-size: 15px; font-weight: 500; color: var(--tt-heading, #1e354c);
}
.traveltour-main-menu-right-wrap .tt-account-link i { font-size: 15px; }
.traveltour-main-menu-right-wrap .tt-account-link:hover { color: var(--tt-accent); }
.traveltour-main-menu-right-wrap .tt-account-link span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-account-item i { margin-right: 6px; }

/* tour carousels ("navigation-outer"): Tour Master puts the arrows 370px outside the cards (off-screen up to
   ~1900px wide) and shows a grey 38×6px bar under them on hover → arrows 60px from the cards (slider has -300px side margins; cards start 280px in), accent on hover */
.tourmaster-tour-item .gdlr-core-flexslider[data-nav="navigation-outer"] .flex-direction-nav li a i::after { display: none; }
.tourmaster-tour-item .gdlr-core-flexslider.flexslider[data-nav="navigation-outer"] .flex-direction-nav li.flex-nav-prev, .tourmaster-tour-item .gdlr-core-flexslider.flexslider[data-nav="navigation-outer"] .flex-direction-nav li.flex-nav-prev:hover { left: 220px; right: auto; padding: 0; }
.tourmaster-tour-item .gdlr-core-flexslider.flexslider[data-nav="navigation-outer"] .flex-direction-nav li.flex-nav-next, .tourmaster-tour-item .gdlr-core-flexslider.flexslider[data-nav="navigation-outer"] .flex-direction-nav li.flex-nav-next:hover { right: 220px; left: auto; padding: 0; }
.tourmaster-tour-item .gdlr-core-flexslider[data-nav="navigation-outer"] .flex-direction-nav li a { display: block; width: 40px; text-align: center; transition: color .2s, transform .2s; }
.tourmaster-tour-item .gdlr-core-flexslider[data-nav="navigation-outer"] .flex-direction-nav li a:hover, .tourmaster-tour-item .gdlr-core-flexslider[data-nav="navigation-outer"] .flex-direction-nav li a:hover i { color: var(--tt-accent); }
.tourmaster-tour-item .gdlr-core-flexslider[data-nav="navigation-outer"] .flex-direction-nav li.flex-nav-prev a:hover { transform: translateX(-4px); }
.tourmaster-tour-item .gdlr-core-flexslider[data-nav="navigation-outer"] .flex-direction-nav li.flex-nav-next a:hover { transform: translateX(4px); }
@media (max-width: 1379px) { .tourmaster-tour-item .gdlr-core-flexslider.flexslider[data-nav="navigation-outer"] .flex-direction-nav { display: none; } }

/* ============================================================ 10. COOKIE NOTICE (theme's GoodLayers privacy box – items in data/site.yaml → cookies) */
.gdlr-core-privacy-box-wrap.gdlr-core-pos-bottom-left {
	left: 24px !important; bottom: 24px !important; width: 400px; max-width: calc(100vw - 32px);
	padding: 24px 24px 20px !important;
	background: var(--tt-white) !important; color: var(--tt-text) !important;
	border-top: 3px solid var(--tt-accent); border-radius: 4px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .16) !important;
	font-size: 14px; line-height: 1.65;
}
.gdlr-core-privacy-box-wrap .gdlr-core-privacy-box-text { color: var(--tt-text) !important; margin-bottom: 16px; }
.gdlr-core-privacy-box-wrap .gdlr-core-privacy-box-text a { color: var(--tt-accent-dark) !important; text-decoration: underline; text-underline-offset: 3px; }
.gdlr-core-privacy-box-wrap .gdlr-core-privacy-box-action { display: flex; align-items: center; gap: 18px; }
.gdlr-core-body .gdlr-core-privacy-box-wrap .gdlr-core-privacy-box-button {
	display: inline-flex; align-items: center; height: 44px; margin: 0 !important; padding: 0 26px !important;
	background: var(--tt-accent) !important; color: var(--tt-white) !important; border-radius: 3px;
	font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0;
}
.gdlr-core-body .gdlr-core-privacy-box-wrap .gdlr-core-privacy-box-button:hover { background: var(--tt-accent-dark) !important; }
.gdlr-core-privacy-box-wrap .gdlr-core-privacy-box-action .gdlr-core-privacy-box-lb { color: var(--tt-heading) !important; font-size: 14px; font-weight: 600; }
@media (max-width: 767px) { .gdlr-core-privacy-box-wrap.gdlr-core-pos-bottom-left { left: 16px !important; bottom: 16px !important; } }

/* ============================================================ 11. SINGLE TOUR LAYOUT & FORMS */
/* more air between the tour content and the booking column (Tour Master default 430px = ~45px gap) */
@media (min-width: 1200px) {
	.single-tour .tourmaster-with-sidebar .gdlr-core-container,
	.single-tour .tourmaster-with-sidebar .tourmaster-single-related-tour-container { padding-right: 470px; }
}
/* booking box: fields a little taller, labels sentence case */
.tourmaster-tour-booking-bar-wrap .tourmaster-tour-booking-submit input[type=submit],
.tourmaster-tour-booking-bar-wrap .tourmaster-button { text-transform: none; letter-spacing: .2px; font-size: 15px; }
/* checkboxes & radios: square accent control instead of the OS widget */
.traveltour-body input[type=checkbox]:not(.gdlr-core-gdpr-form-checkbox),
.traveltour-body input[type=radio] {
	-webkit-appearance: none; appearance: none;
	display: inline-grid; place-content: center; flex: none;
	width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px;
	background: var(--tt-white); border: 1.5px solid #c9c9c9; border-radius: 3px;
	cursor: pointer; transition: background-color .15s, border-color .15s;
}
.traveltour-body input[type=radio] { border-radius: 50%; }
.traveltour-body input[type=checkbox]:not(.gdlr-core-gdpr-form-checkbox):checked,
.traveltour-body input[type=radio]:checked { background: var(--tt-accent); border-color: var(--tt-accent); }
.traveltour-body input[type=checkbox]:not(.gdlr-core-gdpr-form-checkbox):checked::after {
	content: ""; width: 5px; height: 9px; margin-top: -2px;
	border: solid var(--tt-white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.traveltour-body input[type=radio]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tt-white); }
/* date picker (jQuery UI, used by Tour Master): card like the sub-menus, no native month/year boxes */
#ui-datepicker-div.ui-datepicker {
	padding: 14px 14px 10px; background: var(--tt-white); border: 0; border-top: 2px solid var(--tt-accent);
	border-radius: 0 0 4px 4px; box-shadow: 0 14px 36px rgba(0, 0, 0, .14); font-family: inherit;
}
#ui-datepicker-div .ui-datepicker-header { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 0 8px; background: none; border: 0; }
#ui-datepicker-div .ui-datepicker-title { display: flex; gap: 4px; margin: 0; }
#ui-datepicker-div .ui-datepicker-title select {
	-webkit-appearance: none; appearance: none; width: auto; height: 34px; margin: 0; padding: 0 22px 0 10px;
	border: 1px solid transparent; border-radius: 3px; cursor: pointer;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23383838'/%3E%3C/svg%3E") no-repeat right 8px center;
	color: var(--tt-heading); font-size: 15px; font-weight: 600;
}
#ui-datepicker-div .ui-datepicker-title select:hover { background-color: var(--tt-soft); }
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next { border-radius: 50%; cursor: pointer; }
#ui-datepicker-div .ui-datepicker-prev:hover, #ui-datepicker-div .ui-datepicker-next:hover { background: var(--tt-soft); }
#ui-datepicker-div th { color: var(--tt-text); font-size: 12px; font-weight: 600; }
/* booking box rows clip overflow (clearfix) → custom dropdown lists were cut off */
.tourmaster-tour-booking-bar-wrap .tourmaster-tour-booking-people-input,
.tourmaster-tour-booking-bar-wrap .tourmaster-tour-booking-people,
.tourmaster-tour-booking-bar-wrap .tourmaster-tour-booking-room-input { overflow: visible; display: flow-root; }
.tourmaster-tour-booking-bar-wrap .tt-select-list { z-index: 120; }
/* booking form rows (.tourmaster-tail) clip overflow → the custom list (Country, Title…) opened invisibly behind the next field (client bug 2026-12-02). flow-root keeps the floats contained without clipping. */
.tourmaster-form-field .tourmaster-tail:has(.tt-select) { overflow: visible; display: flow-root; }

/* ============================================================ 12. SIGN-IN (inc/login.php, assets/js/tt-login.js) */
.tt-login { width: 100%; max-width: 400px; }
.tt-login-title { margin: 0 0 8px; color: var(--tt-heading); font-size: 26px; font-weight: 700; line-height: 1.25; }
.tt-login-lead { margin: 0 0 26px; color: var(--tt-text); font-size: 15px; line-height: 1.6; }
.tt-login-google { min-height: 44px; display: flex; justify-content: center; }
.tt-login-or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--tt-text); font-size: 13px; }
.tt-login-or::before, .tt-login-or::after { content: ""; flex: 1; height: 1px; background: var(--tt-border); }
.tt-login-step { display: none; margin: 0; }
.tt-login-step.is-active { display: block; }
.tt-login-label { display: block; margin: 0 0 6px; color: var(--tt-heading); font-size: 14px; font-weight: 600; }
.tt-login .tt-login-input {
	display: block; box-sizing: border-box; width: 100%; height: 50px; margin: 0 0 12px; padding: 0 16px;
	background: var(--tt-white); border: 1px solid var(--tt-border); border-radius: 3px;
	color: var(--tt-heading); font-size: 16px;
}
.tt-login .tt-login-otp { font-size: 24px; font-weight: 700; letter-spacing: 10px; text-align: center; }
.tt-login .tt-login-btn {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin: 0;
	background: var(--tt-accent) !important; color: var(--tt-white) !important; border: 0; border-radius: 3px;
	font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background-color .2s;
}
.tt-login .tt-login-btn:hover { background: var(--tt-accent-dark) !important; }
.tt-login .tt-login-btn.is-busy { opacity: .7; cursor: progress; }
.tt-login-sent { margin: 0 0 16px; color: var(--tt-text); font-size: 14px; }
.tt-login-sent strong { color: var(--tt-heading); word-break: break-all; }
.tt-login-links { display: flex; justify-content: space-between; margin-top: 12px; }
.tt-login .tt-login-link {
	padding: 4px 0; margin: 0; background: none !important; border: 0; box-shadow: none;
	color: var(--tt-accent-dark) !important; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tt-login .tt-login-link:disabled { color: var(--tt-text) !important; cursor: default; font-weight: 400; }
.tt-login-msg { min-height: 22px; margin: 12px 0 0; color: #a33a12; font-size: 14px; }
.tt-login-msg.is-good { color: #2f7a3e; }
.tt-login-fine { margin: 6px 0 0; color: var(--tt-text); font-size: 12px; }
/* page: photo left, card right */
.tt-login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 620px; background: var(--tt-white); }
.tt-login-page-media { background: #2b2b2b center / cover no-repeat; }
.tt-login-page-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 70px 8vw 70px 70px; }
.tt-login-help { max-width: 400px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--tt-border); color: var(--tt-text); font-size: 14px; }
@media (max-width: 900px) {
	.tt-login-page { grid-template-columns: 1fr; min-height: 0; }
	.tt-login-page-media { height: 180px; }
	.tt-login-page-panel { padding: 36px 20px 50px; align-items: stretch; }
	.tt-login { max-width: none; }
}
/* booking pop-up: card replaces the password form; account is created by the code, so hide "Sign up" */
.tt-login-popup-title { margin: 0 0 18px; color: var(--tt-heading); font-size: 18px; font-weight: 700; }
.tt-login-swapped .tourmaster-login2-right > .tourmaster-login2-right-title:first-child,
.tt-login-swapped .tourmaster-login2-right-content { display: none; }
.tourmaster-login-form2-wrap.tt-login-swapped { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; }
.tt-login-swapped .tt-login-popup { padding-right: 36px; }
.tt-login-swapped .tt-login-popup-title { font-size: 20px !important; line-height: 1.3; }
.tt-login-swapped .tourmaster-login2-right {
	float: none; width: auto; margin: 0; padding: 0 0 0 36px; border-left: 1px solid var(--tt-border);
	display: flex; flex-direction: column; justify-content: center;
}
.tt-login-swapped .tourmaster-login2-right .tourmaster-login2-right-title { margin: 0 0 8px; font-size: 18px !important; text-transform: none; letter-spacing: 0; }
.tt-login-swapped .tourmaster-login2-right .tourmaster-login2-right-title::after { content: "Book now and get the confirmation by e-mail – you can make an account later."; display: block; margin-top: 8px; color: var(--tt-text); font-size: 14px; font-weight: 400; line-height: 1.6; }
.tt-login-swapped .tourmaster-continue-button { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 10px; background: var(--tt-white) !important; color: var(--tt-heading) !important; border: 1px solid #c9c9c9; border-radius: 3px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.tt-login-swapped .tourmaster-continue-button:hover { border-color: var(--tt-heading); }
@media (max-width: 767px) {
	.tourmaster-login-form2-wrap.tt-login-swapped { grid-template-columns: 1fr; }
	.tt-login-swapped .tt-login-popup { padding: 0 0 24px; }
	.tt-login-swapped .tourmaster-login2-right { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--tt-border); }
}
/* top bar has no content for phones (contact is in the menu/footer); theme's own mobile toggle doesn't hide it */
@media (max-width: 767px) { .traveltour-top-bar { display: none !important; } }

/* ============================================================ 13. TOUR CARDS WITH A PRICE BAR (/tours/, categories, search, related)
   Tour Master's "grid-with-frame" only draws the frame when the element sets a shadow (the homepage carousel
   does, inline). Without it the grey price bar floats between two rows → same card frame everywhere,
   price bar closes the card. */
.tourmaster-tour-grid.tourmaster-tour-frame .tourmaster-tour-grid-inner {
	background: var(--tt-white); border-radius: 3px; overflow: hidden;
	box-shadow: 0 0 23px rgba(10, 10, 10, .08);
}
.tourmaster-tour-grid.tourmaster-price-bottom-bar .tourmaster-tour-price-bottom-wrap {
	background: #f7f4f0; border-top: 1px solid #ece6df;
}
