/* ==========================================================================
   Hotel detail partial — mobile-first, comercial (tipo Booking/Despegar)
   Marca: azul #3276d8 / #3e71b7 · acento #c0336d · éxito #28a745 · alerta #f5a623
   ========================================================================== */

.hotel-detail {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

/* ----------------------------- Galería ----------------------------------- */
.hotel-gallery {
    position: relative;
    background: #eef0f4;
}

.hotel-gallery-main {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    cursor: zoom-in;
    transition: filter 0.25s ease;
}

.hotel-gallery-main:hover {
    filter: brightness(0.96);
}

.hotel-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.hotel-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.hotel-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cdd3dd;
    border-radius: 6px;
}

.hotel-gallery-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hotel-gallery-thumb:hover {
    border-color: #3276d8;
    transform: translateY(-2px);
}

/* ----------------------------- Cabecera ---------------------------------- */
.hotel-header {
    padding: 16px;
    border-bottom: 1px solid #eef0f4;
}

/* Encabezado de sección (h2) — reseteado para no romper la jerarquía visual */
.hotel-section-title {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
}

.hotel-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(50, 118, 216, 0.1);
    color: #3276d8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 20px;
}

.hotel-title {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a2e;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hotel-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
}

/* Ubicación clickable -> abre el mapa */
.hotel-location {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hotel-location:hover,
.hotel-location:focus-visible {
    background: #eef4fc;
    border-color: #cfe0f7;
    outline: none;
}

.hotel-location:focus-visible {
    box-shadow: 0 0 0 3px rgba(50, 118, 216, 0.25);
}

.hotel-location-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(192, 51, 109, 0.1);
    color: #c0336d;
    font-size: 1rem;
}

.hotel-location-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.hotel-location-city {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.hotel-location-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 700;
    color: #3276d8;
}

.hotel-location-chevron {
    flex: 0 0 auto;
    color: #a0aab8;
    font-size: 0.9rem;
}

/* ----------------------------- Reseñas ----------------------------------- */
.hotel-reviews {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #eef0f4;
    border-radius: 12px;
}

.hotel-reviews-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 46px;
    height: 40px;
    padding: 0 10px;
    background: linear-gradient(135deg, #3e71b7, #3276d8);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 10px;
}

.hotel-reviews-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hotel-reviews-meta strong {
    font-size: 14px;
    color: #1a1a2e;
}

.hotel-reviews-meta small {
    font-size: 12px;
    color: #666;
}

/* ----------------------------- Datos clave ------------------------------- */
.hotel-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
}

.hotel-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.hotel-fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.15rem;
}

.hotel-fact-icon--room { background: rgba(50, 118, 216, 0.12); color: #3276d8; }
.hotel-fact-icon--meal { background: rgba(40, 167, 69, 0.12);  color: #28a745; }
.hotel-fact-icon--in   { background: rgba(23, 162, 184, 0.12); color: #17a2b8; }
.hotel-fact-icon--out  { background: rgba(245, 166, 35, 0.14); color: #e0941a; }

.hotel-fact-body {
    min-width: 0;
}

.hotel-fact-body small {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #718096;
    margin-bottom: 2px;
}

.hotel-fact-body p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

/* ----------------------------- Bloques (cards) --------------------------- */
.hotel-block {
    margin: 0 16px 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.hotel-block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hotel-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(50, 118, 216, 0.12);
    color: #3276d8;
    font-size: 1.05rem;
}

.hotel-block-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ----------------------------- Comodidades ------------------------------- */
.amenity-card {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-height: 48px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.amenity-card:hover {
    background: #eef4fc;
}

.amenity-card .fa-circle-check {
    color: #28a745;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.amenity-desc {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.hotel-amenities-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* ----------------------------- Descripción ------------------------------- */
.desc-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    color: #555;
    transition: max-height 0.3s ease;
}

.text-toggle {
    margin-top: 10px;
    font-weight: 700;
    color: #3276d8;
    text-decoration: none;
}

.text-toggle:hover {
    text-decoration: none;
    color: #3e71b7;
}

/* ----------------------------- Iconos utilitarios ------------------------ */
.icon-sm { font-size: 0.8rem; }

/* ==========================================================================
   Desktop (la columna de servicios mide ~700px)
   ========================================================================== */
@media (min-width: 992px) {

    .hotel-gallery-main {
        height: 320px;
    }

    .hotel-header {
        padding: 20px;
    }

    .hotel-title {
        font-size: 1.5rem;
    }

    /* Datos clave en grilla de 2 columnas para aprovechar el ancho */
    .hotel-facts {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
        gap: 12px;
    }

    .hotel-block {
        margin: 0 20px 20px;
        padding: 20px;
    }

    .hotel-reviews {
        margin: 20px;
    }

    /* Thumbnails algo mayores para aprovechar el ancho */
    .hotel-gallery-thumb {
        width: 72px;
        height: 72px;
    }

    /* Datos clave: que el texto respire en 2 columnas */
    .hotel-fact {
        padding: 14px 16px;
    }
}

/* Toggle de amenities (movido desde hotel-detail.css) */
.hotel-amenities-hide-btn {
    display: none;
}
