/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
/* Solo para móvil */
@media (max-width: 1023px) {
    /* Submenú dinámico Hoteles */
    #menu-item-4078.submenu-active .sub-menu,
    #menu-item-4078 .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Asegurar que los links se vean */
    #menu-item-4078 .sub-menu .ct-menu-link {
        color: #333 !important; /* Ajusta al color que necesites */
    }
}
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none; /* ← Importante: oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#lightbox.show { 
    display: flex; /* ← Cuando se abre */ 
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
    position: absolute;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
}

#lightbox .close {
    top: 20px;
    right: 40px;
}

#lightbox .prev {
    left: 40px;
}

#lightbox .next {
    right: 40px;
}

/* ============================================================
   1) GRID GENERAL PARA TARJETAS
============================================================ */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1400px;
  padding: 1rem;
}

/* 4 columnas escritorio grande */
@media (min-width: 1200px) {
  .grid-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   2) TARJETA GENÉRICA
============================================================ */
.card-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.card-item .img-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.card-item .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.card-item:hover img {
  transform: scale(1.05);
}

.card-item .card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ============================================================
   3) BOTONES GENERALES
============================================================ */
.btn-ver {
  display: block;
  padding: .7rem 1rem;
  background: #e02379;
  color: #fff !important;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  transition: background .2s ease;
  width: fit-content;
  margin: 0 auto;
}

.btn-ver:hover {
  background: #8a0040;
}

/* ============================================================
   4) LAYOUT DETALLE HABITACIÓN
============================================================ */
.detalle-habitacion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .detalle-habitacion {
    grid-template-columns: 2fr 1fr;
  }
}

.galeria-habitacion img.imagen-principal {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.miniaturas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.miniaturas .thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s;
}

.miniaturas .thumb:hover {
  transform: scale(1.05);
}

/* ============================================================
   5) RESULTADOS DEL BUSCADOR
============================================================ */
#resultsContainer {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

#resultsContainer .col-md-4,
#resultsContainer .col-sm-6,
#resultsContainer .col-12 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

#resultsContainer .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 7px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#resultsContainer .card:hover {
  transform: translateY(-4px);
}

/* ============================================================
   6) HABITACIONES — GRID UNIFICADO
============================================================ */
.habitaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

/* Desktop 3 columnas */
@media (min-width: 992px) {
  .habitaciones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop grande 4 columnas */
@media (min-width: 1200px) {
  .habitaciones-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tarjeta habitación */
.habitacion-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: .25s ease;
  display: flex;
  flex-direction: column;
  max-width: 100% !important;
}

.habitacion-card:hover {
  transform: translateY(-4px);
}

.habitacion-card .img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.habitacion-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   7) BUSCADOR / FILTROS RESPONSIVE
============================================================ */
#filtrosForm {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

#filtrosForm div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#filtrosForm input,
#filtrosForm select {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#filtrosForm label {
  font-size: 0.9rem;
  font-weight: 600;
}

#filtrosForm button {
  width: 100%;
  padding: 0.75rem;
  background: #6a0030;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
}

/* Escritorio */
@media (min-width: 768px) {
  #filtrosForm {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Móvil — compactar */
@media (max-width: 767px) {
  #filtrosForm {
    display: flex;
    flex-direction: column;
    gap: 0.4rem !important;
  }

  #filtrosForm > div {
    flex: 1 1 100% !important;
    min-width: auto !important;
    margin-bottom: 0.6rem;
  }
}
.mb-4
{
    text-align:center !important;
}
/* ============================================================
   8) HOTELES — GRID Y TARJETAS
============================================================ */
.hoteles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
 max-width: 1290px;     /* Igual que Blocksy container width */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;    /* mismo padding suave que usa el tema */
  padding-right: 20px;
}

/* Desktop 3 columnas */
@media (min-width: 992px) {
  .hoteles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop 4 columnas */
@media (min-width: 1200px) {
  .hoteles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tarjeta hotel */
.hotel-card .card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hotel-card:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hotel-card .img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.hotel-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.hotel-card:hover .img-wrapper img {
  transform: scale(1.08);
}

/* Móvil */
@media (max-width: 768px) {
  .hoteles-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hotel-card .img-wrapper {
    height: 180px;
  }
}
/* =============================
   FORMULARIO HOME - RESPONSIVE
   ============================= */

/* 🎯 Estilos base */
#formBuscarHome {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#formBuscarHome div {
    display: flex;
    flex-direction: column;
}

#formBuscarHome label {
    font-weight: 600;
    margin-bottom: 5px;
}

#formBuscarHome input,
#formBuscarHome select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Botón */
#formBuscarHome button {
    background: #6a0030; /* Tu color */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* =============================
   🎉 VISTA ESCRITORIO (horizontal)
   ============================= */
@media (min-width: 1024px) {
    #formBuscarHome {
        flex-direction: row;
        align-items: flex-end;
    }

    #formBuscarHome div {
        flex: 1;
    }

    #formBuscarHome button {
        height: 48px;
        margin-bottom: 3px;
        flex-shrink: 0;
    }
}
/* ============================================
   FORMULARIO FILTROS EN /buscar-habitaciones
   ============================================ */

#filtrosForm {
    background: #ffffff;
    padding: 20px;
    margin: 0 auto 25px auto;
    border-radius: 12px;
    max-width: 900px; /* evita que se expanda demasiado */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Campos internos */
#filtrosForm > div {
    margin-bottom: 15px;
}

/* Inputs y select */
#filtrosForm input,
#filtrosForm select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Botón */
#filtrosForm button {
    width: 100%;
    padding: 12px;
    background: #6a0030;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* =============================
   VISTA ESCRITORIO (fila)
   ============================= */
@media (min-width: 768px) {
    #filtrosForm {
        display: flex;
        gap: 20px;
        align-items: flex-end;
    }

    #filtrosForm > div {
        flex: 1;
        margin-bottom: 0;
    }

    #filtrosForm button {
        width: auto;
        min-width: 130px;
    }
}#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#lightbox.show {
    display: flex;
}

/* Imagen dentro del lightbox */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* Botones */
#lightbox .close,
#lightbox .prev,
#lightbox .next {
    position: absolute;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

#lightbox .close { top: 20px; right: 40px; }
#lightbox .prev  { left: 30px; }
#lightbox .next  { right: 30px; }
.hospedaje-slider {
    max-width: 1100px;
    margin: 0 auto;
}

.hospedajeSwiper {
    border-radius: 18px;
    overflow: hidden;
}

.hospedajeSwiper .swiper-slide {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hospedajeSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
    .hospedajeSwiper .swiper-slide {
        height: 260px;
    }
}
