/* =====================================================
   BUSCADOR DE VIAJES
===================================================== */

* {
    box-sizing: border-box;
}


/* -----------------------------------------------------
   CONTENEDOR
----------------------------------------------------- */

.buscador-container {

    width: 100%;
    max-width: 1100px;

    margin: 30px auto;
    padding: 30px;

    background: #ffffff;

    border-radius: 22px;
	
	border: 1px solid #e5e7eb;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);

}


/* -----------------------------------------------------
   TÍTULO
----------------------------------------------------- */

.buscador-container h2 {

    margin: 0 0 10px;

    text-align: center;

    font-size: 28px;

    color: #111827;

}


/* -----------------------------------------------------
   DESCRIPCIÓN
----------------------------------------------------- */

.descripcion {

    margin: 0 0 25px;

    text-align: center;

    font-size: 15px;

    color: #6b7280;

}


/* -----------------------------------------------------
   BARRA DE BÚSQUEDA
----------------------------------------------------- */

.selectores {

    display: flex;

    width: 100%;

    gap: 10px;

    align-items: flex-end;

}


/* -----------------------------------------------------
   CAMPOS
----------------------------------------------------- */

.campo {

    flex: 1;

    min-width: 0;

}


.campo label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 600;

    color: #374151;

}


/* -----------------------------------------------------
   INPUTS Y SELECT
----------------------------------------------------- */

.campo input,
.campo select {

    display: block;

    width: 100%;

    height: 50px;

    padding: 0 14px;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


/* -----------------------------------------------------
   HOVER
----------------------------------------------------- */

.campo input:hover,
.campo select:hover {

    border-color: #2563eb;

}


/* -----------------------------------------------------
   FOCUS
----------------------------------------------------- */

.campo input:focus,
.campo select:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .12);

}


/* -----------------------------------------------------
   BOTÓN
----------------------------------------------------- */

#buscar {

    flex: 0 0 auto;

    height: 50px;

    padding: 0 28px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


#buscar:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(0, 0, 0, .12);

}


/* -----------------------------------------------------
   MENSAJE
----------------------------------------------------- */

#mensaje {

    min-height: 20px;

    margin-top: 15px;

    text-align: center;

    font-size: 14px;

    color: #6b7280;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .buscador-container {

        padding: 25px;

    }


    .selectores {

        flex-wrap: wrap;

    }


    .campo {

        flex: 1 1 calc(50% - 10px);

    }


    #buscar {

        flex: 1 1 100%;

    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .buscador-container {

        margin: 15px auto;

        padding: 20px;

        border-radius: 18px;
		
		border: 1px solid #e5e7eb;

    }


    .buscador-container h2 {

        font-size: 23px;

    }


    .descripcion {

        font-size: 14px;

        margin-bottom: 20px;

    }


    .selectores {

        display: flex;

        flex-direction: column;

        gap: 12px;

    }


    .campo {

        width: 100%;

        flex: none;

    }


    .campo input,
    .campo select {

        height: 48px;

    }


    #buscar {

        width: 100%;

        height: 48px;

    }

}

/* =====================================================
   AUTOCOMPLETADO DE DESTINOS
===================================================== */

.destino-autocomplete {

    position: relative;

}


#sugerencias-destino {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    width: 100%;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);

    overflow: hidden;

    z-index: 1000;

}


.sugerencia-destino {

    padding: 13px 15px;

    font-size: 15px;

    color: #111827;

    background: #ffffff;

    cursor: pointer;

    transition: background .15s ease;

}


.sugerencia-destino:hover {

    background: #f3f4f6;

}

/* =====================================================
   BUSCADOR MÓVIL - RESUMEN
===================================================== */

.buscador-movil-resumen {
    display: none;
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    /* Ocultar buscador completo */

    .buscador-container > .selectores,
    .buscador-container > .descripcion,
    .buscador-container > h2,
    .buscador-container > #mensaje,
    .buscador-container > #buscar {
        display: block;
    }


    /* -------------------------------------------------
       CAJA RESUMEN
    ------------------------------------------------- */

    .buscador-movil-resumen {

        display: flex;

        align-items: center;

        justify-content: space-between;

        width: 100%;

        min-height: 68px;

        padding: 10px 12px 10px 16px;

        background: #ffffff;

        border: 1px solid #e5e7eb;

        border-radius: 14px;

        box-shadow:
            0 4px 14px rgba(0,0,0,.10);

        cursor: pointer;

    }


    /* -------------------------------------------------
       CONTENIDO
    ------------------------------------------------- */

    .resumen-contenido {

        flex: 1;

        min-width: 0;

    }


    /* -------------------------------------------------
       DESTINO
    ------------------------------------------------- */

    .resumen-destino {

        font-size: 16px;

        font-weight: 700;

        line-height: 22px;

        color: #111827;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }


    /* -------------------------------------------------
       FECHAS + ALOJAMIENTO
    ------------------------------------------------- */

    .resumen-detalles {

        margin-top: 2px;

        font-size: 13px;

        line-height: 19px;

        font-weight: 500;

        color: #6b7280;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }


    /* -------------------------------------------------
       LUPA
    ------------------------------------------------- */

    .resumen-lupa {

        display: flex;

        align-items: center;

        justify-content: center;

        flex: 0 0 42px;

        width: 42px;

        height: 42px;

        margin-left: 10px;

        border-radius: 12px;

        background: #00769d;

        color: #ffffff;

        font-size: 19px;

    }

}

/* =====================================================
   MOSTRAR BUSCADOR AL ABRIR EN MÓVIL
===================================================== */

@media (max-width: 600px) {

    .buscador-container.buscador-movil-abierto > .selectores,
    .buscador-container.buscador-movil-abierto > .descripcion,
    .buscador-container.buscador-movil-abierto > h2,
    .buscador-container.buscador-movil-abierto > #mensaje {

        display: block;

    }


    .buscador-container.buscador-movil-abierto > .selectores {

        display: flex;

        flex-direction: column;

        gap: 12px;

    }


    .buscador-container.buscador-movil-abierto > .buscador-movil-resumen {

        display: none;

    }

}

.resumen-ejemplo {
    margin-top: 2px;
    font-size: 13px;
    line-height: 16px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cerrar-buscador-movil {
    display: none !important;
}


/* Cerrar oculto mientras el buscador está cerrado */

@media (max-width: 600px) {

    .cerrar-buscador-movil {
        display: none !important;
    }

    .buscador-container.buscador-movil-abierto
    .cerrar-buscador-movil {
        display: block !important;
    }

}

@media (max-width: 600px) {

    .buscador-movil-resumen {
        display: none !important;
    }

}

/* --- TAMAÑO PARA ORDENADORES Y TABLETS --- */
.archive .entries .entry-card .entry-title,
.archive .entries .entry-card .entry-title a {
    --theme-card-title-font-size: 25px !important; 
    font-size: 22px !important;
}

/* --- TAMAÑO EXCLUSIVO PARA MÓVILES --- */
@media (max-width: 650px) {
    .archive .entries .entry-card .entry-title,
    .archive .entries .entry-card .entry-title a {
        --theme-card-title-font-size: 18px !important; 
        font-size: 16px !important;
    }
}
