/* Wrapper exterior: sólo aporta el padding de página */
.wp-block-lodgify-hero-slider {
	padding: 24px clamp(1rem, 6.25%, 80px) 0;
	margin-top: 0;
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Card redondeada con gradiente */
.hero-slider__card {
	background: linear-gradient(180deg, #FFFCCB 0%, rgba(255, 255, 255, 0) 100%);
	border-radius: 24px;
	padding: 50px 40px 40px;
}

/* Swiper base */
.hero-slider__swiper {
	overflow: hidden;
	width: 100%;
}

.hero-slider__swiper .swiper-wrapper {
	display: flex;
	flex-wrap: nowrap;
	will-change: transform;
}

.hero-slider__swiper .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	min-width: 100%;
}

/* Slide: 2 columnas */
.hero-slide {
	display: grid;
	grid-template-columns: 55% 1fr;
	gap: 51px;
}

/* Columna izquierda */
.hero-slide__left {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Grupo superior: categoría + título */
.hero-slide__top {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Category pill: semi-transparente con borde blanco */
.hero-slide__category {
	display: inline-flex;
	align-items: center;
	padding: 10px 12px;
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 500;
	letter-spacing: -0.42px;
	line-height: 1.05;
	text-decoration: none;
	color: var(--wp--preset--color--black);
	background: rgba(172, 172, 172, 0.1);
	border: 1.23px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	box-shadow:
		inset 0 1.17px 1.17px rgba(255, 255, 255, 0.25),
		0 29.72px 39.63px rgba(0, 0, 0, 0.08);
	width: fit-content;
}

/* Título */
.hero-slide__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-2);
	max-width: 510px;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-slide__title a {
	text-decoration: none;
	color: inherit;
}

/* Meta: avatar + filas (autor y fecha) */
.hero-slide__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-slide__avatar-wrap {
	display: flex;
	flex-shrink: 0;
	text-decoration: none;
}

.hero-slide__avatar-img {
	width: 50px;
	height: 50px;
	border-radius: 26px;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.hero-slide__meta-rows {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hero-slide__author-row,
.hero-slide__date-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-slide__written-by,
.hero-slide__date-label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--grey-500);
	white-space: nowrap;
}

/* Etiqueta "Last Updated" sólo visible en móvil */
.hero-slide__date-label {
	display: none;
}

/* Nombre del autor: píldora azul claro */
.hero-slide__author-name {
	background: #ddebf3;
	border-radius: 999px;
	padding: 6px 8px;
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 500;
	letter-spacing: -0.4px;
	color: var(--wp--preset--color--black);
	white-space: nowrap;
	text-decoration: none;
}

/* Fecha: píldora blanca */
.hero-slide__date {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	padding: 6px 8px;
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 500;
	letter-spacing: -0.4px;
	color: var(--wp--preset--color--black);
	white-space: nowrap;
}

/* Columna derecha: imagen */
.hero-slide__right {
	border-radius: 50px;
	overflow: hidden;
	height: 360px;
}

.hero-slide__image-link {
	display: block;
	height: 100%;
}

.hero-slide__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Controles ─────────────────────────────────────────── */
.hero-controls {
	display: flex;
	gap: 27px;
	align-items: center;
	margin-top: 0;
}

/* Pill compartida (nav y explore) */
.hero-nav-pill,
.hero-explore-pill {
	display: flex;
	align-items: center;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	background: rgba(172, 172, 172, 0.05);
	box-shadow:
		0 24px 32px rgba(0, 0, 0, 0.12),
		inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* Botones prev / next */
.hero-nav__prev,
.hero-nav__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: var(--wp--preset--color--black);
	padding: 0;
	transition: background 0.2s;
	background: #FFF;
}

.hero-nav__prev:hover,
.hero-nav__next:hover {
	background: rgba(0, 0, 0, 0.07);
}

.hero-nav__prev svg,
.hero-nav__next svg {
	width: 16px;
	height: 16px;
}

/* Zona central blanca de la pill de navegación */
.hero-nav__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 999px;
	padding: 12px 16px;
	min-width: 214px;
}

/* Puntos de paginación */
.hero-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #e1eaf8;
	border: none;
	border-radius: 50%;
	opacity: 1;
	margin: 0;
	transition: background 0.2s;
	cursor: pointer;
}

.hero-pagination .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--black);
}

/* Pill explorar: texto + icono búsqueda */
.hero-controls__explore {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 999px;
	padding: 9px 16px;
	font-size: var(--wp--preset--font-size--button-main);
	font-weight: 500;
	letter-spacing: -0.6px;
	color: var(--wp--preset--color--black);
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s;
	height: 34px;
}

.hero-controls__explore:hover {
	opacity: 0.7;
}

.hero-controls__search-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	color: var(--wp--preset--color--black);
	text-decoration: none;
	transition: background 0.2s;
}

.hero-controls__search-link:hover {
	background: rgba(0, 0, 0, 0.07);
}

.hero-controls__search-link svg {
	width: 16px;
	height: 16px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
	.wp-block-lodgify-hero-slider {
		padding: 0;
		margin: 0;
	}

	.hero-slider__card {
		border-radius: 30px;
		padding: 80px 24px 6px;
		border-radius: 30px;
		background: linear-gradient(179deg, #FFF65B -140.87%, #FFF 67.64%), linear-gradient(179deg, #88B8FA -140.87%, #FFF 88.29%);
	}

	/* En móvil sólo se muestra la columna de texto */
	.hero-slide {
		grid-template-columns: 1fr;
	}

	.hero-slide__right {
		display: none;
	}

	.hero-slide__left {
		align-items: center;
		text-align: center;
	}

	.hero-slide__category {
		/* centered por el padre */
	}

	.hero-slide__title {
		max-width: 100%;
		font-size: var(--wp--preset--font-size--h-2);
		margin-bottom: 22px;
	}

	/* Meta: dos filas centradas, sin avatar */
	.hero-slide__meta {
		flex-direction: column;
		gap: 13px;
	}

	.hero-slide__avatar-wrap {
		display: none;
	}

	.hero-slide__meta-rows {
		flex-direction: column;
		align-items: center;
		gap: 13px;
	}

	.hero-slide__date-label {
		display: inline;
	}

	/* En móvil la fecha usa el mismo azul que el nombre */
	.hero-slide__date {
		background: #ddebf3;
	}

	.hero-controls {
		justify-content: center;
		flex-wrap: wrap;
		margin-top: 32px;
	}

	.hero-slider__swiper {
		height: auto;
	}

	.hero-slide__left {
		gap: 10px;
	}

	.hero-nav-pill,
	.hero-explore-pill {
		width: 100%;
	}

	.hero-explore-pill {
		border: 1px solid #DDEBF3;
		background-color: var(--wp--preset--color--white);
		padding: 12px 18px 12px 24px;
		height: 32px;
		justify-content: space-between;
	}

	.hero-nav__dots {
		width: 100%;
	}

	.hero-nav__prev,
	.hero-nav__next {
		background-color: var(--wp--preset--color--white);
		border-radius: 812px;
	}
}

/* ── Search overlay ─────────────────────────────────────────── */
.hero-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.hero-search-overlay[hidden] {
	display: none;
}

.hero-search-overlay__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.hero-search-overlay__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.hero-search-overlay__form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 640px;
	background: #fff;
	border-radius: 999px;
	padding: 8px 8px 8px 24px;
	gap: 8px;
}

.hero-search-overlay__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: var(--wp--preset--font-size--large);
	font-family: inherit;
	color: var(--wp--preset--color--black);
	min-width: 0;
	-webkit-appearance: none;
}

.hero-search-overlay__input::placeholder {
	color: #aaa;
}

.hero-search-overlay__input::-webkit-search-decoration,
.hero-search-overlay__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.hero-search-overlay__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--black);
	border: none;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity 0.2s;
}

.hero-search-overlay__submit:hover {
	opacity: 0.8;
}

.hero-search-overlay__submit svg {
	width: 18px;
	height: 18px;
}