/**
 * When to Go Weather - Frontend New Design
 * Tabs style with slider bars
 */

.wtg-weather-new {
    background: #edf2f2;
    padding: 20px 20px 0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.wtg-header-new {
    text-align: center;
    margin-bottom: 20px;
}

.wtg-title-new {
    font-size: 28px;
    font-weight: 400;
    color: #374151;
    margin: 0;
}

/* =====================
   Tabs Navigation
   ===================== */
.wtg-tabs-nav {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-bottom: 0;
}

.wtg-tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 4px 12px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    background: transparent;
    transition: background 0.2s ease;
    border: none;
    position: relative;
}

.wtg-tab-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.wtg-tab-item.active {
    background: #ffffff;
    z-index: 2;
}

.wtg-tab-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.wtg-tab-item.active .wtg-tab-name {
    color: #374151;
}

.wtg-tab-checks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    height: 14px;
}

.wtg-tab-checks svg {
    width: 11px;
    height: 11px;
    fill: #5d8e96;
}

.wtg-tab-item.active .wtg-tab-checks svg {
    fill: #5d8e96;
}

/* =====================
   Tabs Content
   ===================== */
.wtg-tabs-content {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 24px 28px 28px;
    position: relative;
    z-index: 1;
    min-height: 200px;
}

.wtg-tab-pane {
    display: none;
    animation: wtgFadeIn 0.25s ease-in-out;
}

.wtg-tab-pane.active {
    display: block;
}

@keyframes wtgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Best Time Label */
.wtg-best-time-label {
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 20px;
    font-weight: 500;
}

/* =====================
   Data Table
   ===================== */
.wtg-data-table {
    width: 100%;
}

.wtg-table-header {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.wtg-col-header {
    font-size: 13px;
    font-weight: 600;
    color: #5d8e96;
}

.wtg-table-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 32px;
    padding: 14px 0;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

.wtg-col-place {
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
}

/* =====================
   Sliders
   ===================== */
.wtg-slider-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    position: relative;
    width: 85%; /* Leave room for thumb overflow */
}

.wtg-slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    /* màu set inline */
}

.wtg-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
    /* màu set inline */
}

/* Rainfall default color */
.wtg-col-rain .wtg-slider-progress {
    background: #7ca1ae;
}

.wtg-col-rain .wtg-slider-thumb {
    background: #7ca1ae;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    .wtg-weather-new {
        padding: 12px 12px 0;
    }

    .wtg-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wtg-tab-item {
        min-width: 52px;
        padding: 10px 4px 8px;
    }

    .wtg-tabs-content {
        padding: 16px;
    }

    .wtg-table-header {
        display: none;
    }

    .wtg-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 0;
    }

    .wtg-col-temp::before {
        content: 'Daily max temperature (°C)';
        display: block;
        font-size: 12px;
        color: #5d8e96;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .wtg-col-rain::before {
        content: 'Monthly rainfall (mm)';
        display: block;
        font-size: 12px;
        color: #5d8e96;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .wtg-slider-track {
        width: 90%;
    }
}
