/*
 * La Huella · Ficha de la Tiny House.
 * Misma paleta y tipografías que la home (variables en layout.css).
 */

html body .lh-ref {
	display: block;
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--lh-paper);
	color: var(--lh-olive);
	font-family: var(--lh-sans);
	font-size: 16px;
	line-height: 1.65;
}

html body .lh-ref :is(h1, h2, h3) {
	margin: 0;
	color: inherit;
	font-family: var(--lh-serif);
	font-weight: 300;
	letter-spacing: -0.01em;
}

html body .lh-ref :is(h1, h2, h3) em {
	color: var(--lh-gold);
	font-style: italic;
}

html body .lh-ref p {
	margin: 0 0 1em;
}

html body .lh-ref-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 40px;
}

html body .lh-ref-sec {
	padding: 104px 0;
}

html body .lh-ref-sec--oscura {
	background: var(--lh-dark);
	color: var(--lh-cream);
}

html body .lh-ref-eyebrow {
	display: block;
	margin-bottom: 14px;
	color: var(--lh-gold);
	font-family: var(--lh-sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

html body .lh-ref-head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

html body .lh-ref-head h2 {
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.12;
}

html body .lh-ref-head p {
	margin: 16px 0 0;
	opacity: 0.75;
}

/* ---------- Hero ---------- */

html body .lh-ref-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 78vh;
	padding: 160px 0 88px;
	overflow: hidden;
	background: var(--lh-dark);
	color: var(--lh-cream);
}

html body .lh-ref-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

html body .lh-ref-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 22, 16, 0.88) 0%, rgba(20, 22, 16, 0.55) 50%, rgba(20, 22, 16, 0.35) 100%);
}

html body .lh-ref-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 40px;
}

html body .lh-ref-hero h1 {
	color: var(--lh-cream);
	font-size: clamp(48px, 8vw, 96px);
	line-height: 1;
}

html body .lh-ref-hero__lead {
	max-width: 560px;
	margin: 22px 0 0 !important;
	color: rgba(245, 240, 228, 0.88);
	font-size: 18px;
	line-height: 1.55;
}

html body .lh-ref-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

html body .lh-ref-hero .lh-btn {
	padding: 16px 30px;
	font-size: 14.5px;
}

html body .lh-ref-btn-ghost {
	display: inline-flex;
	align-items: center;
	padding: 15px 28px !important;
	border: 1px solid rgba(245, 240, 228, 0.55) !important;
	border-radius: 100px !important;
	background: transparent !important;
	color: var(--lh-cream) !important;
	font-family: var(--lh-sans) !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

html body .lh-ref-btn-ghost:hover {
	background: rgba(245, 240, 228, 0.12) !important;
}

/* ---------- Intro: texto + tarjeta ---------- */

html body .lh-ref-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 72px;
	align-items: start;
}

html body .lh-ref-intro__texto h2 {
	margin-bottom: 28px;
	font-size: clamp(30px, 3.6vw, 42px);
	line-height: 1.15;
}

html body .lh-ref-contenido {
	font-size: 16.5px;
}

html body .lh-ref-contenido strong {
	color: var(--lh-dark);
	font-weight: 600;
}

html body .lh-ref-datos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

html body .lh-ref-datos li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid rgba(51, 58, 36, 0.1);
	border-radius: 16px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

html body .lh-ref-datos .lh-ico {
	color: var(--lh-gold);
}

html body .lh-ref-datos small {
	display: block;
	margin-bottom: 2px;
	color: #8a8676;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

html body .lh-ref-info-estadia {
	margin-top: 32px;
	border-top: 1px solid rgba(51, 58, 36, 0.14);
}

html body .lh-ref-info-estadia__grupo {
	padding-top: 24px;
}

html body .lh-ref-info-estadia__grupo h3 {
	margin-bottom: 12px;
	font-size: clamp(23px, 2.6vw, 28px);
	line-height: 1.2;
}

html body .lh-ref-info-estadia__grupo p {
	font-size: 15px;
	line-height: 1.65;
}

html body .lh-ref-info-estadia__grupo p:last-child {
	margin-bottom: 0;
}

html body .lh-ref-card {
	position: sticky;
	top: calc(var(--lh-admin-bar) + var(--lh-header-h-min) + 24px);
	padding: 32px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px -24px rgba(32, 36, 26, 0.25), 0 0 0 1px rgba(51, 58, 36, 0.06);
}

html body .lh-ref-precio {
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid rgba(51, 58, 36, 0.1);
}

html body .lh-ref-precio small {
	display: block;
	color: #8a8676;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

html body .lh-ref-precio strong {
	display: block;
	margin: 4px 0 2px;
	color: var(--lh-dark);
	font-family: var(--lh-serif);
	font-size: 38px;
	font-weight: 400;
	line-height: 1.15;
}

html body .lh-ref-precio strong .mphb-price,
html body .lh-ref-precio strong .mphb-currency {
	font: inherit !important;
	color: inherit !important;
}

html body .lh-ref-precio span {
	color: #8a8676;
	font-size: 14px;
}

html body .lh-ref-card__lista {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

html body .lh-ref-card__lista li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.45;
}

html body .lh-ref-card__lista li + li {
	margin-top: 10px;
}

html body .lh-ref-card__lista .lh-ico {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--lh-gold);
}

html body .lh-ref-card__nota {
	margin: 16px 0 0 !important;
	color: #8a8676;
	font-size: 13px;
	text-align: center;
}

html body .lh-ref-card .lh-ref-link {
	display: block;
	margin-top: 16px;
	text-align: center;
}

html body .lh-ref-link {
	color: var(--lh-dark) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-color: var(--lh-gold) !important;
	text-underline-offset: 5px;
}

/* ---------- Galería ---------- */

html body .lh-ref-sec--fotos {
	padding-top: 0;
}

html body .lh-ref-galeria {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 260px 260px;
	gap: 12px;
}

html body .lh-ref-galeria__item {
	display: block;
	overflow: hidden;
	border-radius: 18px;
	background: var(--lh-cream);
	cursor: zoom-in;
}

html body .lh-ref-galeria__item:first-child {
	grid-row: 1 / 3;
}

html body .lh-ref-galeria__item:nth-child(n + 6) {
	display: none;
}

html body .lh-ref-galeria__item img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}

html body .lh-ref-galeria__item:hover img {
	transform: scale(1.04);
}

html body .lh-ref-galeria__todas {
	position: absolute;
	right: 18px;
	bottom: 18px;
	padding: 11px 20px !important;
	border: 0 !important;
	border-radius: 100px !important;
	background: rgba(252, 250, 243, 0.94) !important;
	color: var(--lh-dark) !important;
	font-family: var(--lh-sans) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}

/* ---------- Comodidades ---------- */

html body .lh-ref-comodidades {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .lh-ref-comodidades li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(51, 58, 36, 0.1);
	font-size: 15.5px;
}

html body .lh-ref-comodidades .lh-ico {
	width: 18px;
	height: 18px;
	color: var(--lh-gold);
}

html body .lh-ref-sec--oscura .lh-ref-comodidades li {
	border-bottom-color: rgba(245, 240, 228, 0.12);
	color: var(--lh-cream);
}

/* ---------- Liebre y Puma ---------- */

html body .lh-ref-unidades {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

html body .lh-ref-unidad {
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(51, 58, 36, 0.06);
}

html body .lh-ref-unidad__foto {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

html body .lh-ref-unidad__foto img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.8s ease;
}

html body .lh-ref-unidad:hover .lh-ref-unidad__foto img {
	transform: scale(1.03);
}

html body .lh-ref-unidad__texto {
	padding: 28px 32px 32px;
}

html body .lh-ref-unidad h3 {
	margin-bottom: 10px;
	font-size: 34px;
	line-height: 1.1;
}

html body .lh-ref-unidad p {
	color: #5d6150;
}

html body .lh-ref-nota {
	max-width: 760px;
	margin: 44px auto 0;
	padding: 26px 30px;
	border-left: 3px solid var(--lh-gold);
	border-radius: 0 16px 16px 0;
	background: var(--lh-cream);
	font-size: 15.5px;
}

html body .lh-ref-nota p:last-child {
	margin-bottom: 0;
}

html body .lh-ref-nota a {
	color: var(--lh-dark) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-color: var(--lh-gold) !important;
	text-underline-offset: 4px;
}

/* ---------- Disponibilidad ---------- */

html body .lh-ref-sec--disponibilidad {
	background: var(--lh-cream);
}

html body .lh-ref-calendario {
	max-width: 900px;
	margin: 0 auto;
}

html body .lh-ref-calendario .mphb-calendar {
	margin: 0 auto;
}

/* MotoPress le da a la tabla el 100% del alto del mes y en meses de 6 semanas la última fila queda afuera. */
html body .lh-ref-calendario .datepick-month table {
	height: auto !important;
}

html body .lh-ref-calendario .datepick {
	height: auto !important;
	overflow: visible !important;
}

/* Los días libres se pueden tocar: eligen la llegada en el buscador de abajo. */
html body .lh-ref-calendario .mphb-date-cell.mphb-available-date:not(.mphb-mark-as-unavailable--check-in) {
	border-radius: 10px;
	cursor: pointer !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

html body .lh-ref-calendario .mphb-date-cell.mphb-available-date:not(.mphb-mark-as-unavailable--check-in):hover {
	background: var(--lh-gold) !important;
	color: #fff !important;
}

html body .lh-ref-buscador {
	max-width: 900px;
	margin: 32px auto 0;
	padding: 28px 30px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px -28px rgba(32, 36, 26, 0.25);
}

html body .lh-ref-buscador .mphb-required-fields-tip {
	display: none;
}

html body .lh-ref-buscador form.mphb_sc_search-form {
	display: grid;
	grid-template-columns: 1fr 1fr 110px 110px auto;
	gap: 14px;
	align-items: end;
	margin: 0;
}

html body .lh-ref-buscador form.mphb_sc_search-form.lh-has-bebes {
	grid-template-columns: 1fr 1fr 96px 96px 104px auto;
}

/* Menor o bebé en un solo campo. */
html body .lh-ref-buscador form.mphb_sc_search-form.lh-has-chicos {
	grid-template-columns: 1fr 1fr 96px 150px auto;
}

html body .lh-ref-buscador form.mphb_sc_search-form > p {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

html body .lh-ref-buscador form.mphb_sc_search-form br {
	display: none;
}

html body .lh-ref-buscador label {
	display: block;
	margin-bottom: 6px;
	color: #807d6e !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
}

html body .lh-ref-buscador label abbr {
	text-decoration: none;
}

html body .lh-ref-buscador :is(input[type="text"], select) {
	width: 100% !important;
	height: 48px;
	padding: 0 14px !important;
	border: 1px solid rgba(34, 36, 27, 0.18) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #22241b !important;
	font-family: var(--lh-sans) !important;
	font-size: 15px !important;
}

html body .lh-ref-buscador input[type="submit"] {
	height: 48px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 100px !important;
	background: var(--lh-gold) !important;
	color: #fff !important;
	font-family: var(--lh-sans) !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

html body .lh-ref-buscador input[type="submit"]:hover {
	background: var(--lh-gold-dark) !important;
}

/* ---------- Visor de fotos ---------- */

html body .lh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 18, 13, 0.95);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

html body .lh-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease;
}

html body .lh-lightbox__img {
	max-width: calc(100vw - 160px);
	max-height: calc(100vh - 120px);
	border-radius: 8px;
	object-fit: contain;
}

html body .lh-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0 !important;
	border: 1px solid rgba(245, 240, 228, 0.25) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--lh-cream) !important;
	font-size: 30px !important;
	line-height: 1 !important;
	cursor: pointer;
}

html body .lh-lightbox button:hover {
	background: rgba(245, 240, 228, 0.12) !important;
}

html body .lh-lightbox__cerrar {
	top: 24px;
	right: 24px;
}

html body .lh-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

html body .lh-lightbox__nav--prev {
	left: 24px;
}

html body .lh-lightbox__nav--next {
	right: 24px;
}

html body .lh-lightbox__contador {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(245, 240, 228, 0.7);
	font-family: var(--lh-sans);
	font-size: 13px;
	letter-spacing: 0.1em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	html body .lh-ref-intro__grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	html body .lh-ref-card {
		position: static;
		max-width: 520px;
	}
	html body .lh-ref-buscador form.mphb_sc_search-form,
	html body .lh-ref-buscador form.mphb_sc_search-form.lh-has-chicos,
	html body .lh-ref-buscador form.mphb_sc_search-form.lh-has-bebes {
		grid-template-columns: 1fr 1fr;
	}
	html body .lh-ref-buscador .mphb_sc_search-submit-button-wrapper {
		grid-column: 1 / -1;
	}
	html body .lh-ref-buscador input[type="submit"] {
		width: 100%;
	}
}

@media (max-width: 767px) {
	html body .lh-ref-wrap,
	html body .lh-ref-hero__inner {
		padding: 0 20px;
	}
	html body .lh-ref-sec {
		padding: 72px 0;
	}
	html body .lh-ref-sec--fotos {
		padding-top: 0;
	}
	html body .lh-ref-head {
		margin-bottom: 36px;
	}
	html body .lh-ref-hero {
		min-height: 82vh;
		padding: 120px 0 56px;
	}
	html body .lh-ref-hero__lead {
		font-size: 16.5px;
	}
	html body .lh-ref-hero__actions > * {
		flex: 1 1 auto;
		justify-content: center;
	}
	html body .lh-ref-card {
		padding: 26px 22px;
	}
	html body .lh-ref-datos {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	html body .lh-ref-datos li {
		padding: 14px;
		gap: 10px;
		font-size: 14px;
	}

	/* Galería: carrusel horizontal con scroll. */
	html body .lh-ref-galeria {
		display: flex;
		gap: 10px;
		margin: 0 -20px;
		padding: 0 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	html body .lh-ref-galeria::-webkit-scrollbar {
		display: none;
	}
	html body .lh-ref-galeria__item,
	html body .lh-ref-galeria__item:nth-child(n + 6) {
		display: block;
		flex: 0 0 84%;
		height: 300px;
		scroll-snap-align: center;
	}
	html body .lh-ref-galeria__todas {
		display: none;
	}

	html body .lh-ref-comodidades {
		grid-template-columns: 1fr;
		gap: 0;
	}
	html body .lh-ref-unidades {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	html body .lh-ref-unidad__texto {
		padding: 22px 22px 26px;
	}
	html body .lh-ref-nota {
		padding: 22px;
	}
	html body .lh-ref-buscador {
		padding: 22px 18px;
	}
	html body .lh-lightbox__img {
		max-width: 100vw;
		max-height: calc(100vh - 160px);
		border-radius: 0;
	}
	html body .lh-lightbox__nav {
		top: auto;
		bottom: 18px;
		transform: none;
	}
	html body .lh-lightbox__nav--prev {
		left: 18px;
	}
	html body .lh-lightbox__nav--next {
		right: 18px;
	}
}

/* ---------- Sistema visual "Huella" (08/10) ---------- */

/* Comodidades en dos grupos: en la tiny house y en Puerto Pireo. */
html body .lh-ref-comodidades-grupos {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 48px;
}

html body .lh-ref-comodidades__titulo {
	margin: 0 0 6px !important;
	color: var(--lh-gold) !important;
	font-family: var(--lh-sans) !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase;
}

html body .lh-ref-comodidades-grupo:first-child .lh-ref-comodidades {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

html body .lh-ref-comodidades-grupo:last-child .lh-ref-comodidades {
	grid-template-columns: 1fr;
}

html body .lh-ref-comodidades .lh-ref-comodidades__ico {
	width: 24px;
	height: 24px;
	color: var(--lh-gold);
}

/* Huella de Liebre y de Puma junto al nombre. */
html body .lh-ref-unidad__nombre {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

html body .lh-ref-unidad__nombre h3 {
	margin: 0;
}

html body .lh-ref-huella {
	flex: none;
	width: 44px;
	height: 44px;
	color: var(--lh-gold);
}

@media (prefers-reduced-motion: no-preference) {
	html body .lh-ref-unidad .lh-ref-huella {
		transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	}
	html body .lh-ref-unidad:hover .lh-ref-huella {
		transform: rotate(-8deg) scale(1.06);
	}
}

/* "La tarifa final depende de tus fechas." */
html body .lh-ref-precio__nota {
	display: block;
	margin-top: 6px;
	color: #8a8676;
	font-size: 12.5px;
	font-style: normal;
}

@media (max-width: 860px) {
	html body .lh-ref-comodidades-grupos {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 767px) {
	html body .lh-ref-comodidades-grupo:first-child .lh-ref-comodidades {
		grid-template-columns: 1fr;
	}
	html body .lh-ref-huella {
		width: 38px;
		height: 38px;
	}
}

/* Promoción aplicada: nombre y precio anterior tachado, arriba del total. */
html body .lh-ref-precio__promo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 10px 0 0; color: #333A24; font-size: 13.5px; }
html body .lh-ref-precio__promo b { padding: 2px 8px; border-radius: 999px; background: #E5A32B; color: #22241B; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
html body .lh-ref-precio__promo s { color: #8a8676; }
