:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --ink: #111111;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e3e3de;
  --accent: #b0124f;
  --accent-ink: #ffffff;
  --danger: #c62828;
  --ok: #157a36;
  --star: #f5a623;
  --radius: 0;
  --shadow: 0 0 0 1px var(--line);
  --float: 0 10px 30px rgba(0,0,0,.14), 0 0 0 1px var(--line);
  --top: 60px;
  font-family: "Inter", "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.85rem; line-height: 1.15; margin: .2em 0 .45em; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
h2 { font-size: 1.2rem; margin: 1.8em 0 .7em; font-weight: 750; letter-spacing: -.015em; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pre { white-space: pre-line; }
.right { text-align: right; white-space: nowrap; }
.center { text-align: center; }
code { background: #eef1f5; padding: .1em .35em; border-radius: 0; font-size: .88em; word-break: break-all; }

/* ---- Cabecera ---- */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 20px; padding: 0 16px;
  background: var(--surface); border-bottom: 2px solid var(--ink);
}
.brand { font-weight: 850; color: var(--ink); white-space: nowrap; font-size: 1.15rem; letter-spacing: -.03em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 500; color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.topnav a, .topnav .linkbtn { padding: 8px 12px; border-radius: 0; color: var(--text); white-space: nowrap; font-size: .9rem; font-weight: 600; box-shadow: inset 0 -2px 0 transparent; }
.topnav a:hover, .topnav .linkbtn:hover { text-decoration: none; box-shadow: inset 0 -2px 0 var(--line); }
.topnav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.topnav form { margin: 0 0 0 auto; }
.pill { background: var(--danger); color: #fff; border-radius: 0; padding: 0 7px; font-size: .78rem; }

/* ---- Botones y campos ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 0; border: 1.5px solid var(--ink);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .01em; cursor: pointer;
  white-space: nowrap; text-decoration: none !important; list-style: none; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.sm { padding: 6px 12px; font-size: .82rem; border-width: 1px; }
.btn.danger { color: var(--danger); }
.btn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; background: var(--surface); border: 1.5px solid var(--ink); flex: none; text-decoration: none !important; }
.btn-icon:hover { background: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.linkbtn.danger { color: var(--danger); }
.input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 0;
  font: inherit; color: var(--text); background: var(--surface);
}
.input:hover { border-color: #c9c9c3; }
.input:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
input[type=color].input { padding: 2px; height: 41px; }
.hp { position: absolute; left: -9999px; }

/* ---- App: panel + mapa ---- */
.app { display: grid; grid-template-columns: 400px 1fr; height: calc(100dvh - var(--top)); }
.panel { background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.panel-head { padding: 16px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-head h1 { margin: 0; }
.lead { margin: 0; color: var(--muted); }
.map { width: 100%; height: 100%; min-height: 300px; background: #e9eef2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  --c: var(--accent);
  padding: 6px 12px; border-radius: 0; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: .9rem; white-space: nowrap; text-decoration: none !important;
}
.chip { font-weight: 600; border-width: 1.5px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--c); }
.chip.on .muted { color: rgba(255,255,255,.85); }
.chips.small .chip { font-size: .85rem; padding: 4px 10px; }
.near { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.near select:disabled { opacity: .5; }
.count { margin: 0; padding: 10px 16px 0; color: var(--muted); font-size: .85rem; }
.empty { padding: 16px; color: var(--muted); }

.results { list-style: none; margin: 0; padding: 4px 8px 16px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 0; cursor: pointer; }
.item:hover { background: var(--bg); box-shadow: inset 3px 0 0 var(--ink); }
.item + .item { border-top: 1px solid var(--line); }
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { font-size: .85rem; color: var(--muted); }
.item-dist { font-size: .85rem; color: var(--ok); font-weight: 600; }
.star { color: var(--star); }
.dot {
  --c: #999; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 0;
  background: color-mix(in srgb, var(--c) 16%, white); border: 2px solid var(--c); font-size: 1rem;
}
.dot.sm { width: 12px; height: 12px; display: inline-block; vertical-align: middle; border-width: 0; background: var(--c); }

.user-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(26,115,232,.2), 0 1px 4px rgba(0,0,0,.3);
}
.maplibregl-popup-content { border-radius: 0; padding: 12px 14px; box-shadow: var(--float); font-family: inherit; }
.pop { display: grid; gap: 4px; min-width: 200px; }
.pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 0; margin-bottom: 4px; }
.pop-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.pop-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pop .input { margin: 6px 0; }

/* ---- Ficha ---- */
.place {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "top map" "bottom map";
  gap: 0 32px; max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; align-items: start;
}
.place-top { grid-area: top; }
.place-bottom { grid-area: bottom; }
.place-map { grid-area: map; position: sticky; top: calc(var(--top) + 20px); }
.place-map .map { height: calc(100dvh - var(--top) - 60px); max-height: 640px; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); }
.place-photo { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 0; margin: 8px 0 4px; display: block; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.badge {
  --c: var(--accent); padding: 3px 10px; border-radius: 0; font-size: .85rem; font-weight: 600;
  background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 75%, black);
}
.rating { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.stars {
  --r: 0; --pct: calc(var(--r) / 5 * 100%); letter-spacing: 1px;
  background: linear-gradient(90deg, var(--star) var(--pct), #d1d5db var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.dist { margin: 4px 0 8px; }
.info { margin: 16px 0 0; background: var(--surface); border-radius: 0; box-shadow: var(--shadow); }
.info > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; }
.info > div + div { border-top: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: .88rem; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.desc p { margin: 0; }
.review-list { list-style: none; padding: 0; margin: 0 0 16px; }
.review-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-list p { margin: 8px 0 0; }
.rv-head { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 0; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.review-form summary { cursor: pointer; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form form { display: grid; gap: 12px; margin-top: 14px; max-width: 520px; }
.review-form label, .form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.rate { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 2rem; color: #d1d5db; cursor: pointer; padding: 0 2px; line-height: 1; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--star); }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 0; }

/* ---- Páginas y panel ---- */
.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.page.narrow { max-width: 620px; }
.page.wide { max-width: 1300px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card { background: var(--surface); border-radius: 0; box-shadow: var(--shadow); padding: 20px; }
.form { display: grid; gap: 14px; }
.form fieldset { border: 1px solid var(--line); border-radius: 0; padding: 12px; display: grid; gap: 10px; margin: 0; }
.form legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.form small { font-weight: 400; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 8px; }
.alert { background: #fdecea; color: var(--danger); padding: 10px 14px; border-radius: 0; }
.flash { position: fixed; z-index: 50; top: calc(var(--top) + 12px); left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 0; background: var(--ink); color: #fff; box-shadow: var(--float); animation: fade 5s forwards; max-width: calc(100vw - 32px); }
.flash-error { background: var(--danger); }
@keyframes fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.danger-zone { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--surface); border-radius: 0; box-shadow: var(--shadow); padding: 16px; color: var(--muted); text-decoration: none !important; }
.stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stat.hot b { color: var(--danger); }
.help ol { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.help h2 { margin-top: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 0; box-shadow: var(--shadow); overflow: hidden; margin-top: 16px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--surface); border-bottom: 2px solid var(--ink); }
.tag { font-size: .8rem; padding: 2px 8px; border-radius: 0; background: #e7f6ec; color: var(--ok); }
.tag.borrador { background: #f1f3f4; color: var(--muted); }
.filters { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.filters .input { width: auto; flex: 1; min-width: 180px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 700; }
.review-admin { list-style: none; padding: 0; display: grid; gap: 12px; }
.review-admin p { margin: 8px 0; }
.place-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.picker-card { position: sticky; top: calc(var(--top) + 16px); display: grid; gap: 10px; }
.picker { height: 460px; border-radius: 0; overflow: hidden; }
.place-form .form-actions.sticky { grid-column: 1 / -1; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.photo-prev { display: flex; gap: 12px; align-items: center; }
.photo-prev img { width: 120px; height: 80px; object-fit: cover; border-radius: 0; }
.check { display: flex !important; align-items: center; gap: 6px; font-weight: 400 !important; }
.geo-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.geo-results button { width: 100%; text-align: left; background: var(--bg); border: 0; border-radius: 0; padding: 8px 10px; font: inherit; font-size: .88rem; cursor: pointer; }
.geo-results button:hover { background: var(--line); }
.admin-map { display: block; position: relative; }
.admin-map .map { height: calc(100dvh - var(--top)); }
.map-search { position: absolute; z-index: 5; top: 12px; left: 12px; width: min(380px, calc(100% - 70px)); background: var(--surface); border-radius: 0; box-shadow: var(--float); padding: 10px; display: grid; gap: 6px; }
.map-search p { margin: 0; }

.foot { border-top: 2px solid var(--ink); background: var(--surface); padding: 24px 16px; font-size: .9rem; }
.foot > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }

/* ---- Móvil ---- */
@media (max-width: 800px) {
  .app { display: flex; flex-direction: column; height: auto; }
  .app .map { order: -1; flex: none; }
  .panel { border-right: 0; overflow: visible; }
  .admin-map .map { height: calc(100dvh - var(--top)); }
  .place { grid-template-columns: 1fr; grid-template-areas: "top" "map" "bottom"; }
  .place-map { position: static; margin-top: 16px; }
  .place-map .map { height: 280px; }
  .place-form { grid-template-columns: 1fr; }
  .picker-card { position: static; order: -1; }
  .picker { height: 320px; }
  .info > div { grid-template-columns: 1fr; gap: 0; }
  .table { font-size: .88rem; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .brand { font-size: .95rem; }
}

/* ---- Listados: paginación, características y preguntas ---- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 8px 16px 16px; }
.pager a:not(.btn), .pager span { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 0; }
.pager span.on { background: var(--ink); color: #fff; font-weight: 700; }
.tagchip { background: #f8fafc; }
.about { padding: 8px 16px 24px; border-top: 1px solid var(--line); }
.about h2 { font-size: 1rem; margin: 1em 0 .4em; }
.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 6px 0 0; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: #b45309; font-weight: 600; }
.badge-box { margin-top: 20px; display: grid; gap: 10px; justify-items: start; }
.badge-box h2 { margin: 0; }
.badge-box p { margin: 0; }

/* ---- Directorio: aviso +18, verificación, zonas, horarios ---- */
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(17, 24, 39, .92); display: grid; place-items: center; padding: 16px; }
.agegate[hidden] { display: none; }
.agegate-box { background: var(--surface); border-radius: 0; padding: 28px; max-width: 460px; box-shadow: var(--float); border-top: 4px solid var(--accent); }
.agegate-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; }
.topnav a.cta { background: var(--accent); color: #fff; font-weight: 700; box-shadow: none; }
.topnav a.cta:hover { background: var(--ink); }
.trata { margin: 16px 0; padding: 12px 14px; border-radius: 0; background: #fff8e1; border: 1px solid #ffe082; font-size: .88rem; line-height: 1.5; }
.trata strong { display: block; margin-bottom: 2px; }
.item-body > .item-name { display: inline-block; max-width: calc(100% - 26px); vertical-align: bottom; }
.verified { display: inline-block; color: #fff; background: var(--ok); border-radius: 0; font-size: .7rem; font-weight: 800; padding: 1px 6px; letter-spacing: .03em; vertical-align: middle; }
.verified.big { font-size: .8rem; padding: 2px 10px; vertical-align: .3em; }
.item-open { font-size: .8rem; font-weight: 600; }
.item-open.is-open { color: var(--ok); }
.item-open.is-closed { color: var(--muted); }
.zone-circle { --c: var(--accent); width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); border: 2px solid var(--c); }
.hours { border-collapse: collapse; font-size: .92rem; }
.hours th { text-align: left; font-weight: 500; padding: 1px 16px 1px 0; color: var(--muted); }
.hours td { padding: 1px 0; }
.hours tr.today th, .hours tr.today td { color: var(--text); font-weight: 700; }
.hours-input { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 8px; align-items: center; font-size: .9rem; }
.hrow .input { padding: 6px 8px; }
.citylinks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.note { margin: 0; padding: 10px 12px; background: var(--bg); border-radius: 0; font-size: .88rem; }
.checklist { padding-left: 20px; display: grid; gap: 6px; }
.notice { display: grid; gap: 8px; border-left: 4px solid var(--ok); margin: 12px 0; }
.consent { display: grid; gap: 8px; }
.verify > div { display: grid; gap: 8px; }
.card.hot { border-left: 4px solid var(--danger); }
.tag.pendiente { background: #fdecea; color: var(--danger); }
.intro { margin-bottom: 8px; }
.report-link { margin-top: 32px; font-size: .85rem; }
.report-link a { color: var(--muted); }
/* ---- Móvil: lo primero ---- */
.maptoggle, .mobile-bar { display: none; }
@media (max-width: 800px) {
  :root { --top: 52px; }
  .hrow { grid-template-columns: 70px 1fr 1fr auto; }
  .top { gap: 10px; padding: 0 12px; }
  .brand { font-size: .95rem; }

  /* Campos a 16 px: el iPhone no hace zoom al escribir */
  .input, select.input, textarea.input { font-size: 16px; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 36px; }
  .btn-icon { width: 44px; height: 44px; }

  /* Filtros en una fila deslizable */
  .panel-head .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; -webkit-overflow-scrolling: touch; }
  .panel-head .chips::-webkit-scrollbar { display: none; }
  .chip { padding: 8px 14px; flex: none; }
  .panel-head h1 { font-size: 1.35rem; }
  .panel-head { gap: 10px; padding: 14px 16px; }
  .lead { font-size: .92rem; }

  /* Listados: mapa más bajo al entrar; a pantalla completa con el botón flotante */
  .app .map { height: 38dvh; min-height: 220px; }
  body.map-full .app .map { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; height: auto; z-index: 30; }
  body.map-full { overflow: hidden; }
  .maptoggle {
    display: inline-flex; align-items: center; gap: 6px; position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%); padding: 12px 20px; border-radius: 0; border: 0; background: var(--ink); color: #fff;
    font: inherit; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.25); cursor: pointer;
  }
  .item { padding: 12px 6px; }
  .results { padding-bottom: 80px; }

  /* Ficha: acciones fijas abajo, al alcance del pulgar */
  .mobile-bar {
    display: flex; gap: 8px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .mobile-bar .btn { flex: 1; padding: 10px 8px; }
  body.has-bar { padding-bottom: 76px; }
  .place { padding-top: 12px; }
  .place h1 { font-size: 1.4rem; }
  .place-photo { aspect-ratio: 4 / 3; }
}

/* ---- Novedades y destacadas ---- */
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.badges span { font-size: .68rem; font-weight: 800; border-radius: 0; padding: 2px 7px; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em; }
.b-new { background: #dcfce7; color: #166534; }
.b-upd { background: #dbeafe; color: #1e40af; }
.b-feat { background: #fef3c7; color: #92400e; }
.item.is-featured { background: #fffbeb; box-shadow: inset 3px 0 0 #f59e0b; }
.item.is-featured + .item { border-top-color: #fde68a; }

/* Equipo de un centro o agencia */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.team a { display: block; color: var(--text); text-align: center; }
.team img, .team-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; background: var(--bg); font-size: 2.5rem; margin-bottom: 6px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
[hidden] { display: none !important; }

/* Controles del mapa, también cuadrados */
.maplibregl-ctrl-group, .maplibregl-ctrl-group button, .maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib-button { border-radius: 0 !important; }
.maplibregl-ctrl-group { box-shadow: 0 0 0 1.5px var(--ink) !important; }

/* Ciudades: enlaces para saltar de una a otra */
.citynav { align-items: center; }
.citynav-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 2px; }
@media (max-width: 800px) {
  .citynav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .citynav::-webkit-scrollbar { display: none; }
  .citynav .chip, .citynav-label { flex: none; }
}

/* Logos de centros y agencias: baldosa cuadrada en el mapa, la lista y el panel */
.logo-marker { --c: var(--accent); width: 46px; height: 46px; background: #fff; border: 3px solid var(--c); box-shadow: 0 4px 12px rgba(0,0,0,.25); display: grid; place-items: center; padding: 5px; }
.logo-marker.is-featured { border-color: #f59e0b; }
.logo-marker img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.dot.has-logo { background: #fff; padding: 3px; }
.dot.has-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-prev { width: 80px !important; height: 80px !important; object-fit: contain !important; background: #fff; border: 1px solid var(--line); }
