/* ==========================================================
   Reservas de Habitaciones — widget de reserva
   Paleta: bandera de Alemania (negro · rojo · oro)
   ========================================================== */
.rh-booking {
	--rh-black: #111111;
	--rh-ink: #1d1d1f;
	--rh-red: #dd0000;
	--rh-red-dark: #b30000;
	--rh-gold: #ffce00;
	--rh-gold-soft: #fff1b3;
	--rh-gold-line: #f0c000;
	--rh-muted: #6b6b70;
	--rh-line: #e7e7ea;
	--rh-off: #f3f3f5;
	--rh-radius: 18px;

	container-type: inline-size;
	position: relative;
	box-sizing: border-box;
	max-width: 760px;
	margin: 1.5em 0;
	background: #fff;
	color: var(--rh-ink);
	border: 1px solid var(--rh-line);
	border-radius: var(--rh-radius);
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.18);
	overflow: hidden;
	font-family: inherit;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.rh-booking *, .rh-booking *::before, .rh-booking *::after { box-sizing: border-box; }
.rh-booking button { font: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; }

/* Franja tricolor */
.rh-flag { display: flex; flex-direction: column; height: 9px; }
.rh-flag span { flex: 1; }
.rh-flag span:nth-child(1) { background: var(--rh-black); }
.rh-flag span:nth-child(2) { background: var(--rh-red); }
.rh-flag span:nth-child(3) { background: var(--rh-gold); }

/* Cabecera */
.rh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 20px 24px 8px; }
.rh-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rh-muted); }
.rh-from { margin: 0; font-size: 26px; font-weight: 800; color: var(--rh-black); }
.rh-from small { font-size: 14px; font-weight: 500; color: var(--rh-muted); }
.rh-times { display: flex; gap: 8px; flex-wrap: wrap; }
.rh-times span { font-size: 12px; color: var(--rh-muted); background: var(--rh-off); border-radius: 999px; padding: 6px 12px; }
.rh-times b { color: var(--rh-black); }

/* Pasos 1 y 2 */
.rh-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 24px; }
.rh-field { position: relative; border: 1px solid var(--rh-line); border-radius: 14px; padding: 12px 14px 10px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num label" "step step" "hint hint"; column-gap: 8px; row-gap: 8px; align-items: center; }
.rh-step-num { grid-area: num; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rh-black); color: #fff; font-size: 12px; font-weight: 700; }
.rh-label { grid-area: label; margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rh-hint { grid-area: hint; color: var(--rh-muted); font-size: 12px; }
.rh-stepper { grid-area: step; display: flex; align-items: center; justify-content: space-between; background: var(--rh-off); border-radius: 999px; padding: 4px; }
.rh-stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; background: var(--rh-black); color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background .15s, transform .1s; }
.rh-stepper button:hover:not(:disabled) { background: var(--rh-red); }
.rh-stepper button:active:not(:disabled) { transform: scale(.94); }
.rh-stepper button:disabled { background: #cfcfd4; cursor: not-allowed; }
.rh-value { font-size: 22px; font-weight: 800; min-width: 2ch; text-align: center; color: var(--rh-black); }

/* Calendario compacto (un mes) + simbología al costado */
.rh-cal-wrap { position: relative; padding: 8px 24px 4px; }
.rh-cal-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 10px; }
.rh-cal-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.rh-cal-col { width: max-content; max-width: 100%; }
.rh-cal { border: 1px solid var(--rh-line); border-radius: 12px; overflow: hidden; background: #fff; }
.rh-cal-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--rh-black); color: #fff; padding: 6px 8px 9px; }
.rh-cal-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--rh-red) 0 50%, var(--rh-gold) 50% 100%); }
.rh-cal-month { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.rh-cal-head button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 18px; line-height: 1; padding: 0 0 2px; display: grid; place-items: center; transition: background .15s, color .15s; }
.rh-cal-head button:hover:not(:disabled) { background: var(--rh-gold); border-color: var(--rh-gold); color: var(--rh-black); }
.rh-cal-head button:disabled { opacity: .3; cursor: not-allowed; }

.rh-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 3px 2px; padding: 8px; justify-items: center; justify-content: center; }
.rh-wd { width: 100%; text-align: center; font-size: 10px; font-weight: 700; color: var(--rh-muted); text-transform: uppercase; padding: 2px 0 4px; }
.rh-wd.is-we { color: var(--rh-red); }

/* Celda de día compacta (32px). Cada estado tiene un solo estilo, igual en la simbología */
.rh-day { position: relative; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #fff; color: var(--rh-ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; transition: background .12s, color .12s, box-shadow .12s; }
.rh-day.is-empty { visibility: hidden; }

/* Disponible */
.rh-day.is-free { box-shadow: inset 0 0 0 1px #d9d9de; }
button.rh-day.is-free:hover { box-shadow: inset 0 0 0 2px var(--rh-black); }

/* Quedan pocas: punto dorado */
.rh-day.is-few { padding-bottom: 5px; }
.rh-day.is-few::after { content: ""; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--rh-gold-line); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* No alcanzan las noches */
.rh-day.is-nofit { color: #a0a0a6; outline: 1px dashed #c9c9cf; outline-offset: -1px; cursor: not-allowed; }

/* No disponible */
.rh-day.is-off { color: #a9a9af; background: #ececef repeating-linear-gradient(135deg, transparent 0 3px, rgba(0,0,0,.08) 3px 5px); text-decoration: line-through; cursor: not-allowed; }
.rh-day.is-past { color: #cfcfd4; background: transparent; cursor: default; }

/* Hoy */
.rh-day.is-today::before { content: ""; position: absolute; inset: -2px; border-radius: 10px; border: 2px solid var(--rh-black); pointer-events: none; }

/* Vista previa al pasar el mouse */
.rh-day.is-preview { background: var(--rh-gold-soft); }
.rh-day.is-preview-edge { box-shadow: inset 0 0 0 2px var(--rh-gold-line); }

/* Tu reserva: círculo rojo pequeño = llegada/salida, oro = noches */
.rh-day.is-range { background: var(--rh-gold); color: var(--rh-black); box-shadow: none; }
.rh-day.is-start, .rh-day.is-end { width: 28px; height: 28px; margin: 2px; border-radius: 50%; background: var(--rh-red); color: #fff; box-shadow: none; outline: 0; text-decoration: none; background-image: none; font-size: 12px; }
.rh-day.is-start::after, .rh-day.is-end::after { display: none; }
.rh-day.is-start.is-today::before, .rh-day.is-end.is-today::before { border-radius: 50%; }

.rh-msg { max-width: 270px; min-height: 18px; margin: 8px 0 0; font-size: 12px; color: var(--rh-red-dark); font-weight: 600; }
.rh-msg.is-info { color: var(--rh-muted); font-weight: 500; }

/* Simbología compacta al costado */
.rh-legend { font-size: 12px; color: var(--rh-ink); }
.rh-legend-group + .rh-legend-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rh-line); }
.rh-legend-title { margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rh-muted); }
.rh-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rh-legend li { display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1.2; }
.rh-legend .rh-day { flex: 0 0 auto; width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }
.rh-legend .rh-day.is-start, .rh-legend .rh-day.is-end { width: 20px; height: 20px; margin: 1px; border-radius: 50%; font-size: 9px; }
.rh-legend .rh-day.is-today::before { border-radius: 8px; inset: -2px; }
.rh-legend .rh-day.is-few { padding-bottom: 4px; }
.rh-legend .rh-day.is-few::after { bottom: 2px; width: 4px; height: 4px; }

/* Cargando */
.rh-booking.is-loading .rh-months { opacity: .45; pointer-events: none; }

/* Resumen */
.rh-summary { margin: 8px 24px 0; padding: 16px; border-radius: 14px; background: #fafafa; border: 1px solid var(--rh-line); }
.rh-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.rh-dates span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rh-muted); }
.rh-dates b { font-size: 15px; color: var(--rh-black); }
.rh-arrow { color: var(--rh-red); font-weight: 800; font-size: 18px; }
.rh-breakdown { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--rh-line); font-size: 14px; }
.rh-breakdown:empty { display: none; }
.rh-breakdown li { display: flex; justify-content: space-between; margin: 0 0 6px; color: #444; }
.rh-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--rh-black); }
.rh-total span { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.rh-total b { font-size: 24px; font-weight: 800; color: var(--rh-black); }

/* Botón */
.rh-form { margin: 0; padding: 16px 24px 24px; }
.rh-booking .rh-submit { display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px 20px; font-size: 16px; font-weight: 800; letter-spacing: .02em; background: var(--rh-red); color: #fff; transition: background .15s, transform .1s; float: none; }
.rh-booking .rh-submit:hover:not(:disabled) { background: var(--rh-black); color: #fff; }
.rh-booking .rh-submit:active:not(:disabled) { transform: translateY(1px); }
.rh-booking .rh-submit:disabled { background: #d4d4d8; color: #fff; cursor: not-allowed; opacity: 1; }

.rh-booking button:focus-visible { outline: 3px solid var(--rh-gold); outline-offset: 2px; }

/* Responsive: la simbología se mantiene al costado; solo se apila en pantallas muy angostas */
@container (max-width: 460px) {
	.rh-head, .rh-steps, .rh-cal-wrap, .rh-form { padding-left: 14px; padding-right: 14px; }
	.rh-summary { margin-left: 14px; margin-right: 14px; }
	.rh-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
	.rh-cal-layout { gap: 10px; }
	.rh-grid { grid-template-columns: repeat(7, 28px); padding: 5px; gap: 2px 1px; }
	.rh-day { width: 27px; height: 27px; font-size: 11px; border-radius: 6px; }
	.rh-day.is-start, .rh-day.is-end { width: 24px; height: 24px; margin: 1px; font-size: 11px; }
	.rh-day.is-today::before { border-radius: 8px; }
	.rh-wd { font-size: 9px; }
	.rh-cal-head button { width: 24px; height: 24px; font-size: 16px; }
	.rh-cal-month { font-size: 13px; }
	.rh-msg { max-width: 210px; font-size: 11px; }
	.rh-legend { font-size: 11px; }
	.rh-legend li { gap: 6px; }
	.rh-legend .rh-day { width: 18px; height: 18px; font-size: 9px; border-radius: 5px; }
	.rh-legend .rh-day.is-start, .rh-legend .rh-day.is-end { width: 16px; height: 16px; font-size: 8px; }
}
@container (max-width: 340px) {
	.rh-cal-layout { grid-template-columns: 1fr; }
	.rh-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.rh-legend-group + .rh-legend-group { margin-top: 0; padding-top: 0; border-top: 0; }
}
