/* Menú destinos — estilo tipo Akira Travel */
.eyv-destinos {
	--eyv-destinos-accent: #2f6fdb;
	--eyv-destinos-text: #1c1c1c;
	--eyv-destinos-fs: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	z-index: 30;
	font-size: var(--eyv-destinos-fs);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.eyv-destinos__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.15rem 1.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.eyv-destinos__item {
	position: relative;
	margin: 0;
}

.eyv-destinos__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0;
	border: none;
	background: transparent;
	color: #fff !important;
	font: inherit;
	font-size: var(--eyv-destinos-fs);
	font-weight: 800 !important;
	cursor: pointer;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
	text-transform: none;
	letter-spacing: 0.03em;
	transition: color 0.18s ease;
}

.eyv-destinos__link:hover,
.eyv-destinos__link:focus-visible,
.eyv-destinos__item.is-open > .eyv-destinos__link {
	outline: none;
	color: #8ec0ff !important;
	opacity: 1;
}

.eyv-destinos__name {
	line-height: 1.2;
	white-space: nowrap;
	font-weight: 800;
}

.eyv-destinos__caret {
	display: inline-block;
	width: 0.38em;
	height: 0.38em;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-0.12em);
	transition: transform 0.18s ease;
	flex-shrink: 0;
	opacity: 0.85;
}

.eyv-destinos__item.is-open > .eyv-destinos__link .eyv-destinos__caret {
	transform: rotate(-135deg) translateY(-0.04em);
}

.eyv-destinos__panel {
	position: absolute;
	top: calc(100% + 0.12rem);
	left: 0;
	right: auto;
	transform: none;
	width: max-content;
	min-width: 15rem;
	max-width: min(22rem, calc(100vw - 1.5rem));
	margin: 0;
	padding: 0.35rem 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
	text-shadow: none;
	overflow: visible;
	text-align: left;
	z-index: 10001;
}

.eyv-destinos__panel--fixed {
	/* Se mantiene por compatibilidad; el JS ya no fuerza fixed en escritorio */
	position: absolute;
	z-index: 10001;
}

.eyv-destinos__panel--right {
	left: auto;
	right: 0;
}

.eyv-destinos__panel[hidden] {
	display: none !important;
}

.eyv-destinos__panel-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: none;
	overflow: visible;
	border-radius: inherit;
}

.eyv-destinos__panel-list > li {
	margin: 0;
	border: none;
	position: relative;
}

.eyv-destinos__pack {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.72rem 1.15rem;
	color: var(--eyv-destinos-text) !important;
	font-family: inherit;
	font-size: var(--eyv-destinos-fs);
	font-weight: 700 !important;
	line-height: 1.35;
	text-decoration: none;
	text-shadow: none !important;
	border: none !important;
	background: transparent;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.eyv-destinos__pack span:first-child {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
}

.eyv-destinos__row {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.eyv-destinos__row .eyv-destinos__pack {
	flex: 1 1 auto;
	width: auto;
}

.eyv-destinos__row .eyv-destinos__pack--toggle {
	flex: 0 0 2.4rem;
	width: 2.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 0.4rem;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.eyv-destinos__pack:hover,
.eyv-destinos__pack:focus-visible,
.eyv-destinos__panel-list > li.is-open .eyv-destinos__pack--toggle,
.eyv-destinos__panel-list > li.is-open .eyv-destinos__pack--parent {
	background: transparent;
	color: var(--eyv-destinos-accent) !important;
	outline: none;
}

.eyv-destinos__pack--toggle {
	cursor: pointer;
}

.eyv-destinos__caret--sub {
	width: 0.4em;
	height: 0.4em;
	margin: 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	opacity: 0.7;
	flex-shrink: 0;
	transition: transform 0.15s ease, color 0.15s ease;
}

.eyv-destinos__panel-list > li.is-open .eyv-destinos__pack--toggle .eyv-destinos__caret--sub {
	transform: rotate(-45deg);
	opacity: 1;
	color: var(--eyv-destinos-accent);
}

.eyv-destinos__panel-list > li.is-open > .eyv-destinos__row {
	background: #eef4ff;
}

/* Submenú lateral de paquetes (aparte del listado de destinos) */
.eyv-destinos__sub {
	position: absolute;
	top: -0.2rem;
	left: calc(100% + 0.35rem);
	right: auto;
	width: max-content;
	min-width: 15.5rem;
	max-width: min(24rem, calc(100vw - 1.25rem));
	max-height: min(68vh, calc(100dvh - 6rem));
	margin: 0;
	padding: 0.4rem 0;
	list-style: none;
	background: #f7f9fd;
	border: 1px solid #d7e2f2;
	border-left: 3px solid var(--eyv-destinos-accent);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 40, 80, 0.18);
	text-align: left;
	z-index: 10070;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.eyv-destinos__sub--fixed {
	position: fixed !important;
	z-index: 10080;
}

.eyv-destinos__sub--left {
	left: auto;
	right: calc(100% + 0.35rem);
	border-left: 1px solid #d7e2f2;
	border-right: 3px solid var(--eyv-destinos-accent);
}

.eyv-destinos__sub[hidden] {
	display: none !important;
}

.eyv-destinos__panel-list > li.is-open > .eyv-destinos__sub {
	display: block !important;
}

.eyv-destinos__sub > li {
	margin: 0;
	border: none;
}

.eyv-destinos__sub .eyv-destinos__pack {
	padding: 0.62rem 1.05rem;
	font-weight: 600 !important;
	color: #243247 !important;
	white-space: normal;
}

.eyv-destinos__sub .eyv-destinos__pack span:first-child {
	white-space: normal;
}

.eyv-destinos__sub .eyv-destinos__pack:hover,
.eyv-destinos__sub .eyv-destinos__pack:focus-visible {
	background: rgba(47, 111, 219, 0.1);
	color: var(--eyv-destinos-accent) !important;
}

.eyv-destinos__panel-list {
	max-height: none;
	overflow: visible;
}

/* Botón hamburguesa: solo móvil */
.eyv-destinos__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	margin: 0;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.22);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	z-index: 40;
}

.eyv-destinos__toggle:hover,
.eyv-destinos__toggle:focus-visible {
	outline: none;
	background: rgba(0, 0, 0, 0.35);
	border-color: #fff;
}

.eyv-destinos__toggle-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.28rem;
	width: 1.15rem;
}

.eyv-destinos__toggle-bar {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.eyv-destinos.is-drawer-open .eyv-destinos__toggle-bar:nth-child(1) {
	transform: translateY(0.34rem) rotate(45deg);
}

.eyv-destinos.is-drawer-open .eyv-destinos__toggle-bar:nth-child(2) {
	opacity: 0;
}

.eyv-destinos.is-drawer-open .eyv-destinos__toggle-bar:nth-child(3) {
	transform: translateY(-0.34rem) rotate(-45deg);
}

.eyv-destinos__drawer {
	display: contents;
}

.eyv-destinos-overlay {
	display: none;
}

@media (max-width: 1100px) {
	.eyv-destinos__list {
		gap: 0.1rem 1.1rem;
	}

	.eyv-destinos__pack,
	.eyv-destinos__pack span:first-child {
		white-space: normal;
	}
}

@media (max-width: 900px) {
	.eyv-destinos {
		width: auto;
		flex: 0 0 auto;
		justify-content: flex-end;
		--eyv-destinos-fs: 0.98rem;
		z-index: 10055;
		position: relative;
	}

	.eyv-destinos__toggle {
		display: inline-flex !important;
		position: relative;
		z-index: 10075;
		min-width: 2.85rem;
		min-height: 2.85rem;
		pointer-events: auto !important;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
		cursor: pointer;
	}

	.eyv-destinos.is-drawer-open .eyv-destinos__toggle {
		position: fixed;
		top: max(0.75rem, env(safe-area-inset-top, 0px));
		right: max(0.75rem, env(safe-area-inset-right, 0px));
		z-index: 100090;
		background: rgba(0, 0, 0, 0.5);
		border-color: #fff;
	}

	body.admin-bar .eyv-destinos.is-drawer-open .eyv-destinos__toggle {
		top: calc(32px + 0.55rem);
	}

	@media screen and (max-width: 782px) {
		body.admin-bar .eyv-destinos.is-drawer-open .eyv-destinos__toggle {
			top: calc(46px + 0.55rem);
		}
	}

	.eyv-destinos-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100080;
		margin: 0;
		padding: 0;
		border: 0;
		background: rgba(0, 0, 0, 0.52);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.eyv-destinos-overlay[hidden] {
		display: none !important;
	}

	.eyv-destinos__drawer,
	body > .eyv-destinos__drawer {
		display: block !important;
		position: fixed !important;
		top: 0;
		right: 0;
		left: auto;
		bottom: 0;
		width: min(24rem, 94vw);
		height: 100%;
		height: 100dvh;
		max-height: 100dvh;
		padding: calc(4.75rem + env(safe-area-inset-top, 0px)) 0.9rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		background: rgba(10, 24, 48, 0.98);
		box-shadow: -12px 0 32px rgba(0, 0, 0, 0.3);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		transform: translateX(105%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.28s ease, visibility 0.28s ease;
		z-index: 100085;
	}

	.eyv-destinos.is-drawer-open .eyv-destinos__drawer,
	.eyv-destinos__drawer.is-open,
	body > .eyv-destinos__drawer.is-open {
		transform: translateX(0) !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}

	.eyv-destinos__list {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 0.2rem;
		width: 100%;
	}

	.eyv-destinos__item {
		width: 100%;
		position: static;
	}

	.eyv-destinos__link {
		justify-content: space-between;
		width: 100%;
		min-height: 2.85rem;
		padding: 0.78rem 0.65rem;
		border-radius: 10px;
		text-shadow: none;
		touch-action: manipulation;
	}

	.eyv-destinos__link:hover,
	.eyv-destinos__link:focus-visible,
	.eyv-destinos__item.is-open > .eyv-destinos__link {
		background: rgba(255, 255, 255, 0.1);
		color: #9ec8ff !important;
	}

	.eyv-destinos__name {
		white-space: normal;
		text-align: left;
	}

	.eyv-destinos__panel,
	.eyv-destinos__panel--fixed,
	.eyv-destinos__panel--right {
		position: static !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		max-height: none !important;
		margin: 0.25rem 0 0.45rem;
		padding: 0.2rem 0;
		box-shadow: none;
		border-radius: 10px;
		overflow: visible !important;
		transform: none !important;
		background: #fff;
	}

	.eyv-destinos__panel-list {
		max-height: none !important;
		overflow: visible !important;
	}

	.eyv-destinos__panel-list > li {
		position: static;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.eyv-destinos__panel-list > li:last-child {
		border-bottom: none;
	}

	.eyv-destinos__pack {
		min-height: 2.75rem;
		padding: 0.78rem 0.85rem;
		font-size: 0.95rem;
		touch-action: manipulation;
	}

	.eyv-destinos__row .eyv-destinos__pack--toggle {
		flex: 0 0 2.85rem;
		width: 2.85rem;
		min-height: 2.75rem;
		touch-action: manipulation;
	}

	.eyv-destinos__panel-list > li.is-open > .eyv-destinos__row {
		background: #e8f0ff;
	}

	.eyv-destinos__sub,
	.eyv-destinos__sub--fixed,
	.eyv-destinos__sub--left {
		position: static !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0.15rem 0 0.35rem !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		border: none !important;
		border-left: 3px solid var(--eyv-destinos-accent) !important;
		overflow: visible !important;
		transform: none !important;
		background: #eef3fa !important;
		z-index: 1 !important;
	}

	.eyv-destinos__caret--sub {
		transform: rotate(45deg);
	}

	.eyv-destinos__panel-list > li.is-open .eyv-destinos__pack--toggle .eyv-destinos__caret--sub {
		transform: rotate(-135deg);
	}

	.eyv-destinos__sub .eyv-destinos__pack {
		padding: 0.72rem 0.85rem 0.72rem 1.35rem;
		font-size: 0.92rem;
		font-weight: 600 !important;
		color: #1f2a3a !important;
	}

	.eyv-destinos__sub .eyv-destinos__pack:hover,
	.eyv-destinos__sub .eyv-destinos__pack:focus-visible {
		background: rgba(47, 111, 219, 0.12);
	}

	body.eyv-destinos-open {
		overflow: hidden !important;
		touch-action: none;
	}

	body.eyv-destinos-open::before {
		display: none !important;
		content: none !important;
	}
}

@media (max-width: 640px) {
	.eyv-destinos__drawer,
	body > .eyv-destinos__drawer {
		width: min(100vw, 100%);
		padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
	}
}

@media (max-width: 480px) {
	.eyv-destinos {
		--eyv-destinos-fs: 0.94rem;
	}

	.eyv-destinos__drawer,
	body > .eyv-destinos__drawer {
		padding-top: calc(4.4rem + env(safe-area-inset-top, 0px));
	}

	.eyv-destinos__link,
	.eyv-destinos__pack {
		min-height: 2.9rem;
	}
}
