/*PÁGINA DETALLE DEL ALOJAMIENTO*/

* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background-color: #f5f9fd;

    font-family: "Poppins", sans-serif;

    color: #173f70;
}


/* Contenedor general */
.detalle-pagina {
    padding: 45px 20px 70px;
}


.detalle-contenedor {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;

    gap: 35px;

    align-items: start;
}

/*GALERÍA PRINCIPAL*/

.galeria-principal {
    margin-bottom: 35px;
}


/* Foto principal */
.imagen-grande {
    width: 100%;
    height: 430px;

    margin-bottom: 12px;
}


.imagen-grande img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 14px;
}


/* Fila de fotos secundarias */
.imagenes-secundarias {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 10px;
}


/* Contenedor de cada miniatura */
.miniatura {
    position: relative;

    height: 125px;

    overflow: hidden;

    border-radius: 10px;

    cursor: pointer;
}


/* Imagen secundaria */
.miniatura img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.2s ease;
}


/* Efecto al pasar el mouse */
.miniatura:hover img {
    transform: scale(1.04);
}


/* Miniatura que indica que existen más fotos */
.miniatura-mas {
    position: relative;
}


/* Capa oscura sobre la última foto */
.miniatura-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(20, 35, 50, 0.65);

    color: white;

    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
}


/*INFORMACIÓN*/

.informacion-alojamiento {
    margin-bottom: 40px;
}


.detalle-etiqueta {
    display: block;

    margin-bottom: 7px;

    color: #0d6efd;

    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.3px;
    text-transform: uppercase;
}


.informacion-alojamiento h1 {
    margin: 0 0 10px;

    color: #0b3d91;

    font-size: 38px;
    line-height: 1.2;
}


/* Ubicación */
.detalle-ubicacion {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 22px;

    color: #60758d;

    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
}


.detalle-ubicacion svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: #0d6efd;
    stroke-width: 2;

    flex-shrink: 0;
}


/* Descripción */
.detalle-descripcion {
    max-width: 750px;

    margin: 0 0 25px;

    color: #62758a;

    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;

    line-height: 1.75;
}


/* Características */
.detalle-caracteristicas {
    display: grid;

    grid-template-columns: repeat(2, minmax(180px, 250px));

    gap: 15px;
}


.caracteristica {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px 18px;

    background-color: #edf5ff;

    border-radius: 11px;
}


.caracteristica svg {
    width: 30px;
    height: 30px;

    fill: none;

    stroke: #0d6efd;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}


.caracteristica span {
    display: block;

    color: #6f8193;

    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
}


.caracteristica strong {
    display: block;

    margin-top: 1px;

    color: #123b73;

    font-size: 14px;
}


.ubicacion-seccion h2 {
    margin: 0 0 18px;

    color: #0b3d91;

    font-size: 25px;
}


/*UBICACIÓN*/

.ubicacion-seccion {
    padding-top: 30px;

    border-top: 1px solid #dce5ee;
}


.ubicacion-contenido {
    display: grid;

    grid-template-columns: 0.8fr 1.5fr;

    gap: 25px;
}


.ubicacion-texto > p {
    margin: 0 0 20px;

    color: #667b91;

    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;

    line-height: 1.7;
}


.ubicacion-tarjeta {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px;

    background-color: #eaf3ff;

    border-radius: 10px;
}


.ubicacion-tarjeta svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: #0d6efd;
    stroke-width: 2;

    flex-shrink: 0;
}


.ubicacion-tarjeta strong,
.ubicacion-tarjeta span {
    display: block;
}


.ubicacion-tarjeta strong {
    margin-bottom: 3px;

    font-size: 13px;

    color: #123b73;
}


.ubicacion-tarjeta span {
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;

    color: #62758a;
}


/* Mapa provisional */
.mapa-placeholder {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 13px;

    background:
            linear-gradient(
                    135deg,
                    #d9efdf,
                    #c8e8d4,
                    #cce7f3
            );

    color: #174f79;

    text-align: center;
}


.mapa-placeholder svg {
    width: 42px;
    height: 42px;

    fill: none;

    stroke: #e53935;
    stroke-width: 2;
}


.mapa-placeholder span {
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
}


/* Mapa real de la ubicación (reemplaza al provisional cuando hay coordenadas) */
.mapa-alojamiento-caja {
    position: relative;
}

.mapa-alojamiento {
    height: 260px;

    border-radius: 13px;

    overflow: hidden;

    border: 1px solid #dce5ee;
}

.mapa-alojamiento-enlace {
    position: absolute;
    right: 10px;
    bottom: 10px;

    z-index: 1000; /* por encima del mapa */

    padding: 8px 12px;

    border-radius: 8px;

    background-color: white;

    color: #0d6efd;

    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mapa-alojamiento-enlace:hover {
    background-color: #eef6ff;
}

/* Pin de la casita (mismo estilo que en la página del mapa) */
.pin-alojamiento {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    border: 3px solid white;
    border-radius: 50% 50% 50% 0;

    background-color: #1d4ed8;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);

    transform: rotate(-45deg);
}

.pin-alojamiento span {
    font-size: 21px;
    line-height: 1;

    transform: rotate(45deg);
}


/*PANEL DE RESERVA*/

.reserva-panel {
    position: sticky;
    top: 100px;

    padding: 22px;

    background-color: white;

    border: 1px solid #dce6f0;
    border-radius: 14px;

    box-shadow: 0 6px 22px rgba(0, 50, 100, 0.08);
}


/* Precio */
.reserva-precio {
    display: flex;
    align-items: baseline;

    gap: 7px;

    padding-bottom: 17px;

    border-bottom: 1px solid #dce5ee;
}


.reserva-precio strong {
    color: #0d6efd;

    font-size: 27px;
}


.reserva-precio span {
    color: #718499;

    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
}


/* Disponibilidad */
.disponibilidad {
    margin-top: 18px;
}


.disponibilidad h3 {
    margin: 0 0 13px;

    color: #123b73;

    font-size: 16px;
}


/*CALENDARIO*/

.calendario {
    padding: 12px;

    border: 1px solid #dde6ef;
    border-radius: 10px;
}


.calendario-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}


.calendario-cabecera strong {
    font-size: 14px;

    color: #123b73;
}


.calendario-flecha {
    width: 30px;
    height: 30px;

    border: none;

    background: none;

    color: #0d6efd;

    font-size: 23px;

    cursor: pointer;
}


.calendario-dias-nombre,
.calendario-dias {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 4px;
}


.calendario-dias-nombre {
    margin-bottom: 5px;
}


.calendario-dias-nombre span {
    text-align: center;

    color: #526d8a;

    font-family: "Nunito Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
}


.calendario-dias button,
.calendario-dias > span {
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}


.calendario-dias button {
    border: 1px solid #e0e8f0;

    border-radius: 6px;

    background-color: white;

    color: #244e7d;

    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;

    cursor: pointer;
}


.calendario-dias button:hover {
    border-color: #0d6efd;

    background-color: #eef6ff;
}


/* Esta clase después la aplicaremos desde las reservas CONFIRMADAS */
.calendario-dias button.ocupado {
    border-color: #dc2626;
    background-color: #ef4444;
    color: white;
    cursor: not-allowed;
    font-weight: 700;
}


/* Leyenda */
.calendario-leyenda {
    display: flex;

    gap: 20px;

    margin: 12px 0 20px;

    color: #657a90;

    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
}


.calendario-leyenda > div {
    display: flex;
    align-items: center;

    gap: 6px;
}


.leyenda-color {
    width: 17px;
    height: 17px;

    border: 1px solid #d9e2eb;
    border-radius: 4px;
}


.leyenda-color.disponible {
    background-color: white;
}


.leyenda-color.ocupado {
    border-color: #dc2626;
    background-color: #ef4444;
}

/*Día seleccionado por el usuario disponibles*/
.calendario-dias button.seleccionado {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: white;
    font-weight: 700;
}

.calendario-dias button.seleccionado:first-child {
    border-radius: 8px;
}

/* Fechas anteriores al día actual */
.calendario-dias button.fecha-pasada {
    background-color: #f1f3f5;
    border-color: #e1e5e9;
    color: #a7b0b8;
    cursor: not-allowed;
}

.leyenda-color.seleccionado {
    border-color: #0d6efd;
    background-color: #0d6efd;
}

/*FORMULARIO DE RESERVA*/

.reserva-formulario {
    padding-top: 4px;
}


.reserva-fechas {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


.reserva-campo {
    margin-bottom: 13px;
}


.reserva-campo label {
    display: block;

    margin-bottom: 6px;

    color: #123b73;

    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
}


.reserva-campo input {
    width: 100%;
    height: 42px;

    padding: 0 10px;

    border: 1px solid #d9e2eb;
    border-radius: 8px;

    background-color: #fafcff;

    color: #355675;

    font-family: "Nunito Sans", sans-serif;

    outline: none;
}


.reserva-campo input:focus {
    border-color: #0d6efd;

    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.09);
}


/* Botón solicitar */
.boton-solicitar {
    width: 100%;
    height: 45px;

    border: none;
    border-radius: 8px;

    background-color: #0d6efd;

    color: white;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


.boton-solicitar:hover {
    background-color: #0b5ed7;
}

/*SERVICIOS DEL ALOJAMIENTO*/

/* Servicios incluidos */
.servicios-detalle {
    margin-top: 25px;
}

.servicios-detalle h2 {
    margin: 0 0 14px;

    color: #0b3d91;

    font-size: 18px;
}


/* Contenedor horizontal de servicios */
.servicios-detalle-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


/* Cada servicio */
.servicio-detalle-item {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 9px 12px;

    background-color: #edf5ff;

    border-radius: 9px;

    color: #123b73;

    min-width: auto;
}


/* Ícono */
.servicio-detalle-item svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: #0d6efd;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}

/* Nombre del servicio */
.servicio-detalle-item span {
    font-family: "Nunito Sans", sans-serif;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

/*VISOR DE IMAGENES*/

.foto-galeria {
    cursor: pointer;
}

.visor-imagen {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 0.88);

    z-index: 9999;
}

.visor-imagen.activo {
    display: flex;
}

.visor-imagen img {
    max-width: 85%;
    max-height: 85vh;

    object-fit: contain;

    border-radius: 10px;
}

.visor-cerrar {
    position: absolute;

    top: 20px;
    right: 30px;

    border: none;
    background: none;

    color: white;

    font-size: 42px;

    cursor: pointer;
}

.visor-flecha {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 36px;

    cursor: pointer;
}

.visor-anterior {
    left: 30px;
}

.visor-siguiente {
    right: 30px;
}

/* Botón para volver al inicio */
.boton-volver {
    grid-column: 1 / -1;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    width: fit-content;

    margin-bottom: 5px;

    color: #0d6efd;

    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.boton-volver svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.boton-volver:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/*CALENDARIO FLATPICKR - ESTILO DEL PROYECTO*/

.calendario-reserva {
    width: 100%;
    margin-top: 12px;
}

.calendario-reserva .flatpickr-calendar {
    width: 100% !important;
    max-width: 100%;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    box-shadow: none;
    background: #ffffff;
    font-family: "Nunito Sans", sans-serif;
}


/* Parte superior: mes y año */
.calendario-reserva .flatpickr-months {
    padding: 10px 8px 4px;
}

.calendario-reserva .flatpickr-current-month {
    font-size: 17px;
    font-weight: 700;
    color: #123b73;
}

.calendario-reserva .flatpickr-current-month input.cur-year {
    font-weight: 700;
    color: #123b73;
}


/* Flechas */
.calendario-reserva .flatpickr-prev-month,
.calendario-reserva .flatpickr-next-month {
    top: 8px;
    padding: 9px 12px;
}

.calendario-reserva .flatpickr-prev-month svg,
.calendario-reserva .flatpickr-next-month svg {
    fill: #0d6efd;
}


/* Días de la semana */
.calendario-reserva .flatpickr-weekdays {
    margin-top: 5px;
}

.calendario-reserva span.flatpickr-weekday {
    color: #59718d;
    font-size: 13px;
    font-weight: 700;
}


/* Contenedor de días */
.calendario-reserva .flatpickr-days {
    width: 100% !important;
}

.calendario-reserva .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 5px 8px 10px;
}


/* Día normal */
.calendario-reserva .flatpickr-day {
    width: 14.2857%;
    max-width: none;
    height: 38px;
    line-height: 38px;

    border-radius: 8px;

    color: #27415c;
    font-size: 14px;

    border: 1px solid transparent;
}


/* Día disponible */
.calendario-reserva .flatpickr-day:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    background: white;
}


/* Hover */
.calendario-reserva .flatpickr-day:hover {
    background: #edf5ff;
    border-color: #c9ddf8;
}


/* Seleccionados */
.calendario-reserva .flatpickr-day.selected,
.calendario-reserva .flatpickr-day.startRange,
.calendario-reserva .flatpickr-day.endRange {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}


/* Días entre ingreso y salida */
.calendario-reserva .flatpickr-day.inRange {
    background: #dcebff !important;
    border-color: #dcebff !important;
    color: #0b3d91 !important;
    box-shadow:
            -5px 0 0 #dcebff,
            5px 0 0 #dcebff;
}


/* Fecha de hoy */
.calendario-reserva .flatpickr-day.today {
    border-color: #0d6efd;
    font-weight: 700;
}


/* Fechas no disponibles */
.calendario-reserva .flatpickr-day.flatpickr-disabled {
    background: #f2f4f7;
    color: #b5bdc7;
    cursor: not-allowed;
}

/* Ocultar el input que usa Flatpickr internamente */
.calendario-reserva .calendario-reserva-input {
    display: none !important;
}

.calendario-reserva .flatpickr-day.fecha-ocupada {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: white !important;
    opacity: 1 !important;
    font-weight: 700;
    cursor: not-allowed;
}

.mensaje-reserva {
    margin-top: 12px;
    padding: 10px 12px;

    border: 1px solid #f3b5b5;
    border-radius: 8px;

    background: #fff1f1;
    color: #a83232;

    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

/*Mensaje de reserva por 1 noche*/
.aviso-reserva-corta {
    margin: 0 0 16px;
    padding: 14px 15px;

    background: linear-gradient(135deg, #eef5ff, #f8fbff);

    border: 1px solid #cfe0f7;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;

    color: #234a75;
}

.aviso-reserva-corta strong {
    display: block;

    margin-bottom: 6px;

    color: #0b3d91;

    font-size: 13px;
    font-weight: 800;
}

.aviso-reserva-corta p {
    margin: 0;

    color: #5b6f85;

    font-size: 12px;
    line-height: 1.5;
}

.icono-mascotas {
    fill: #0d6efd !important;
    stroke: none !important;
}

.icono-mascotas ellipse,
.icono-mascotas path {
    fill: #0d6efd !important;
    stroke: none !important;
}

.detalle-acciones {
    margin-top: 18px;

    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.boton-ver-disponibilidad {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 12px 18px;

    border: 1px solid #cfe0ff;
    border-radius: 12px;

    background: #f5f9ff;
    color: #0b47b8;

    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    box-shadow: 0 6px 18px rgba(11, 71, 184, .10);

    transition:
            background .15s ease,
            border-color .15s ease,
            transform .15s ease,
            box-shadow .15s ease;
}

.boton-ver-disponibilidad:hover {
    background: #eaf2ff;
    border-color: #0b47b8;

    transform: translateY(-1px);

    box-shadow: 0 8px 22px rgba(11, 71, 184, .15);
}

.boton-ver-disponibilidad:active {
    transform: translateY(0);
}

.boton-ver-disponibilidad svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}


/* Para que al tocar el botón baje suavemente al calendario */
html {
    scroll-behavior: smooth;
}


/* Evita que el calendario quede pegado arriba */
#bloqueDisponibilidad {
    scroll-margin-top: 110px;
}

/*ANIMACIONES AL HACER SCROLL*/

.animar-scroll {
    opacity: 0;
    transform: translateY(25px);

    transition:
            opacity 0.6s ease,
            transform 0.6s ease;
}

.animar-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/*Mensaje debajo del titulo Disponibilidad*/
.disponibilidad-ayuda {
    margin: .2rem 0 .8rem;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.4;
}

/* En caso de que el usuario tenga reducidas las animaciones */
@media (prefers-reduced-motion: reduce) {

    .animar-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

}


/*RESPONSIVE*/

@media (max-width: 1050px) {

    .detalle-contenedor {
        grid-template-columns: 1fr;
    }


    .reserva-panel {
        position: static;
    }

}


@media (max-width: 700px) {

    .galeria-principal {
        grid-template-columns: 1fr;
    }


    .imagen-grande {
        height: 300px;
    }


    .imagenes-secundarias {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }


    .imagenes-secundarias img {
        height: 150px;
    }


    .detalle-caracteristicas {
        grid-template-columns: 1fr;
    }

    .galeria-miniaturas {
        grid-template-columns: repeat(2, 1fr);
    }


    .ubicacion-contenido {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .detalle-pagina {
        padding: 25px 14px 50px;
    }


    .informacion-alojamiento h1 {
        font-size: 29px;
    }


    .galeria-miniaturas {
        grid-template-columns: 1fr;
    }


    .reserva-fechas {
        grid-template-columns: 1fr;
    }

}

/*RESEÑAS (comentarios y puntuación de quienes se hospedaron)*/
.resenas-seccion {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dce5ee;
}

.resenas-seccion h2 {
    margin: 0 0 14px;
    color: #0b3d91;
    font-size: 25px;
}

/* Resumen: 4,5 ★★★★★ (12 reseñas) */
.resenas-resumen {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-family: "Nunito Sans", sans-serif;
    color: #62758a;
}

.resenas-resumen strong {
    color: #123b73;
    font-family: "Poppins", sans-serif;
    font-size: 34px;
}

/* Estrellas para mostrar (no se pueden tocar) */
.estrellas span {
    color: #d5dde6;
    font-size: 18px;
}

.estrellas span.activa {
    color: #f5b301;
}

/* Avisos (no inició sesión, no se hospedó, ya reseñó...) */
.resena-aviso {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 10px;
    background-color: #edf5ff;
    color: #123b73;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
}

.resena-aviso a {
    color: #0d6efd;
    font-weight: 700;
}

.resena-aviso.ok {
    background-color: #e8f7ee;
    color: #1e6b3a;
}

.resena-aviso.error {
    background-color: #fff1f1;
    color: #a83232;
}

/* Formulario */
.resena-formulario {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid #dce6f0;
    border-radius: 14px;
    background-color: white;
}

.resena-formulario h3 {
    margin: 0 0 10px;
    color: #123b73;
    font-size: 16px;
}

.resena-formulario textarea {
    width: 100%;
    min-height: 90px;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid #d9e2eb;
    border-radius: 8px;
    font-family: "Nunito Sans", sans-serif;
    resize: vertical;
}

/* Estrellas para elegir: se escriben de 5 a 1 y se dan vuelta con row-reverse,
   así al pasar el mouse por una se pintan esa y todas las anteriores */
.elegir-estrellas {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.elegir-estrellas input {
    display: none;
}

.elegir-estrellas label {
    color: #d5dde6;
    font-size: 30px;
    cursor: pointer;
}

.elegir-estrellas input:checked ~ label,
.elegir-estrellas label:hover,
.elegir-estrellas label:hover ~ label {
    color: #f5b301;
}

/* Lista de reseñas */
.resena-item {
    padding: 16px 0;
    border-bottom: 1px solid #edf0f3;
}

.resena-item-cabecera {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.resena-item-cabecera strong {
    color: #123b73;
}

.resena-item-cabecera span,
.resena-item p {
    color: #62758a;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
}

.resena-item p {
    margin: 6px 0 0;
    line-height: 1.6;
}

/* Botón "Publicar reseña": mismo estilo que "Solicitar reserva", pero del ancho del texto */
.boton-resena {
    width: auto;
    padding: 0 24px;
}

/* Cuando todavía no hay reseñas */
.resenas-vacio {
    margin: 0;
    color: #62758a;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
}

@media (max-width: 500px) {
    .boton-resena {
        width: 100%;
    }
}

/* BOTÓN FLOTANTE VER DISPONIBILIDAD */
.detalle-accion-fija {
    display: none;
}

/* En celular queda flotando abajo */
@media (max-width: 768px) {

    .detalle-accion-fija {
        display: block;
        position: fixed;

        left: 12px;
        right: 12px;
        bottom: 12px;

        width: auto;
        margin: 0;

        z-index: 2000;

        padding: 3px;

        background: rgba(255, 255, 255, .94);

        border: 1px solid rgba(207, 224, 255, .9);
        border-radius: 13px;

        box-shadow: 0 10px 30px rgba(11, 61, 145, .18);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }


    .detalle-accion-fija .boton-ver-disponibilidad {
        width: 100%;

        margin: 0;
        padding: 12px 16px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        border-radius: 11px;

        background: #0d6efd;
        border-color: #0d6efd;

        color: white;

        text-decoration: none;

        box-shadow: none;
    }


    .detalle-accion-fija .boton-ver-disponibilidad:hover {
        background: #0b5ed7;
        border-color: #0b5ed7;

        transform: none;
    }


    .detalle-accion-fija .boton-ver-disponibilidad svg {
        width: 18px;
        height: 18px;

        fill: none;
        stroke: currentColor;
        stroke-width: 2;

        stroke-linecap: round;
        stroke-linejoin: round;
    }


    /* Espacio para que el botón no tape contenido */
    .detalle-pagina {
        padding-bottom: 105px;
    }
}
