/* =========================================================================
   Quick Weather Popover / Drawer Styles (mos77.ru)
   ========================================================================= */

.vc-weather-popover-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    animation: vcWxFadeIn 0.2s ease-out;
}

.vc-weather-popover {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    overflow-y: auto;
}

.vc-weather-popover__panel {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 24px;
    animation: vcWxPanelIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

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

@keyframes vcWxPanelIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.vc-weather-popover__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.vc-weather-popover__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.vc-weather-popover__title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.vc-weather-popover__close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.vc-weather-popover__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Hero Block */
.vc-weather-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vc-weather-hero__temp-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-weather-hero__icon {
    font-size: 44px;
    line-height: 1;
}

.vc-weather-hero__temps {
    display: flex;
    flex-direction: column;
}

.vc-weather-hero__temp {
    font-size: 38px;
    font-weight: 900;
    color: #0369a1;
    line-height: 1;
}

.vc-weather-hero__feels {
    font-size: 13px;
    color: #0284c7;
    margin-top: 3px;
}

.vc-weather-hero__info {
    text-align: right;
}

.vc-weather-hero__condition {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.vc-weather-hero__range {
    font-size: 13px;
    color: #475569;
}

/* Metrics Grid */
.vc-weather-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.vc-wx-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vc-wx-metric__icon {
    font-size: 20px;
    line-height: 1;
}

.vc-wx-metric__body {
    display: flex;
    flex-direction: column;
}

.vc-wx-metric__label {
    font-size: 11px;
    color: #64748b;
    line-height: 1.1;
}

.vc-wx-metric__val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

/* Section Titles */
.vc-weather-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.vc-weather-section-title small {
    font-size: 11px;
    color: #94a3b8;
    text-transform: none;
    font-weight: 500;
}

/* Hourly Slider */
.vc-weather-hourly-wrap {
    margin-bottom: 20px;
}

.vc-weather-hourly-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.vc-weather-hourly-track::-webkit-scrollbar {
    height: 4px;
}

.vc-weather-hourly-track::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.vc-weather-hourly-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.vc-wx-h-item {
    scroll-snap-align: start;
    flex: 0 0 74px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    transition: all 0.15s ease;
}

.vc-wx-h-item.is-current {
    background: #f0fdf4;
    border-color: #86efac;
}

.vc-wx-h-time {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.vc-wx-h-ico {
    font-size: 20px;
    line-height: 1;
}

.vc-wx-h-temp {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.vc-wx-h-pop {
    font-size: 10px;
    font-weight: 600;
    color: #0284c7;
}

.vc-wx-h-pop--dry {
    color: #94a3b8;
    font-weight: 400;
}

/* 3-Days Outlook */
.vc-weather-days-wrap {
    margin-bottom: 20px;
}

.vc-weather-days-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vc-wx-d-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    gap: 12px;
}

.vc-wx-d-date {
    display: flex;
    flex-direction: column;
    width: 100px;
}

.vc-wx-d-date strong {
    font-size: 13px;
    color: #0f172a;
}

.vc-wx-d-date span {
    font-size: 11px;
    color: #64748b;
}

.vc-wx-d-cond {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.vc-wx-d-ico {
    font-size: 18px;
    line-height: 1;
}

.vc-wx-d-txt {
    font-size: 13px;
    color: #334155;
}

.vc-wx-d-temp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
}

.vc-wx-d-max {
    color: #0f172a;
}

.vc-wx-d-min {
    color: #64748b;
}

/* City Switcher in Popover */
.vc-weather-city-switch {
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.vc-wx-cs-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 8px;
}

.vc-wx-cs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-wx-cs-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vc-wx-cs-pill:hover,
.vc-wx-cs-pill.is-active {
    background: #2d81e0;
    border-color: #2d81e0;
    color: #ffffff;
}

/* Footer Button */
.vc-weather-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #2d81e0 0%, #1e6bc7 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(45, 129, 224, 0.3);
    transition: all 0.2s ease;
}

.vc-weather-btn-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(45, 129, 224, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .vc-weather-popover {
        padding: 0;
        align-items: flex-end;
    }
    .vc-weather-popover__panel {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        max-height: 88vh;
        animation: vcWxPanelMobileIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes vcWxPanelMobileIn {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .vc-weather-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .vc-weather-hero__info {
        text-align: left;
    }
    .vc-weather-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}
