/* === GardenMall Ficha de Local === */

.gm-local-ficha-container {
    max-width: 100%;
    margin: 3em auto;
    padding: 2em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
    color: #111;
    line-height: 1.6;
}

/* Cabecera: logo + t铆tulo + descripci贸n */
.gm-local-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: center;
    margin-bottom: 2em;
}
.gm-local-logo {
    flex: 0 0 400px;
}
.gm-local-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.gm-local-texto {
    flex: 1;
}
.gm-local-texto h1 {
    margin: 0 0 0.5em;
    font-size: 2rem;
}
.gm-local-descripcion {
    color: #333;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Informaci贸n de contacto */
.gm-local-contacto {
    margin-bottom: 2em;
}
.gm-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    gap: 0.8em;
    font-size: 1rem;
}
.gm-info-item .icono {
    background: #000000;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
}

/*Categoria*/

.gm-local-categoria {font-size: 12px;
    font-weight: bold;
    color: #297336;
    margin-bottom: 0.3em;
    text-transform: uppercase;
}

/* WhatsApp */
.gm-btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.gm-btn-whatsapp:hover {
    background: #1ebd5a;
}

/* Redes sociales */
.gm-local-redes {
    margin-top: 1em;
}
.gm-local-redes .gm-icon {
    display: inline-block;
    background: #297336;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    margin-right: 10px;
    font-size: 16px;
    transition: background 0.3s ease;
}
.gm-local-redes .gm-icon:hover {
    background: #2c7ae7;
}

/* Boton de Google Maps */
.gm-local-mapa-btn {
    margin-top: 2em;
}
.gm-btn-mapa {
    background: #ffc107;
    color: #111;
    font-weight: 600;
    padding: 0.6em 1.2em;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    font-size: 1rem;
}
.gm-btn-mapa i {
    margin-right: 0.5em;
}
.gm-btn-mapa:hover {
    background: #e6ac00;
     color:#000;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .gm-local-header {
        flex-direction: column;
        text-align: center;
    }
    .gm-local-logo {
        margin-bottom: 1em;
    }
}


/* === Listado de Locales Comerciales === */

.gm-directory-archive {
    width: 100%;
    padding: 35px 0;
    box-sizing: border-box;
}

.gm-modern-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.gm-modern-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gm-modern-card:hover {
    transform: translateY(-6px);
}

.gm-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gm-no-image {
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.2em;
    font-style: italic;
}

.gm-card-content {
    padding: 1em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gm-card-category {
    font-size: 12px;
    font-weight: bold;
    color: #297336;
    margin-bottom: 0.3em;
    text-transform: uppercase;
}

.gm-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.gm-card-description {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1em;
    flex-grow: 1;
}

.gm-card-button {
    align-self: start;
    font-size: 14px;
    padding: 0.4em 1.2em;
    background: #2c7ae7;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.gm-card-button:hover {
    background: #185dc7;
    color: #fff;
}


/* === Logos aleatorios en Home === */

/* === Logos aleatorios en Home === */

.gm-random-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}



.gm-logo-item:hover {
  transform: scale(1.03);
  background: #fff;
}

.gm-logo-item img {
    width: 100%;
    border-radius: 20px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.gm-logo-item img:hover {
    transform: scale(1.05);
}


/* === Filtro lateral de categorías === */
.gm-directory {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.gm-sidebar {
    position: sticky;
    top: 100px; /* ajusta según altura del header */
    align-self: start;
}

.gm-filter-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.gm-filter-list {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    max-height: 65vh;
    overflow-y: auto;
}

.gm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.gm-checkbox:hover {
    background: rgba(0,0,0,0.03);
}

.gm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2E7D32; /* verde corporativo */
}

.gm-checkbox span {
    flex: 1;
}

.gm-checkbox em {
    margin-left: auto;
    font-style: normal;
    opacity: .6;
    font-size: 13px;
}

.gm-btn-apply {
    display: inline-block;
    background: #8BC34A;
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.gm-btn-apply:hover {
    background: #689F38;
}

/* Grilla de resultados */
/* === Layout Directorio: sidebar + resultados === */
.gm-directory {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

/* Sidebar sticky */
.gm-sidebar {
  position: sticky;
  top: 100px; /* ajusta al alto real del header */
  align-self: start;
}

/* Filtro */
.gm-filter-title { font-weight: 700; margin-bottom: 12px; font-size: 1.1rem; }
.gm-filter-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 65vh; overflow: auto; }
.gm-checkbox { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-radius: 8px; }
.gm-checkbox:hover { background: rgba(0,0,0,.03); }
.gm-checkbox input { width: 18px; height: 18px; accent-color: #2E7D32; }
.gm-checkbox span { flex: 1; }
.gm-checkbox em { margin-left: auto; font-style: normal; opacity: .6; font-size: 13px; }
.gm-btn-apply { background:#8BC34A; color:#fff; font-weight:700; border:0; border-radius:10px; padding:10px 16px; cursor:pointer; }
.gm-btn-apply:hover { background:#689F38; }

/* Resultados: IMPORTANTE que no limite el ancho */
.gm-results { min-width: 0; }

/* Usa tu grilla existente dentro de resultados */
.gm-results .gm-modern-cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Contenedor ancho cómodo dentro del contenido de Astra */
.gm-directory-archive .gm-directory {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsivo */
@media (max-width: 1024px){
  .gm-directory { grid-template-columns: 260px minmax(0,1fr); }
  .gm-results .gm-modern-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px){
  .gm-directory { grid-template-columns: 1fr; }
  .gm-sidebar { position: static; }
  .gm-results .gm-modern-cards-grid { grid-template-columns: 1fr; }
}

/* === Ajustes sidebar de categorías === */

/* 1) Sidebar más pequeño */
.gm-directory {
  grid-template-columns: 220px minmax(0, 1fr); /* antes 300px */
}

/* 2) Quitar scroll interno y mostrar todas las categorías */
.gm-filter-list {
  max-height: none;    /* quita límite de altura */
  overflow: visible;   /* quita scroll */
}

/* 3) Hacer más compactos los ítems */
.gm-checkbox {
  padding: 6px 2px;
  gap: 6px;
}
.gm-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.gm-checkbox span { font-size: 14px; }
.gm-checkbox em   { font-size: 12px; opacity: .55; }

/* 4) Botón un poco más pequeño */
.gm-btn-apply {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* 5) Ajustes responsive opcionales */
@media (max-width: 1024px){
  .gm-directory { grid-template-columns: 200px minmax(0,1fr); }
}
@media (max-width: 768px){
  .gm-directory { grid-template-columns: 1fr; }
  .gm-sidebar { position: static; }
}


/* === Paginación GardenMall === */
.gm-pagination {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}

.gm-pagination .page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-pagination .page-numbers li { display: inline-flex; }

.gm-pagination .page-numbers a,
.gm-pagination .page-numbers span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px; /* pill */
  border: 2px solid #8BC34A;
  color: #2E7D32;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 36px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .08s ease;
}

.gm-pagination .page-numbers a:hover {
  background: #8BC34A;
  border-color: #8BC34A;
  color: #fff;
  transform: translateY(-1px);
}

/* Página actual */
.gm-pagination .page-numbers .current {
  background: #2E7D32;
  border-color: #2E7D32;
  color: #fff;
}

/* Prev/Next (‹ ›) un poco más anchos */
.gm-pagination .page-numbers .prev,
.gm-pagination .page-numbers .next {
  padding: 0 14px;
}

/* Deshabilitadas (cuando no hay prev/next) */
.gm-pagination .page-numbers .dots,
.gm-pagination .page-numbers .prev[aria-disabled="true"],
.gm-pagination .page-numbers .next[aria-disabled="true"] {
  opacity: .45;
  border-color: #cde8c6;
  color: #7aa57a;
}

/* Responsive */
@media (max-width: 480px){
  .gm-pagination .page-numbers a,
  .gm-pagination .page-numbers span {
    min-width: 36px;
    height: 36px;
    line-height: 32px;
    font-size: 14px;
  }
}


/* Lista de categorías como enlaces */
.gm-cat-links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.gm-cat-links li { margin: 0; }

.gm-cat-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;              /* gris oscuro */
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.gm-cat-links a em {
  margin-left: auto;
  font-style: normal;
  opacity: .6;
  font-size: 12px;
}

/* Hover y activo */
.gm-cat-links a:hover {
  background: rgba(46,125,50,.08);   /* verde suave */
  color: #2E7D32;
}
.gm-cat-links a.is-active {
  background: rgba(46,125,50,.12);
  color: #2E7D32;
  font-weight: 700;
  border-left: 3px solid #8BC34A;
  padding-left: 10px; /* compensa el border */
}


/*Animacion imagem*/

/* Solo en dispositivos con hover (evita móviles) */
@media (hover:hover) {
  .gm-local-logo img {
    display:block;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    will-change: transform;
  }
  .gm-local-logo:hover img {
    transform: scale(1.04);                 /* zoom sutil */
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
  }
}

/* Respeta accesibilidad: sin animaciones si el usuario lo pidió */
@media (prefers-reduced-motion: reduce) {
  .gm-local-logo img { transition: none !important; }
}


