/* =====================================================================
 * OTA SELECT — pill, dock, toast, marquee tuning.
 * =================================================================== */

:root {
	--ota-select-accent: var(--theme-color, #1ca8cb);
	--ota-select-bg:     #ffffff;
	--ota-select-text:   #122c33;
	--ota-select-muted:  #5f6f75;
	--ota-select-border: #e2ebef;
	--ota-select-shadow: 0 18px 40px rgba(17, 61, 72, .14);
}

/* ---- SELECT/DETAILS pills on cards ---- */

.ota-en-card,
.swiper-slide > a,
.wpte-trips-slider .swiper-slide {
	position: relative;
}

/* Action stack — bottom of the media tile, fades in on hover */
.ota-card-actions {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 5;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .22s ease, transform .22s ease;
	pointer-events: none;
}

.ota-en-card:hover .ota-card-actions,
.ota-en-card:focus-within .ota-card-actions,
.swiper-slide:hover .ota-card-actions,
.swiper-slide:focus-within .ota-card-actions {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Persist Selected state visibly even when hover ends */
.ota-card-actions:has(.is-selected) {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ota-select-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 9px;
	background: rgba(255, 255, 255, .96);
	color: var(--ota-select-text);
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .2px;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 14px rgba(17, 61, 72, .22);
	transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
}

.ota-select-pill:hover {
	background: var(--ota-select-accent);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(28, 168, 203, .35);
}

.ota-select-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: var(--ota-select-accent);
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
}

.ota-select-pill--detail {
	background: rgba(17, 44, 51, .9);
	color: #fff;
	border-color: rgba(255, 255, 255, .14);
}

.ota-select-pill--detail .ota-select-pill__icon {
	background: rgba(255, 255, 255, .2);
}

.ota-select-pill--detail:hover {
	background: #112c33;
}

.ota-select-pill.is-selected {
	background: var(--ota-select-accent);
	color: #fff;
	border-color: var(--ota-select-accent);
	box-shadow: 0 8px 18px rgba(28, 168, 203, .35);
}

.ota-select-pill.is-selected .ota-select-pill__icon {
	background: #fff;
	color: var(--ota-select-accent);
}

/* ---- Cards: subtle lift on hover, smoother feel during manual scroll ---- */

.en-wpte-slider .swiper-slide,
.ota-en-card {
	transition: transform .28s ease, box-shadow .28s ease;
}

.ota-en-card:hover {
	transform: translateY(-4px);
}

.ota-en-card-media {
	overflow: hidden;
}

.ota-en-card-media img {
	transition: transform .6s ease;
}

.ota-en-card:hover .ota-en-card-media img {
	transform: scale(1.06);
}

/* ---- Toast ---- */

.ota-select-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 30px);
	z-index: 9999;
	padding: 12px 22px;
	background: #112a2f;
	color: #fff;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: transform .25s ease, opacity .25s ease;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.ota-select-toast.is-shown {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---- Floating dock ---- */

.ota-bucket-dock {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1500;
	font-family: inherit;
}

.ota-bucket-dock__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	background: var(--ota-select-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(28, 168, 203, .35);
	transition: transform .18s, box-shadow .18s;
}

.ota-bucket-dock__toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(28, 168, 203, .45);
}

.ota-bucket-dock__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: rgba(255, 255, 255, .22);
	border-radius: 50%;
	font-size: 13px;
}

.ota-bucket-dock__count {
	min-width: 22px;
	padding: 0 6px;
	background: #fff;
	color: var(--ota-select-accent);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
}

.ota-bucket-dock:not(.has-items) .ota-bucket-dock__count {
	display: none;
}

.ota-bucket-dock__label {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.ota-bucket-dock { right: 12px; bottom: 12px; }
	.ota-bucket-dock__label { display: none; }
}

.ota-bucket-dock__panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: min(360px, calc(100vw - 24px));
	background: var(--ota-select-bg);
	border: 1px solid var(--ota-select-border);
	border-radius: 18px;
	box-shadow: var(--ota-select-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 70vh;
}

.ota-bucket-dock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--ota-select-border);
	font-size: 14px;
	color: var(--ota-select-text);
}

.ota-bucket-dock__close {
	background: transparent;
	border: 0;
	color: var(--ota-select-muted);
	font-size: 16px;
	cursor: pointer;
}

.ota-bucket-dock__list {
	list-style: none;
	margin: 0;
	padding: 8px 10px;
	overflow-y: auto;
	flex: 1;
}

.ota-bucket-dock__empty {
	padding: 32px 18px;
	color: var(--ota-select-muted);
	font-size: 13.5px;
	text-align: center;
	line-height: 1.55;
}

.ota-bucket-dock__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 12px;
	transition: background-color .15s;
}

.ota-bucket-dock__item:hover {
	background: #f3f8fa;
}

.ota-bucket-dock__thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #d9e3e7 center/cover no-repeat;
}

.ota-bucket-dock__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	font-size: 13px;
}

.ota-bucket-dock__meta strong {
	display: block;
	font-weight: 700;
	color: var(--ota-select-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ota-bucket-dock__meta em {
	font-style: normal;
	font-size: 11.5px;
	letter-spacing: .8px;
	color: var(--ota-select-muted);
	text-transform: uppercase;
}

.ota-bucket-dock__remove {
	background: transparent;
	border: 0;
	color: var(--ota-select-muted);
	font-size: 14px;
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	transition: background-color .15s, color .15s;
}

.ota-bucket-dock__remove:hover {
	background: #fde6e6;
	color: #c0392b;
}

.ota-bucket-dock__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid var(--ota-select-border);
}

.ota-bucket-dock__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--ota-select-accent);
	color: #fff !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.ota-bucket-dock__cta:hover {
	background: #178fad;
}

.ota-bucket-dock__clear {
	background: transparent;
	border: 0;
	color: var(--ota-select-muted);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* ---- SELECT intro band ---- */

.ota-en-select-intro-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 32px 40px;
	background: linear-gradient(135deg, #f0f9fc 0%, #e7f4f8 60%, #f6f8fa 100%);
	border: 1px solid var(--ota-select-border);
	border-radius: 22px;
	overflow: hidden;
}

.ota-en-select-intro-card::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(28, 168, 203, .22), transparent 70%);
	pointer-events: none;
}

.ota-en-select-intro-card h2 {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 800;
	color: var(--ota-select-text);
	letter-spacing: -.3px;
	max-width: 720px;
	line-height: 1.2;
}

.ota-en-select-intro-card p {
	margin: 0;
	color: var(--ota-select-muted);
	font-size: 15px;
	line-height: 1.65;
	max-width: 720px;
}

/* =====================================================================
 * Focus slider — center card sharp, side cards dimmed & scaled.
 * =================================================================== */

.en-wpte-slider {
	position: relative;
	padding: 22px 0 28px;
	/* Edge mask for cinematic peek */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.en-wpte-slider .wpte-swiper {
	overflow: visible;
}

.en-wpte-slider .swiper-slide {
	height: auto;
	transition: transform .5s cubic-bezier(.22, .68, .24, 1.02),
	            opacity   .45s ease,
	            filter    .45s ease;
	transform: scale(.78);
	opacity: .42;
	filter: saturate(.7) blur(.5px);
	pointer-events: none;
}

.en-wpte-slider .swiper-slide.swiper-slide-active,
.en-wpte-slider .swiper-slide.swiper-slide-duplicate-active {
	transform: scale(1.04);
	opacity: 1;
	filter: none;
	z-index: 3;
	pointer-events: auto;
}

.en-wpte-slider .swiper-slide.swiper-slide-active .ota-en-card,
.en-wpte-slider .swiper-slide.swiper-slide-duplicate-active .ota-en-card {
	box-shadow: 0 28px 60px rgba(17, 61, 72, .22);
}

.en-wpte-slider .swiper-slide.swiper-slide-next,
.en-wpte-slider .swiper-slide.swiper-slide-prev {
	transform: scale(.88);
	opacity: .65;
	filter: saturate(.85);
	pointer-events: auto;
}

.en-wpte-slider .swiper-slide .ota-en-card {
	transition: box-shadow .35s ease, transform .35s ease;
}

/* Only show SELECT/Details pills on the focused slide */
.en-wpte-slider .swiper-slide:not(.swiper-slide-active) .ota-card-actions {
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Highlighted slide: always expose the actions (touch has no hover). */
.en-wpte-slider .swiper-slide-active .ota-card-actions {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Mobile: icon-only pills so the highlighted card stays uncluttered. */
@media (max-width: 768px) {
	.ota-select-pill__label { display: none; }
	.ota-select-pill { padding: 8px; gap: 0; }
	.en-wpte-slider .swiper-slide-active .ota-card-actions { opacity: 1; }
}

/* Cinematic navigation arrows */
.en-wpte-slider .wpte-swiper-navigation {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
}

.en-wpte-slider .wpte-swiper-btn-prev,
.en-wpte-slider .wpte-swiper-btn-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .92);
	color: #112c33;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 12px 26px rgba(17, 61, 72, .2);
	transition: background-color .18s, transform .18s, box-shadow .18s;
	backdrop-filter: blur(6px);
}

.en-wpte-slider .wpte-swiper-btn-prev { left: 18px; }
.en-wpte-slider .wpte-swiper-btn-next { right: 18px; }

.en-wpte-slider .wpte-swiper-btn-prev:hover,
.en-wpte-slider .wpte-swiper-btn-next:hover {
	background: var(--ota-select-accent);
	color: #fff;
	transform: translateY(-50%) scale(1.08);
}

.en-wpte-slider .wpte-swiper-btn-prev.swiper-button-disabled,
.en-wpte-slider .wpte-swiper-btn-next.swiper-button-disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

/* Pagination dots */
.en-wpte-slider .wpte-swiper-page {
	position: relative;
	margin-top: 18px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.en-wpte-slider .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #c9d6da;
	border-radius: 999px;
	opacity: 1;
	transition: width .25s, background-color .25s;
}

.en-wpte-slider .swiper-pagination-bullet-active {
	width: 28px;
	background: var(--ota-select-accent);
}

/* Card polish for focus mode */
.en-wpte-slider .ota-en-card {
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 24px rgba(17, 61, 72, .1);
}

.en-wpte-slider .ota-en-card-media {
	aspect-ratio: 4 / 3;
}

.en-wpte-slider .ota-en-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.en-wpte-slider .ota-en-card-body {
	padding: 18px 20px 22px;
}

@media (max-width: 640px) {
	.en-wpte-slider {
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.en-wpte-slider .wpte-swiper-btn-prev,
	.en-wpte-slider .wpte-swiper-btn-next {
		width: 38px;
		height: 38px;
		font-size: 13px;
	}
}

/* =====================================================================
 * Detail modal
 * =================================================================== */

html.ota-detail-open,
html.ota-detail-open body {
	overflow: hidden;
}

.ota-detail-modal {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ota-detail-modal[hidden] {
	display: none;
}

.ota-detail-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 26, .58);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: otaDetailFade .22s ease;
}

.ota-detail-modal__shell {
	position: relative;
	width: min(880px, 100%);
	max-height: calc(100vh - 48px);
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	display: flex;
	flex-direction: column;
	animation: otaDetailRise .28s cubic-bezier(.2, .8, .25, 1);
}

@keyframes otaDetailFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes otaDetailRise {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ota-detail-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	transition: background-color .15s;
}

.ota-detail-modal__close:hover {
	background: #112c33;
}

.ota-detail-modal__body {
	overflow-y: auto;
	flex: 1;
}

.ota-detail-modal__loading {
	padding: 80px 0;
	display: flex;
	justify-content: center;
}

.ota-detail-spinner {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid #d6e3e7;
	border-top-color: var(--ota-select-accent);
	animation: otaDetailSpin .9s linear infinite;
}

@keyframes otaDetailSpin { to { transform: rotate(360deg); } }

.ota-detail-modal__error {
	padding: 40px;
	text-align: center;
	color: #c0392b;
}

/* ---- Detail content ---- */

.ota-detail__hero {
	position: relative;
	min-height: 280px;
	background: #234 center/cover no-repeat;
	color: #fff;
	display: flex;
	align-items: flex-end;
	padding: 28px;
}

.ota-detail__hero-tint {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .65) 100%);
}

.ota-detail__hero-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ota-detail__chip {
	display: inline-flex;
	width: max-content;
	padding: 5px 12px;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.ota-detail__hero h2 {
	margin: 0;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.3px;
}

.ota-detail__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 13.5px;
	font-weight: 600;
}

.ota-detail__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ota-detail__facts i {
	color: var(--ota-select-accent);
}

.ota-detail__hero {
	transition: background-image .35s ease;
}

.ota-detail__hero-count {
	position: absolute;
	top: 14px;
	left: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
}

.ota-detail__gallery {
	display: flex;
	gap: 8px;
	padding: 14px 18px;
	background: #f3f8fa;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #c9d6da transparent;
}

.ota-detail__gallery::-webkit-scrollbar {
	height: 8px;
}

.ota-detail__gallery::-webkit-scrollbar-thumb {
	background: #c9d6da;
	border-radius: 999px;
}

.ota-detail__gallery::-webkit-scrollbar-track {
	background: transparent;
}

.ota-detail__thumb {
	flex: 0 0 130px;
	height: 86px;
	border: 0;
	padding: 0;
	border-radius: 10px;
	background: #d9e3e7 center/cover no-repeat;
	cursor: pointer;
	scroll-snap-align: start;
	position: relative;
	opacity: .72;
	transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.ota-detail__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.ota-detail__thumb.is-active {
	opacity: 1;
	outline-color: var(--ota-select-accent);
	box-shadow: 0 6px 14px rgba(28, 168, 203, .35);
}

@media (max-width: 640px) {
	.ota-detail__thumb {
		flex-basis: 100px;
		height: 70px;
	}
}

.ota-detail__map-wrap {
	position: relative;
	margin: 0;
	background: #eef4f6;
	border-top: 1px solid #e2ebef;
	border-bottom: 1px solid #e2ebef;
}

.ota-detail__map {
	width: 100%;
	height: 280px;
	cursor: grab;
}

.ota-detail__map:active { cursor: grabbing; }

.ota-detail__map-open {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	background: var(--ota-select-accent);
	color: #fff !important;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(28, 168, 203, .4);
	transition: background-color .18s, transform .18s;
}

.ota-detail__map-open:hover {
	background: #178fad;
	transform: translateY(-1px);
}

.ota-detail-pin-wrap { background: transparent !important; border: 0 !important; }

.ota-detail-pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--ota-select-accent);
	color: #fff;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
	font-size: 15px;
}

.ota-detail-pin i { transform: rotate(45deg); }

.ota-detail__body {
	padding: 22px 28px 8px;
}

.ota-detail__lead {
	margin: 0 0 12px;
	color: #112c33;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.55;
}

.ota-detail__excerpt {
	color: #5f6f75;
	font-size: 14.5px;
	line-height: 1.7;
}

.ota-detail__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 18px 24px 22px;
	border-top: 1px solid #e2ebef;
}

.ota-detail__select {
	position: static !important;
	padding: 10px 18px 10px 12px;
	font-size: 14px;
	background: var(--ota-select-accent);
	color: #fff;
	border-color: var(--ota-select-accent);
}

.ota-detail__select .ota-select-pill__icon {
	background: #fff;
	color: var(--ota-select-accent);
}

.ota-detail__select:hover {
	background: #178fad;
	color: #fff;
}

.ota-detail__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f3f8fa;
	border-radius: 999px;
	color: #112c33 !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .15s;
}

.ota-detail__open:hover {
	background: #e2ebef;
}

@media (max-width: 640px) {
	.ota-detail-modal { padding: 0; }
	.ota-detail-modal__shell { border-radius: 0; max-height: 100vh; height: 100vh; }
	.ota-detail__hero { min-height: 220px; }
	.ota-detail__actions { padding: 14px 16px 18px; flex-wrap: wrap; }
}
