.lb-map-section { margin: 20px 0 26px; min-width: 0; }
.lb-map-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.lb-map-toolbar button { min-height: 44px; padding: 8px 13px; border: 1px solid #cbd8d2; border-radius: 8px; background: #fff; color: #183f37; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.35; }
.lb-map-toolbar button[hidden], .lb-map-panel[hidden], .lb-map-popup[hidden] { display: none !important; }
.lb-map-toolbar button:disabled { opacity: .6; cursor: default; }
.lb-map-stage { position: relative; isolation: isolate; }
.lb-map-canvas { position: relative; height: 440px; width: 100%; overflow: hidden; border: 1px solid #dce4e1; border-radius: 12px; background: #f2f5f3; }
.lb-map-zoom { position: absolute; z-index: 1; left: 12px; bottom: 62px; display: grid; gap: 4px; }
.lb-map-zoom button, .lb-map-popup-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #cbd8d2; border-radius: 8px; background: #fff; color: #183f37; font: 25px/1 Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.lb-map-zoom button { box-shadow: 0 1px 5px #0002; }
.lb-map-popup-close { flex-shrink: 0; border: 0; background: #f0f5f4; }
.lb-map-zoom button:hover, .lb-map-popup-close:hover, .lb-map-toolbar button:not(:disabled):hover { background: #e9f2ef; }
.lb-map-status, .lb-map-caption { font-size: 13px; line-height: 1.5; color: #576b63; }
.lb-map-status { margin: 0 0 8px; }
.lb-map-caption { margin: 8px 0 0; }
.lb-map-attribution { font-size: 12px; }

.lb-map-popup { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; flex-direction: column; width: min(320px, calc(100% - 76px)); max-height: calc(100% - 66px); padding: 12px; border: 1px solid #dce4e1; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px #163f3733; overflow: hidden; overflow-wrap: anywhere; }
.lb-map-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lb-map-popup-title { color: #183f37; font-size: 18px; line-height: 1.25; }
.lb-map-popup-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
body[data-lb-border-directory] .lb-map-popup-body p { margin: 0 0 5px; font-size: 14px; line-height: 1.4; }
body[data-lb-border-directory] .lb-map-popup-body .lb-map-popup-context { color: #576b63; font-size: 13px; }
.lb-map-popup-schedule { color: #183f37; font-weight: 600; }
.lb-map-popup-body > a { font-size: 12px; }
.lb-map-popup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.lb-map-popup-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 1.3; }
.lb-map-details-link { padding: 0 10px; border-radius: 7px; background: #185e4d; color: #fff !important; text-decoration: none; }
.lb-map-details-link:hover { background: #124b3d; }

.lb-map-marker { display: block; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px #0005; background: #185e4d; transform: translate(-50%, -50%); cursor: pointer; }
.lb-map-marker[data-object-type="road"] { border-radius: 4px; background: #856227; }
.lb-map-marker[aria-expanded="true"] { background: #b94327; outline: 3px solid #183f3750; }
.lb-map-section :is(button, a):focus-visible { outline: 3px solid #3c9c85; outline-offset: 2px; }

@media (max-width: 760px) {
  .lb-map-canvas { height: 360px; }
  .lb-map-zoom { left: 8px; bottom: 60px; }
  .lb-map-popup { inset: 8px 8px auto; width: auto; max-height: 55%; padding: 8px 10px; }
  .lb-map-popup-title { font-size: 16px; }
  .lb-map-popup-actions { margin-top: 4px; }
  .lb-map-marker::after { content: ''; position: absolute; inset: -6px; }
}
