/* ============================================
   SELAHYAH - TEMPLATE DEFAULT
   ============================================ */

/* ─── LOGO ─── */
.header-logo { height: 80px; width: auto; }
@media (min-width: 768px) { .header-logo { height: 112px; } }

/* ─── GALERÍA ─── */
.gallery-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery-item { cursor: pointer; min-height: 140px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-main { grid-column: span 2; }
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
    .gallery-item-main { grid-column: span 1; grid-row: span 2; }
    .gallery-item { min-height: auto; }
}

/* ─── TÍTULO DE SECCIÓN ─── */
.seccion-titulo {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.9rem;
    margin-bottom: 1.5rem; /* ← NUEVO: separación forzada con la descripción */
}
@media (min-width: 768px) {
    .seccion-titulo {
        font-size: 1.4rem;
        line-height: normal;
        margin-bottom: 2rem;
    }
}

/* ─── AMENIDADES ─── */
.amenidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.amenidades-grid i { color: #c9b187; font-size: 20px; }
@media (max-width: 767px) { .amenidades-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; font-size: 10px; } }

/* ─── TABS ─── */
#tabs-nav { -ms-overflow-style: none; scrollbar-width: none; flex-wrap: nowrap; }
#tabs-nav::-webkit-scrollbar { display: none; }
.nav-link { color: var(--color-text-secondary) !important; }
.nav-link.active { color: var(--color-primary) !important; }
.nav-link:hover { color: var(--color-text) !important; }

/* ─── LAYOUT RESPONSIVE ─── */
.layout-principal { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.col-izquierda { min-width: 0; display: flex; flex-direction: column; }
.col-derecha { display: none; }
@media (min-width: 992px) {
    .layout-principal { grid-template-columns: 2fr 1fr; gap: 3rem; }
    .col-derecha { display: block; }
}

/* ─── WIDGET CALENDARIO ─── */
.col-derecha .card {
    position: sticky;
    top: 1.5rem;
    border-radius: 2rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08) !important;
}

/* ─── CALENDARIO ADAPTABLE ─── */
@media (max-width: 500px) {
    .calendar-day { font-size: 0.68rem; }
    .calendar-selector, .huesped-select { font-size: 0.62rem; padding: 5px 22px 5px 8px; }
}
@media (max-width: 400px) {
    .calendar-day { font-size: 0.62rem; }
    .calendar-selector, .huesped-select { font-size: 0.58rem; padding: 4px 18px 4px 6px; }
    .precio-numero { font-size: 1.5rem; }
    .btn-hoy { padding: 5px 10px; font-size: 0.6rem; }
}

/* ─── PREVENIR DESBORDAMIENTO ─── */
html, body { overflow-x: hidden; width: 100%; max-width: 100vw; }
img { max-width: 100%; height: auto; }
@media (max-width: 576px) {
    .row { --bs-gutter-x: 0.5rem; }
    main { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .card { border-radius: 1rem !important; }
    .btn-principal { padding: 10px 16px; font-size: 0.75rem; }
}

/* ─── CALENDARIO HEADER GRID ─── */
.calendario-header { grid-template-columns: repeat(7, 1fr); gap: 1px; }
#days-container { grid-template-columns: repeat(7, 1fr); gap: 2px; }

/* =============================================
   MEJORAS EXCLUSIVAS PARA MÓVIL
   ============================================= */
@media (max-width: 767.98px) {
    .col-derecha .card,
    .widget-wrapper .card {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18) !important;
        border-radius: 1.5rem !important;
    }
    .calendar-selector,
    .huesped-select {
        padding: 10px 32px 10px 14px !important;
        font-size: 0.85rem !important;
        min-height: 44px;
        background-position: right 14px center !important;
    }
}

/* =============================================
   CARRUSEL DE VALORACIONES
   ============================================= */
.valoraciones-seccion {
    margin-bottom: 3rem !important;
}

#valoracionesCarousel {
    padding-bottom: 50px; /* espacio para indicadores */
}

#valoracionesCarousel .carousel-item .row {
    margin-right: 0;
    margin-left: 0;
}

/* Tarjetas de valoración */
.valoracion-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 1.25rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
}

.valoracion-card p {
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Flechas de navegación */
#valoracionesCarousel .carousel-control-prev,
#valoracionesCarousel .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 36%;
    transform: translateY(-50%);
    background-color: #ffffff;
    border: 2px solid var(--color-primary, #bda37d);
    border-radius: 50%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#valoracionesCarousel .carousel-control-prev {
    left: -18px;
}

#valoracionesCarousel .carousel-control-next {
    right: -18px;
}

/* Ajustar el tamaño y color de los íconos de Phosphor */
#valoracionesCarousel .carousel-control-prev i,
#valoracionesCarousel .carousel-control-next i {
    font-size: 1.5rem;
    color: var(--color-primary, #bda37d);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ocultar el icono de fondo de Bootstrap */
#valoracionesCarousel .carousel-control-prev-icon,
#valoracionesCarousel .carousel-control-next-icon {
    display: none;
}

/* Indicadores debajo */
#valoracionesCarousel .carousel-indicators {
    bottom: 0px;
}

#valoracionesCarousel .carousel-indicators button {
    background-color: var(--color-primary, #bda37d);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
}

/* En móviles las flechas no se muestran */
@media (max-width: 767.98px) {
    #valoracionesCarousel .carousel-control-prev,
    #valoracionesCarousel .carousel-control-next {
        display: none;
    }
    #valoracionesCarousel {
        padding-bottom: 30px;
    }
}