/**
 * Theme Components
 * Reusable UI components for the theme
 */

/* ==========================================================================
   STATION TOOLTIP
   ========================================================================== */

/* Station Tooltip - Bootstrap-style floating tooltip */
.station-tooltip {
    position: fixed;
    z-index: 99999;
    max-width: 200px;
    padding: 6px 12px;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    white-space: nowrap;
}

.station-tooltip.show {
    opacity: 1;
}

/* Arrow */
.station-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
}

/* Arrow position when tooltip is below */
.station-tooltip.tooltip-bottom::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid #000;
}

.station-tooltip__name {
    display: block;
    font-weight: 600;
}

.station-tooltip__rating {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
}

.station-tooltip__star {
    width: 16px;
    height: 16px;
    fill: #666;
}

.station-tooltip__star--full {
    fill: #fbbf24;
}

.station-tooltip__star--half {
    fill: url(#tooltip-star-gradient);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .station-tooltip {
        display: none !important;
    }
}
