/* =====================================================================
   UBICACLICK · Estilos del mapa público
   Paleta: turquesa, sol, coral y violeta sobre blanco, con tinta índigo.
   Estética «pegatina»: bordes de tinta y sombras sólidas desplazadas.
   ===================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --turq: #12C2B4;
  --turq-deep: #0A8F86;
  --sun: #FFD23F;
  --coral: #FF5E5B;
  --violet: #7B5CFF;
  --ink: #1D1B3A;
  --ink-soft: #4A4870;
  --paper: #FFFFFF;
  --mist: #F3F6FF;

  --open: #16A34A;
  --closing: #F59E0B;
  --closed: #E5484D;

  --line: 2px solid var(--ink);
  --pop: 0 3px 0 var(--ink);
  --pop-lg: 0 5px 0 var(--ink);
  --float: 0 10px 30px -12px rgba(29, 27, 58, .45);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --font: "Bricolage", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body.uc-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
[data-icon] { display: block; width: 100%; height: 100%; }
[data-icon] svg { width: 100%; height: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Mapa a pantalla completa
   --------------------------------------------------------------------- */
.map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #E8F4F1;
}

/* Personalidad propia: teselas algo más vivas y frescas, sin perder lectura */
.map .leaflet-tile-pane {
  filter: saturate(1.25) hue-rotate(-8deg) brightness(1.03) contrast(.97);
}

/* Viñeta suave de marca en los bordes */
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 401;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(18, 194, 180, .18), inset 0 0 40px rgba(123, 92, 255, .08);
}

.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution {
  font-size: 11px;
  background: rgba(255, 255, 255, .85) !important;
  border-radius: 8px 0 0 0;
  padding: 2px 8px !important;
  margin-bottom: var(--safe-bottom) !important;
}
.leaflet-control-attribution a { color: var(--turq-deep); }

/* ---------------------------------------------------------------------
   Barra superior: marca + buscador + filtrar
   --------------------------------------------------------------------- */
.topbar {
  position: absolute;
  z-index: 1000;
  top: calc(12px + var(--safe-top));
  left: 12px;
  right: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar__row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 54px;
  padding: 0 14px 0 7px;
  text-decoration: none;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--pop);
}
.brand img { width: 38px; height: 38px; }
.brand__word {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.035em;
  font-stretch: 88%;
}

.search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 54px;
  min-width: 0;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--pop);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ink), 0 0 0 4px rgba(18, 194, 180, .35);
}
.search__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: 16px;
  color: var(--turq-deep);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px 0 10px;
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  outline: none;
}
.search input::placeholder { color: #7D7AA3; opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-within .search__icon { animation: uc-wiggle .5s var(--ease-spring); }
.search__clear {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
}
.search__clear[hidden] { display: none; }

.btn-filter {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px 0 15px;
  font-weight: 700;
  background: var(--sun);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--pop);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.btn-filter > span:first-child { width: 22px; height: 22px; }
.btn-filter:active, .ctrl:active, .btn:active, .chip:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-filter.is-active { background: var(--violet); color: var(--paper); }
.btn-filter__count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  animation: uc-pop .35s var(--ease-spring);
}
.btn-filter__count[hidden] { display: none; }

/* Resultados del buscador */
.search-results {
  position: absolute;
  top: 64px;
  left: 0;
  width: min(560px, 100%);
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: 6px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--pop-lg), var(--float);
  animation: uc-drop .22s var(--ease-out);
  z-index: 2;
}
.search-results[hidden] { display: none; }
.result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
}
.result:hover, .result.is-active { background: var(--mist); }
.result__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: var(--c);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.result__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.result__name { font-weight: 700; font-size: 16px; }
.result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.result__extra { font-size: 14px; color: var(--ink); }
.search-results__empty { display: flex; flex-direction: column; gap: 4px; padding: 14px; font-size: 15px; }
.search-results__empty span { color: var(--ink-soft); }

/* Chips de categoría */
.chips {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-top: 10px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 5px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--pop);
  transition: transform .15s var(--ease-out), background-color .2s, color .2s;
  animation: uc-chip-in .45s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 40ms + 150ms);
}
.chip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  color: #fff;
  background: var(--c);
  border-radius: 50%;
}
.chip--empty { color: var(--ink-soft); }
.chip--empty .chip__icon { opacity: .75; }
.chip.is-on { background: var(--c); color: #fff; }
.chip.is-on .chip__icon { background: rgba(255, 255, 255, .25); }
@media (hover: hover) {
  .chip:hover { transform: translateY(-2px); }
  .btn-filter:hover, .ctrl:hover { transform: translateY(-1px); }
}

/* ---------------------------------------------------------------------
   Controles del mapa (ubicación y zoom)
   --------------------------------------------------------------------- */
.map-controls {
  position: absolute;
  z-index: 1000;
  right: 12px;
  bottom: calc(32px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.ctrl {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 13px;
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--pop);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .2s;
}
.ctrl-zoom { display: flex; flex-direction: column; gap: 8px; }
.ctrl--locate {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0 16px 0 13px;
  font-weight: 700;
  color: var(--paper);
  background: var(--turq);
  border-radius: 999px;
}
.ctrl--locate > span:first-child { width: 24px; height: 24px; }
.ctrl--locate.is-on { background: var(--violet); }
.ctrl--locate.is-loading > span:first-child { animation: uc-spin 1s linear infinite; }
.ctrl__text { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Marcadores de establecimientos
   --------------------------------------------------------------------- */
.mk-wrap { background: none; border: 0; }
.mk-wrap:focus-visible { outline: none; }
.mk-wrap:focus-visible .mk__bubble { outline: 3px solid var(--violet); outline-offset: 4px; }

.mk {
  position: relative;
  width: 56px;
  height: 64px;
  transform-origin: 50% 100%;
  animation: uc-marker-in .6s var(--ease-spring) both;
  animation-delay: min(var(--d, 0s), .8s);
}
.mk--quiet { animation: none; }

.mk__float {
  position: absolute;
  left: 4px;
  top: 0;
  width: 48px;
  height: 56px;
  animation: uc-float var(--f, 3s) ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) * -3);
  will-change: transform;
}

/* Burbuja redonda con piquito: forma propia, distinta del pin del usuario */
.mk__bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 11px;
  color: #fff;
  background: var(--c);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--ink);
  transition: transform .25s var(--ease-spring);
}
.mk__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.mk__bubble svg { width: 100%; height: 100%; }

.mk--open { --ring: var(--open); }
.mk--closing { --ring: var(--closing); }
.mk--closed { --ring: var(--closed); }
.mk--closed .mk__bubble { filter: saturate(.55) brightness(.97); }

/* Punto de estado junto a la burbuja */
.mk__status {
  position: absolute;
  right: -6px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  background: var(--ring);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
}
.mk--closing .mk__status { animation: uc-blink 1.6s ease-in-out infinite; }

/* Insignia de oferta/evento */
.mk__badge {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.mk__badge--promo { background: var(--sun); }
.mk__badge--event { background: var(--violet); color: #fff; font-size: 15px; }
.mk__badge--flash { background: #fff; font-size: 13px; animation: uc-flame 1.2s ease-in-out infinite; }

/* Patrocinado: corona dorada y halo */
.mk__crown {
  position: absolute;
  top: -10px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 3px;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.mk__crown svg { fill: var(--ink); stroke-width: 1.5; }
.mk--sponsored .mk__bubble { box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--ink), 0 0 0 9px rgba(255, 210, 63, .55); }

.mk__shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 7px;
  margin-left: -13px;
  background: rgba(29, 27, 58, .28);
  border-radius: 50%;
  animation: uc-shadow var(--f, 3s) ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) * -3);
}

/* Nombre bajo el marcador al acercarse */
.mk__label {
  position: absolute;
  top: 66px;
  left: 50%;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, .95);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: translateX(-50%) scale(.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-spring);
}
.z-labels .mk__label { opacity: 1; transform: translateX(-50%) scale(1); }
.z-far .mk__badge, .z-far .mk__crown { display: none; }

@media (hover: hover) {
  .mk-wrap:hover .mk__bubble { transform: scale(1.12) rotate(-4deg); }
}
.mk-wrap.is-selected { z-index: 2000 !important; }
.mk-wrap.is-selected .mk__float { animation: uc-bounce .9s var(--ease-spring) 1, uc-float var(--f, 3s) ease-in-out .9s infinite; }
.mk-wrap.is-selected .mk__bubble { transform: scale(1.18); }
.mk-wrap.is-selected .mk__bubble::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 3px solid var(--c);
  border-radius: 50%;
  animation: uc-ring 1.4s ease-out infinite;
}
.mk-wrap.is-selected .mk__label { opacity: 1; transform: translateX(-50%) scale(1); background: var(--sun); }

/* ---------------------------------------------------------------------
   Ubicación del usuario: pin clásico
   --------------------------------------------------------------------- */
.me-wrap { background: none; border: 0; }
.me { position: relative; width: 40px; height: 52px; }
.me__pin {
  position: relative;
  width: 40px;
  height: 52px;
  filter: drop-shadow(0 3px 0 rgba(29, 27, 58, .5));
  animation: uc-drop-pin .6s var(--ease-spring) both;
}
.me__pin path { fill: #2563EB; stroke: #fff; stroke-width: 3; }
.me__pin circle { fill: #fff; }
.me__pulse {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .45);
  animation: uc-me-pulse 2s ease-out infinite;
}
.me-accuracy { fill: #2563EB; fill-opacity: .08; stroke: #2563EB; stroke-opacity: .35; stroke-width: 1.5; }

/* ---------------------------------------------------------------------
   Avisos flotantes
   --------------------------------------------------------------------- */
.toasts {
  position: absolute;
  z-index: 1100;
  left: 12px;
  bottom: calc(32px + var(--safe-bottom));
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(360px, calc(100% - 100px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 4px 0 var(--ink), var(--float);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px) scale(.92);
  transform-origin: 0 100%;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-spring);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(8px) scale(.96); transition-duration: .25s; }
.toast::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-right: var(--line);
  border-bottom: var(--line);
  transform: rotate(45deg);
}
.toast--flash { background: linear-gradient(120deg, #FFF3C4, #FFE0DE); }
.toast--flash::before { background: #FFE9D3; }
.toast--event { background: #EFEAFF; }
.toast--event::before { background: #EFEAFF; }
.toast--info::before { display: none; }
.toast--error { border-color: var(--closed); box-shadow: 0 4px 0 var(--closed), var(--float); }
.toast__main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 4px 12px 14px;
  text-align: left;
  background: none;
  border: 0;
}
.toast__main--static { cursor: default; }
.toast__emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: uc-wiggle 1.2s var(--ease-spring) .3s;
}
.toast__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.3; }
.toast__text strong { font-size: 15px; }
.toast__close {
  flex: none;
  width: 40px;
  padding: 11px;
  background: none;
  border: 0;
  opacity: .6;
}
.toast__close:hover { opacity: 1; }

/* Píldora de resultados */
.results-pill {
  position: absolute;
  z-index: 999;
  left: 50%;
  top: calc(136px + var(--safe-top));
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  animation: uc-pill-in .35s var(--ease-spring);
}
.results-pill[hidden] { display: none; }
.link-btn {
  padding: 0;
  font-weight: 700;
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
}

/* ---------------------------------------------------------------------
   Estados: ABIERTO · CIERRA PRONTO · CERRADO
   --------------------------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
}
.status i { width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.status--open { background: var(--open); }
.status--closing { background: var(--closing); color: var(--ink); }
.status--closing i { background: var(--ink); animation: uc-blink 1.6s ease-in-out infinite; }
.status--closed { background: var(--closed); }

/* ---------------------------------------------------------------------
   Ficha del establecimiento (modal)
   --------------------------------------------------------------------- */
.sheet {
  position: absolute;
  z-index: 1200;
  top: calc(130px + var(--safe-top));
  left: 12px;
  bottom: 20px;
  width: 400px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--ink), var(--float);
  opacity: 0;
  transform: translateX(-24px) scale(.94);
  transform-origin: 30% 50%;
  transition: opacity .25s var(--ease-out), transform .4s var(--ease-spring);
  overflow: hidden;
}
.sheet.is-open { opacity: 1; transform: none; }
.sheet[hidden] { display: none; }
.sheet__handle { display: none; }
.sheet__close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--paper);
  border: var(--line);
  border-radius: 50%;
  box-shadow: 0 2px 0 var(--ink);
}
.sheet__foot {
  flex: none;
  padding: 12px 20px 16px;
  background: var(--paper);
  border-top: 2px solid #E7E9F5;
}
.sheet__foot[hidden] { display: none; }
.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 18px;
}

.sheet__cover {
  position: relative;
  height: 150px;
  background: var(--c);
  overflow: hidden;
}
.sheet__cover-img { width: 100%; height: 100%; object-fit: cover; }
.sheet__cover-pattern {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, .35);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25) 0 14px, transparent 15px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .2) 0 22px, transparent 23px),
    var(--c);
}
.sheet__cover-pattern svg { width: 90px; height: 90px; }

.sheet__head {
  display: flex;
  gap: 14px;
  padding: 0 20px;
  margin-top: -34px;
  position: relative;
}
.sheet__logo {
  flex: none;
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-4deg);
  animation: uc-logo-in .55s var(--ease-spring) .1s both;
}
.sheet__logo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__logo-icon { display: grid; place-items: center; height: 100%; padding: 18px; color: #fff; background: var(--c); }
.sheet__titles { min-width: 0; padding-top: 40px; }
.sheet__titles h2 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.sheet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--c);
  border-radius: 999px;
}
.cat-chip svg { width: 16px; height: 16px; }
.sheet__status-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.sheet__status-detail svg { width: 16px; height: 16px; flex: none; }
.sheet__lead { margin: 14px 20px 4px; font-size: 16.5px; line-height: 1.45; }

.offer {
  margin: 12px 20px 0;
  padding: 12px 14px;
  border: var(--line);
  border-radius: var(--r-md);
  animation: uc-offer-in .45s var(--ease-spring) both;
}
.offer:nth-of-type(2) { animation-delay: .06s; }
.offer:nth-of-type(3) { animation-delay: .12s; }
.offer__kicker { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.offer__title { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.offer__desc { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.offer__when, .offer__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.offer__when svg { width: 16px; height: 16px; }
.offer--promo { background: #FFF6D1; }
.offer--event { background: #EFEAFF; }
.offer--flash {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #FFE36E 0%, #FFB86B 55%, #FF8A80 100%);
  box-shadow: 0 3px 0 var(--ink);
}
.offer--flash::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: uc-shine 3.2s ease-in-out 1s infinite;
}
.offer__timer { padding: 3px 10px; background: var(--ink); color: var(--sun); border-radius: 999px; }

.sheet__info {
  list-style: none;
  margin: 16px 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.sheet__info li { display: flex; align-items: flex-start; gap: 10px; }
.sheet__info svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--turq-deep); }
.sheet__info a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }

.sheet__hours { margin: 14px 20px 0; font-size: 15px; }
.sheet__hours summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.sheet__hours summary::-webkit-details-marker { display: none; }
.sheet__hours summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; }
.sheet__hours[open] summary::after { content: "–"; }
.sheet__hours summary svg { width: 20px; height: 20px; color: var(--turq-deep); }
.sheet__hours table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.sheet__hours th, .sheet__hours td { padding: 5px 0; text-align: left; border-bottom: 1px solid #E7E9F5; font-weight: 500; }
.sheet__hours th { color: var(--ink-soft); width: 40%; }
.sheet__hours-note { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.sheet__demo { margin: 14px 20px 0; font-size: 13px; color: var(--ink-soft); }

.tag-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
}
.tag-sponsor svg { width: 13px; height: 13px; fill: var(--ink); stroke-width: 1.4; }
.tag-sponsor--cover { position: absolute; top: 14px; left: 14px; border: 2px solid var(--ink); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--pop);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.btn--primary { background: var(--turq); color: #fff; }
.btn--ghost { background: var(--paper); }
.btn--visit {
  display: flex;
  margin: 0;
  height: 58px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--sun);
  box-shadow: var(--pop-lg);
}
.btn--visit:hover { background: #FFC81A; }
.btn--visit:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }

/* ---------------------------------------------------------------------
   Panel de filtros
   --------------------------------------------------------------------- */
.filters {
  position: absolute;
  z-index: 1250;
  top: calc(80px + var(--safe-top));
  left: 12px;
  width: min(440px, calc(100% - 24px));
  max-height: calc(100% - 110px - var(--safe-top));
  overflow-y: auto;
  padding: 18px 18px 16px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--ink), var(--float);
  opacity: 0;
  transform: translateY(-10px) scale(.96);
  transform-origin: 70% 0;
  transition: opacity .2s var(--ease-out), transform .35s var(--ease-spring);
}
.filters.is-open { opacity: 1; transform: none; }
.filters[hidden] { display: none; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.filters__group { margin: 12px 0 0; padding: 0; border: 0; }
.filters__group legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.filters__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__cats .chip { animation: none; height: 38px; font-size: 14px; }

.switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 0;
  font-weight: 600;
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  order: 3;
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  margin-left: auto;
  background: #DDE1F2;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background-color .2s;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform .3s var(--ease-spring);
}
.switch input:checked ~ .switch__track { background: var(--turq); }
.switch input:checked ~ .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible ~ .switch__track { outline: 3px solid var(--violet); outline-offset: 2px; }
.switch__dot { width: 12px; height: 12px; margin: 0 5px; border-radius: 50%; }
.switch__dot--open { background: var(--open); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.switch__emoji { width: 22px; text-align: center; }
.filters__foot { display: flex; gap: 10px; margin-top: 16px; }
.filters__foot .btn { flex: 1; }

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: var(--sun);
  font-weight: 700;
  z-index: 5000;
}

/* ---------------------------------------------------------------------
   Tablet y móvil
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .topbar { top: calc(10px + var(--safe-top)); left: 10px; right: 10px; }
  .topbar__row { gap: 8px; }
  .brand { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .brand__word { display: none; }
  .search, .btn-filter { height: 50px; }
  .search input { font-size: 16px; padding-left: 8px; }
  .search__icon { margin-left: 13px; }
  .btn-filter { padding: 0 13px; }
  .btn-filter__text { display: none; }
  .search-results { top: 60px; width: 100%; }
  .chips { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
  .chip { height: 38px; font-size: 14px; }

  .map-controls { right: 10px; bottom: calc(24px + var(--safe-bottom)); }
  .ctrl-zoom { display: none; }   /* en móvil se hace zoom con los dedos */
  .ctrl--locate { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .ctrl--locate .ctrl__text { display: none; }

  .toasts { left: 10px; bottom: calc(24px + var(--safe-bottom)); width: calc(100% - 84px); }
  .results-pill { top: calc(124px + var(--safe-top)); }

  /* Ficha como hoja inferior */
  .sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 82%;
    border-width: 2px 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: 0 -10px 40px -10px rgba(29, 27, 58, .45);
    transform: translateY(100%);
    transition: transform .42s var(--ease-out), opacity .2s;
    padding-bottom: var(--safe-bottom);
  }
  .sheet.is-open { transform: none; }
  .sheet__handle {
    display: block;
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 50%;
    width: 46px;
    height: 5px;
    margin-left: -23px;
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    box-shadow: 0 0 0 1.5px rgba(29, 27, 58, .35);
  }
  .sheet__cover { height: 120px; }
  .sheet__titles h2 { font-size: 23px; }
  body.sheet-open .map-controls, body.sheet-open .toasts { opacity: 0; pointer-events: none; }

  /* Filtros como hoja inferior */
  .filters {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 86%;
    border-width: 2px 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding-bottom: calc(16px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform .4s var(--ease-out), opacity .2s;
    box-shadow: 0 -10px 40px -10px rgba(29, 27, 58, .45);
  }
  .filters.is-open { transform: none; }
  .filters__foot { position: sticky; bottom: -16px; padding: 10px 0 4px; background: var(--paper); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .sheet { width: 380px; }
}

/* ---------------------------------------------------------------------
   Animaciones (solo transform y opacity: ligeras)
   --------------------------------------------------------------------- */
@keyframes uc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes uc-shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.78); opacity: .65; }
}
@keyframes uc-marker-in {
  0% { opacity: 0; transform: translateY(-26px) scale(.3); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes uc-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-16px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes uc-ring {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes uc-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes uc-flame {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.12); }
}
@keyframes uc-pop {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes uc-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes uc-chip-in {
  from { opacity: 0; transform: translateY(-10px) scale(.85); }
  to { opacity: 1; transform: none; }
}
@keyframes uc-pill-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.9); }
  to { opacity: 1; transform: translateX(-50%); }
}
@keyframes uc-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}
@keyframes uc-spin { to { transform: rotate(360deg); } }
@keyframes uc-drop-pin {
  0% { transform: translateY(-40px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes uc-me-pulse {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes uc-logo-in {
  from { transform: rotate(-18deg) scale(.6); opacity: 0; }
  to { transform: rotate(-4deg); opacity: 1; }
}
@keyframes uc-offer-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes uc-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

/* Muchos marcadores en pantalla: se detiene la flotación para ahorrar recursos */
.many-markers .mk__float, .many-markers .mk__shadow { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
