/* Map Viewer - styles.css */ /* All colors use Obsidian CSS variables for theme compatibility. */ /* No fixed widths/heights — responsive to sidebar resize. */ /* All Leaflet overrides scoped under .map-viewer-container to avoid */ /* bleeding into other plugins that use Leaflet. */ /* ── Map container ── */ .map-viewer-container { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; } /* ── Map element ── */ .map-viewer-map { flex: 1; min-height: 0; overflow: hidden; } /* ── SVG teardrop pin markers ── */ .map-viewer-pin { background: none !important; border: none !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); } /* ── Marker highlight pulse ── */ @keyframes map-pulse { 0% { stroke-opacity: 0.8; } 100% { stroke-opacity: 0.3; } } .map-marker-highlight { animation: map-pulse 1.5s ease-in-out infinite alternate; } /* ── Popup styles (Obsidian theme integration) ── */ /* Scoped under .map-viewer-container so we don't affect other plugins. */ .map-viewer-container .leaflet-popup-content-wrapper { background: var(--background-primary); color: var(--text-normal); border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); font-family: var(--font-interface); font-size: 12px; } .map-viewer-container .leaflet-popup-tip { background: var(--background-primary); box-shadow: none; } .map-viewer-container .leaflet-popup-content { margin: 8px 12px; line-height: 1.5; } .map-viewer-container .leaflet-popup-content p { margin: 4px 0; } .map-viewer-container .leaflet-popup-content a { color: var(--text-accent); text-decoration: none; } .map-viewer-container .leaflet-popup-content a:hover { text-decoration: underline; } .map-viewer-container .leaflet-popup-close-button { color: var(--text-muted); } .map-viewer-container .leaflet-popup-close-button:hover, .map-viewer-container .leaflet-popup-close-button:focus { color: var(--text-normal); } /* ── Zoom control styles (theme-aware) ── */ .map-viewer-container .leaflet-control-zoom { border: 2px solid var(--background-modifier-border); border-radius: 4px; margin-top: 6px; margin-right: 6px; } .map-viewer-container .leaflet-control-zoom a { background-color: var(--background-primary); border-bottom: 1px solid var(--background-modifier-border); color: var(--text-normal); } .map-viewer-container .leaflet-control-zoom a:hover { background-color: var(--background-modifier-hover); } /* ── Attribution styles ── */ .map-viewer-container .leaflet-control-attribution { font-size: 9px; background: var(--background-primary-alt) !important; color: var(--text-faint); } .map-viewer-container .leaflet-control-attribution a { color: var(--text-muted); } /* ── Leaflet container background for dark themes ── */ .map-viewer-container .leaflet-container { background: var(--background-primary-alt); }