/* ==========================================================================
   MyPrivateTours — destination search suggestions + A–Z destinations (2026-11)
   ========================================================================== */

.mpt-suggest {
	position: relative;
}

.mpt-suggest--hero {
	margin: 0 0 14px;
}

.mpt-suggest__input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var(--mpt-beige, #E5E3D6);
	border-radius: var(--r-pill, 999px);
	font: inherit;
	font-size: 15px;
	color: var(--mpt-ink, #252525);
	background: #fff;
}

.mpt-suggest__input:focus {
	outline: 2px solid var(--mpt-orange, #E0653C);
	outline-offset: 1px;
	border-color: transparent;
}

.mpt-suggest__list {
	position: absolute;
	z-index: 60;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	min-width: 260px;
	max-height: min(60vh, 440px);
	overflow-y: auto;
	padding: 6px 0;
	background: #fff;
	border: 1px solid var(--mpt-beige, #E5E3D6);
	border-radius: var(--r-md, 12px);
	box-shadow: 0 12px 32px rgba(47, 20, 18, 0.14);
	text-align: left;
}

.mpt-suggest__group {
	padding: 10px 14px 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mpt-orange, #E0653C);
}

.mpt-suggest__item {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 8px 14px;
	color: var(--mpt-ink, #252525);
	text-decoration: none;
	cursor: pointer;
}

.mpt-suggest__item:hover,
.mpt-suggest__item.is-active {
	background: var(--mpt-orange-soft, #FDEEE7);
}

.mpt-suggest__name {
	font-size: 15px;
	line-height: 1.3;
}

.mpt-suggest__sub {
	font-size: 12.5px;
	color: #6b6b6b;
}

.mpt-suggest__empty {
	padding: 12px 14px;
	font-size: 14px;
	color: #6b6b6b;
}

.mpt-suggest__all {
	display: block;
	margin-top: 4px;
	padding: 10px 14px;
	border-top: 1px solid var(--mpt-beige, #E5E3D6);
	font-size: 14px;
	font-weight: 700;
	color: var(--mpt-maroon, #2F1412);
	text-decoration: none;
}

.mpt-suggest__all:hover {
	background: var(--mpt-off, #F8F8F8);
}

/* Sidebar: the existing search field keeps its look; only the list is added. */
.hp-filters__search .mpt-suggest__list {
	min-width: 100%;
}

/* --------------------------------------------------------------------------
   A–Z destinations page
   -------------------------------------------------------------------------- */

.mpt-az {
	max-width: var(--container-wide, 1280px);
	margin: 0 auto;
	padding: 48px 16px 72px;
}

.mpt-az__head {
	max-width: 720px;
	margin: 0 0 28px;
}

.mpt-az__title {
	margin: 0 0 8px;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
	color: var(--mpt-maroon, #2F1412);
}

.mpt-az__intro {
	margin: 0 0 20px;
	font-size: 17px;
	color: #4a4a4a;
}

.mpt-az__search {
	max-width: 520px;
}

.mpt-az__letters {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 32px;
	padding: 10px 0;
	background: var(--mpt-off, #F8F8F8);
	border-bottom: 1px solid var(--mpt-beige, #E5E3D6);
}

.mpt-az__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border-radius: var(--r-sm, 8px);
	font-weight: 700;
	color: var(--mpt-maroon, #2F1412);
	text-decoration: none;
}

.mpt-az__letter:hover,
.mpt-az__letter:focus-visible {
	background: var(--mpt-orange-soft, #FDEEE7);
	color: var(--mpt-orange, #E0653C);
}

.mpt-az__letter.is-empty {
	color: #b8b8b8;
	pointer-events: none;
}

.mpt-az__section {
	scroll-margin-top: 72px;
	margin: 0 0 36px;
}

.mpt-az__section-letter {
	margin: 0 0 14px;
	font-size: 28px;
	color: var(--mpt-orange, #E0653C);
}

.mpt-az__countries {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpt-az__country-name {
	display: inline-block;
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: var(--mpt-ink, #252525);
	text-decoration: none;
}

a.mpt-az__country-name:hover {
	color: var(--mpt-orange, #E0653C);
}

.mpt-az__count {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 400;
	color: #6b6b6b;
}

.mpt-az__cities {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 18px;
}

.mpt-az__cities li {
	break-inside: avoid;
	padding: 2px 0;
	font-size: 15px;
}

.mpt-az__cities a {
	color: #3c3c3c;
	text-decoration: none;
}

.mpt-az__cities a:hover {
	color: var(--mpt-orange, #E0653C);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.mpt-az { padding-top: 28px; }
	.mpt-az__cities { columns: 1; }
	.mpt-az__letter { min-width: 30px; height: 30px; }
}

/* --------------------------------------------------------------------------
   2026-12 (client): homepage hero — compact type-to-search city field.
   Suggestions appear only after typing; no full city list on click.
   -------------------------------------------------------------------------- */
.hp-hero__search-cell--type { position: relative; transition: box-shadow .15s ease, background-color .15s ease; }
.hp-hero__where-field {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 4px 22px 0;
}
.hp-hero__where-field svg { color: var(--mpt-orange, #e0653c); flex-shrink: 0; }
.hp-hero__search-cell .hp-hero__where-input {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: #1f1f1f;
	-webkit-appearance: none;
	appearance: none;
}
.hp-hero__search-cell .hp-hero__where-input::placeholder { color: #4d4d4d; opacity: 1; font-weight: 600; }
.hp-hero__search-cell .hp-hero__where-input:focus,
.hp-hero__search-cell .hp-hero__where-input:focus-visible { outline: none; }
.hp-hero__where-input::-webkit-search-cancel-button { cursor: pointer; }
.hp-hero__search--v3 .hp-hero__search-cell--type:focus-within {
	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--type:focus-within .hp-hero__search-label { color: var(--mpt-orange, #e0653c); }
.hp-hero__search-cell--type.is-invalid .hp-hero__where-input::placeholder { color: #d64545; }
@media (max-width: 760px) {
	.hp-hero__search--v3 .hp-hero__search-cell--type:focus-within { border-radius: 14px; }
}

/* The hero clips overflow, so its suggestion list floats on <body>. */
.mpt-suggest__list--floating {
	position: fixed;
	z-index: 10050;
	top: 0;
	left: 0;
	right: auto;
	min-width: 0;
}

/* 2026-12: wider city box on desktop so "Type your desired city name here" fits. */
@media (min-width: 681px) {
	.hp-hero__search.hp-hero__search--v3 { grid-template-columns: 1.4fr 1fr auto; }
}
.hp-hero__search-cell .hp-hero__where-input:focus::placeholder { font-size: 15px; font-weight: 500; color: #8a8a8a; }
/* The whole City box is clickable (see mpt-search.js) and shows a text cursor. */
.hp-hero__search--v3 .hp-hero__search-cell--type,
.hp-hero__search--v3 .hp-hero__search-cell--type .hp-hero__search-label { cursor: text; }
/* While City is focused, hide the thin divider before "When" so the orange
   border doesn't run into it. */
.hp-hero__search--v3 .hp-hero__search-cell--type:focus-within + .hp-hero__search-cell--picker { box-shadow: none; }
/* Phones: the city box is narrow, so the hint is smaller to fit in full. */
@media (max-width: 680px) {
	.hp-hero__search--v3 .hp-hero__where-field { padding-left: 16px; padding-right: 16px; }
	.hp-hero__search--v3 .hp-hero__search-label,
	.hp-hero__search--v3 .hp-hero__search-trigger { padding-left: 16px; padding-right: 16px; }
	.hp-hero__search-cell .hp-hero__where-input:focus::placeholder { font-size: 13px; }
}
@media (max-width: 370px) {
	.hp-hero__search-cell .hp-hero__where-input:focus::placeholder { font-size: 12px; }
}

/* 2026-12: homepage city list — icon · name + country · tour count. */
.mpt-suggest__list--floating {
	padding: 8px;
	border-radius: 16px;
	box-shadow: 0 18px 44px -12px rgba(47, 20, 18, 0.32);
	overscroll-behavior: contain;
}
.mpt-suggest__list--floating .mpt-suggest__group {
	position: sticky;
	top: -8px;
	z-index: 1;
	margin: 0 -8px;
	padding: 10px 18px 6px;
	background: #fff;
}
.mpt-suggest__item--rich {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
}
.mpt-suggest__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--mpt-orange-soft, #FDEEE7);
	color: var(--mpt-orange, #E0653C);
}
.mpt-suggest__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1 1 auto;
	min-width: 0;
}
.mpt-suggest__item--rich .mpt-suggest__name {
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.mpt-suggest__name mark {
	padding: 0;
	background: none;
	color: var(--mpt-orange, #E0653C);
	font-weight: 800;
}
.mpt-suggest__count {
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--mpt-off, #F5F3EE);
	font-size: 12px;
	font-weight: 600;
	color: #5a5a5a;
	white-space: nowrap;
}
.mpt-suggest__item--rich:hover .mpt-suggest__icon,
.mpt-suggest__item--rich.is-active .mpt-suggest__icon {
	background: var(--mpt-orange, #E0653C);
	color: #fff;
}
.mpt-suggest__list--floating .mpt-suggest__empty {
	padding: 18px 12px;
	text-align: center;
}
@media (max-width: 680px) {
	.mpt-suggest__item--rich { padding: 11px 8px; }
	.mpt-suggest__count { font-size: 11.5px; }
}

/* --------------------------------------------------------------------------
   2026-12 (client): search + dates bar above the results on the All Tours,
   city and collection pages (outside the Filters box), desktop and mobile.
   -------------------------------------------------------------------------- */
.hp-searchbar {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
	gap: 10px;
	align-items: end;
	margin: 0 0 24px;
	padding: 14px;
	background: #fff;
	border: 1px solid rgba(37, 37, 37, 0.08);
	border-radius: var(--r-md, 12px);
	box-shadow: 0 6px 20px -12px rgba(47, 20, 18, 0.25);
}
.hp-searchbar__field { min-width: 0; }
.hp-searchbar__label {
	display: block;
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mpt-ink-muted, #6b6b6b);
}
.hp-searchbar .hp-filters__search-input,
.hp-searchbar .hp-filters__when-trigger {
	min-height: 44px;
	font-size: 14px;
}
.hp-searchbar .hp-filters__search-input { padding-left: 38px; }
.hp-searchbar__submit {
	min-height: 44px;
	padding: 0 26px;
	white-space: nowrap;
}
@media (max-width: 760px) {
	.hp-searchbar {
		grid-template-columns: 1fr;
		padding: 12px;
	}
	.hp-searchbar__submit { width: 100%; }
}

/* 2026-12 QA: the mobile Filters badge showed "0" because display:inline-flex
   overrode the [hidden] attribute. */
.hp-filters__count[hidden] { display: none !important; }

/* 2026-12 QA: on tablets/phones the filters panel had no close (×) button —
   it lives in the header band, which is hidden everywhere. Show the band
   in the slide-in panel (desktop sidebar unchanged). */
@media (max-width: 1024px) {
	.hp-filters .hp-filters__brand {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 2;
		background: #fff;
	}
}

/* 2026-12 QA: filter headings are <legend>s, which sit on the group's top edge
   and ignore its padding — the first heading touched the box edge and the
   section dividers looked like underlines. Floating the legend makes it lay
   out like a normal heading (20px top space; dividers between sections). */
.hp-filters__group > legend.hp-filters__label { float: left; width: 100%; margin-bottom: 10px; } /* 10px: first option sits 15px below the heading, same as the gap between options */

/* 2026-12 QA: the site-wide :focus-visible outline (square, 4px radius, base.css)
   showed on the City box instead of its rounded orange pill. Use the same
   rounded pill for every focus state (mouse or keyboard), like "When". */
.hp-hero__search--v3 .hp-hero__search-cell--type:focus-visible,
.hp-hero__search--v3 .hp-hero__search-cell--type *:focus-visible { outline: none; }
.hp-hero__search--v3 .hp-hero__search-cell--type:focus-visible {
	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;
}
@media (max-width: 760px) {
	.hp-hero__search--v3 .hp-hero__search-cell--type:focus-visible { border-radius: 14px; }
}
