/* ===========================================================================
   Mateos Tacos — web. Lotería-card styling ported from the React Native app.
   Brand palette + 3 themes (light / dark / autentico) via [data-theme].
   =========================================================================== */

:root {
  /* Brand palette (lib/theme.ts) */
  --paper: #FFF6E2;
  --paper2: #F4E6BD;
  --paper3: #FBEFC8;
  --ink: #0F0C08;
  --ink-soft: #3D362C;
  --ink-mute: #8A7E6B;
  --rojo: #D7263D;
  --rojo-dark: #8B160F;
  --verde: #3F8E2D;
  --verde-light: #76BA1D;
  --azul: #1D6FB8;
  --azul-dark: #0F4F88;
  --amarillo: #F4C41E;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;

  --display: Georgia, "Times New Roman", "Playfair Display", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 52px;
}

/* ---- Themes: pick palette colors for UI roles (lib/theme.ts) ------------- */
[data-theme="light"] {
  --header-bg: var(--paper);
  --header-fg: var(--ink);
  --header-accent: var(--rojo);
  --header-ribbon: var(--rojo);
  --header-logo: var(--rojo);
  --tab-active: var(--rojo);
  --tab-inactive: var(--ink-mute);
  --sheet-bg: var(--paper2);
  --sheet-fg: var(--ink);
}
[data-theme="dark"] {
  --header-bg: var(--rojo);
  --header-fg: var(--paper);
  --header-accent: var(--amarillo);
  --header-ribbon: var(--ink);
  --header-logo: var(--paper);
  --tab-active: var(--amarillo);
  --tab-inactive: rgba(255, 246, 226, 0.6);
  --sheet-bg: var(--rojo);
  --sheet-fg: var(--paper);
}
[data-theme="autentico"] {
  --header-bg: var(--verde);
  --header-fg: var(--paper);
  --header-accent: var(--amarillo);
  --header-ribbon: var(--rojo);
  --header-logo: var(--paper);
  --tab-active: var(--amarillo);
  --tab-inactive: rgba(255, 246, 226, 0.6);
  --sheet-bg: var(--verde);
  --sheet-fg: var(--paper);
}

/* ---- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }
/* The `hidden` attribute must win over class rules that set `display`
   (e.g. .scrim, .legend, .map-controls toggled via element.hidden in JS). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.is-fullbleed { height: 100dvh; overflow: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Utilities mirroring blockShadow / blockShadowSm / displayText */
.block-shadow { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.block-shadow-sm { border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.display { font-family: var(--display); font-weight: 900; letter-spacing: .5px; color: var(--ink); }

/* ---- Brand strip + tabs ------------------------------------------------- */
.brand-strip { background: var(--header-bg); flex: none; }
.brand-strip__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); padding: 0 var(--space-md);
}
.brand { display: flex; align-items: center; gap: var(--space-sm); }
.brand:hover { opacity: .8; }
.brand__logo {
  width: 24px; height: 24px;
  /* tint the black logo to the theme's logo color */
  background-color: var(--header-logo);
  -webkit-mask: url("/assets/logos/boomstick-logo-blk.png") center / contain no-repeat;
          mask: url("/assets/logos/boomstick-logo-blk.png") center / contain no-repeat;
}
.brand__word {
  font-family: var(--display); font-weight: 900; letter-spacing: 2px;
  font-size: 18px; color: var(--header-fg);
}
.brand__dot { color: var(--header-accent); }

.tabs { display: flex; align-items: center; gap: 2px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  color: var(--tab-inactive);
  font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.tab .mdi { font-size: 18px; }
.tab.is-active { color: var(--tab-active); background: rgba(15, 12, 8, 0.14); }
.tab:hover:not(.is-active) { color: var(--tab-active); }
.brand-strip__ribbon { height: 3px; background: var(--header-ribbon); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

@media (max-width: 460px) {
  .tab__label { display: none; }
  .tab { padding: 6px 9px; }
  .brand__word { font-size: 16px; letter-spacing: 1.5px; }
  /* On the map page, drop the wordmark so the search owns the middle. */
  body.page-find .brand__word { display: none; }
  body.page-find .searchbar--nav { max-width: none; }
}

/* ---- Main containers ---------------------------------------------------- */
.main { flex: 1 1 auto; }
body.is-fullbleed .main { position: relative; overflow: hidden; }
.wrap { max-width: 720px; margin: 0 auto; padding: var(--space-md) var(--space-md) var(--space-xxl); }

/* ---- Lotería header ----------------------------------------------------- */
.loteria {
  position: relative; overflow: hidden;
  background: var(--lh-bg, var(--paper2));
  color: var(--lh-fg, var(--ink));
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}
.loteria__corner { position: absolute; width: 28px; height: 28px; border-color: var(--lh-fg, var(--ink)); }
.loteria__corner--tl { top: 6px; left: 6px; border-top: 4px solid; border-left: 4px solid; }
.loteria__corner--br { bottom: 6px; right: 6px; border-bottom: 4px solid; border-right: 4px solid; }
.loteria__logo {
  position: absolute; bottom: 8px; right: 8px; width: 32px; height: 32px; opacity: .45;
  background-color: var(--lh-fg, var(--ink));
  -webkit-mask: url("/assets/logos/boomstick-logo-blk.png") center / contain no-repeat;
          mask: url("/assets/logos/boomstick-logo-blk.png") center / contain no-repeat;
}
.loteria__eyebrow {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: 14px; letter-spacing: 1.5px; margin: 0 0 var(--space-xs);
}
.loteria__title { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 40px; margin: 0; }
.loteria__title .hl { color: var(--rojo); }
.loteria__caption { margin: var(--space-sm) 0 0; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; opacity: .7; }

/* ---- Search bar + quick picks ------------------------------------------- */
.searchbar { display: flex; align-items: center; gap: var(--space-sm); background: var(--paper); border-radius: var(--radius-md); padding: var(--space-sm); }
.icon-btn {
  width: 44px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--paper); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.icon-btn .mdi { font-size: 20px; }
.icon-btn:disabled { opacity: .55; cursor: default; }
.icon-btn--near { background: var(--verde); }
.icon-btn--submit { background: var(--rojo); }
.searchbar__input {
  flex: 1; min-width: 0; height: 48px; background: var(--paper3); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  border-radius: var(--radius-sm); padding: 0 var(--space-md); font-size: 15px; font-weight: 600; color: var(--ink);
}
.searchbar__input::placeholder { color: var(--ink-mute); }
.searchbar__input:focus { outline: none; }

/* Compact search living in the header (find page). Same block-shadow look,
   scaled to the 52px brand strip. Centers in the middle via flex below. */
.searchbar--nav {
  flex: 1 1 auto; min-width: 0; max-width: 380px;
  background: transparent; padding: 0; gap: var(--space-sm);
}
.searchbar--nav .icon-btn { width: 36px; height: 36px; border-width: 2px; box-shadow: 1px 1px 0 var(--ink); }
.searchbar--nav .icon-btn .mdi { font-size: 16px; }
.searchbar--nav .icon-btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.searchbar--nav .searchbar__input {
  height: 36px; border-width: 2px; box-shadow: 1px 1px 0 var(--ink);
  padding: 0 var(--space-sm); font-size: 13px;
}

.error-banner {
  margin-top: var(--space-sm); background: var(--rojo); color: var(--paper);
  border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md);
  font-family: var(--display); font-weight: 900; font-size: 12px;
}
.config-banner { background: var(--rojo); border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-sm); }
.config-banner__title { font-family: var(--display); color: var(--amarillo); font-size: 13px; letter-spacing: 2px; margin: 0 0 4px; }
.config-banner__body { color: var(--paper); font-size: 13px; line-height: 18px; margin: 0; }
.config-banner code { font-weight: 900; color: var(--amarillo); }

.quickpicks { margin-top: var(--space-md); background: var(--paper); border-radius: var(--radius-lg); padding: var(--space-md); }
.quickpicks__label { font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: var(--ink-mute); }
.quickpicks__row { margin-top: var(--space-sm); display: flex; gap: var(--space-sm); }
.quickpick {
  flex: 1; min-width: 0; padding: 10px 6px; border-radius: var(--radius-sm); text-align: center;
  border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display); font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
}
.quickpick:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ===========================================================================
   FIND / MAP page
   =========================================================================== */
.map { position: absolute; inset: 0; z-index: 0; background: var(--paper2); }
.leaflet-container { background: var(--paper2); font-family: var(--body); }
/* hide default leaflet zoom + attribution toggle clutter; keep attribution text */
.leaflet-control-zoom { display: none; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 246, 226, 0.8); }

.map-top { position: absolute; top: 0; left: 0; right: 0; z-index: 600; padding: var(--space-md); pointer-events: none; }
.map-top > * { pointer-events: auto; }

.searchhere-wrap { display: flex; justify-content: center; margin-top: var(--space-sm); pointer-events: none; }
.searchhere {
  pointer-events: auto; display: inline-flex; align-items: center; gap: var(--space-sm);
  background: var(--azul); color: var(--paper); padding: 10px var(--space-lg); border-radius: var(--radius-pill);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-size: 12px; letter-spacing: 1.5px;
}

/* right-side controls */
.map-controls { position: absolute; right: var(--space-md); top: var(--space-md); z-index: 600; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-sm); }
.maptype-toggle { width: 44px; height: 44px; background: var(--paper); border-radius: var(--radius-sm); color: var(--ink); display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.maptype-toggle .mdi { font-size: 20px; }
.maptype-toggle.is-sat { background: var(--azul); color: var(--paper); }
.locate {
  width: 44px; height: 44px; background: var(--verde); border-radius: var(--radius-sm); color: var(--paper);
  display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.locate .mdi { font-size: 20px; }

/* hero state (no results) */
.map-hero { position: absolute; left: var(--space-md); right: var(--space-md); top: calc(var(--space-md) + 84px); z-index: 500; max-width: 520px; transition: opacity 1800ms ease; }
.map-hero.is-fading { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .map-hero { transition: none; } }

/* scrim while searching */
.scrim { position: absolute; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.scrim__box { background: var(--paper); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); font-family: var(--display); font-size: 13px; letter-spacing: 1.5px; }

/* bottom area */
.map-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; padding: var(--space-sm); pointer-events: none; }
.map-bottom > * { pointer-events: auto; }
.map-bottom__inner { width: min(92%, 560px); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); align-items: stretch; }

.spots-pill-wrap { display: flex; justify-content: center; }
.spots-pill { background: var(--paper2); padding: 10px var(--space-lg); border-radius: var(--radius-pill); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--display); font-size: 13px; letter-spacing: 1.5px; }

/* legend */
.legend { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--paper); border-radius: var(--radius-sm); padding: 6px 10px; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.legend__item { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 2px; }
.legend__item.is-off { opacity: .32; }
.legend__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.legend__dot .mdi { font-size: 12px; }
.legend__label { font-family: var(--display); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }

/* zoom slider (diamond thumb) */
.zoom { display: flex; align-items: stretch; height: 40px; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.zoom__btn { width: 44px; background: var(--paper2); border: 0; font-family: var(--display); font-size: 22px; color: var(--ink); line-height: 1; }
.zoom__btn--minus { border-right: 3px solid var(--ink); }
.zoom__btn--plus { border-left: 3px solid var(--ink); }
.zoom__track { position: relative; flex: 1; display: flex; align-items: center; padding: 0 12px; touch-action: none; }
.zoom__rail { position: relative; width: 100%; height: 6px; background: var(--paper3); border: 1.5px solid var(--ink); border-radius: 3px; }
.zoom__fill { position: absolute; left: 0; top: -1.5px; height: 6px; background: var(--rojo); border: 1.5px solid var(--ink); border-radius: 3px; }
.zoom__thumb { position: absolute; top: 50%; width: 18px; height: 18px; background: var(--rojo); border: 2.5px solid var(--ink); border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); }

/* ---- Place info card ---------------------------------------------------- */
.infocard { position: relative; overflow: hidden; background: var(--paper); border-radius: var(--radius-md); padding: var(--space-md); padding-top: 18px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
/* Optional photo backdrop: a covered image + a bottom-weighted scrim so text stays legible. */
.infocard__media { position: absolute; inset: 0; z-index: 0; background: var(--ink-soft) center / cover no-repeat; }
.infocard__scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(15,12,8,.25) 0%, rgba(15,12,8,.55) 48%, rgba(15,12,8,.88) 100%); }
.infocard__content { position: relative; z-index: 1; }
.infocard--photo { color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.infocard--photo .infocard__name { color: var(--paper); text-shadow: 0 2px 6px rgba(0,0,0,.55); }
.infocard--photo .infocard__addr { color: rgba(255,246,226,.92); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.infocard--photo .infocard__close { color: var(--paper); }
.infocard--photo .meta-count { color: rgba(255,246,226,.9); }
.infocard--photo .meta-rating { color: var(--amarillo); }
.infocard--photo .meta-price { color: var(--verde-light); }
.infocard__close { position: absolute; z-index: 2; top: 4px; right: 8px; width: 28px; height: 28px; background: none; border: 0; font-family: var(--display); font-size: 22px; color: var(--ink-mute); line-height: 1; }
.infocard__name { font-family: var(--display); font-weight: 900; font-size: 18px; margin: 0; padding-right: 28px; }
.meta-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.meta-rating { color: var(--rojo-dark); font-weight: 800; }
.meta-count { color: var(--ink-mute); font-size: 12px; }
.meta-price { color: var(--verde); font-weight: 800; }
.infocard__addr { color: var(--ink-soft); font-size: 12px; margin: 6px 0 0; }

/* Info card rendered as a Leaflet popup near the pin (desktop). The .infocard
   supplies all the chrome; the wrapper is stripped and the tip becomes an ink pointer. */
.infocard-popup .leaflet-popup-content-wrapper { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.infocard-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.infocard-popup .leaflet-popup-tip { background: var(--ink); box-shadow: none; }
.infocard__actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); align-items: stretch; }
.heart-box { width: 56px; background: var(--paper3); border-radius: var(--radius-sm); overflow: hidden; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); display: flex; }
.heart-btn { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--paper3); border: 0; color: var(--rojo); }
.heart-btn .mdi { font-size: 24px; }
.heart-btn.is-on { background: var(--rojo); color: var(--paper); }
.action-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: var(--radius-sm); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: var(--paper); font-family: var(--display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.action-btn--dir { background: var(--verde); }
.action-btn--web { background: var(--azul); }
/* In a Leaflet popup the buttons are links; beat `.leaflet-container a` (which
   would force them to Leaflet's blue, making the text unreadable). */
.infocard .action-btn { color: var(--paper); }

/* ---- Place card (lists) ------------------------------------------------- */
.placecard { display: flex; background: var(--paper3); border-radius: var(--radius-md); overflow: hidden; min-height: 84px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.placecard.is-active { border-color: var(--rojo); border-width: 4px; }
.placecard__tap { flex: 1; display: flex; min-width: 0; background: none; border: 0; padding: 0; text-align: left; }
.placecard__kind { width: 64px; flex: none; display: flex; align-items: center; justify-content: center; border-right: 3px solid var(--ink); color: var(--paper); }
.placecard__kind .mdi { font-size: 30px; }
.placecard__body { flex: 1; min-width: 0; padding: var(--space-md); }
.placecard__name { font-family: var(--display); font-weight: 900; font-size: 16px; line-height: 19px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Saved page: make the spot name larger + more prominent; wrap to two lines. */
.saved-list .placecard__name { font-size: 21px; line-height: 25px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Saved page: bare red heart on the card, no inverse box / divider. */
.saved-list .placecard__fav { border-left: 0; }
.saved-list .placecard__fav .heart-btn { background: none; color: var(--rojo); }
.saved-list .placecard__fav .heart-btn .mdi { font-size: 28px; }
.placecard__addr { margin: 4px 0 0; color: var(--ink-mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placecard__fav { width: 56px; flex: none; border-left: 3px solid var(--ink); display: flex; }

/* ---- Sheet / modal (full list) ------------------------------------------ */
.sheet-backdrop { position: fixed; inset: 0; z-index: 1500; background: rgba(15, 12, 8, .35); display: none; }
.sheet-backdrop.is-open { display: flex; align-items: flex-end; }
.sheet { background: var(--paper); border-top-left-radius: 24px; border-top-right-radius: 24px; border-top: 3px solid var(--ink); width: 100%; max-height: 92dvh; min-height: 60dvh; overflow: hidden; display: flex; flex-direction: column; }
.sheet__handle { width: 48px; height: 4px; border-radius: 2px; background: var(--ink-mute); margin: 8px auto 4px; }
.sheet__head { display: flex; align-items: center; gap: var(--space-md); padding: 8px var(--space-md); border-bottom: 3px solid var(--ink); background: var(--sheet-bg); color: var(--sheet-fg); }
.sheet__eyebrow { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 11px; letter-spacing: 1.2px; opacity: .85; margin: 0; }
.sheet__count { font-family: var(--display); font-size: 18px; letter-spacing: 1px; margin: 2px 0 0; }
.sheet__count .accent { color: var(--amarillo); }
.sheet__close { margin-left: auto; width: 32px; height: 32px; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 22px; line-height: 1; }
.sheet__body { flex: 1; overflow-y: auto; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-md); }

/* ===========================================================================
   SAVED page
   =========================================================================== */
.saved-sections { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
.saved-section { display: flex; flex-direction: column; gap: var(--space-sm); }
.section-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.section-head .mdi { font-size: 16px; }
.section-head__label { font-family: var(--display); flex: 1; font-size: 13px; letter-spacing: 1.5px; }
.section-head__count { font-family: var(--display); font-size: 13px; letter-spacing: 1px; opacity: .85; }
.saved-list { display: flex; flex-direction: column; gap: var(--space-md); }

.empty {
  background: var(--paper3); border-radius: var(--radius-md); padding: var(--space-xxl); text-align: center;
  margin-top: var(--space-lg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center;
}
.empty__mark { width: 72px; height: 72px; border-radius: 36px; background: var(--rojo); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--paper); }
.empty__mark .mdi { font-size: 36px; }
.empty__title { font-family: var(--display); font-size: 18px; margin: var(--space-md) 0 0; }
.empty__hint { color: var(--ink-mute); font-size: 13px; margin: 4px 0 0; }
.loading { font-family: var(--display); color: var(--ink-mute); text-align: center; margin-top: var(--space-xl); font-size: 14px; }

/* ===========================================================================
   ABOUT page
   =========================================================================== */
.about-body { color: var(--ink-soft); font-size: 16px; line-height: 24px; margin-top: var(--space-xl); }
.section-gap { margin-top: var(--space-xl); }

/* Taqueria hero (rotating favorites) */
.taqhero { border-radius: var(--radius-lg); overflow: hidden; min-height: 220px; position: relative; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--rojo-dark); color: var(--paper); display: flex; }
.taqhero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.taqhero__scrim { position: absolute; inset: 0; background: rgba(15, 12, 8, .55); }
.taqhero__content { position: relative; align-self: flex-end; padding: var(--space-md); width: 100%; }
.taqhero__eyebrow { font-family: var(--display); font-style: italic; font-size: 12px; letter-spacing: 1.5px; color: var(--paper2); margin: 0 0 4px; }
.taqhero__name { font-family: var(--display); font-size: 24px; line-height: 28px; margin: 0; }
.taqhero__meta { display: flex; align-items: center; gap: var(--space-md); margin-top: 4px; }
.taqhero__rating { color: var(--amarillo); font-weight: 800; font-size: 13px; }
.taqhero__addr { font-size: 12.5px; opacity: .85; }
.taqhero__dots { display: flex; gap: 6px; margin-top: 10px; }
.taqhero__dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 246, 226, .4); }
.taqhero__dot.is-active { background: var(--paper); }
.taqhero--empty { align-items: center; justify-content: center; background: var(--paper3); color: var(--ink-mute); text-align: center; }
.taqhero--empty .taqhero__msg { font-family: var(--display); font-size: 13px; letter-spacing: 1px; padding: var(--space-md); }

/* Taco / salsa guide — always-open card grids (no accordions) */
.guide { display: flex; flex-direction: column; gap: var(--space-xl); }
.guide-section { display: flex; flex-direction: column; gap: var(--space-md); }
.guide-head { background: var(--paper2); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.guide-head__eyebrow { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--ink-soft); margin: 0; }
.guide-head__title { font-family: var(--display); font-size: 22px; margin: 2px 0 0; }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 600px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }

.guide-card { position: relative; border-radius: var(--radius-md); overflow: hidden; min-height: 140px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; }
.guide-card__glyph { position: absolute; right: -18px; top: -14px; opacity: .18; transform: rotate(-12deg); }
.guide-card__glyph .mdi { font-size: 130px; }
.guide-card__content { position: relative; align-self: flex-end; padding: var(--space-md); width: 100%; }
.guide-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: 4px; }
.guide-card__name { font-family: var(--display); font-size: 22px; margin: 0; }
.guide-card__desc { font-size: 13px; line-height: 18px; margin: 4px 0 0; opacity: .92; }
.guide-card__garnish { font-size: 11.5px; font-style: italic; margin: 6px 0 0; letter-spacing: .3px; opacity: .85; }
.heat-badge { display: inline-flex; align-items: center; gap: 1px; padding: 4px 6px; border-radius: 999px; border: 2px solid var(--ink); }
.heat-badge .mdi { font-size: 12px; }

/* Theme picker */
.theme-pick { margin-top: var(--space-xl); }
.theme-pick__label { font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: var(--ink-mute); margin: 0 0 var(--space-sm); }
.theme-row { display: flex; height: 44px; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.theme-opt { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--paper2); border: 0; font-family: var(--display); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.theme-opt + .theme-opt { border-left: 3px solid var(--ink); }
.theme-opt.is-active { background: var(--rojo); color: var(--paper); }

/* ---- Leaflet pin (divIcon) --------------------------------------------- */
.taco-pin { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.taco-pin .mdi { font-size: 20px; line-height: 1; }
.taco-pin--taqueria { background: var(--rojo); color: var(--paper); }
.taco-pin--truck { background: var(--azul); color: var(--paper); }
.taco-pin--fastfood { background: var(--amarillo); color: var(--ink); }
.taco-pin--mexican { background: var(--verde); color: var(--paper); }
.taco-pin--fav { background: var(--rojo); color: var(--paper); }
.taco-pin--active { border-color: var(--rojo-dark); border-width: 4px; }
.taco-pin--active .mdi { font-size: 27px; }
.leaflet-marker-icon .taco-pin { transition: none; }

/* pressed feedback for buttons made of .block-shadow* */
.block-shadow:active, .block-shadow-sm:active { transform: translate(1px, 1px); }
.tab:active, .legend__item:active, .infocard__close:active, .sheet__close:active { transform: translate(1px, 1px); }

/* ===========================================================================
   DESKTOP (HD laptops, ~1024px and up)
   The whole UI was drawn mobile-first, so on a big screen everything floats
   tiny in the middle. Scale the brand, nav, hero, controls and cards up so it
   fills the room with the same lotería look — just more of it. Mobile/tablet
   (< 1024px) styles are deliberately left untouched.
   =========================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }

  /* Brand strip / nav / logo */
  .brand-strip__inner { padding: 0 var(--space-xl); gap: var(--space-lg); }
  .brand { gap: var(--space-md); }
  .brand__logo { width: 40px; height: 40px; }
  .brand__word { font-size: 30px; letter-spacing: 3px; }
  .tab { font-size: 15px; padding: 10px 18px; gap: 8px; border-radius: var(--radius-pill); }
  .tab .mdi { font-size: 24px; }
  .brand-strip__ribbon { height: 4px; }

  /* Header search — bigger, roomier, holds more characters */
  .searchbar--nav { max-width: 560px; gap: var(--space-sm); }
  .searchbar--nav .icon-btn { width: 52px; height: 52px; border-width: 3px; box-shadow: 2px 2px 0 var(--ink); }
  .searchbar--nav .icon-btn .mdi { font-size: 24px; }
  .searchbar--nav .searchbar__input { height: 52px; font-size: 18px; border-width: 3px; box-shadow: 2px 2px 0 var(--ink); padding: 0 var(--space-md); }

  /* Hero — big bold centered intro */
  .map-hero { left: 0; right: 0; margin: 0 auto; max-width: 760px; top: var(--space-xl); }
  .loteria { padding: var(--space-xxl) var(--space-xl); }
  .loteria__corner { width: 40px; height: 40px; border-width: 5px; }
  .loteria__corner--tl { border-top-width: 5px; border-left-width: 5px; }
  .loteria__logo { width: 48px; height: 48px; }
  .loteria__eyebrow { font-size: 20px; letter-spacing: 2px; }
  .loteria__title { font-size: 62px; line-height: 64px; }
  .loteria__caption { font-size: 14px; letter-spacing: 3px; margin-top: var(--space-md); }
  .quickpicks { margin-top: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-lg); }
  .quickpicks__label { font-size: 14px; letter-spacing: 3px; }
  .quickpicks__row { margin-top: var(--space-md); gap: var(--space-md); }
  .quickpick { font-size: 18px; padding: 16px 10px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }

  /* Map overlays */
  .map-top { padding: var(--space-lg); }
  .map-controls { right: var(--space-lg); top: var(--space-lg); gap: var(--space-md); }
  .maptype-toggle { width: 56px; height: 56px; }
  .maptype-toggle .mdi { font-size: 26px; }
  .locate { width: 56px; height: 56px; }
  .locate .mdi { font-size: 26px; }
  .searchhere { font-size: 15px; padding: 14px var(--space-xl); }
  .scrim__box { font-size: 17px; padding: var(--space-md) var(--space-xl); }

  /* Bottom bar */
  .map-bottom { padding: var(--space-md); }
  .map-bottom__inner { width: min(96%, 760px); gap: var(--space-md); }
  .spots-pill { font-size: 16px; padding: 14px var(--space-xl); }
  .legend { padding: 10px 18px; gap: 12px; }
  .legend__dot { width: 30px; height: 30px; }
  .legend__dot .mdi { font-size: 16px; }
  .legend__label { font-size: 13px; letter-spacing: .8px; }
  .zoom { height: 52px; }
  .zoom__btn { width: 56px; font-size: 28px; }

  /* Info card (popup near the pin) — bigger type, taller photo */
  .infocard { padding: var(--space-lg); padding-top: var(--space-lg); }
  .infocard--photo { min-height: 200px; }
  .infocard__close { width: 38px; height: 38px; font-size: 30px; top: 6px; right: 10px; }
  .infocard__name { font-size: 26px; }
  .meta-row { gap: 14px; margin-top: 8px; font-size: 17px; }
  .meta-count { font-size: 15px; }
  .infocard__addr { font-size: 15px; margin-top: 10px; }
  .infocard__actions { gap: var(--space-md); margin-top: var(--space-lg); }
  .action-btn { font-size: 14px; padding: 14px; }
  .heart-box { width: 66px; }
  .heart-btn .mdi { font-size: 30px; }

  /* Bigger pins to match (icon glyph; box size set in makeIcon) */
  .taco-pin .mdi { font-size: 23px; }
  .taco-pin--active .mdi { font-size: 32px; }

  /* Saved page: even bolder spot name on the desktop column */
  .saved-list .placecard__name { font-size: 24px; line-height: 28px; }

  /* About page: wider canvas, centered intro, 3-up guide grids */
  .page-about .wrap { max-width: 1180px; }
  .page-about .about-body { max-width: 720px; margin: var(--space-xl) auto 0; text-align: center; font-size: 18px; line-height: 28px; }
  .taqhero { min-height: 280px; }
  .taqhero__name { font-size: 30px; line-height: 34px; }
  .guide { gap: var(--space-xxl); }
  .guide-head__eyebrow { font-size: 14px; }
  .guide-head__title { font-size: 28px; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
  .guide-card { min-height: 180px; }
  .guide-card__name { font-size: 24px; }
  .guide-card__desc { font-size: 14px; line-height: 19px; }
  .guide-card__glyph .mdi { font-size: 150px; }
  .theme-pick { max-width: 720px; margin-left: auto; margin-right: auto; }
}
