/* Style for the custom download button */ .custom-download-button { background: transparent; /* Make background transparent */ border: none; /* Remove borders */ padding: 0; /* Remove padding */ cursor: pointer; /* Change cursor to pointer on hover */ } /* Increase text size in the hover panel (tooltip) */ .leaflet-tooltip { font-size: 14px !important; line-height: 1.2 !important; } /* Collapsible Map Control Styling */ .map-layer-control { background-color: white; border-radius: 4px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); padding: 5px; width: 36px; height: 36px; overflow: hidden; transition: width 0.3s ease, height 0.3s ease; cursor: pointer; display: flex; flex-direction: column; } .map-layer-control.expanded { width: 200px; height: auto; padding: 10px; } .control-icon { width: 26px; height: 26px; text-align: center; margin-bottom: 5px; font-size: 18px; color: #333; flex-shrink: 0; } .control-content { opacity: 0; transition: opacity 0.3s ease; margin-top: 5px; white-space: nowrap; /* Prevent wrapping during transition */ } .map-layer-control.expanded .control-content { opacity: 1; white-space: normal; } .map-layer-control.expanded .control-icon { display: none !important; } .map-layer-control .control-content label { font-size: 85%; /* Reduce text size by 15% */ } /* Frozen overlay - blocks all interactions during loading */ .frozen-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); z-index: 9999; display: none; cursor: wait; } .frozen-overlay.active { display: flex !important; align-items: flex-start !important; justify-content: flex-end !important; padding: 80px 30px 30px 30px !important; } .frozen-overlay-content { position: relative; background: white; width: 400px; min-height: 200px; padding: 30px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; } .frozen-overlay-content .spinner-border { width: 3rem; height: 3rem; margin-bottom: 15px; } .frozen-overlay-content p { margin: 0; font-size: 1.1rem; color: #333; } /* Disable pointer events on navbar when frozen */ body.ui-frozen .navbar { pointer-events: none; opacity: 0.6; } #zoom_home_panel { z-index: 999 !important; } .btn-home { background: white; border: 2px solid rgba(0, 0, 0, 0.2); border-radius: 4px; color: #444; width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; } .btn-home:hover { background: #f4f4f4; color: #000; } @media (max-width: 768px) { .container, .container-fluid, .container-sm, .container-md { padding-left: 0 !important; padding-right: 0 !important; } .tab-content { padding-left: 0 !important; padding-right: 0 !important; } .tab-content > .tab-pane > .card, .tab-content > .active > .card { border-left: none !important; border-right: none !important; border-radius: 0 !important; } .tab-content > .tab-pane > .card > .card-body, .tab-content > .active > .card > .card-body, .tab-content > .tab-pane > .card-body, .tab-content > .active > .card-body { padding: 4px !important; } .bslib-page-fill, .bslib-gap-spacing, .bslib-sidebar-layout > .main { padding-left: 0 !important; padding-right: 0 !important; } /* Hide MapLibre navigation control (zoom +/-) on mobile */ .maplibregl-ctrl-top-left .maplibregl-ctrl-group, .mapboxgl-ctrl-top-left .mapboxgl-ctrl-group { display: none !important; } /* Hide layer control panel on mobile */ .map-layer-control { display: none !important; } /* Hide plotly modebar (zoom/pan/download toolbar) on mobile */ .plotly .modebar-container { display: none !important; } /* Hide map legend on mobile */ #map_legend { display: none !important; } } /* Data Info Box Styling */ .data-info-box { background-color: #f8f9fa; border-left: 4px solid #007bff; padding: 12px; border-radius: 0 6px 6px 0; margin: 15px 0; font-size: 0.9rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .data-info-title { font-weight: 700; color: #495057; margin-bottom: 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; } .data-info-item { color: #6c757d; margin-bottom: 2px; } .fw-bold { color: #343a40; } /* Floating station selection badge / chip */ .station-floating-chip { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(203, 213, 225, 0.8); border-radius: 9999px; padding: 6px 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06); pointer-events: auto; transition: all 0.2s ease; max-width: calc(100vw - 80px); } .station-floating-chip:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16); border-color: #cbd5e1; } .chip-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #dc2626; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2); flex-shrink: 0; animation: pulse-dot 2s infinite; } @keyframes pulse-dot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } } .chip-text { font-size: 0.875rem; font-weight: 600; color: #1e293b; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; } .btn-chip-clear { display: inline-flex; align-items: center; gap: 4px; background-color: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; border-radius: 9999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; line-height: 1.2; } .btn-chip-clear:hover { background-color: #ef4444; color: #ffffff; border-color: #ef4444; } .sidebar-station-clear-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 5px 12px; font-size: 0.825rem; font-weight: 500; color: #b91c1c; background-color: #fee2e2; border: 1px solid #fca5a5; border-radius: 6px; cursor: pointer; transition: all 0.15s ease-in-out; } .sidebar-station-clear-btn:hover { background-color: #ef4444; color: #ffffff; border-color: #ef4444; }