/* Reset Styles
***********************/

* {
    min-width: 0;
    min-height: 0;
}

html {
    scroll-behavior: smooth;
    background: #fff;
    line-height: normal;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    -o-box-sizing: inherit;
    box-sizing: inherit;
}

* {
    transition: all .2s;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    margin: 0;
}

input[type="number"] {
    /* -moz-appearance: textfield;
    appearance: textfield; */
}

input[type="submit"] {
    padding: .5em 2em !important;
    border-radius: 50px !important;
    color: white;
    background: #BE0F2E !important;
    border: 0;
    cursor: pointer;
    width: max-content !important;
    font-weight: 500;
    font-size: 16px;
}

input[type="submit"]:hover {
    background: #790624 !important;
}

main,
footer {
    width: 90%;
    max-width: 980px;
    margin: auto;
}

header {
    background: #BE0F2E;
    background: url(../images/bg-header.png) #BE0F2E center / cover no-repeat;
    padding: 2em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

footer {
    padding: 2em 0;
    margin-top: 5em;
    border-top: 2px solid #BE0F2E;
}

#footer {
    display: grid;
    grid-template-columns: 2fr 6fr;
}

#footer ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: #BE0F2E;
}

h1 {
    font-style: 32px;
    text-align: center;
    font-weight: 500;
    margin: 2em 0 1em;
    color: #BE0F2E;
}

.actions {
    flex-direction: row !important;
    justify-content: center;
}

/* */

.form-wrap {
    margin: 3em auto;
}

.form-grid,
.form-item-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2em 1em;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.form-item-separate {
    padding: 0;
}

.form-item.span-2 {
    grid-column: span 2;
}

.form-item.span-3 {
    grid-column: span 3;
}

.form-item.span-4 {
    grid-column: span 4;
}

.form-item.span-5 {
    grid-column: span 5;
}

.form-item.span-6 {
    grid-column: span 6;
}

.form-item.span-7 {
    grid-column: span 7;
}

.form-item.span-8 {
    grid-column: span 8;
}

.form-item.span-9 {
    grid-column: span 9;
}

.form-item.span-10 {
    grid-column: span 10;
}

.form-item.span-11 {
    grid-column: span 11;
}

.form-item.span-12 {
    grid-column: span 12;
}

.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #efefef;
    margin: 0;
    padding: 0 10px;
    font-family: "Roboto", sans-serif;
}

.form-item input {
    background: #f5f5f5;
}

.form-item input:focus,
.form-item input:focus-visible {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15) !important;
    border: 1px solid #f5f5f5 !important;
    outline: 1px solid crimson;
}

.form-item input[type="file"] {
    border: 0;
    padding: 0;
    height: auto;
    position: relative;
}

.form-item select {
    appearance: none;
    background-image: url(../images/icon-arrow-down.png);
    background-position: calc(100% - 15px) 15px;
    background-repeat: no-repeat;
    background-size: 18px;
    background-color: #f5f5f5;
}

.form-item select:focus {
    background-image: none;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15) !important;
    border: 1px solid #f5f5f5 !important;
    outline: 1px solid crimson;
}

.form-item .select-multiple {
    height: 150px;
    padding: .7em;
    background-image: none;
}

.form-item textarea {
    height: 100px;
    padding: 1em;
    border: 1px solid #efefef;
    background: #f5f5f5;
}

.form-item textarea:focus,
.form-item textarea:focus-visible {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15) !important;
    border: 1px solid #f5f5f5 !important;
    outline: 1px solid crimson;
}

.form-item label {
    font-weight: 500;
    min-height: 1em;
}

.checkbox-wrap,
.radio-wrap {
    display: flex;
    flex-direction: column;
    gap: 1em .5em;
    padding: .8em;
    background: #f5f5f5;
    border-radius: 5px;
    height: 100%;
    margin-top: 3px;
}

.checkbox-wrap .checkbox,
.radio-wrap .radio {
    display: grid;
    grid-template-columns: 14px auto;
    grid-gap: .5em;
    justify-content: start;
    align-items: center;
    position: relative;
}

.checkbox-wrap .checkbox label,
.radio-wrap .radio label {
    font-weight: 400;
}

.checkbox-wrap .checkbox input,
.radio-wrap .radio input {
    /* width: 14px;
    height: 14px; */
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkbox-wrap .checkbox input+label {
    cursor: pointer;
    display: grid;
    grid-template-columns: 14px auto;
    justify-content: start;
    align-items: start;
    grid-gap: .5em;
}

.checkbox-wrap .checkbox input+label::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    border: 2px solid #ccc;
    background: #fff;
    transition: all .2s;
}

.checkbox-wrap .checkbox input[type="checkbox"]:hover+label::before {
    border-color: #000;
}

.checkbox-wrap .checkbox input[type="checkbox"]:checked+label::before {
    border-color: #BE0F2E;
    background: #BE0F2E;
}

.checkbox-wrap-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.protecciondatos {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: row nowrap;
    gap: .5em;
}

.protecciondatos input {
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 20px;
}

.protecciondatos label {
    font-weight: 400;
}

.protecciondatos label a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.protecciondatos label a:hover {
    text-decoration-style: solid;
}

@media all and (max-width: 780px) {

    .form-grid,
    .form-item-grid,
    .checkbox-wrap-horizontal,
    #footer {
        grid-template-columns: 1fr;
    }

    .form-item.span-2,
    .form-item.span-3,
    .form-item.span-4,
    .form-item.span-5,
    .form-item.span-6,
    .form-item.span-7,
    .form-item.span-8,
    .form-item.span-8,
    .form-item.span-10,
    .form-item.span-11,
    .form-item.span-12 {
        grid-column: span 1;
    }

    .form-item-separate {
        padding: 0;
    }

    #footer {
        justify-content: center;
        grid-gap: 40px;
        text-align: center;
    }

    #footer ul {
        justify-content: center;
    }
}

.filtro-busqueda {
    background-color: #BE0F2E; /* Fondo rojo */
    color: #ffffff; /* Texto blanco */
    display: flex;
    justify-content: space-between; /* Alineación a la izquierda y derecha */
    align-items: center; /* Centrado vertical */
    padding: 10px; /* Espaciado interior */
    border-radius: 10px;
    margin-bottom: 10px;
}

.filtro-busqueda h3 {
    margin: 0; /* Elimina el margen predeterminado del h3 */
}

.toggle-filters-button {
    background-color: transparent; /* Fondo transparente */
    border: none; /* Sin borde */
    color: #ffffff; /* Texto blanco */
    font-size: 1rem; /* Tamaño de fuente */
    cursor: pointer; /* Cursor de tipo puntero */
}

.boton-limpiar{
    padding: .5em 2em !important;
    border-radius: 50px !important;
    color: white;
    background: #BE0F2E !important;
    border: 0;
    cursor: pointer;
    width: max-content !important;
    font-weight: 500;
    font-size: 16px;
    vertical-align: center;
}

.alojamiento-resultados{
    margin-bottom: 20px;
}

.alojamiento-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.alojamiento {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: grid;
    padding: 10px;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 40px;
}

.alojamiento img {
    width: 50%;
    height: 100%;
    border-radius: 8px;
}

.alojamiento-info {
    width: 100%;
    padding: 1em;
    background-color: white;
    margin-bottom: 1em;
}

.alojamiento-info h2 {
    margin: 0 0 0.5em;
    font-size: 1.5em;
}

.alojamiento-info p {
    margin: 0.5em 0;
    color: #555;
}

.detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 1em;
}

.detalle-item {
    display: flex;
    align-items: center;
    margin-right: 1em;
}

.detalle-item .icono {
    width: 24px;
    height: 24px;
    margin-right: 0.5em;
}

.fechas-disponibilidad {
    margin-top: 1em;
}

.fechas-disponibilidad h3 {
    margin-bottom: 0.5em;
}

.fechas-disponibilidad ul {
    list-style-type: none;
    padding: 0;
}

.fechas-disponibilidad ul li {
    border-radius: 4px;
    padding: 0.5em;
    margin-bottom: 0.5em;
    color: #00796b;
}

.alojamiento-paginacion {
    margin: 20px 0;
    text-align: center;
}
.pagination-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #8a0c23;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
}
.pagination-button:hover {
    background-color: #525253FF;
}
.pagination-button.active {
    background-color: #525253FF;
}
.splide__slide img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .alojamiento {
        grid-template-columns: 1fr; /* Una sola columna */
        grid-gap: 20px; /* Reduce el espacio entre los elementos */
    }

    .alojamiento img {
        width: 100%; /* Imagen ocupa todo el ancho */
        height: auto; /* Mantener proporciones */
    }

    .alojamiento-info {
        width: 100%; /* Asegura que el texto también ocupe todo el ancho */
        padding: 0;
    }
}

.card-container {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.texto-mapa{
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.card-image {
    max-width: 150px !important; /* Ajusta el tamaño según sea necesario */
    max-height: 150px; /* Mantiene la proporción de la imagen */
    margin-right: 15px; /* Espacio entre la imagen y el texto */
}

.card-content {
    display: flex;
    flex-direction: column; /* Alinea el contenido de texto en columna */
}

.element.style {
    height: 200px;
    overflow: hidden;
}

.splide__slide img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}