/* Custom CSS for the Avalanche Explorer */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Carousel Styles */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

#tab-weather-content table {
    border-collapse: collapse;
    width: max-content;
    /* allow horizontal scroll */
}

#tab-weather-content {
    overflow-x: auto;
    padding-bottom: 10px;
    font-size: 13px;
    color: #222;
}



.weather-table th,
.weather-table td {
    white-space: nowrap;
}

.sticky-left {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #fff;
}

.weather-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
}

/* small responsive tweaks */
@media (max-width: 640px) {
    #tab-weather-content {
        font-size: 12px;
    }
}

/* The dotted line text */
.info-tooltip-trigger {
    position: relative;
    border-bottom: 1px dotted #888;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* The Popup Bubble */
.info-tooltip-content {
    visibility: hidden;
    opacity: 0;

    /* Sizing */
    width: max-content;
    max-width: 350px;
    /* Limits width so it doesn't get too wide */

    background-color: #333;
    color: #fff;
    text-align: left;
    /* Easier to read left-aligned text */
    border-radius: 6px;
    padding: 8px 12px;

    /* POSITIONING FIX: Anchor left, do not center */
    position: absolute;
    z-index: 9999;
    bottom: 135%;
    /* Sits above the text */
    left: -5px;
    /* Slight offset to align nicely with the word */
    transform: none;
    /* REMOVED: translateX(-50%) to stop left-clipping */

    /* Typography */
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

    /* Animation */
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

/* The little triangle arrow */
.info-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;

    /* ARROW FIX: Move arrow to the left side to match the bubble */
    left: 15px;
    margin-left: 0;

    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show logic */
.info-tooltip-trigger:hover .info-tooltip-content,
.info-tooltip-trigger:focus .info-tooltip-content,
.info-tooltip-trigger:focus-within .info-tooltip-content {
    visibility: visible;
    opacity: 1;
}

#desktop-panel {
    display: none;
}

@media (min-width: 1280px) {
    #desktop-panel {
        display: flex;
    }
}

button.active span {
    color: #0ea5e9;
    /* sky-500 */
    font-weight: 700;
}

/* Force visible thin scrollbars on mobile */
.scrollbar-visible::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-visible::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scrollbar-visible::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}