/* Keops maps (core/maps, 2026-11-15) -- the look of every KxMap. Colours: --kxm-c on a pin; classes per point (kxm-k-<kind>, own classes). */
.kxm { position: relative; margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.kxm-canvas { width: 100%; height: 360px; border-radius: 6px; border: 1px solid #d0d5dc; background: #e9edf1; z-index: 0; }
.kxm .leaflet-container { font: inherit; }
.kxm .leaflet-control-layers-base label { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-weight: normal; }
/* the old admin theme hides native radios: show the layer switch radios again */
.kxm .leaflet-control-layers input[type=radio] { position: static; opacity: 1; width: auto; height: auto; margin: 0; appearance: auto; -webkit-appearance: radio; display: inline-block; visibility: visible; }

/* search */
.kxm-search { position: relative; display: flex; gap: 6px; margin: 0 0 8px; }
.kxm-search input { flex: 1; min-width: 0; height: 36px; padding: 6px 10px; border: 1px solid #c4cbd3; border-radius: 6px; font-size: 14px; }
.kxm-search button { height: 36px; padding: 0 14px; border: 1px solid #0d6efd; border-radius: 6px; background: #0d6efd; color: #fff; cursor: pointer; white-space: nowrap; }
.kxm-results { position: absolute; z-index: 1001; top: 40px; left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none; background: #fff;
               border: 1px solid #c4cbd3; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.kxm-results button { display: block; width: 100%; padding: 6px 10px; border: 0; background: none; text-align: start; cursor: pointer; font-size: 13px; }
.kxm-results button:hover, .kxm-results button:focus { background: #eef4ff; }
.kxm-muted { padding: 6px 10px; color: #6c757d; }

/* bar under the map: help, coordinates, Google buttons, route buttons */
.kxm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 13px; }
.kxm-help { flex: 1 1 100%; color: #6c757d; }
.kxm-coords { font-family: Consolas, Menlo, monospace; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; user-select: all; }
.kxm-g { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.kxm-btn, .kxm-g a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #c4cbd3; border-radius: 5px; background: #fff;
                     color: #1f2d3d; text-decoration: none; cursor: pointer; font-size: 13px; line-height: 1.5; }
.kxm-btn:hover, .kxm-g a:hover { background: #f1f5fb; border-color: #8aa4c8; }
.kxm-btn-sm { padding: 2px 7px; font-size: 12px; }
.kxm-g a.kxm-off { opacity: .45; pointer-events: none; }

/* pins: a drop with an icon / number inside; colour with --kxm-c */
.kxm-pin { background: none; border: 0; }
.kxm-pin-b { --kxm-c: #d62828; position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
             border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--kxm-c); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.35);
             color: #fff; font: bold 12px/1 Arial, sans-serif; }
.kxm-pin-b > * { transform: rotate(45deg); text-align: center; }
.kxm-pin-b > img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.kxm-stop .kxm-pin-b { --kxm-c: #1d3557; }
.kxm-pin.kxm-hl .kxm-pin-b, .leaflet-marker-icon.kxm-hl .kxm-pin-b { --kxm-c: #f77f00; transform: rotate(-45deg) scale(1.25); }
.kxm-k-hotel .kxm-pin-b { --kxm-c: #1d4ed8; }
.kxm-k-restaurant .kxm-pin-b { --kxm-c: #c2410c; }
.kxm-k-attraction .kxm-pin-b { --kxm-c: #15803d; }
.kxm-k-airport .kxm-pin-b { --kxm-c: #6d28d9; }
.kxm-k-beach .kxm-pin-b { --kxm-c: #0891b2; }
.kxm-k-company .kxm-pin-b { --kxm-c: #9d174d; }
.kxm-k-property .kxm-pin-b { --kxm-c: #a16207; }
.kxm-k-city .kxm-pin-b { --kxm-c: #334155; }

/* free HTML box markers (point 'box'): bottom centre on the point */
.kxm-box { background: none; border: 0; width: 0 !important; height: 0 !important; }
.kxm-box-b { position: absolute; left: 0; bottom: 0; transform: translate(-50%, -8px); white-space: nowrap; padding: 3px 8px; border-radius: 6px;
             background: #fff; color: #1f2d3d; border: 1px solid #1d4ed8; box-shadow: 0 2px 6px rgba(0,0,0,.25); font: bold 12px/1.3 Arial, sans-serif; }
.kxm-box-b::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #1d4ed8; }
.leaflet-marker-icon.kxm-hl .kxm-box-b { background: #f77f00; color: #fff; border-color: #f77f00; z-index: 1; }
.leaflet-marker-icon.kxm-hl .kxm-box-b::after { border-top-color: #f77f00; }

/* route */
.kxm-arrow { background: none; border: 0; }
.kxm-arrow span { display: block; width: 16px; height: 16px; font-size: 15px; line-height: 16px; text-align: center; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.kxm-mover { background: none; border: 0; }
.kxm-mover-b { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 22px; color: #1d3557;
               text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.kxm-count { font-weight: bold; }

/* popups */
.kxm-popup .leaflet-popup-content { margin: 10px 12px; font-size: 13px; line-height: 1.45; }
.kxm-popup .leaflet-popup-content img { max-width: 100%; height: auto; border-radius: 4px; }
.kxm-pop-g { margin-top: 6px; font-size: 12px; }
.kxm-pop-act { margin-top: 8px; }

/* a list beside the map (data-kxm-for / data-kxm-point) */
[data-kxm-for].kxm-active { outline: 2px solid #f77f00; outline-offset: 2px; }

@media (max-width: 575px) { .kxm-canvas { height: 300px; } .kxm-g { margin-inline-start: 0; } }
