/* Bedramon Child 1.1.0: portada con carrusel y buscador */

.bedramon-hero {
	position: relative;
	background: #1f2a33;
	margin-bottom: 2.5em;
}

/* --- Carrusel (FlexSlider) --- */
.bedramon-hero-slider {
	position: relative;
	margin: 0;
	overflow: hidden;
}

.bedramon-hero-slider .slides {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bedramon-hero-slider .slides > li {
	display: none;
	margin: 0;
	-webkit-backface-visibility: hidden;
}

/* Antes de que cargue el JS (o sin JS) se ve la primera foto */
.bedramon-hero-slider .slides > li:first-child {
	display: block;
}

.bedramon-hero-img {
	display: block;
	width: 100%;
	height: clamp(340px, 74vh, 780px);
	object-fit: cover;
}

.bedramon-hero-slider .flex-control-nav {
	position: absolute;
	top: 16px;
	right: 16px;
	/* El CSS de flexslider añade left, bottom y width: 100%; sin anularlos los puntos quedan a la izquierda */
	left: auto;
	bottom: auto;
	width: auto;
	z-index: 2;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bedramon-hero-slider .flex-control-nav li {
	margin: 0;
}

.bedramon-hero-slider .flex-control-nav a {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
}

.bedramon-hero-slider .flex-control-nav a.flex-active {
	background: #fff;
}

.bedramon-hero-slider .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bedramon-hero-slider .flex-direction-nav a {
	position: absolute;
	top: 38%;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 0;
	text-decoration: none;
	opacity: 1;
	transition: background 0.2s;
}

.bedramon-hero-slider .flex-direction-nav a::before {
	display: block;
	font-size: 26px;
	line-height: 42px;
	text-align: center;
}

.bedramon-hero-slider .flex-direction-nav .flex-prev {
	left: 16px;
}

.bedramon-hero-slider .flex-direction-nav .flex-prev::before {
	content: "\2039";
}

.bedramon-hero-slider .flex-direction-nav .flex-next {
	right: 16px;
}

.bedramon-hero-slider .flex-direction-nav .flex-next::before {
	content: "\203A";
}

.bedramon-hero-slider .flex-direction-nav a:hover,
.bedramon-hero-slider .flex-direction-nav a:focus {
	background: rgba(0, 0, 0, 0.6);
}

.bedramon-hero-slider .flex-direction-nav .flex-disabled {
	display: none;
}

/* --- Panel con el nombre y el buscador --- */
.bedramon-hero-panel {
	position: absolute;
	left: 50%;
	bottom: 40px;
	z-index: 3;
	transform: translateX(-50%);
	width: min(1080px, calc(100% - 32px));
	box-sizing: border-box;
	padding: 20px 24px 8px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 4px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	color: #222;
}

.bedramon-hero-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: 0.12em;
	font-weight: 700;
}

.bedramon-hero-subtitle {
	margin: 4px 0 0;
	font-size: 16px;
}

.bedramon-hero-price {
	margin: 6px 0 0;
	font-size: 15px;
}

/* Formulario de Hotel Booking en una fila (el tema le pone márgenes grandes) */
.bedramon-hero-panel .bedramon-hero-search {
	margin: 14px 0 0;
	padding: 0;
}

.bedramon-hero-search .mphb_sc_search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0;
}

.bedramon-hero-search .mphb_sc_search-form > p {
	flex: 1 1 170px;
	margin: 0 0 12px;
}

.bedramon-hero-search .mphb_sc_search-form > p br {
	display: none;
}

.bedramon-hero-search label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.bedramon-hero-search input[type="text"],
.bedramon-hero-search select {
	width: 100%;
	box-sizing: border-box;
}

.bedramon-hero-search .mphb_sc_search-submit-button-wrapper {
	flex: 0 0 auto;
}

.bedramon-hero-search .mphb-required-fields-tip {
	display: none;
}

/* --- Móvil y tableta: el panel va debajo de la foto --- */
@media (max-width: 782px) {
	.bedramon-hero-img {
		height: clamp(240px, 62vw, 460px);
	}

	.bedramon-hero-panel {
		position: static;
		transform: none;
		width: auto;
		padding: 16px;
		border-radius: 0;
		box-shadow: none;
		background: #fff;
	}

	.bedramon-hero-title {
		font-size: 24px;
	}

	.bedramon-hero-slider .flex-direction-nav a {
		top: 42%;
		width: 38px;
		height: 38px;
	}

	.bedramon-hero-slider .flex-direction-nav a::before {
		line-height: 36px;
	}

	.bedramon-hero-search .mphb_sc_search-form > p {
		flex: 1 1 100%;
	}

	.bedramon-hero-search .mphb_sc_search-submit-button-wrapper input {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bedramon-hero-slider .flex-direction-nav a {
		transition: none;
	}
}
