/* MPT Toolkit — Homepage UX & CRO Fixes (see modules/class-homepage-cro.php) */

/* #2 Mega menu: the theme's `.hp-nav__items ul { align-items:center }` also
   applies to the city list, centering short items and wrapping long ones. */
.hp-nav .hp-mega__sidebar ul { align-items: stretch; }
.hp-nav .hp-mega__sidebar a { display: block; text-align: left; white-space: nowrap; }
.hp-nav .hp-mega__layout { grid-template-columns: max-content minmax(0, 1fr); }

/* #2 Mobile menu: "Private City Tours" lists every city followed by its
   attractions, all in the same faded 14px style (opacity .75), so there was
   no visible grouping. Same links and order — cities become group headings,
   attractions sit indented beneath them, with readable contrast and
   comfortable tap targets. */
.hp-mobile-nav__sub { padding: 4px 4px 12px 12px; }
.hp-mobile-nav__sub ul { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.hp-mobile-nav__sub a {
	display: block;
	opacity: 1;
	padding: 9px 10px;
	border-radius: var(--r-sm, 8px);
	line-height: 1.35;
}
.hp-mobile-nav__sub a:not(.hp-mobile-nav__tile-link) {
	font-size: 15px;
	font-weight: 800;
	color: var(--mpt-ink, #252525);
}
.hp-mobile-nav__sub a.hp-mobile-nav__tile-link {
	font-size: 14px;
	font-weight: 500;
	color: #4a4a4a;
}

/* Collapsible city groups (built by assets/mobile-nav.js): all cities show
   first; each city's toggle reveals its tours. The city name still links to
   the city page. */
.mpt-mnav-city + .mpt-mnav-city { border-top: 1px solid rgba(37, 37, 37, .08); }
.mpt-mnav-row { display: flex; align-items: center; gap: 4px; }
.mpt-mnav-row > a { flex: 1; min-width: 0; padding-top: 12px; padding-bottom: 12px; }
.mpt-mnav-toggle {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--mpt-ink, #252525);
	cursor: pointer;
}
.mpt-mnav-toggle svg { transition: transform .2s ease; }
.mpt-mnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mpt-mnav-toggle[aria-expanded="true"],
.mpt-mnav-toggle:hover { background: var(--mpt-orange-soft, #fdeee7); color: var(--mpt-orange, #e0653c); }
.mpt-mnav-toggle:focus-visible { outline: 2px solid var(--mpt-orange, #e0653c); outline-offset: 1px; }
.mpt-mnav-tours { padding: 0 0 10px 14px !important; }
.mpt-mnav-tours[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .mpt-mnav-toggle svg { transition: none; } }
/* Close × was a ~19px tap target — enlarge the hit area, same look. */
.hp-mobile-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: -10px -10px -10px 0;
	border-radius: 50%;
}
.hp-mobile-nav__close:focus-visible { outline: 2px solid var(--mpt-orange, #e0653c); outline-offset: 2px; }
.hp-mobile-nav__sub a:hover,
.hp-mobile-nav__sub a:focus-visible { background: var(--mpt-orange-soft, #fdeee7); color: var(--mpt-orange, #e0653c); }

/* #3 Proof line under the hero search */
.mpt-hero-proof {
	list-style: none;
	margin: 18px auto 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.mpt-hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.mpt-hero-proof svg { color: var(--mpt-sand, #e8c98a); flex-shrink: 0; }

/* #4 Search inputs: readable prompts, visible focus, dark selected values.
   The theme's `.hp-hero__search-cell span` rule (10px caps, 55% opacity)
   also hit the value text — undo that for the value and label. */
.hp-hero__search--v3 .hp-hero__search-label {
	opacity: 1;
	color: #5f5f5f;
	transition: color .15s ease;
}
.hp-hero__search--v3 .hp-hero__search-value {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	opacity: 1;
	color: #1f1f1f;
	padding-right: 26px;
}
.hp-hero__search--v3 .hp-hero__search-value.is-placeholder {
	color: #4d4d4d;
	font-weight: 600;
}
.hp-hero__search--v3 .hp-hero__search-cell--picker {
	transition: box-shadow .15s ease, background-color .15s ease;
}
.hp-hero__search--v3 .hp-hero__search-trigger:focus { outline: none; }
.hp-hero__search--v3 .hp-hero__search-cell--picker:has(.hp-hero__search-trigger:focus-visible),
.hp-hero__search--v3 .hp-hero__search-cell--picker:has(.hp-hero__search-trigger[aria-expanded="true"]) {
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 0 0 2px var(--mpt-orange, #e0653c), 0 10px 26px -10px rgba(0, 0, 0, .35);
	z-index: 2;
}
.hp-hero__search--v3 .hp-hero__search-cell--picker:has(.hp-hero__search-trigger:focus-visible) .hp-hero__search-label,
.hp-hero__search--v3 .hp-hero__search-cell--picker:has(.hp-hero__search-trigger[aria-expanded="true"]) .hp-hero__search-label {
	color: var(--mpt-orange, #e0653c);
}
/* Fallback for browsers without :has() */
.hp-hero__search--v3 .hp-hero__search-trigger:focus-visible { outline: 2px solid var(--mpt-orange, #e0653c); outline-offset: 2px; border-radius: 999px; }
@supports selector(:has(*)) {
	.hp-hero__search--v3 .hp-hero__search-trigger:focus-visible { outline: none; }
}

.mpt-search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #ececec;
	color: #333;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}
.mpt-search-clear:hover { background: #e0e0e0; }
.mpt-search-clear:focus-visible { outline: 2px solid var(--mpt-orange, #e0653c); outline-offset: 2px; }
.mpt-search-clear[hidden] { display: none; }

/* #6 Interactive trust cards */
.hp-trust-strps__item.mpt-trust-card { padding: 0; cursor: pointer; }
.mpt-trust-card__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	height: 100%;
	padding: 24px 16px;
	background: none;
	border: 0;
	border-radius: 10px;
	font: inherit;
	color: inherit;
	text-align: center;
	cursor: pointer;
}
.mpt-trust-card__btn:focus-visible { outline: 2px solid var(--mpt-orange, #e0653c); outline-offset: 2px; }
.mpt-trust-card__more {
	font-size: 12px;
	font-weight: 700;
	color: var(--mpt-orange, #e0653c);
	margin-top: -6px;
}
.mpt-trust-card__more::after { content: " +"; }
.mpt-trust-card.is-active .mpt-trust-card__more::after { content: " −"; }
.hp-trust-strps__item.mpt-trust-card.is-active {
	background-color: #fff;
	box-shadow: 0 14px 36px -18px rgba(232, 122, 62, .22), 0 2px 10px -4px rgba(31, 31, 31, .08);
}
.mpt-trust-card.is-active .hp-trust-strps__icon {
	border-color: var(--mpt-orange, #e87a3e);
	background: #fff8f1;
}

.mpt-trust-panels { max-width: 720px; margin: 28px auto 0; }
.mpt-trust-panel {
	background: #fff;
	border-radius: 16px;
	padding: 26px 30px;
	box-shadow: 0 14px 36px -18px rgba(31, 31, 31, .25);
	text-align: left;
	animation: mpt-trust-in .25s ease-out;
}
.mpt-trust-panel__title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #1f1f1f; }
.mpt-trust-panel__text { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #3d3d3d; }
.mpt-trust-panel__link { font-size: 14px; font-weight: 700; color: var(--mpt-orange, #e0653c); text-decoration: none; }
.mpt-trust-panel__link:hover { text-decoration: underline; }
@keyframes mpt-trust-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* #7 Master CTA */
.mpt-trust-cta { text-align: center; margin-top: 44px; }

@media (max-width: 760px) {
	.mpt-trust-card__btn { padding: 18px 12px; }
	.mpt-trust-panel { padding: 22px 20px; }
	.mpt-hero-proof { font-size: 13px; gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.mpt-trust-panel { animation: none; }
}
