/**
 * Los estilos están encapsulados bajo .calypso-location-single para no alterar
 * componentes globales del theme ni widgets de Elementor.
 */
.calypso-location-single {
	--calypso-ink: #17202a;
	--calypso-muted: #607080;
	--calypso-surface: #f4f7f8;
	--calypso-border: #dbe3e8;
	--calypso-accent: #087f8c;
	color: var(--calypso-ink);
	font-size: 1rem;
	line-height: 1.7;
}

.calypso-location-single *,
.calypso-location-single *::before,
.calypso-location-single *::after {
	box-sizing: border-box;
}

.calypso-location-single__header {
	padding: clamp(2.5rem, 7vw, 6rem) 1.25rem;
	background: var(--calypso-surface);
}

.calypso-location-single__header-inner,
.calypso-location-single__body,
.calypso-location-single__featured-image {
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.calypso-location-single__eyebrow {
	margin: 0 0 0.4rem;
	color: var(--calypso-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.calypso-location-single__title {
	margin: 0;
	font-size: clamp(2.1rem, 6vw, 4.75rem);
	line-height: 1.05;
}

.calypso-location-single__featured-image {
	margin-top: clamp(1.5rem, 4vw, 3rem);
	margin-bottom: 0;
}

.calypso-location-single__image {
	display: block;
	width: 100%;
	max-height: 680px;
	border-radius: 1rem;
	object-fit: cover;
}

.calypso-location-image {
	margin: 0;
}

.calypso-location-image img {
	display: block;
	width: 100%;
	max-height: 680px;
	border-radius: 1rem;
	object-fit: cover;
}

.calypso-location-single__body {
	padding-block: clamp(2rem, 5vw, 4.5rem);
}

.calypso-location-single__content {
	max-width: 780px;
}

.calypso-location-single__content > :first-child {
	margin-top: 0;
}

.calypso-location-description {
	max-width: 780px;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.calypso-location-description-info {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	width: 100%;
}

.calypso-location-description-info__item {
	flex: 0 0 calc(var(--calypso-cdi-desktop-basis) - var(--calypso-cdi-desktop-adjust));
	max-width: calc(var(--calypso-cdi-desktop-basis) - var(--calypso-cdi-desktop-adjust));
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid #dbe3e8;
	border-radius: 0.85rem;
	background: #fff;
}

.calypso-location-description-info__title {
	margin: 0 0 1rem;
}

.calypso-location-description-info__description > :first-child {
	margin-top: 0;
}

.calypso-location-description-info__description > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.calypso-location-description-info__item {
		flex-basis: calc(var(--calypso-cdi-tablet-basis) - var(--calypso-cdi-tablet-adjust));
		max-width: calc(var(--calypso-cdi-tablet-basis) - var(--calypso-cdi-tablet-adjust));
	}
}

.calypso-location-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-block: clamp(2rem, 5vw, 4rem);
}

.calypso-location-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 0.85rem;
	background: #17202a;
	box-shadow: 0 10px 30px rgba(23, 32, 42, 0.1);
}

.calypso-location-gallery__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 300ms ease, opacity 300ms ease;
}

.calypso-location-gallery__item:hover .calypso-location-gallery__image,
.calypso-location-gallery__item:focus-visible .calypso-location-gallery__image {
	transform: scale(1.045);
	opacity: 0.84;
}

.calypso-location-gallery__zoom {
	position: absolute;
	right: 0.8rem;
	bottom: 0.8rem;
	display: grid;
	width: 2.4rem;
	height: 2.4rem;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #17202a;
	font-size: 1.5rem;
	line-height: 1;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.calypso-location-lightbox {
	width: min(94vw, 1440px);
	height: min(92vh, 1000px);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: visible;
}

.calypso-location-lightbox[open] {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	animation: calypso-lightbox-in 180ms ease-out;
}

.calypso-location-lightbox::backdrop {
	background: rgba(7, 12, 18, 0.94);
	backdrop-filter: blur(7px);
}

.calypso-location-lightbox figure {
	display: grid;
	min-width: 0;
	height: 100%;
	margin: 0;
	place-items: center;
	grid-template-rows: minmax(0, 1fr) auto;
}

.calypso-location-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(92vh - 3rem);
	object-fit: contain;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.calypso-location-lightbox__counter {
	padding-top: 0.75rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	letter-spacing: 0.08em;
}

.calypso-location-lightbox button {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}

.calypso-location-lightbox button:hover,
.calypso-location-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.06);
}

.calypso-location-lightbox__previous,
.calypso-location-lightbox__next {
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 0.75rem;
	border-radius: 50%;
	font-size: 2.3rem;
	line-height: 1;
}

.calypso-location-lightbox__close {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	font-size: 1.8rem;
	line-height: 1;
}

@keyframes calypso-lightbox-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.calypso-location-single__activities {
	margin-top: clamp(2.5rem, 6vw, 5rem);
}

.calypso-location-activities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1.5rem;
}

.calypso-location-activity {
	overflow: hidden;
	border: 1px solid var(--calypso-border);
	border-radius: 0.85rem;
	background: #fff;
}

.calypso-location-activity__image,
.calypso-location-activity__image img {
	display: block;
	width: 100%;
}

.calypso-location-activity__image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.calypso-location-activity__body {
	padding: 1.25rem;
}

.calypso-location-activity__body h3 {
	margin: 0 0 0.65rem;
}

.calypso-location-activity__body a {
	color: var(--calypso-accent);
}

.calypso-location-activity__link {
	display: inline-block;
	margin-top: 0.5rem;
	font-weight: 700;
}

.calypso-debug-dump {
	max-height: 34rem;
	overflow: auto;
	padding: 1rem;
	background: var(--calypso-surface);
	white-space: pre-wrap;
	word-break: break-word;
}

.calypso-location-single__debug {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 2px solid var(--calypso-border);
}

.calypso-debug-shell {
	width: min(1120px, calc(100% - 2rem));
	margin: 2rem auto;
}

.calypso-location-single .calypso-debug-meta {
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--calypso-border);
	border-radius: 0.75rem;
	background: #fff;
}

.calypso-location-single .calypso-debug-warning {
	padding: 0.85rem 1rem;
	border-left: 4px solid #b45309;
	background: #fff7ed;
	color: #7c2d12;
	font-weight: 700;
}

.calypso-location-single .calypso-debug-summary {
	display: grid;
	grid-template-columns: minmax(130px, 0.25fr) 1fr;
	gap: 0;
	margin-bottom: 2rem;
}

.calypso-location-single .calypso-debug-summary dt,
.calypso-location-single .calypso-debug-summary dd {
	margin: 0;
	padding: 0.65rem;
	border-bottom: 1px solid var(--calypso-border);
	overflow-wrap: anywhere;
}

.calypso-location-single .calypso-debug-summary dt {
	font-weight: 700;
}

.calypso-location-single .calypso-debug-table-wrap {
	overflow-x: auto;
}

.calypso-location-single .calypso-debug-table {
	width: 100%;
	border-collapse: collapse;
}

.calypso-location-single .calypso-debug-table th,
.calypso-location-single .calypso-debug-table td {
	padding: 0.75rem;
	border: 1px solid var(--calypso-border);
	text-align: left;
	vertical-align: top;
}

.calypso-location-single .calypso-debug-table pre {
	max-width: 720px;
	margin: 0 0 0.5rem;
	padding: 0.7rem;
	background: var(--calypso-surface);
	font-size: 0.82rem;
	white-space: pre-wrap;
	word-break: break-word;
}

@media (max-width: 1024px) {
	.calypso-location-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.calypso-location-description-info__item {
		flex-basis: calc(var(--calypso-cdi-mobile-basis) - var(--calypso-cdi-mobile-adjust));
		max-width: calc(var(--calypso-cdi-mobile-basis) - var(--calypso-cdi-mobile-adjust));
	}

	.calypso-location-gallery {
		grid-template-columns: 1fr;
	}

	.calypso-location-lightbox[open] {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1fr) auto;
	}

	.calypso-location-lightbox figure {
		grid-column: 1;
		grid-row: 1;
	}

	.calypso-location-lightbox__previous,
	.calypso-location-lightbox__next {
		position: absolute;
		bottom: 0;
		margin: 0;
	}

	.calypso-location-lightbox__previous {
		left: calc(50% - 4rem);
	}

	.calypso-location-lightbox__next {
		right: calc(50% - 4rem);
	}

	.calypso-location-single__header-inner,
	.calypso-location-single__body,
	.calypso-location-single__featured-image {
		width: min(100% - 2rem, 1120px);
	}

	.calypso-location-single .calypso-debug-summary {
		display: block;
	}

	.calypso-location-single .calypso-debug-summary dt {
		padding-bottom: 0;
		border-bottom: 0;
	}
}
