/* Make the SST image overlay transparent to mouse events so POI
   markers underneath can receive hover/click. */
.leaflet-image-layer {
    pointer-events: none !important;
}

/* SST click-to-read tooltip */
.sst-tooltip .leaflet-tooltip {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}
.sst-tooltip .leaflet-tooltip::before {
    border-top-color: #cbd5e1;
}

/* POI fishing-spot hover tooltip */
.poi-tooltip .leaflet-tooltip {
    background: white;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}
.poi-tooltip .leaflet-tooltip::before {
    border-top-color: #86efac;
}

/* Measure tool distance label */
.measure-tooltip .leaflet-tooltip {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
.measure-tooltip .leaflet-tooltip::before {
    border-top-color: rgba(99, 102, 241, 0.9);
}

/* Mobile: tooltips can wrap (narrow or landscape phone) */
@media (max-width: 767.98px), (max-height: 500px) {
    .sst-tooltip .leaflet-tooltip,
    .poi-tooltip .leaflet-tooltip,
    .measure-tooltip .leaflet-tooltip {
        white-space: normal !important;
        max-width: 200px;
    }
}
