/* KABEHARI MAP - OpenStreetMap styles (scoped to #map) */
#map.kabehari-osm-map { width: 100%; height: 500px; min-height: 340px; background: #e6e9e8; z-index: 0; }
#map .leaflet-container { font-family: inherit; }
#map .leaflet-control-attribution { font-size: 11px; background: rgba(255,255,255,0.86); }
#map .leaflet-popup-content-wrapper { border-radius: 10px; }
#map .leaflet-popup-content { margin: 14px 16px; width: min(315px, calc(100vw - 90px)) !important; max-height: min(62vh, 445px); overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; color: #222; }
#map .leaflet-popup-content h3 { margin: 0 0 11px; font-weight: bold; font-size: 16px; }
#map .leaflet-popup-content img { display:block; width:auto; max-width:100%; height:auto; max-height:230px; object-fit:contain; margin: 8px auto; border-radius:4px; }
#map .leaflet-popup-content a { color: #0759b4; text-decoration: underline; overflow-wrap:anywhere; }
#map .leaflet-popup-content .kabehari-popup-body { overflow-wrap: anywhere; }
#map .leaflet-popup-content .kabehari-popup-body br { line-height:1.6; }
#map .leaflet-control-zoom a { color: #333; }
.kabehari-map-info { padding: 7px 1px 6px; display: flex; flex-wrap:wrap; gap: 7px 14px; align-items: center; justify-content: space-between; font-size: 12px; line-height: 1.55; color:#545454; }
.kabehari-map-info .kabehari-status[aria-busy="true"] { color: #68520f; }
.kabehari-map-info .kabehari-status[data-error="true"] { color: #b72a2a; }
.kabehari-map-info button { font-size: 12px; background: #fff; color: #40300b; border: 1px solid #bca66d; padding:5px 11px; border-radius: 5px; cursor:pointer; width:auto; height:auto; box-shadow:none; line-height: 1.4; text-transform:none; }
.kabehari-map-info button:hover { background:#fff8df; }
.kabehari-map-info button:disabled { opacity:.6; cursor:wait; }
@media(max-width: 600px) { #map.kabehari-osm-map { height: min(62vh, 500px); min-height:360px; } #map .leaflet-popup-content { max-height: 48vh; width: min(280px, calc(100vw - 105px)) !important; } }

/* MAP下の管理用ステータスと手動KMZ再読込ボタンを非表示にする。KMZ自動読込は従来どおり。 */
.kabehari-map-info { display: none !important; }
