/* Admin fields use the WordPress palette; marker artwork comes from BikeFVG settings. */
.bfvg-points-editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.bfvg-points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.bfvg-points-grid > div { min-width: 0; }
.bfvg-points-editor label { display: block; font-weight: 600; margin: 12px 0 6px; }
.bfvg-points-editor input[type="text"], .bfvg-points-editor textarea, .bfvg-points-editor select { width: 100%; max-width: 100%; }
.bfvg-points-editor [data-point-status] { min-height: 1.5em; }
.bfvg-points-editor .is-error { font-weight: 600; }
.bfvg-points-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.bfvg-points-editor .bfvg-point-choice { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px; border: 1px solid transparent; border-radius: 4px; font-weight: 400; cursor: pointer; }
.bfvg-point-choice:has(input:checked) { border-color: var(--wp-admin-theme-color, currentColor); }
.bfvg-point-choice input { flex-shrink: 0; }
.bfvg-point-choice > span:last-child { overflow-wrap: anywhere; }
.bfvg-point-choice .bikefvg-map-route-poi__shell { position: relative; flex-shrink: 0; }
.bfvg-points-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.bfvg-point-photo-preview { display: block; max-width: 260px; width: 100%; max-height: 180px; object-fit: contain; margin-top: 12px; }
.bfvg-points-editor [hidden] { display: none; }
.bfvg-point-popup { overflow-wrap: anywhere; max-height: min(55vh, var(--bfvg-point-max-height, 320px)); overflow-y: auto; }
.bfvg-point-popup h3 { margin: 0 20px 12px 0; font-size: 1.1rem; }
.bfvg-point-popup img { display: block; width: 100%; height: 180px; object-fit: contain; margin: 12px 0; }
.bfvg-point-popup .button { margin-top: 12px; }
.bfvg-point-description { white-space: pre-line; }
.bfvg-point-popup-frame .leaflet-popup-content { max-width: calc(100vw - 90px); }
.waymark-map-container .bfvg-point-popup-frame a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 24px; }
/* Waymark hides its editor close button; custom point previews always have one. */
.waymark-map-container.waymark-is-editor .bfvg-point-popup-frame a.leaflet-popup-close-button { display: block; }
/* An expanded editorial card must keep its close button above Leaflet controls. */
.bfvg-map-ui .bfvg-map-quick.is-editorial-point { z-index: 1000; }
