/* NOAA OI SST V2 Styles */
.marine-temp-tooltip {
    background: var(--dark-panel) !important;
    color: var(--text-light) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
    border-left: 2px solid var(--primary-color) !important;
    padding: 6px 10px !important;
    font-family: var(--font-family-primary) !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    max-width: 200px !important;
    min-width: 160px !important;
    text-align: center !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    transition: all var(--transition-speed) ease !important;
    z-index: 10000 !important;
}

.marine-temp-tooltip .tooltip-title {
    font-weight: 600;
    font-size: 0.7em;
    color: var(--text-light);
    margin-bottom: 2px;
    opacity: 0.9;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marine-temp-tooltip .tooltip-temp {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.marine-temp-tooltip .tooltip-zone {
    font-size: 0.65em;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 2px;
    white-space: nowrap;
}

.marine-temp-tooltip .tooltip-coords {
    font-size: 0.6em;
    color: var(--text-light);
    opacity: 0.85;
    font-weight: 500;
    font-family: var(--font-family-mono);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Light theme support for tooltips */
body.light-theme .marine-temp-tooltip {
    background: var(--light-panel) !important;
    color: var(--text-dark) !important;
    border-left: 2px solid var(--primary-color) !important;
    box-shadow: var(--shadow) !important;
}

body.light-theme .marine-temp-tooltip .tooltip-title {
    color: var(--text-dark);
    opacity: 0.8;
    border-bottom: 1px solid var(--primary-color);
}

body.light-theme .marine-temp-tooltip .tooltip-temp {
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.light-theme .marine-temp-tooltip .tooltip-zone {
    color: var(--text-dark);
    opacity: 0.7;
}

body.light-theme .marine-temp-tooltip .tooltip-coords {
    color: var(--text-dark);
    opacity: 0.75;
}

.marine-temp-tooltip:hover {
    transform: translateY(-1px);
}

body.light-theme .marine-temp-tooltip:hover {
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.15) !important;
}

body:not(.light-theme) .marine-temp-tooltip:hover {
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.3) !important;
}

/* Leaflet tooltip container override */
.marine-temp-tooltip-container,
.leaflet-tooltip.marine-temp-tooltip-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.marine-temp-tooltip-container .leaflet-tooltip-content,
.leaflet-tooltip.marine-temp-tooltip-container .leaflet-tooltip-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Override default Leaflet tooltip styles for our custom tooltips */
.leaflet-tooltip.marine-temp-tooltip-container::before {
    display: none !important;
}

/* Additional Leaflet tooltip overrides for clean appearance */
.leaflet-tooltip.marine-temp-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.leaflet-tooltip.marine-temp-tooltip::before {
    display: none !important;
}

/* Remove conflicting animations that cause tooltip positioning issues */
.marine-temp-tooltip {
    /* Animation removed to prevent conflict with Leaflet positioning */
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .marine-temp-tooltip {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        max-width: 140px !important;
        min-width: 100px !important;
    }
    
    .marine-temp-tooltip .tooltip-title {
        font-size: 0.65em;
        margin-bottom: 2px;
    }
    
    .marine-temp-tooltip .tooltip-temp {
        font-size: 1.1em;
        margin-bottom: 1px;
    }
    
    .marine-temp-tooltip .tooltip-zone {
        font-size: 0.65em;
        margin-bottom: 1px;
    }
    
    .marine-temp-tooltip .tooltip-coords {
        font-size: 0.6em;
        letter-spacing: 0.2px;
    }
}

/* Temperature color classes */
.marine-temp-arctic { background-color: #1a237e; }
.marine-temp-cold { background-color: #0d47a1; }
.marine-temp-cool { background-color: #1976d2; }
.marine-temp-cool-moderate { background-color: #2196f3; }
.marine-temp-moderate { background-color: #4caf50; }
.marine-temp-warm-moderate { background-color: #8bc34a; }
.marine-temp-warm { background-color: #ffc107; }
.marine-temp-hot { background-color: #ff9800; }
.marine-temp-very-hot { background-color: #f44336; }
.marine-temp-extreme-hot { background-color: #b71c1c; }

/* Legend color classes */
.legend-color.marine-temp-arctic { background-color: #1a237e; }
.legend-color.marine-temp-cold { background-color: #0d47a1; }
.legend-color.marine-temp-cool { background-color: #1976d2; }
.legend-color.marine-temp-cool-moderate { background-color: #2196f3; }
.legend-color.marine-temp-moderate { background-color: #4caf50; }
.legend-color.marine-temp-warm-moderate { background-color: #8bc34a; }
.legend-color.marine-temp-warm { background-color: #ffc107; }
.legend-color.marine-temp-hot { background-color: #ff9800; }
.legend-color.marine-temp-very-hot { background-color: #f44336; }
.legend-color.marine-temp-extreme-hot { background-color: #b71c1c; } 