/* ============================================================
 * Iconic Travel — User UX layer
 * Mobile nav, quick search, quick book, breadcrumbs, back-to-top,
 * cookie banner, currency switcher, recently-viewed.
 * ============================================================ */

/* ---------- Common helpers ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* ============================================================
 * Mobile bottom navigation
 * ============================================================ */
.mobile-nav {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	height: 64px;
	background: var(--bg, #fff);
	border-top: 1px solid var(--border, #E6E0D0);
	box-shadow: 0 -4px 18px rgba(10, 37, 64, 0.08);
	z-index: 999;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 4px 0;
	font-family: inherit;
}

.mobile-nav__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--text-muted, #5A6B7A);
	font-size: 11px;
	font-weight: 500;
	padding: 6px 8px;
	background: transparent;
	border: 0;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.mobile-nav__item svg {
	width: 24px; height: 24px;
	transition: transform 0.2s ease;
}
.mobile-nav__item:hover,
.mobile-nav__item:focus-visible {
	color: var(--primary, #0A2540);
	outline: none;
}
.mobile-nav__item.is-active {
	color: var(--primary, #0A2540);
}
.mobile-nav__item.is-active svg {
	transform: scale(1.1);
}
.mobile-nav__label { line-height: 1; }

.mobile-nav__item--center {
	position: relative;
	top: -16px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--accent, #D4A24C);
	color: #fff;
	box-shadow: 0 6px 16px rgba(212, 162, 76, 0.4);
	flex: 0 0 56px;
	padding: 0;
}
.mobile-nav__item--center svg {
	width: 26px; height: 26px;
	stroke: #fff;
}
.mobile-nav__item--center:hover,
.mobile-nav__item--center:focus-visible {
	color: #fff;
	transform: translateY(-2px);
}

@media (min-width: 901px) {
	.mobile-nav { display: none; }
}
@media (max-width: 900px) {
	body { padding-bottom: 64px; }
}

/* Mobile "More" drawer */
.mobile-more-drawer {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	justify-content: flex-end;
}
.mobile-more-drawer[hidden] { display: none; }
.mobile-more-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 37, 64, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.mobile-more-drawer__panel {
	position: relative;
	width: min(85vw, 340px);
	background: var(--bg, #fff);
	box-shadow: -8px 0 24px rgba(10, 37, 64, 0.18);
	padding: 24px 20px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.28s ease;
}
.mobile-more-drawer.is-open .mobile-more-drawer__panel { transform: translateX(0); }
.mobile-more-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.mobile-more-drawer__title {
	font-family: 'Fraunces', serif;
	font-size: 1.25rem;
	color: var(--primary, #0A2540);
	margin: 0;
}
.mobile-more-drawer__close {
	background: var(--bg-soft, #F7F4ED);
	border: 0;
	border-radius: 50%;
	width: 32px; height: 32px;
	font-size: 1.5rem; line-height: 1;
	color: var(--text, #0A1929);
	cursor: pointer;
}
.mobile-more-drawer__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-direction: column;
	gap: 2px;
}
.mobile-more-drawer__list a {
	display: block;
	padding: 12px 14px;
	border-radius: 8px;
	color: var(--text, #0A1929);
	text-decoration: none;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}
.mobile-more-drawer__list a:hover,
.mobile-more-drawer__list a:focus-visible {
	background: var(--bg-soft, #F7F4ED);
	color: var(--primary, #0A2540);
	outline: none;
}

/* ============================================================
 * Quick search overlay
 * ============================================================ */
.quick-search {
	position: fixed;
	inset: 0;
	background: rgba(10, 37, 64, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 10000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 10vh 16px 16px;
	opacity: 0;
	transition: opacity 0.22s ease;
}
.quick-search[hidden] { display: none; }
.quick-search.is-open { opacity: 1; }

.quick-search__backdrop {
	position: absolute;
	inset: 0;
	cursor: pointer;
}
.quick-search__card {
	position: relative;
	max-width: 600px;
	width: calc(100% - 32px);
	background: var(--bg, #fff);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 24px 60px rgba(10, 37, 64, 0.35);
	transform: translateY(-12px);
	transition: transform 0.22s ease;
	max-height: 80vh;
	overflow-y: auto;
}
.quick-search.is-open .quick-search__card { transform: translateY(0); }

.quick-search__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.quick-search__title {
	font-family: 'Fraunces', serif;
	font-size: 1.35rem;
	color: var(--primary, #0A2540);
	margin: 0;
}
.quick-search__close {
	background: var(--bg-soft, #F7F4ED);
	border: 0;
	border-radius: 50%;
	width: 32px; height: 32px;
	font-size: 1.5rem; line-height: 1;
	color: var(--text, #0A1929);
	cursor: pointer;
}
.quick-search__close:hover { background: var(--accent, #D4A24C); color: #fff; }

.quick-search__form { display: flex; flex-direction: column; gap: 16px; }

.quick-search__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.quick-search__icon {
	position: absolute;
	left: 14px;
	color: var(--text-muted, #5A6B7A);
	pointer-events: none;
}
.quick-search__input {
	width: 100%;
	font-size: 1.15rem;
	padding: 14px 16px 14px 44px;
	border: 2px solid var(--border, #E6E0D0);
	border-radius: 10px;
	background: var(--bg, #fff);
	color: var(--text, #0A1929);
	font-family: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.quick-search__input:focus {
	outline: none;
	border-color: var(--accent, #D4A24C);
	box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.15);
}

.quick-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.quick-search__chip {
	padding: 6px 14px;
	border: 1px solid var(--border, #E6E0D0);
	background: var(--bg, #fff);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted, #5A6B7A);
	cursor: pointer;
	font-family: inherit;
	transition: all 0.18s ease;
}
.quick-search__chip:hover { border-color: var(--primary, #0A2540); color: var(--primary, #0A2540); }
.quick-search__chip.is-active {
	background: var(--primary, #0A2540);
	color: #fff;
	border-color: var(--primary, #0A2540);
}

.quick-search__section { display: flex; flex-direction: column; gap: 6px; }
.quick-search__subhead {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted, #5A6B7A);
	margin: 0 0 4px;
}
.quick-search__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-direction: column;
	gap: 2px;
	max-height: 320px;
	overflow-y: auto;
}
.quick-search__suggestion,
.quick-search__recent-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--text, #0A1929);
	font-size: 0.95rem;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease;
}
.quick-search__suggestion:hover,
.quick-search__recent-item:hover,
.quick-search__suggestion:focus-visible {
	background: var(--bg-soft, #F7F4ED);
	outline: none;
}
.quick-search__suggestion svg { color: var(--accent, #D4A24C); flex-shrink: 0; }
.quick-search__suggestion[hidden] { display: none; }

.quick-search__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}
.quick-search__submit { min-width: 140px; }
.quick-search__hint { color: var(--text-muted, #5A6B7A); font-size: 0.78rem; }
.quick-search__hint kbd {
	background: var(--bg-soft, #F7F4ED);
	border: 1px solid var(--border, #E6E0D0);
	border-radius: 4px;
	padding: 2px 6px;
	font-family: inherit;
	font-size: 0.72rem;
}

body.qs-open { overflow: hidden; }

/* Header nav search button */
.nav-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 8px;
	border: 0;
	background: transparent;
	color: var(--text, #0A1929);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.nav-search-btn:hover,
.nav-search-btn:focus-visible {
	background: var(--bg-soft, #F7F4ED);
	color: var(--primary, #0A2540);
	outline: none;
}

/* ============================================================
 * Quick book widget
 * ============================================================ */
.quick-book-widget {
	position: fixed;
	bottom: 180px;
	right: 24px;
	z-index: 998;
}
.quick-book-widget__pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 22px 0 16px;
	background: linear-gradient(135deg, #E8BD6E 0%, #D4A24C 55%, #B68829 100%);
	color: #0A2540;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow:
		0 12px 28px rgba(182, 136, 41, 0.42),
		0 2px 6px rgba(10, 37, 64, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
	animation: qbPulse 3.6s ease-in-out infinite;
	transition: transform 0.25s cubic-bezier(.2,.8,.2,1),
				box-shadow 0.25s ease,
				filter 0.25s ease;
	overflow: hidden;
	isolation: isolate;
}
.quick-book-widget__pill::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
	transform: translateX(-120%);
	transition: transform 0.7s ease;
	pointer-events: none;
	z-index: 1;
}
.quick-book-widget__pill:hover {
	transform: translateY(-2px);
	box-shadow:
		0 16px 36px rgba(182, 136, 41, 0.55),
		0 4px 10px rgba(10, 37, 64, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
	filter: saturate(1.05);
}
.quick-book-widget__pill:hover::before { transform: translateX(120%); }
.quick-book-widget__pill:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, 0.85),
		0 0 0 6px rgba(212, 162, 76, 0.6),
		0 12px 28px rgba(182, 136, 41, 0.42);
}
.quick-book-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.38);
	color: #0A2540;
	font-size: 0.95rem;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	transition: transform 0.4s ease;
	position: relative;
	z-index: 2;
}
.quick-book-widget__pill:hover .quick-book-widget__icon {
	transform: rotate(-12deg) scale(1.08);
}
.quick-book-widget__label { position: relative; z-index: 2; white-space: nowrap; }
@keyframes qbPulse {
	0%, 100% {
		box-shadow:
			0 12px 28px rgba(182, 136, 41, 0.42),
			0 0 0 0 rgba(212, 162, 76, 0.55),
			inset 0 1px 0 rgba(255, 255, 255, 0.45);
	}
	60% {
		box-shadow:
			0 12px 28px rgba(182, 136, 41, 0.30),
			0 0 0 14px rgba(212, 162, 76, 0),
			inset 0 1px 0 rgba(255, 255, 255, 0.45);
	}
}

.quick-book-widget__panel {
	width: 320px;
	background: var(--bg, #fff);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 24px 60px rgba(10, 37, 64, 0.25);
	border: 1px solid var(--border, #E6E0D0);
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translateY(8px);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}
.quick-book-widget[data-state="expanded"] .quick-book-widget__panel {
	opacity: 1;
	transform: translateY(-72px);
	pointer-events: auto;
}
.quick-book-widget[data-state="expanded"] .quick-book-widget__pill { display: none; }

.quick-book-widget__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}
.quick-book-widget__title {
	font-family: 'Fraunces', serif;
	font-size: 1.1rem;
	color: var(--primary, #0A2540);
	margin: 0;
}
.quick-book-widget__close {
	background: var(--bg-soft, #F7F4ED);
	border: 0;
	border-radius: 50%;
	width: 28px; height: 28px;
	font-size: 1.3rem; line-height: 1;
	cursor: pointer;
	color: var(--text, #0A1929);
}

.quick-book-widget__tabs {
	display: flex;
	gap: 4px;
	background: var(--bg-soft, #F7F4ED);
	padding: 4px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.quick-book-widget__tab {
	flex: 1;
	padding: 7px 10px;
	background: transparent;
	border: 0;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-muted, #5A6B7A);
	cursor: pointer;
	font-family: inherit;
	transition: background 0.18s ease, color 0.18s ease;
}
.quick-book-widget__tab.is-active {
	background: var(--primary, #0A2540);
	color: #fff;
}

.quick-book-widget__pane {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}
.quick-book-widget__pane[hidden] { display: none; }
.quick-book-widget__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.quick-book-widget__field span {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-muted, #5A6B7A);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.quick-book-widget__field input {
	padding: 9px 12px;
	border: 1px solid var(--border, #E6E0D0);
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	background: var(--bg, #fff);
	color: var(--text, #0A1929);
}
.quick-book-widget__field input:focus {
	outline: none;
	border-color: var(--accent, #D4A24C);
	box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.18);
}
.quick-book-widget__submit { width: 100%; }
.quick-book-widget__note {
	font-size: 0.72rem;
	color: var(--text-muted, #5A6B7A);
	text-align: center;
	margin: 8px 0 0;
}

@media (max-width: 900px) {
	.quick-book-widget { display: none; }
}

/* ============================================================
 * Breadcrumbs
 * ============================================================ */
.iconic-breadcrumbs {
	background: var(--bg-soft, #F7F4ED);
	border-bottom: 1px solid var(--border, #E6E0D0);
}
.iconic-breadcrumbs__list {
	list-style: none;
	margin: 0; padding: 12px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--text-muted, #5A6B7A);
}
.iconic-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.iconic-breadcrumbs__item a {
	color: var(--text-muted, #5A6B7A);
	text-decoration: none;
	transition: color 0.18s ease;
}
.iconic-breadcrumbs__item a:hover {
	color: var(--primary, #0A2540);
	text-decoration: underline;
}
.iconic-breadcrumbs__item.is-current span {
	color: var(--primary, #0A2540);
	font-weight: 600;
}
.iconic-breadcrumbs__sep {
	color: var(--border, #E6E0D0);
	font-size: 1rem;
	line-height: 1;
}

/* ============================================================
 * Back to top
 * ============================================================ */
.back-to-top {
	position: fixed;
	bottom: 24px;
	left: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary, #0A2540);
	color: #fff;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(10, 37, 64, 0.3);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.back-to-top[hidden] { display: none; }
.back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--accent, #D4A24C);
	color: var(--primary, #0A2540);
	transform: translateY(-2px) scale(1.05);
	outline: none;
}
@media (max-width: 900px) {
	.back-to-top { bottom: 84px; left: 16px; width: 42px; height: 42px; }
}

/* ============================================================
 * Cookie banner
 * ============================================================ */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	max-width: 640px;
	width: calc(100% - 32px);
	background: var(--primary, #0A2540);
	color: #fff;
	padding: 16px 20px;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 -8px 24px rgba(10, 37, 64, 0.35);
	z-index: 10001;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	justify-content: space-between;
	transition: transform 0.35s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-banner__text { flex: 1 1 320px; font-size: 0.88rem; line-height: 1.45; }
.cookie-banner__title {
	display: block;
	font-family: 'Fraunces', serif;
	font-size: 1rem;
	color: var(--accent, #D4A24C);
	margin-bottom: 2px;
}
.cookie-banner__msg { color: rgba(255, 255, 255, 0.85); }
.cookie-banner__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.cookie-banner__decline {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}
.cookie-banner__decline:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 600px) {
	.cookie-banner {
		padding: 14px 16px;
		bottom: 64px;
		border-radius: 12px;
		left: 16px;
		right: 16px;
		width: auto;
		max-width: none;
		transform: translateY(120%);
	}
	.cookie-banner.is-visible { transform: translateY(0); }
	.cookie-banner__actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
 * Currency switcher
 * ============================================================ */
.currency-switcher {
	position: relative;
	display: inline-block;
}
.currency-switcher__trigger {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}
.currency-switcher__trigger:hover,
.currency-switcher__trigger[aria-expanded="true"] {
	border-color: var(--accent, #D4A24C);
	background: rgba(212, 162, 76, 0.12);
}
.currency-switcher__caret {
	transition: transform 0.18s ease;
}
.currency-switcher__trigger[aria-expanded="true"] .currency-switcher__caret {
	transform: rotate(180deg);
}

.currency-switcher__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	list-style: none;
	margin: 0; padding: 6px 0;
	background: var(--bg, #fff);
	color: var(--text, #0A1929);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(10, 37, 64, 0.22);
	font-size: 0.85rem;
	z-index: 1001;
}
.currency-switcher__list[hidden] { display: none; }
.currency-switcher__option {
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.currency-switcher__option:hover,
.currency-switcher__option:focus-visible,
.currency-switcher__option.is-active {
	background: var(--bg-soft, #F7F4ED);
	outline: none;
}
.currency-switcher__option.is-active { color: var(--primary, #0A2540); font-weight: 700; }
.currency-switcher__code {
	font-weight: 700;
	color: var(--accent, #D4A24C);
	min-width: 38px;
}
.currency-switcher__name { color: var(--text-muted, #5A6B7A); font-size: 0.78rem; }

/* ============================================================
 * Recently viewed — Premium Travel Card
 * ============================================================ */
.recently-viewed {
	padding: 40px 0 48px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background:
		radial-gradient(800px 240px at 20% 0%, rgba(212, 162, 76, 0.10), transparent 70%),
		radial-gradient(700px 220px at 90% 100%, rgba(0, 102, 204, 0.10), transparent 70%),
		rgba(0, 0, 0, 0.18);
	color: #fff;
}
.recently-viewed[hidden] { display: none; }
.recently-viewed__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 22px;
	gap: 16px;
}
.recently-viewed__title {
	font-family: 'Fraunces', serif;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: var(--accent, #D4A24C);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.recently-viewed__title::before {
	content: '';
	width: 32px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent, #D4A24C));
	display: inline-block;
}
.recently-viewed__clear {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8rem;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.18s ease;
}
.recently-viewed__clear:hover { color: var(--accent, #D4A24C); }

.recently-viewed__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
@media (max-width: 1100px) {
	.recently-viewed__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 720px) {
	.recently-viewed__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 420px) {
	.recently-viewed__grid { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.recently-viewed__card {
	--rv-c1: #0f2944;
	--rv-c2: #1d4870;
	--rv-accent: #d4a24c;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 168px;
	border-radius: 14px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
				box-shadow 0.28s ease,
				border-color 0.22s ease;
	isolation: isolate;
}
.recently-viewed__card:hover,
.recently-viewed__card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(212, 162, 76, 0.25) inset;
	border-color: rgba(212, 162, 76, 0.45);
}
.recently-viewed__card:focus-visible {
	outline: 2px solid var(--rv-accent);
	outline-offset: 2px;
}

/* Type theming */
.recently-viewed__card--visa  { --rv-c1: #0c2c5c; --rv-c2: #1f5fb6; }
.recently-viewed__card--tour  { --rv-c1: #0d3b2a; --rv-c2: #1f8a5d; }
.recently-viewed__card--offer { --rv-c1: #5c1212; --rv-c2: #d6562c; }
.recently-viewed__card--page  { --rv-c1: #1a2540; --rv-c2: #3b4870; }

/* ---------- Media (top zone) ---------- */
.recently-viewed__card-media {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: linear-gradient(135deg, var(--rv-c1) 0%, var(--rv-c2) 100%);
	overflow: hidden;
}
.recently-viewed__card-media img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.recently-viewed__card:hover .recently-viewed__card-media img {
	transform: scale(1.06);
}

/* Decorative SVG — full when no image, faded watermark when image present */
.recently-viewed__card-icon {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 56px; height: 56px;
	color: rgba(255, 255, 255, 0.85);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.45s ease;
	pointer-events: none;
}
.recently-viewed__card-icon svg { width: 100%; height: 100%; }
.recently-viewed__card.is-imageless .recently-viewed__card-icon { opacity: 0.9; }
.recently-viewed__card:hover .recently-viewed__card-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

/* Subtle radial highlight inside the media when imageless */
.recently-viewed__card.is-imageless .recently-viewed__card-media::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(220px 120px at 80% 10%, rgba(255, 255, 255, 0.18), transparent 70%);
	pointer-events: none;
}

/* Gradient overlay — only visible when image is present */
.recently-viewed__card-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(6, 18, 32, 0.55) 0%, rgba(6, 18, 32, 0.05) 55%, transparent 100%);
	opacity: 1;
	transition: opacity 0.2s ease;
	pointer-events: none;
}
.recently-viewed__card.is-imageless .recently-viewed__card-overlay { opacity: 0; }

/* Type chip */
.recently-viewed__card-chip {
	position: absolute;
	top: 10px; left: 10px;
	padding: 3px 9px;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 999px;
	z-index: 2;
}

/* ---------- Body (bottom zone) ---------- */
.recently-viewed__card-body {
	flex: 0 0 auto;
	padding: 10px 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: linear-gradient(180deg, rgba(8, 18, 32, 0.0) 0%, rgba(8, 18, 32, 0.55) 60%, rgba(8, 18, 32, 0.78) 100%);
}
.recently-viewed__card-title {
	font-family: 'Fraunces', serif;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
}
.recently-viewed__card-title::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: -2px;
	height: 1.5px;
	background: var(--rv-accent);
	transition: right 0.3s ease;
}
.recently-viewed__card:hover .recently-viewed__card-title::after { right: 20%; }

.recently-viewed__card-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.65);
}
.recently-viewed__card-when {
	letter-spacing: 0.02em;
}
.recently-viewed__card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px; height: 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--rv-accent);
	transition: transform 0.25s ease, background 0.25s ease;
}
.recently-viewed__card:hover .recently-viewed__card-arrow {
	transform: translateX(3px);
	background: rgba(212, 162, 76, 0.18);
}

/* ============================================================
 * Reduced motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.quick-book-widget__pill { animation: none; }
	.mobile-nav__item,
	.mobile-nav__item svg,
	.quick-search,
	.quick-search__card,
	.back-to-top,
	.cookie-banner,
	.mobile-more-drawer__panel,
	.quick-book-widget__panel,
	.recently-viewed__card {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
	.quick-book-widget[data-state="expanded"] .quick-book-widget__panel {
		transform: translateY(-72px) !important;
	}
	.cookie-banner.is-visible { transform: translateX(-50%) translateY(0) !important; }
	@media (max-width: 600px) {
		.cookie-banner.is-visible { transform: translateY(0) !important; }
	}
}
