/* ==========================================================================
   1. ESTRUCTURA GENERAL Y FILTROS HORIZONTALES
   ========================================================================== */
.gv-catalog-layout {
  width: 100%;
  max-width: 100%;
  /* Cambiamos a 100% para que Elementor o el Tema controlen el ancho total */
  margin: 0 auto;
}

.gv-filter-item label {
  display: block;
  margin-bottom: 5px;
}

/* ==========================================================================
   2. GRILLA Y TARJETAS DEL CATÁLOGO
   ========================================================================== */
.gv-grid {
  display: grid;
  /* 'auto-fit' hace la magia: distribuye las tarjetas para llenar siempre el 100% del ancho */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gv-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.gv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gv-img-wrap {
  position: relative;
  height: 220px;
  width: 100%;
}

.gv-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   3. ETIQUETAS DE PRECIO Y COLORES DINÁMICOS
   ========================================================================== */
.gv-price-tag {
  position: absolute;
  bottom: -15px;
  left: 15px;
  color: #fff;
  font-weight: 900;
  font-size: 1.1em;
  padding: 8px 18px;
  transform: skew(-10deg);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.gv-tag-destino {
  background-color: #e74c3c !important;
}

.gv-tag-paquete {
  background-color: #f39c12 !important;
}

.gv-tag-destino-text {
  color: #e74c3c !important;
}

.gv-tag-paquete-text {
  color: #f39c12 !important;
}

/* ==========================================================================
   4. CUERPO DE LA TARJETA (CATÁLOGO)
   ========================================================================== */
.gv-body {
  padding: 30px 20px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gv-body h3 {
  margin: 0 0 15px 0 !important;
  font-size: 1.4em !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  color: #222;
}

.gv-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: #777;
}

.gv-meta-info>span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gv-meta-info .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-excerpt {
  font-size: 0.9em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.gv-btn-detalle {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
  text-decoration: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}

.gv-btn-detalle:hover {
  opacity: 0.6;
  letter-spacing: 1px;
}

/* ==========================================================================
   5. MEJORAS A LA BARRA DE FILTROS Y SELECT2
   ========================================================================== */
#gv-search-name {
  width: 100% !important;
  height: 45px !important;
  border: 1px solid #ddd !important;
  /* Fuerzas el marco gris */
  border-radius: 6px !important;
  padding: 5px 15px !important;
  background-color: #fff !important;
  color: #444 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  /* Evita estilos nativos del navegador */
}

/* Efecto al hacer clic en el buscador */
#gv-search-name:focus {
  border: 1px solid #aaa !important;
  /* Se oscurece elegantemente al escribir */
  background-color: #fff !important;
}

.select2-container--default .select2-selection--multiple {
  min-height: 45px !important;
  max-height: 45px !important;
  overflow-y: auto !important;
  scrollbar-width: none;
  display: block !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 0 8px !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar {
  display: none !important;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 10px !important;
  height: 24px !important;
  line-height: 24px !important;
  font-family: inherit;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  margin: 0 !important;
  padding: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #f1f3f5 !important;
  border: 1px solid #e0e5e9 !important;
  color: #444 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  margin-top: 7px !important;
  font-size: 0.9em;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #999 !important;
  margin-right: 8px !important;
  border-right: 1px solid #dcdcdc !important;
  padding-right: 8px !important;
  font-weight: bold;
  transition: 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #e74c3c !important;
  background: transparent !important;
}

#gv-clean-filters {
  height: 45px;
  padding: 0 25px !important;
  background-color: #333 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85em;
  transition: background 0.3s ease;
}

#gv-clean-filters:hover {
  background-color: #555 !important;
}

.gv-top-filters-bar .gv-filter-item:last-child {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0px;
}

/* ==========================================================================
   6. VISTA INDIVIDUAL (SINGLE) Y MARCOS BLANCOS
   ========================================================================== */
.gv-single-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.gv-single-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.gv-white-card,
.gv-sidebar-box {
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 30px;
}

.gv-single-main {
  display: flex;
  flex-direction: column;
  height: max-content !important;
}

.gv-main-image img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.gv-gallery-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gv-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #eaeaea;
  transition: transform 0.3s;
}

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

/* ==========================================================================
   7. PESTAÑAS (TABS) - BLINDADAS CONTRA ELEMENTOR
   ========================================================================== */
.gv-tabs-wrapper {
  padding: 0 !important;
}

.gv-tabs-header {
  display: flex;
  border-bottom: 1px solid #eaeaea;
  background: #fafafa;
  padding: 0 25px;
}

.gv-tab-btn {
  padding: 20px 25px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  font-weight: bold !important;
  color: #888 !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  font-size: 0.9em;
  outline: none !important;
}

.gv-tab-btn.active {
  color: #333 !important;
  border-bottom: 3px solid #e74c3c !important;
  background: #fff !important;
}

.gv-tab-content {
  display: none;
  padding: 30px 25px !important;
  color: #555;
  line-height: 1.8;
  text-align: left !important;
}

.gv-tab-content.active {
  display: block !important;
}

/* Anulamos el Flexbox de Elementor y WooCommerce para forzar el inicio arriba */
.gv-tab-content .e-con,
.gv-tab-content .e-flex,
.gv-tab-content .elementor-widget-container,
.gv-tab-content .elementor-widget-wrap,
.gv-tab-content .woocommerce-Tabs-panel {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  align-items: flex-start !important;
}

.gv-tab-content>*:first-child,
.gv-tab-content .elementor-widget-container>*:first-child,
.gv-tab-content .woocommerce-Tabs-panel>*:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==========================================================================
   8. SIDEBAR Y FORMULARIO
   ========================================================================== */
.gv-single-sidebar {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gv-info-box h1 {
  margin: 0 0 10px 0 !important;
  font-size: 1.6em !important;
  font-weight: 900 !important;
  color: #222 !important;
  text-align: center !important;
  /* Obliga al título a centrarse */
}

.gv-info-box h2 {
  margin: 0 0 20px 0 !important;
  font-size: 1.4em !important;
  font-weight: 800 !important;
  text-align: center !important;
  /* Obliga al precio a centrarse */
}

.gv-single-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: #666;
  font-weight: 500;
}

.gv-single-meta>span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gv-single-meta .dashicons {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botones Sidebar */
.gv-btn-regresar,
.gv-btn-reservar {
  display: block;
  width: 100%;
  background: #f05454 !important;
  color: #fff !important;
  border: none !important;
  padding: 15px !important;
  font-weight: bold !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  text-transform: uppercase;
  transition: 0.3s;
}

.gv-btn-regresar:hover,
.gv-btn-reservar:hover {
  background: #d94242 !important;
}

.gv-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25D366 !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 15px !important;
  font-weight: bold !important;
  border-radius: 4px !important;
  margin-top: 10px;
  transition: 0.3s;
}

.gv-btn-whatsapp:hover {
  background: #1ebe57 !important;
  color: #fff !important;
}

/* Formulario */
.gv-form-box h3 {
  font-size: 1.1em !important;
  margin-bottom: 20px !important;
  font-weight: 800 !important;
}

.gv-mock-form input,
.gv-mock-form textarea {
  width: 100% !important;
  padding: 12px 15px !important;
  margin-bottom: 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  background-color: #fafafa !important;
  color: #333 !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  font-family: inherit !important;
}

.gv-mock-form input:focus,
.gv-mock-form textarea:focus {
  border: 1px solid #555 !important;
  background-color: #fff !important;
}

.gv-mock-form textarea {
  height: 100px !important;
  resize: vertical;
}

/* ==========================================================================
   9. PRODUCTOS RELACIONADOS Y RESPONSIVE
   ========================================================================== */
.gv-related-section {
  margin-top: 50px;
  border-top: 1px solid #eaeaea;
  padding-top: 30px;
}

.gv-related-title {
  font-size: 1.2em !important;
  font-weight: 800 !important;
  padding: 15px 20px !important;
  border: 1px solid #eaeaea !important;
  background: #fff !important;
  margin-bottom: 30px !important;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .gv-single-grid {
    grid-template-columns: 1fr;
  }

  .gv-single-sidebar {
    position: static;
  }
}

/* ==========================================================================
   10. PAGINACIÓN
   ========================================================================== */
.gv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.gv-pagination .page-numbers:hover {
  background: #fdfdfd;
  border-color: #aaa;
  color: #222;
}

.gv-pagination .page-numbers.current {
  background: #333;
  /* Gris oscuro elegante para la página actual */
  border-color: #333;
  color: #fff;
}

/* Responsive: 2 columnas en Tablets */
@media (max-width: 900px) {
  .gv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 columna en Celulares */
@media (max-width: 600px) {
  .gv-grid {
    grid-template-columns: 1fr;
  }
}