/* ==========================================================
   Weather Panel
========================================================== */

.weather-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* ----------------------------------------------------------
   Heading
---------------------------------------------------------- */

.weather-panel > h3 {
    margin: 0 !important;
    padding: 26px 24px !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #23344d !important;
    border-bottom: 1px solid #eef2f7;
}

/* ----------------------------------------------------------
   Content
---------------------------------------------------------- */

.weather-panel__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 22px;
    min-height: 0;
}

/* ----------------------------------------------------------
   Location
---------------------------------------------------------- */

.weather-panel__location {
    margin-bottom: 4px;
}

.weather-panel__city {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 750;
    color: #23344d;
}

.weather-panel__updated {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.3;
    color: #8a98aa;
}

/* ----------------------------------------------------------
   Current weather
---------------------------------------------------------- */

.weather-panel__current {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0 16px;
    text-align: center;
}

.weather-panel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 2px;
    font-size: 48px;
    line-height: 1;
}

.weather-panel__temperature {
    margin-top: 0;
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #23344d;
}

.weather-panel__condition {
    margin-top: 7px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #23344d;
}

.weather-panel__feels {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: #7c8ca2;
}

/* ----------------------------------------------------------
   Dividers
---------------------------------------------------------- */

.weather-panel__divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    background: #eef2f7;
}

/* ----------------------------------------------------------
   Details
---------------------------------------------------------- */

.weather-panel__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
}

.weather-panel__detail {
    display: grid;
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    column-gap: 6px;
    align-items: center;
}

.weather-panel__detail-icon {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #0B67D0;
}

.weather-panel__detail-label {
    font-size: 11px;
    line-height: 1.2;
    color: #8a98aa;
}

.weather-panel__detail strong {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
    color: #23344d;
}

/* ----------------------------------------------------------
   Forecast
---------------------------------------------------------- */

.weather-panel__forecast {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 15px 0 12px;
}

.weather-panel__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.weather-panel__day-name {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 750;
    color: #7c8ca2;
}

.weather-panel__day-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin: 5px 0 4px;
    font-size: 22px;
    line-height: 1;
}

.weather-panel__day strong {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 750;
    color: #23344d;
}

.weather-panel__day > span:last-child {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
    color: #8a98aa;
}

/* ----------------------------------------------------------
   More
---------------------------------------------------------- */

.weather-panel__more {
    display: block;
    margin-top: auto;
    padding-top: 10px;
    text-align: right;
    color: #0B67D0;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.weather-panel__more:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width: 1200px) {
    .weather-panel__content {
        padding-bottom: 20px;
    }
}
