/**
 * Microclimate Tooltip Styles
 * Inline contextual help tooltips
 */

.microclimate-tooltip {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    overflow: hidden;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    position: relative;
}

.tooltip-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.tooltip-header .altitude {
    font-size: 0.9rem;
    opacity: 0.9;
}

.tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tooltip-body {
    padding: 1.5rem;
}

.tooltip-body .description {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    line-height: 1.6;
}

.tooltip-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tooltip-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.tooltip-section ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tooltip-section li {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.tooltip-section.warnings {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.tooltip-section.tips {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.tooltip-section.best-time,
.tooltip-section.activities {
    padding: 0.5rem 0.75rem;
}

.tooltip-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.link-guide {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-guide:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .microclimate-tooltip {
        max-width: calc(100vw - 20px);
        left: 10px !important;
        right: 10px;
    }
}
