@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/news-assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/news-assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* NSHNO public city site.
 * Layered on top of Pico (base reset/components) and design/tokens.css
 * (brand variables, typography, colors). Keep brand values in tokens.css.
 */

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-main { padding-top: 28px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.sep { color: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; color: var(--ink); flex: 0 0 auto; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; display: block; flex: 0 0 auto; }
.brand:hover { border: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-20); line-height: 1; }
.brand-city { color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink); font-weight: 500; padding: 8px 10px; border: 0; border-radius: var(--radius-control);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.theme-toggle {
  margin-left: 8px; width: 40px; height: 40px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { display: block; width: 19px; height: 19px; flex: 0 0 auto; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Meta / labels ---------- */
.meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  color: var(--muted); font-size: var(--text-13); line-height: 1.3;
}
.meta .time { font-variant-numeric: tabular-nums; }

/* ---------- Lead ---------- */
.lead-section { margin-bottom: 32px; }
.lead { display: block; border: 0; color: var(--ink); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.lead:hover .lead-title { color: var(--accent); }
.lead-media {
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper);
}
.lead-media img, .card-media img, .post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-body { padding: 18px 0 0; }
.lead-title { font-size: var(--text-34); margin: 10px 0 10px; }
.lead-summary { color: var(--muted); font-size: var(--text-17); margin: 0; max-width: 62ch; }

/* ---------- Home grid ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.col-main { min-width: 0; }
.col-side { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-head h1, .section-head h2 { margin: 0; font-size: var(--text-26); }
.list-head { margin-top: 4px; }
.more { font-weight: 500; border: 0; white-space: nowrap; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; transition: border-color .15s ease-out, transform .15s ease-out;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card-link { display: flex; flex-direction: column; height: 100%; border: 0; color: var(--ink); }
.card-media, .lead-media, .post-media { background: var(--paper) url("/news-assets/icon-192.png") center / 36px 36px no-repeat; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.no-image { display: flex; align-items: center; justify-content: center; background-image: none; }
.ph-logo { opacity: .3; }
.news-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-title { margin: 0; font-size: var(--text-20); line-height: 1.2; }
.news-card:hover .news-card-title { color: var(--accent); }
.news-card-summary { margin: 0; color: var(--muted); font-size: var(--text-15); }
.news-card .time { margin-top: auto; }

/* ---------- Sidebar ---------- */
.side-block { border-top: 2px solid var(--ink); padding-top: 12px; }
.side-block h2 { font-size: var(--text-20); margin: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-item { border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; }
.mini-item a { display: block; padding: 12px 0; border: 0; color: var(--ink); }
.mini-item a:hover .mini-title { color: var(--accent); }
.mini-title { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
.source-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; color: var(--muted); font-size: var(--text-13); }
.source-list li { padding: 3px 0; break-inside: avoid; }

/* ---------- Article ---------- */
.post-layout { max-width: 760px; margin: 0 auto; }
.post { max-width: none; }
.breadcrumb { color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); border: 0; }
.breadcrumb a:hover { color: var(--accent); }
.post-title { font-size: var(--text-44); margin: 12px 0 14px; }
.post-lead { font-size: var(--text-20); line-height: 1.4; color: var(--ink); font-weight: 500; }
.post-media {
  margin: 24px 0; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper);
}
.post-body { margin-top: 8px; }
.post-body p { font-size: var(--text-17); line-height: 1.6; margin: 0 0 18px; }
.post-source { color: var(--muted); font-size: var(--text-15); border-top: 1px solid var(--line); padding-top: 16px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

/* ---------- Timeline / related ---------- */
.post-updates { margin-top: 36px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline time { color: var(--muted); }
.timeline p { margin: 4px 0 0; }
.related { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Pagination / error ---------- */
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.error-page { max-width: 620px; padding-top: 60px; padding-bottom: 80px; }
.error-page h1 { font-size: var(--text-34); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; padding-top: 28px; padding-bottom: 28px; }
.footer-about p { margin: 6px 0 0; max-width: 52ch; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }


/* ---------- Footer columns ---------- */
.footer-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer-col h3 { margin: 0 0 10px; font-family: var(--font-ui); font-size: var(--text-13); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a { color: var(--ink); border: 0; }
.footer-col a:hover { color: var(--accent); }

/* ---------- Comments / auth ---------- */
.auth-name { color: var(--muted); }
.auth-link { color: var(--muted); border: 0; font-size: var(--text-13); }
.auth-link:hover { color: var(--accent); }
.comments { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.comment-form textarea {
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 10px; font-family: var(--font-ui); font-size: var(--text-15); resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.comment-login { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; }
.comment-login p { margin-top: 0; }
.comment-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.comment-author { font-weight: 600; }
.comment-body { margin: 0; white-space: pre-wrap; }

/* ---------- Continuous reading ---------- */
.feed-sentinel, .stream-sentinel { height: 1px; }
.js .pagination { display: none; }
.post + .post { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 36px; }
.post-next { margin-top: 20px; font-weight: 500; }


/* ---------- Map page ---------- */
/* Pico gives header/main vertical padding; on the map page that would make the
 * full-viewport map taller than the visible area, so keep the map flush with
 * the real header height. */
.map-page .site-header { padding: 0; }
.map-main {
  position: relative;
  height: calc(100vh - 63px);
  height: calc(100dvh - 63px);
  min-height: 460px;
  padding: 0;
  background: var(--paper);
}
.map-main .map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-toolbar {
  position: absolute; z-index: 6; top: 12px; left: 0; right: 0;
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 0 16px; pointer-events: none;
}
.map-toolbar > * { pointer-events: auto; }
.map-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 72%; }
.map-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-control); padding: 6px 10px; cursor: pointer;
  font-family: var(--font-ui); font-size: var(--text-13); font-weight: 500; line-height: 1;
}
.map-chip:hover { border-color: var(--accent); }
.map-chip.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.map-chip.is-active .category-dot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }

.map-chip-secondary { opacity: .92; }
.map-pin--transport .map-pin-svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)) drop-shadow(0 0 6px rgba(168, 105, 0, .55));
}
.map-pop-time { color: var(--muted); font-size: 12px; margin-top: 2px; }
.map-pop-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.map-pop-alert {
  display: inline-block; font-weight: 500; font-size: 13px;
  color: var(--accent); border-bottom: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.map-pop-alert:hover { border-bottom-style: solid; }
.map-sheet {
  position: absolute; z-index: 12; left: 0; right: 0; bottom: 0;
  max-height: 42%; overflow: auto;
  background: var(--surface); color: var(--ink);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(0,0,0,.2);
  padding: 12px 16px 18px;
}
.map-sheet-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border: 0; background: transparent;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted);
}
.map-sheet-body { padding-right: 28px; }
.map-list .news-card.is-map-focus {
  outline: 2px solid var(--accent); outline-offset: 2px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.map-legend { max-width: min(420px, calc(100% - 72px)); line-height: 1.35; font-size: 11px; }
.map-filters { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.map-today {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 7px 10px; font-size: var(--text-13); font-weight: 500; white-space: nowrap;
}
.map-zoom {
  position: absolute; z-index: 7; right: 16px; bottom: 44px; width: 36px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.map-zoom button {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); border: 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 22px; line-height: 1; padding: 0;
}
.map-zoom button + button { border-top: 1px solid var(--line); }
.map-zoom button:hover { background: var(--paper); color: var(--accent); }
.map-zoom button:active { background: var(--line); }
/* Leaflet default zoom is disabled in JS; keep this as a safe fallback if a stale page uses it. */
.leaflet-control-zoom { border: 1px solid var(--line) !important; border-radius: var(--radius-control) !important; overflow: hidden; }
.leaflet-control-zoom a {
  width: 36px !important; height: 36px !important; line-height: 36px !important;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 20px !important; background: var(--surface) !important; color: var(--ink) !important;
}
.leaflet-control-zoom a.leaflet-control-zoom-in { border-bottom: 1px solid var(--line) !important; }
.leaflet-control-zoom a:hover { background: var(--paper) !important; color: var(--accent) !important; }

.map-legend {
  position: absolute; z-index: 6; bottom: 8px; left: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 3px 8px; font-size: 11px;
}
.map-pin-icon { background: none; border: 0; }
.map-pin { position: relative; width: 38px; height: 50px; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.map-pin-svg { display: block; flex: 0 0 auto; width: 38px; height: 38px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.map-pin-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: #fff; color: #111827; border: 1px solid rgba(0, 0, 0, .16); border-radius: 6px;
  padding: 0 6px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 19px; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.map-zoomed-in .map-pin { width: 52px; height: 68px; }
.map-zoomed-in .map-pin-svg { width: 52px; height: 52px; }
.map-zoomed-in .map-pin-badge { top: -2px; font-size: 15px; line-height: 23px; padding: 0 8px; }
.map-zoomed-max .map-pin { width: 62px; height: 82px; }
.map-zoomed-max .map-pin-svg { width: 62px; height: 62px; }
.map-zoomed-max .map-pin-badge { top: -3px; font-size: 17px; line-height: 26px; padding: 0 9px; }
.map-pop { font-family: var(--font-ui); max-width: 250px; }
.map-pop-meta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.map-pop-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.25; margin: 5px 0; }
.map-pop-address { color: var(--muted); font-size: 12px; }
.map-pop-link { display: inline-block; margin-top: 7px; font-weight: 500; }
.map-pop-item { display: block; border: 0; padding: 7px 0; border-top: 1px solid var(--line); }
.map-pop-item:hover { border-bottom: 0; }
.map-pop-item:hover .map-pop-item-title { color: var(--accent); }
.map-pop-item-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--ink); }
.map-pop-item-meta { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.map-pop-more { color: var(--muted); font-size: 12px; padding: 7px 0 0; border-top: 1px solid var(--line); }
.map-pop-zoom { margin-top: 9px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 6px 10px; font: 500 13px var(--font-ui); cursor: pointer; }
.map-pop-zoom:hover { border-color: var(--accent); color: var(--accent); }
.place-pop { font-family: var(--font-ui); width: 280px; max-width: 300px; }
.place-pop-head { display: grid; gap: 2px; }
.place-pop-kind {
  justify-self: start; font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px; padding: 3px 8px;
}
.place-pop-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--ink); margin-top: 7px; }
.place-pop-brand { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.place-pop-status { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.place-pop-status span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.place-pop-status.is-closed { color: var(--muted); }
.place-pop-description {
  color: var(--ink); font-size: 12.5px; line-height: 1.4; margin-top: 9px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.place-pop-facts { display: grid; gap: 6px; margin-top: 12px; }
.place-fact { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: start; font-size: 12.5px; line-height: 1.35; }
.place-fact-label { color: var(--muted); }
.place-fact-value { color: var(--ink); overflow-wrap: anywhere; }
a.place-fact-value { color: var(--accent); text-decoration: none; }
a.place-fact-value:hover { text-decoration: underline; }
.place-pop-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.place-chip {
  background: color-mix(in srgb, var(--muted) 10%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 8px; color: var(--muted); font-size: 11.5px; line-height: 1.3;
}
.place-pop-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.place-action {
  display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px;
  border: 1px solid var(--line); border-radius: var(--radius-control);
  color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.15;
}
.place-action:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.place-marker { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; }
.place-marker-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--info); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 4px rgba(0, 0, 0, .25);
  transition: width .12s ease, height .12s ease;
}
.map-zoomed-in .place-marker-dot { width: 20px; height: 20px; }
.map-zoomed-max .place-marker-dot { width: 24px; height: 24px; }
.leaflet-div-icon.place-div-icon { background: transparent; border: 0; }
.map-canvas, .map-toolbar, .map-zoom, .map-legend { -webkit-user-select: none; user-select: none; }
.map-canvas.leaflet-container { background: var(--paper); }
.leaflet-container { font-family: var(--font-ui); }
.leaflet-control-zoom a { background: var(--surface); color: var(--ink); border-color: var(--line); }
.leaflet-control-zoom a:hover { background: var(--surface); color: var(--accent); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font-size: 11px; }
.leaflet-control-attribution a { color: var(--muted); }
.map-main .maplibregl-popup-content { background: var(--surface); color: var(--ink); border-radius: var(--radius-card); box-shadow: 0 8px 30px rgba(0, 0, 0, .22); padding: 0; }
.map-main .maplibregl-popup-tip {
  border-color: transparent !important;
  border-top-color: var(--surface) !important;
  border-bottom-color: var(--surface) !important;
}
.map-main .maplibregl-popup-content .map-pop,
.map-main .maplibregl-popup-content .place-pop { padding: 14px 16px; }
.maplibregl-ctrl-group { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.maplibregl-ctrl-group button { background: var(--surface); color: var(--ink); }
.maplibregl-ctrl-group button:hover { background: var(--paper); }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font-family: var(--font-ui); font-size: 11px; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: var(--radius-card); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-popup-tip { background: var(--surface); }
.map-failed .map-canvas { display: none; }
.map-failed .map-main::before { content: "Карта недоступна в этом браузере — события ниже списком."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); }

/* ---------- Map advertising ---------- */
.map-ad-pin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.map-ad-star {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #D9A21B; color: #fff; font-size: 18px; line-height: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, #D9A21B 28%, transparent), 0 2px 7px rgba(0, 0, 0, .35);
}
.map-ad-label {
  background: #fff; color: #111827; border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 5px; padding: 1px 6px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
.map-zoomed-in .map-ad-star { width: 36px; height: 36px; font-size: 22px; }
.map-zoomed-max .map-ad-star { width: 44px; height: 44px; font-size: 26px; }
.map-ad-pop { font-family: var(--font-ui); max-width: 260px; }
.map-ad-pop-label {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #7A5A00; background: #F6E3B0; border-radius: 999px; padding: 3px 8px;
}
.map-ad-pop-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--ink); margin-top: 6px; }
.map-ad-pop-subtitle { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 4px; }
.map-featured {
  position: absolute; z-index: 9; left: 16px; bottom: 44px; width: 280px; max-width: calc(100% - 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18); padding: 12px 14px;
}
.map-featured[hidden] { display: none; }
.map-featured-card { display: flex; flex-direction: column; gap: 4px; }
.map-featured-label {
  align-self: flex-start; font-size: 11px; font-weight: 700; color: #7A5A00; background: #F6E3B0;
  border-radius: 999px; padding: 3px 8px; text-transform: uppercase; letter-spacing: .05em;
}
.map-featured-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.map-featured-subtitle { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.map-featured .place-action { align-self: flex-start; margin-top: 4px; }

/* ---------- Home map teaser ---------- */
.map-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px 24px; margin-top: 40px;
}
.map-teaser h2 { margin: 0 0 6px; font-size: var(--text-20); }
.map-list { padding: 30px 0 52px; }
.map-list .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.map-list .news-card-title { font-size: var(--text-15); }
.map-list .news-card-summary { display: none; }
.map-list .news-card-body { padding: 10px 12px 12px; gap: 6px; }
.map-list .card-media { aspect-ratio: 4 / 3; max-height: 118px; }
.map-list .news-card .time { font-size: 11px; }
.map-teaser p { margin: 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 32px; }
  .lead-title { font-size: var(--text-26); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; }
  .site-nav::-webkit-scrollbar { display: none; }
  .theme-toggle { margin-left: auto; }
  .brand-city { display: none; }
  .cards { grid-template-columns: 1fr; }
  .post-title { font-size: var(--text-26); }
  .post-lead { font-size: var(--text-17); }
  .map-main { height: calc(100vh - 129px); height: calc(100dvh - 129px); }
  .map-chips { max-width: 100%; }
  .map-toolbar { flex-direction: column; }
  .map-teaser { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Share strip */
.share-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.card-share { display: flex; gap: .55rem; padding: .35rem .75rem .7rem; font-size: .8rem; }
.card-share a, .card-share button {
  color: var(--muted-color, #64748b);
  background: transparent; border: 0; cursor: pointer; padding: 0;
  text-decoration: none; font: inherit;
}
.card-share a:hover, .card-share button:hover { color: var(--primary, #2563eb); }

/* Trust layer + lifecycle (sprint 5) */
.trust-note { font-size: var(--text-14, 14px); margin: 8px 0 16px; line-height: 1.45; }
.lifecycle-badge {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.2;
  padding: 2px 8px; border-radius: 999px; background: var(--line, #e2e8f0); color: var(--ink, #0f172a);
}
.lifecycle-resolved { background: #e2e8f0; color: #475569; }
.lifecycle-ending_soon { background: #fef3c7; color: #92400e; }
.lifecycle-started, .lifecycle-ongoing { background: #dbeafe; color: #1e40af; }
.lifecycle-scheduled { background: #f1f5f9; color: #334155; }
.trust-source { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.source-original { white-space: nowrap; }
.source-name { font-weight: 500; }

/* Street alerts page */
.alerts-panel { margin: 24px 0 40px; max-width: 560px; }
.alert-form label { display: block; margin-bottom: 14px; font-weight: 500; }
.alert-form input { width: 100%; margin-top: 6px; }
.alert-list { list-style: none; padding: 0; margin: 20px 0 0; }
.alert-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alerts-help { margin-top: 32px; max-width: 640px; }
.alerts-help ol { padding-left: 1.2em; }


.empty-state { margin: 12px 0 0; padding: 14px 16px; border: 1px dashed var(--border, #d6d3cd); border-radius: 12px; background: var(--surface-2, #f3f1ec); }
.map-list-hint { margin: 0 0 10px; font-size: var(--text-13, 13px); }
.map-teaser-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lifecycle-scheduled { background: #fef3c7; color: #92400e; }
.lifecycle-ending_soon, .lifecycle-ending-soon { background: #ffedd5; color: #9a3412; }
.alerts-tg { margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2, #f3f1ec); }
.alerts-tg h2 { margin-top: 0; }
.alert-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.alert-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface, #fff); border: 1px solid var(--border, #e5e2db); }
.alert-form { display: grid; gap: 12px; max-width: 420px; }
.alert-form label { display: grid; gap: 6px; font-size: 14px; }
.alert-form input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, #d6d3cd); }
