.mobile-panel-toggle { display: none; }
.mobile-panel-content { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }

@media (max-width: 760px) {
  html, body { height: 100%; overflow: hidden; }
  .map-shell { position: relative; display: block; height: 100dvh; min-height: 0; overflow: hidden; }
  .map-area { position: absolute; inset: 0; }
  .sidebar { position: absolute; z-index: 900; right: 10px; bottom: 10px; left: 10px; display: block; max-height: 56px; border: 1px solid #cfc1b1; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 38px #2a1f1845; transition: max-height .22s ease; }
  .sidebar.mobile-open { max-height: min(54dvh, 520px); }
  .mobile-panel-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; padding: 0 17px; color: var(--ink); background: var(--panel); border: 0; cursor: pointer; font-size: 13px; font-weight: 750; }
  .toggle-mark { color: var(--accent); font-size: 20px; transition: transform .22s ease; }
  .sidebar.mobile-open .toggle-mark { transform: rotate(180deg); }
  .mobile-panel-content { height: calc(min(54dvh, 520px) - 54px); border-top: 1px solid var(--line); }
  .brand { display: none; }
  .controls { padding: 10px 12px 8px; }
  .search-label { margin-bottom: 5px; font-size: 10px; }
  .search { height: 38px; }
  .themes-heading { margin: 10px 0 6px; }
  .theme-list { flex-wrap: nowrap; max-height: none; padding-bottom: 5px; overflow-x: auto; overflow-y: hidden; }
  .theme-chip { flex: none; min-height: 27px; padding: 4px 8px; }
  .result-header { padding: 8px 13px 6px; font-size: 9px; }
  .results { min-height: 0; padding: 0 7px 8px; }
  .result-card { padding: 9px 8px; }
  .result-title { font-size: 13px; }
  .map-note { top: 10px; right: 62px; left: 10px; max-width: none; padding: 8px 10px; font-size: 9px; }
  .reset-map { top: 58px; right: 10px; padding: 8px 10px; }
  .leaflet-control-zoom { margin-top: 58px !important; }
  .leaflet-popup-content { width: min(265px, 72vw) !important; max-height: 62dvh; }
  .popup-card { padding: 12px; }
  .popup-photo { width: calc(100% + 24px); height: min(145px, 22dvh); margin: -12px -12px 10px; }
  .popup-theme { margin-bottom: 7px; font-size: 9px; }
  .popup-title { margin-bottom: 7px; font-size: 16px; }
  .popup-story { max-height: 92px; margin-bottom: 9px; font-size: 11px; line-height: 1.45; }
  .popup-author { padding-top: 8px; font-size: 10px; }
}
