/* Calamuchita Guías – Mapa v1.0.1 */
.cgu-mapa {
  --cgu-tinta: #1d2430;
  --cgu-suave: #5b6472;
  --cgu-linea: #d9dee6;
  --cgu-ambar: #F2B705;
  font-family: inherit;
  color: var(--cgu-tinta);
}
.cgu-mapa-wrap { margin: 1.5rem 0; }
.cgu-mapa__titulo { margin: 0 0 .5rem; }

.cgu-mapa__barra {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.cgu-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 1.2;
  border: 1.5px solid var(--c); background: #fff; color: var(--c);
  transition: background-color .15s, color .15s;
}
.cgu-chip[aria-pressed="true"] { background: var(--c); color: #fff; }
.cgu-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cgu-chip__n { opacity: .75; font-size: 12px; }
.cgu-chip--dest .cgu-chip__dot { width: auto; height: auto; background: none; }
.cgu-chip--dest .cgu-chip__dot::before { content: "★"; }
.cgu-chip:focus-visible, .cgu-buscar:focus-visible { outline: 3px solid var(--cgu-ambar); outline-offset: 2px; }

.cgu-buscar {
  flex: 1 1 180px; min-width: 0; max-width: 320px;
  padding: 7px 12px; font: inherit; font-size: 14px;
  border: 1.5px solid var(--cgu-linea); border-radius: 999px; background: #fff; color: var(--cgu-tinta);
}
.cgu-contador { font-size: 13px; color: var(--cgu-suave); margin-left: auto; }

.cgu-mapa__lienzo {
  position: relative; width: 100%;
  border: 1px solid var(--cgu-linea); border-radius: 14px; overflow: hidden;
  z-index: 0; /* que el menú del tema quede arriba */
}
.cgu-vacio {
  position: absolute; z-index: 800; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(86%, 360px); padding: 16px 18px; border-radius: 12px;
  background: rgba(255,255,255,.96); box-shadow: 0 6px 24px rgba(20,30,50,.18);
  text-align: center; font-size: 15px; line-height: 1.45;
}

/* Pines tipo Google Maps */
.cgu-pin-wrap { background: none; border: 0; }
.cgu-pinbox { position: relative; display: block; width: 100%; height: 100%; }
.cgu-pin {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--c);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.cgu-pin__i { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.cgu-pinbox.es-destacado .cgu-pin {
  border: 3px solid var(--cgu-ambar, #F2B705);
  box-shadow: 0 0 0 4px rgba(242,183,5,.35), 0 3px 10px rgba(0,0,0,.4);
}
.cgu-pinbox.es-destacado .cgu-pin__i { font-size: 20px; }
.cgu-pin__star {
  position: absolute; top: -9px; right: -9px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cgu-ambar, #F2B705); color: #3a2a00;
  font-size: 13px; line-height: 1; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
@media (prefers-reduced-motion: no-preference) {
  .cgu-pinbox.es-destacado .cgu-pin__star { animation: cgu-brillo 2.4s ease-in-out 1; }
  @keyframes cgu-brillo { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
}

.cgu-leyenda {
  background: rgba(255,255,255,.94); padding: 5px 10px; border-radius: 8px;
  font-size: 12px; color: #1d2430; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cgu-leyenda__star { color: #C99200; }

/* Popup */
.cgu-mapa .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; }
.cgu-mapa .leaflet-popup-content { margin: 0; width: auto !important; }
.cgu-pop img { display: block; width: 100%; height: 120px; object-fit: cover; }
.cgu-pop__b { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; color: #1d2430; }
.cgu-pop__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cgu-pop__cat { background: var(--c); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.cgu-pop__dest { background: #FFF4CC; color: #6b4e00; border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.cgu-pop__n { display: block; font-size: 15px; margin-bottom: 2px; }
.cgu-pop__l { display: block; color: #5b6472; }
.cgu-pop p { margin: 6px 0 0; }
.cgu-pop__acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cgu-pop__acc a { font-weight: 600; text-decoration: none; color: #2B5C9E; }
.cgu-pop__acc a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .cgu-mapa__barra { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .cgu-chip { flex: 0 0 auto; }
  .cgu-buscar { flex: 0 0 200px; }
  .cgu-contador { display: none; }
}
