/* ════════════════════════════════════════
   RESET & VÁLTOZÓK
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1a6fc4;
  --blue-dk:   #145499;
  --accent:    #e8502a;
  --bg:        #f4f7fb;
  --card:      #ffffff;
  --text:      #1e2a3a;
  --muted:     #6b7a8d;
  --border:    #e4ecf6;
  --header-h:  64px;
  --filter-h:  50px;
  --footer-h:  36px;
  --sidebar-w: 320px;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  overflow: hidden;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  z-index: 1000;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.logo span { color: var(--accent); }

/* ── Keresőmező ── */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  gap: 0.5rem;
}

#searchInput {
  flex: 1;
  height: 40px;
  padding: 0 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
}
#searchInput:focus { border-color: var(--blue); background: #fff; }

#searchBtn {
  height: 40px;
  padding: 0 1.1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background .2s;
  flex-shrink: 0;
}
#searchBtn:hover { background: var(--blue-dk); }
#searchBtn svg {
  width: 15px; height: 15px;
  stroke: #fff; fill: none;
  stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Autocomplete ── */
#suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  list-style: none;
  overflow: hidden;
  display: none;
  z-index: 2000;
}
#suggestions.open { display: block; }
#suggestions li {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f4fa;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
#suggestions li:last-child { border-bottom: none; }
#suggestions li:hover { background: var(--bg); }
#suggestions li .sug-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
#suggestions li .sug-main { font-weight: 600; color: var(--text); line-height: 1.3; }
#suggestions li .sug-sub  { font-size: 0.76rem; color: var(--muted); }
#suggestions li.loading,
#suggestions li.no-result { color: var(--muted); cursor: default; font-style: italic; }

/* ════════════════════════════════════════
   FILTER SÁV
════════════════════════════════════════ */
.filter-bar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: var(--filter-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem;
  z-index: 900;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

#citySelect {
  height: 34px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition: border-color .2s;
}
#citySelect:focus { border-color: var(--blue); }

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Geo gomb ── */
.geo-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 34px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .18s;
}
.geo-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}
.geo-btn:hover  { border-color: var(--blue); color: var(--blue); background: #eef4fd; }
.geo-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.geo-btn.loading { opacity: .6; cursor: wait; }
.geo-btn.loading svg { animation: spin .8s linear infinite; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 34px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .18s;
}
.cat-btn:hover  { border-color: var(--blue); color: var(--blue); background: #eef4fd; }
.cat-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-btn .cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════ */
.app {
  position: fixed;
  top: calc(var(--header-h) + var(--filter-h));
  bottom: var(--footer-h);
  left: 0; right: 0;
  display: flex;
}

/* ── Oldalsáv ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative; /* detail-panel absolute pozicionáláshoz */
}

.sidebar-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.sidebar-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.sidebar-hint .hint-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.sidebar-hint .hint-text { font-size: 0.88rem; line-height: 1.6; }

.sidebar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* POI lista – min-height: 0 kritikus a flex scrollozáshoz! */
#poiList {
  list-style: none;
  overflow-y: scroll;          /* scroll > auto: iOS-on megbízhatóbb */
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  touch-action: pan-y;         /* Leaflet ne vegye el a függőleges scrollt */
  overscroll-behavior: contain; /* ne propagáljon a térkép felé */
}

.poi-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f4fa;
  cursor: pointer;
  transition: background .15s;
}
.poi-card:hover       { background: var(--bg); }
.poi-card.highlighted { background: #eef4fd; }

.poi-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.poi-info { min-width: 0; }
.poi-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poi-addr {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Nyomtatás gomb ── */
.sidebar-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.print-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .18s;
}
.print-btn:hover { border-color: var(--blue); color: var(--blue); }
.print-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ════════════════════════════════════════
   RÉSZLETES NÉZET PANEL
════════════════════════════════════════ */
.detail-panel {
  position: absolute;
  inset: 0;
  background: var(--card);
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  color: #fff;
  flex-shrink: 0;
}

.detail-back {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background .15s;
}
.detail-back:hover { background: rgba(255,255,255,.35); }
.detail-back svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.detail-header-icon { font-size: 2rem; }

.detail-body { padding: 1.1rem 1rem; }

.detail-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.detail-cat-badge {
  margin-bottom: 1rem;
}
.detail-cat-badge span {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
}

.detail-rows { display: flex; flex-direction: column; gap: 0.1rem; }

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f4fa;
  font-size: 0.85rem;
}
.detail-row:last-child { border-bottom: none; }

.detail-row-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-top: 1px;
}

.detail-row-content { flex: 1; min-width: 0; }

.detail-row-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.15rem;
}

.detail-row-value {
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.detail-row-value a {
  color: var(--blue);
  text-decoration: none;
}
.detail-row-value a:hover { text-decoration: underline; }

.detail-row-value .hours-line {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Térkép ── */
#map { flex: 1; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-size: 0.74rem;
  color: var(--muted);
  z-index: 1000;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }

/* ════════════════════════════════════════
   LEAFLET OVERRIDES
════════════════════════════════════════ */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.leaflet-popup-content {
  margin: 0.75rem 1rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
}
.popup-name { font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.popup-addr { color: var(--muted); font-size: 0.8rem; }
.popup-cat {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
}

/* ════════════════════════════════════════
   RESZPONZÍV – mobil
════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════════
   MOBIL UI – alapból rejtve (asztali nézet)
════════════════════════════════════════════════════════════════════ */
.m-header,
.m-tabs,
.m-panel,
.m-overlay { display: none; }

/* ════════════════════════════════════════════════════════════════════
   MOBIL NÉZET (≤ 680px) – teljesen különálló UI
══════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  :root {
    --m-header-h: 50px;
    --m-tabs-h:   62px;
  }

  /* ── Asztali UI elrejtése mobilon ───────────────────────────────── */
  body > header,
  .filter-bar,
  .sidebar,
  body > footer { display: none !important; }

  /* App: csak térkép marad ── */
  .app {
    position: fixed;
    top: var(--m-header-h);
    bottom: var(--m-tabs-h);
    left: 0; right: 0;
    display: block;
  }
  #map {
    position: absolute;
    inset: 0;
  }

  /* ── Mobil fejléc ───────────────────────────────────────────────── */
  .m-header {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--m-header-h);
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
  }
  .m-header .logo { font-size: 1.15rem; }

  /* ── Mobil alsó tab sáv ─────────────────────────────────────────── */
  .m-tabs {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--m-tabs-h);
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0,0,0,.04);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .m-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .m-tab svg {
    width: 22px; height: 22px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .m-tab.active { color: var(--blue); }
  .m-tab:active { background: rgba(0,0,0,.04); }

  .m-tab-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0 5px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .m-tab-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: block !important;
  }

  /* ── Mobil panel (közös alap) ───────────────────────────────────── */
  .m-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    background: var(--card);
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
  }
  .m-panel.open {
    visibility: visible;
    pointer-events: auto;
  }

  /* Bal oldali drawer (város, kategória) */
  .m-panel-left {
    top: 0; bottom: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .m-panel-left.open { transform: translateX(0); }

  /* Felső modal (keresés) */
  .m-panel-top {
    top: 0; left: 0; right: 0;
    height: auto;
    max-height: 90vh;
    transform: translateY(-105%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
  }
  .m-panel-top.open { transform: translateY(0); }

  /* Alsó bottom sheet (találatok) */
  .m-panel-bottom {
    bottom: 0; left: 0; right: 0;
    height: 80vh;
    height: 80dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  }
  .m-panel-bottom.open { transform: translateY(0); }

  .m-panel-handle {
    width: 40px;
    height: 4px;
    background: #d0d8e4;
    border-radius: 99px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  .m-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .m-panel-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
  }
  .m-panel-sub {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
  }

  .m-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    font-size: 1rem;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  .m-panel-close:active { background: var(--border); }

  /* Panel törzs – natív scroll */
  .m-panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
  }

  /* ── Lista elemek a panelekben ──────────────────────────────────── */
  .m-list-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.95rem 1rem;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f4fa;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-list-item:active { background: var(--bg); }
  .m-list-item.active {
    background: #eef4fd;
    color: var(--blue);
    font-weight: 700;
  }

  .m-list-item-special {
    font-weight: 700;
    color: var(--blue);
  }

  .m-list-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
  }

  .m-list-checkbox {
    width: 24px; height: 24px;
    border: 2px solid #d0d8e4;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
  }
  .m-list-item.active .m-list-checkbox {
    background: var(--blue);
    border-color: var(--blue);
  }
  .m-list-item.active .m-list-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
  }

  .m-list-label { flex: 1; }

  .m-list-divider {
    height: 8px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* ── Mobil keresés (modal) ───────────────────────────────────────── */
  .m-search-wrap { padding: 1rem; position: relative; }

  #mSearchInput {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    outline: none;
  }
  #mSearchInput:focus { border-color: var(--blue); background: #fff; }

  .m-suggestions {
    list-style: none;
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
  }
  .m-suggestions:empty { display: none; }
  .m-suggestions li {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0f4fa;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .m-suggestions li:last-child { border-bottom: none; }
  .m-suggestions li:active { background: var(--bg); }
  .m-suggestions li .sug-icon { font-size: 1rem; flex-shrink: 0; }
  .m-suggestions li .sug-main { font-weight: 600; color: var(--text); line-height: 1.3; }
  .m-suggestions li .sug-sub { font-size: 0.78rem; color: var(--muted); }
  .m-suggestions li.loading,
  .m-suggestions li.no-result { color: var(--muted); font-style: italic; cursor: default; }

  /* ── Találati lista panel: POI kártyák ───────────────────────────── */
  #mResultsBody .poi-card {
    padding: 0.85rem 1rem;
  }

  /* ── Mobil overlay ───────────────────────────────────────────────── */
  .m-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s;
  }
  .m-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ════════════════════════════════════════
   NYOMTATÁS
════════════════════════════════════════ */
@media print {
  header, .filter-bar, #map, footer, .detail-back, .print-btn { display: none !important; }

  html, body { overflow: visible; height: auto; }

  .app {
    position: static;
    display: block;
  }

  .sidebar {
    width: 100%;
    border: none;
    overflow: visible;
    height: auto;
  }

  .sidebar-head {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .sidebar-title {
    font-size: 1rem;
    color: #000;
  }

  #poiList { overflow: visible; }

  .poi-card {
    border-bottom: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .poi-name { color: #000; }
  .poi-addr { color: #555; }
}
