body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.top { flex: none; }
.map-stage { position: relative; flex: 1; min-height: 0; isolation: isolate; }
.map-stage .mapa-box.cela { height: 100%; }
.map-panel {
  --edge: #c9d6cf;
  position: absolute; z-index: 1050; width: max-content; max-width: calc(100% - 24px);
  border: 1px solid var(--edge); border-radius: 14px; background: #fffefa; color: #233c35;
  box-shadow: 0 3px 16px #152e3329; font: 14px/1.5 var(--sans); overflow: hidden;
}
.map-guide { left: 12px; bottom: 32px; }
.map-layers { right: 12px; top: 12px; }
.map-panel[open] { width: 334px; }
.map-layers[open] { width: 304px; }
.map-panel > summary {
  list-style: none; display: flex; gap: 10px; align-items: center; cursor: pointer;
  padding: 4px 9px 4px 6px; min-height: 34px; font-size: 13px; font-weight: 650;
}
.map-panel summary::-webkit-details-marker { display: none; }
.map-panel > summary::after {
  content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  margin: -4px 2px 0 auto; transform: rotate(45deg);
}
.map-panel[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.map-panel > summary:hover { background: #ecf3ee; }
.map-panel summary:focus-visible { outline: 2px solid #216c6a; outline-offset: -3px; }
.map-panel[open] > summary { border-bottom: 1px solid var(--edge); }
.map-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: #e3eee7; color: #285e48; border-radius: 9px; }
.map-icon svg { width: 18px; height: 18px; }
.map-content { overflow: auto; overscroll-behavior: contain; max-height: min(55vh, 490px); max-height: min(calc(100dvh - 220px), 490px); padding: 14px 16px; }
.map-content h2 { font: 650 14px/1.4 var(--sans); margin: 0 0 8px; }
.map-content .legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 15px; color: #394e45; font-size: 13px; }
.map-shortcuts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.map-shortcuts a { padding: 3px 7px; border: 1px solid #cbdcd2; border-radius: 7px; color: #245740; background: #f2f7f3; font-size: 13px; font-weight: 600; text-decoration: none; }
.map-shortcuts a:hover { background: #e0ede3; text-decoration: underline; }
.map-topic { border-top: 1px solid #dce4dc; }
.map-topic summary { list-style: none; cursor: pointer; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 650; }
.map-topic summary::after { content: '+'; font-weight: 400; font-size: 18px; color: #416950; }
.map-topic[open] summary::after { content: '−'; }
.map-topic p { margin: 0 0 10px; }
.map-topic a { color: #245e51; }
.map-layers .map-content { padding: 12px 15px; }
.map-layers .leaflet-control { float: none; clear: none; margin: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; padding: 0; color: inherit; }
.map-layers .leaflet-control-layers-list { height: auto !important; overflow: visible; padding: 0; }
.map-layers .leaflet-control-layers label { padding: 3px 0; line-height: 1.45; cursor: pointer; }
.map-layers input { accent-color: #336c57; }
@media (max-width: 680px) {
  .map-guide { left: 8px; bottom: 30px; }
  .map-layers { right: 8px; top: 8px; }
  .map-layers[open] { max-width: calc(100% - 60px); }
  .map-content { max-height: min(54dvh, calc(100dvh - 295px)); }
}
@media (max-height: 480px) { .map-content { max-height: 32dvh; } }
.mapa-porovnani-vyrez { z-index: 350; overflow: hidden; pointer-events: none; }
.mapa-porovnani {
  position: absolute; z-index: 1000; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(320px, calc(100% - 115px)); box-sizing: border-box;
  padding: 8px 13px 6px; border: 1px solid #c9d6cf; border-radius: 12px;
  background: #fffefa; color: #233c35; box-shadow: 0 3px 16px #152e3329;
  font: 650 13px/1.35 var(--sans);
}
.mapa-porovnani label { display: block; }
.mapa-porovnani input { display: block; width: 100%; margin: 4px 0 0; accent-color: #336c57; }
.mapa-porovnani-popis { display: flex; justify-content: space-between; font-weight: 400; }
.mapa-porovnani:has(input:disabled) .mapa-porovnani-popis { opacity: .65; }
@media (max-width: 760px) { .mapa-porovnani { top: 57px; } }
