/* =========================================================
   MARKET BHAV WEATHER PAGE
   Modern responsive design
   Scoped to .mb-weather-page and its weather components
   Minimum font size: 15px
========================================================= */

.mb-weather-page {
    --mb-weather-green: #2E7D32;
    --mb-weather-green-dark: #1B5E20;
    --mb-weather-green-light: #E8F5E9;
    --mb-weather-green-mid: #4CAF50;
    --mb-weather-orange: #F57F17;
    --mb-weather-orange-light: #FFF8E1;
    --mb-weather-text: #212121;
    --mb-weather-muted: #5F6368;
    --mb-weather-border: #E3E8E4;
    --mb-weather-surface: #FFFFFF;
    --mb-weather-page-bg: #F5F8F5;
    --mb-weather-radius: 18px;

    width: 100%;
    max-width: 1080px;
    min-width: 0;
    margin: 0 auto;
    padding: 24px 18px 48px;
    box-sizing: border-box;
    color: var(--mb-weather-text);
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.mb-weather-page *,
.mb-weather-page *::before,
.mb-weather-page *::after {
    box-sizing: border-box;
}

.mb-weather-page img {
    max-width: 100%;
}

.mb-weather-page a {
    color: var(--mb-weather-green);
    text-decoration: none;
}

.mb-weather-page a:hover {
    color: var(--mb-weather-green-dark);
}

.mb-weather-page p {
    margin-top: 0;
}

.mb-weather-page h1,
.mb-weather-page h2,
.mb-weather-page h3 {
    color: var(--mb-weather-text);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mb-weather-page h1 {
    margin: 0 0 12px;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.7px;
}

.mb-weather-page h2 {
    margin: 0;
    font-size: 21px;
}

.mb-weather-page h3 {
    margin: 0;
    font-size: 18px;
}

.mb-weather-page p,
.mb-weather-page label,
.mb-weather-page select,
.mb-weather-page button,
.mb-weather-page span,
.mb-weather-page strong,
.mb-weather-page a {
    font-size: inherit;
}

.mb-weather-page .mb-weather-muted {
    color: var(--mb-weather-muted);
}

/* Breadcrumb */

.mb-weather-page .mb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-breadcrumb a {
    font-weight: 600;
}

/* Page introduction */

.mb-weather-page .mb-weather-intro {
    position: relative;
    margin-bottom: 24px;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid #D7EBDD;
    border-radius: 22px;
    background:
        radial-gradient(circle at 93% 15%, rgba(76, 175, 80, 0.15), transparent 30%),
        linear-gradient(125deg, #F0F9F1 0%, #FFFFFF 70%);
}

.mb-weather-page .mb-weather-intro::after {
    position: absolute;
    right: 30px;
    bottom: -48px;
    width: 140px;
    height: 140px;
    border: 20px solid rgba(46, 125, 50, 0.06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.mb-weather-page .mb-weather-intro p {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0;
    color: var(--mb-weather-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Search panel */

.mb-weather-page .mb-weather-search {
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid var(--mb-weather-border);
    border-radius: var(--mb-weather-radius);
    background: var(--mb-weather-surface);
    box-shadow: 0 5px 22px rgba(30, 70, 35, 0.045);
}

.mb-weather-page .mb-weather-search-head {
    margin-bottom: 20px;
}

.mb-weather-page .mb-weather-search-head h2 {
    margin-bottom: 6px;
}

.mb-weather-page .mb-weather-search-head p {
    margin-bottom: 0;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin: 0;
}

.mb-weather-page .mb-weather-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.mb-weather-page .mb-weather-field label {
    color: #303B31;
    font-size: 15px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-field select {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 40px 12px 14px;
    border: 1px solid #D4DDD5;
    border-radius: 11px;
    outline: none;
    background-color: #FFFFFF;
    color: var(--mb-weather-text);
    font-family: inherit;
    font-size: 16px;
}

.mb-weather-page .mb-weather-field select:focus {
    border-color: var(--mb-weather-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.mb-weather-page .mb-weather-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mb-weather-page .mb-weather-btn-primary {
    background: var(--mb-weather-green);
    color: #FFFFFF;
}

.mb-weather-page .mb-weather-btn-primary:hover {
    transform: translateY(-1px);
    background: var(--mb-weather-green-dark);
}

/* Shared section spacing */

.mb-weather-page .mb-weather-section {
    min-width: 0;
    margin-top: 26px;
}

.mb-weather-page .mb-weather-section-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 17px;
}

.mb-weather-page .mb-weather-section-head > div {
    min-width: 0;
}

.mb-weather-page .mb-weather-section-head p {
    margin: 5px 0 0;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-heading-icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    border: 1px solid #D9ECDD;
    border-radius: 14px;
    background: var(--mb-weather-green-light);
    color: var(--mb-weather-green);
    font-size: 24px;
}

/* Current weather hero */

.mb-weather-page .mb-weather-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 24px;
    padding: 27px;
    border: 1px solid #D4E7D6;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.95), transparent 35%),
        linear-gradient(135deg, #EAF7EC 0%, #F9FCF9 65%, #FFF8E9 100%);
    box-shadow: 0 8px 28px rgba(33, 80, 39, 0.07);
}

.mb-weather-page .mb-weather-hero-main {
    min-width: 0;
}

.mb-weather-page .mb-weather-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.mb-weather-page .mb-weather-location h2 {
    font-size: 23px;
}

.mb-weather-page .mb-weather-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #C9E6CD;
    border-radius: 30px;
    background: #FFFFFF;
    color: var(--mb-weather-green-dark);
    font-size: 15px;
    font-weight: 600;
}

.mb-weather-page .mb-weather-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #2E9B49;
}

.mb-weather-page .mb-weather-current {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.mb-weather-page .mb-weather-current-icon {
    display: flex;
    width: 102px;
    height: 102px;
    flex: 0 0 102px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 18px rgba(60, 100, 60, 0.08);
    font-size: 55px;
}

.mb-weather-page .mb-weather-temperature {
    color: var(--mb-weather-green-dark);
    font-size: clamp(54px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -3px;
}

.mb-weather-page .mb-weather-temperature sup {
    position: relative;
    top: -0.12em;
    font-size: 0.42em;
    font-weight: 500;
    letter-spacing: 0;
}

.mb-weather-page .mb-weather-condition {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-feels {
    margin-top: 3px;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-description {
    max-width: 650px;
    margin-bottom: 20px;
    color: #465449;
    font-size: 16px;
    line-height: 1.8;
}

.mb-weather-page .mb-weather-update {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #D9E7DA;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-update strong {
    color: #37453A;
}

/* Current weather summary cards */

.mb-weather-page .mb-weather-hero-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 13px;
}

.mb-weather-page .mb-weather-mini-card {
    display: flex;
    min-width: 0;
    min-height: 130px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 17px;
    border: 1px solid rgba(215, 229, 215, 0.95);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 13px rgba(33, 80, 39, 0.035);
}

.mb-weather-page .mb-weather-mini-icon {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 25px;
}

.mb-weather-page .mb-weather-mini-label {
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-mini-value {
    margin-top: 4px;
    color: var(--mb-weather-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
}

/* Weather metrics strip */

.mb-weather-page .mb-weather-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 16px;
}

.mb-weather-page .mb-weather-metric {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--mb-weather-border);
    border-radius: 16px;
    background: #FFFFFF;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.mb-weather-page .mb-weather-metric:hover {
    transform: translateY(-2px);
    border-color: #B8D8BD;
}

.mb-weather-page .mb-weather-metric-icon {
    display: flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--mb-weather-green-light);
    font-size: 22px;
}

.mb-weather-page .mb-weather-metric > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mb-weather-page .mb-weather-metric-label {
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-metric-value {
    margin-top: 2px;
    color: var(--mb-weather-text);
    font-size: 19px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Hourly forecast */

.mb-weather-page .mb-weather-hourly-wrap {
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-color: #A5CDAA #EEF5EF;
    scrollbar-width: thin;
}

.mb-weather-page .mb-weather-hourly {
    display: grid;
    grid-auto-columns: minmax(112px, 1fr);
    grid-auto-flow: column;
    gap: 12px;
    min-width: max-content;
}

.mb-weather-page .mb-weather-hour {
    display: flex;
    min-width: 112px;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 17px 12px;
    border: 1px solid var(--mb-weather-border);
    border-radius: 17px;
    background: #FFFFFF;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mb-weather-page .mb-weather-hour.is-current {
    border: 1px solid #8DC797;
    background: linear-gradient(180deg, #EAF7EC, #FFFFFF);
}

.mb-weather-page .mb-weather-hour-time {
    color: var(--mb-weather-muted);
    font-size: 15px;
    font-weight: 600;
}

.mb-weather-page .mb-weather-hour-icon {
    font-size: 31px;
    line-height: 1.2;
}

.mb-weather-page .mb-weather-hour-temp {
    color: var(--mb-weather-text);
    font-size: 21px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-hour-rain {
    color: #3878A8;
    font-size: 15px;
}

/* Seven-day forecast */

.mb-weather-page .mb-weather-week {
    margin-top: 30px;
}

.mb-weather-page .mb-weather-week__heading {
    position: relative;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.mb-weather-page .mb-weather-week__heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    border-radius: 5px;
    background: var(--mb-weather-orange);
    content: "";
}

.mb-weather-page .mb-weather-week__intro {
    margin-bottom: 19px;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-week__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mb-weather-page .mb-weather-day {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mb-weather-border);
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 3px 14px rgba(30, 70, 35, 0.035);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb-weather-page .mb-weather-day:hover,
.mb-weather-page .mb-weather-day[open] {
    border-color: #B9D9BD;
    box-shadow: 0 6px 20px rgba(30, 70, 35, 0.07);
}

.mb-weather-page .mb-weather-day__summary {
    display: grid;
    grid-template-columns: 105px 100px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 18px;
    min-height: 108px;
    padding: 17px 21px;
    cursor: pointer;
    list-style: none;
}

.mb-weather-page .mb-weather-day__summary::-webkit-details-marker {
    display: none;
}

.mb-weather-page .mb-weather-day__date {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.mb-weather-page .mb-weather-day__name {
    color: var(--mb-weather-text);
    font-size: 17px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-day__short-date {
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-day__temps {
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.mb-weather-page .mb-weather-day__high {
    color: var(--mb-weather-text);
    font-size: 24px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-day__low {
    color: #58585a;
    font-size: 18px;
    font-weight: 500;
}

.mb-weather-page .mb-weather-day__condition {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.mb-weather-page .mb-weather-day__icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    object-fit: contain;
}

.mb-weather-page .mb-weather-day__condition-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: #344238;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.mb-weather-page .mb-weather-day__rain {
    color: #3478A7;
    font-size: 15px;
    font-weight: 500;
}

.mb-weather-page .mb-weather-day__arrow {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F0F7F1;
    color: var(--mb-weather-green);
    font-size: 23px;
    transition: transform 0.2s ease;
}

.mb-weather-page .mb-weather-day[open] .mb-weather-day__arrow {
    transform: rotate(180deg);
}

.mb-weather-page .mb-weather-day__details {
    padding: 22px;
    border-top: 1px solid #E4ECE5;
    background: #FBFDFC;
    animation: mbWeatherReveal 0.22s ease-out;
}

@keyframes mbWeatherReveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mb-weather-page .mb-weather-day__detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.mb-weather-page .mb-weather-day__detail-top > div:first-child {
    min-width: 0;
}

.mb-weather-page .mb-weather-day__detail-title {
    margin-bottom: 8px;
    font-size: 18px;
}

.mb-weather-page .mb-weather-day__detail-description {
    max-width: 750px;
    margin-bottom: 0;
    color: var(--mb-weather-muted);
    font-size: 15px;
    line-height: 1.8;
}

.mb-weather-page .mb-weather-day__probability {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mb-weather-page .mb-weather-day__pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #D9E7DA;
    border-radius: 30px;
    background: #FFFFFF;
    color: #465449;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.mb-weather-page .mb-weather-day__pill:first-child {
    border-color: #D7E7F2;
    background: #F0F7FC;
    color: #28648D;
}

.mb-weather-page .mb-weather-day__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mb-weather-page .mb-weather-day__metric {
    display: flex;
    min-width: 0;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 15px;
    border: 1px solid #E4EBE4;
    border-radius: 13px;
    background: #FFFFFF;
}

.mb-weather-page .mb-weather-day__metric-label {
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-day__metric-value {
    color: var(--mb-weather-text);
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mb-weather-page .mb-weather-day__sun {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.mb-weather-page .mb-weather-day__sun-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #F0E3C8;
    border-radius: 14px;
    background: #FFFCF5;
}

.mb-weather-page .mb-weather-day__sun-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    object-fit: contain;
}

.mb-weather-page .mb-weather-day__sun-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.mb-weather-page .mb-weather-day__sun-label {
    color: #78633E;
    font-size: 15px;
}

.mb-weather-page .mb-weather-day__sun-time {
    color: #3D3526;
    font-size: 19px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-day__sun-extra {
    color: #786F60;
    font-size: 15px;
}

/* Sunrise and sunset section */

.mb-weather-page .mb-weather-sun-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.mb-weather-page .mb-weather-sun-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px solid #F0E3C8;
    border-radius: 17px;
    background: linear-gradient(120deg, #FFFBF1, #FFFFFF);
}

.mb-weather-page .mb-weather-sun-icon {
    font-size: 36px;
}

.mb-weather-page .mb-weather-sun-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mb-weather-page .mb-weather-sun-label {
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-sun-time {
    color: #3D3526;
    font-size: 23px;
    font-weight: 700;
}

/* Weather across India */

.mb-weather-page .mb-weather-india-intro {
    margin-bottom: 15px;
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-india-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.mb-weather-page .mb-weather-india-card {
    display: flex;
    min-width: 0;
    min-height: 88px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--mb-weather-border);
    border-radius: 15px;
    background: #FFFFFF;
    color: var(--mb-weather-text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb-weather-page .mb-weather-india-card:hover {
    transform: translateY(-2px);
    border-color: #9FCBA5;
    box-shadow: 0 5px 17px rgba(30, 70, 35, 0.07);
}

.mb-weather-page .mb-weather-state-code {
    display: flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mb-weather-green-light);
    color: var(--mb-weather-green-dark);
    font-size: 15px;
    font-weight: 700;
}

.mb-weather-page .mb-weather-india-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.mb-weather-page .mb-weather-india-text strong {
    color: var(--mb-weather-text);
    font-size: 15px;
    line-height: 1.45;
}

.mb-weather-page .mb-weather-india-text span {
    color: var(--mb-weather-muted);
    font-size: 15px;
}

.mb-weather-page .mb-weather-arrow {
    flex: 0 0 auto;
    color: var(--mb-weather-green);
    font-size: 25px;
}

/* Information / disclaimer */

.mb-weather-page .mb-weather-note {
    padding: 23px;
    border: 1px solid #E2E9E2;
    border-left: 4px solid var(--mb-weather-orange);
    border-radius: 15px;
    background: #FFFFFF;
}

.mb-weather-page .mb-weather-note h2 {
    margin-bottom: 9px;
    font-size: 19px;
}

.mb-weather-page .mb-weather-note p {
    margin-bottom: 0;
    color: var(--mb-weather-muted);
    font-size: 15px;
    line-height: 1.85;
}

/* Keyboard accessibility */

.mb-weather-page a:focus-visible,
.mb-weather-page button:focus-visible,
.mb-weather-page summary:focus-visible,
.mb-weather-page select:focus-visible {
    outline: 3px solid rgba(245, 127, 23, 0.65);
    outline-offset: 3px;
}

/* =========================================================
   TABLET: 769px–1080px
========================================================= */

@media (min-width: 769px) and (max-width: 1080px) {
    .mb-weather-page {
        padding: 20px 15px 40px;
    }

    .mb-weather-page .mb-weather-hero {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
        gap: 18px;
        padding: 22px;
    }

    .mb-weather-page .mb-weather-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-weather-page .mb-weather-day__summary {
        grid-template-columns: 90px 90px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 16px;
    }

    .mb-weather-page .mb-weather-india-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-weather-page .mb-weather-day__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE AND SMALL TABLETS: 361px–768px
========================================================= */

@media (min-width: 361px) and (max-width: 768px) {
    .mb-weather-page {
        padding: 15px 12px 32px;
    }

    .mb-weather-page h1 {
        font-size: 26px;
    }

    .mb-weather-page h2 {
        font-size: 20px;
    }

    .mb-weather-page .mb-weather-intro {
        padding: 22px 19px;
        border-radius: 17px;
    }

    .mb-weather-page .mb-weather-search {
        padding: 19px;
    }

    .mb-weather-page .mb-weather-search-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 13px;
    }

    .mb-weather-page .mb-weather-search-grid .mb-weather-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mb-weather-page .mb-weather-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .mb-weather-page .mb-weather-current-icon {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
        border-radius: 22px;
        font-size: 44px;
    }

    .mb-weather-page .mb-weather-temperature {
        font-size: 60px;
    }

    .mb-weather-page .mb-weather-hero-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-weather-page .mb-weather-mini-card {
        min-height: 112px;
        padding: 14px;
    }

    .mb-weather-page .mb-weather-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-weather-page .mb-weather-day__summary {
        grid-template-columns: 75px 85px minmax(0, 1fr) 28px;
        gap: 10px;
        min-height: 100px;
        padding: 14px 12px;
    }

    .mb-weather-page .mb-weather-day__high {
        font-size: 21px;
    }

    .mb-weather-page .mb-weather-day__low {
        font-size: 16px;
    }

    .mb-weather-page .mb-weather-day__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .mb-weather-page .mb-weather-day__condition {
        gap: 8px;
    }

    .mb-weather-page .mb-weather-day__condition-text,
    .mb-weather-page .mb-weather-day__rain {
        font-size: 15px;
    }

    .mb-weather-page .mb-weather-day__details {
        padding: 16px;
    }

    .mb-weather-page .mb-weather-day__detail-top {
        flex-direction: column;
        gap: 13px;
    }

    .mb-weather-page .mb-weather-day__probability {
        justify-content: flex-start;
    }

    .mb-weather-page .mb-weather-day__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-weather-page .mb-weather-india-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-weather-page .mb-weather-sun-grid {
        gap: 12px;
    }

    .mb-weather-page .mb-weather-sun-card {
        padding: 16px;
    }
}

/* =========================================================
   SMALL MOBILE: 360px AND BELOW
========================================================= */

@media (max-width: 360px) {
    .mb-weather-page {
        padding: 12px 9px 26px;
    }

    .mb-weather-page h1 {
        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .mb-weather-page h2 {
        font-size: 19px;
    }

    .mb-weather-page .mb-weather-intro {
        padding: 19px 15px;
        border-radius: 15px;
    }

    .mb-weather-page .mb-weather-search {
        padding: 15px;
    }

    .mb-weather-page .mb-weather-search-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-weather-page .mb-weather-search-grid .mb-weather-btn {
        width: 100%;
    }

    .mb-weather-page .mb-weather-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        padding: 15px;
        border-radius: 18px;
    }

    .mb-weather-page .mb-weather-location {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mb-weather-page .mb-weather-location h2 {
        font-size: 20px;
    }

    .mb-weather-page .mb-weather-current {
        gap: 12px;
    }

    .mb-weather-page .mb-weather-current-icon {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
        border-radius: 17px;
        font-size: 37px;
    }

    .mb-weather-page .mb-weather-temperature {
        font-size: 52px;
    }

    .mb-weather-page .mb-weather-hero-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .mb-weather-page .mb-weather-mini-card {
        min-height: 105px;
        padding: 12px;
    }

    .mb-weather-page .mb-weather-mini-value {
        font-size: 18px;
    }

    .mb-weather-page .mb-weather-metrics {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .mb-weather-page .mb-weather-metric {
        padding: 13px;
    }

    .mb-weather-page .mb-weather-day__summary {
        grid-template-columns: minmax(0, 1fr) 28px;
        gap: 10px;
        padding: 15px;
    }

    .mb-weather-page .mb-weather-day__date {
        grid-column: 1;
        grid-row: 1;
    }

    .mb-weather-page .mb-weather-day__temps {
        grid-column: 1;
        grid-row: 2;
        gap: 12px;
    }

    .mb-weather-page .mb-weather-day__condition {
        grid-column: 1;
        grid-row: 3;
        margin-top: 3px;
    }

    .mb-weather-page .mb-weather-day__arrow {
        grid-column: 2;
        grid-row: 1;
    }

    .mb-weather-page .mb-weather-day__details {
        padding: 13px;
    }

    .mb-weather-page .mb-weather-day__metrics {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .mb-weather-page .mb-weather-day__metric {
        min-height: 82px;
        padding: 11px;
    }

    .mb-weather-page .mb-weather-day__sun,
    .mb-weather-page .mb-weather-sun-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-weather-page .mb-weather-india-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-weather-page .mb-weather-india-card {
        min-height: 76px;
    }

    .mb-weather-page .mb-weather-sun-card {
        padding: 15px;
    }
}

/* Respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {
    .mb-weather-page *,
    .mb-weather-page *::before,
    .mb-weather-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
