.weather-page {
    padding: 24px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .weather-page {
        padding: 16px 0;
        max-width: 380px;
    }
    
    .weather-current-wrapper {
        max-width: 380px;
    }
    
    .weather-sidebar {
        max-width: 380px;
    }
}

.content--fullwidth {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content--fullwidth .content__body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .weather-page {
        padding: 16px 0;
    }
    
    .content--fullwidth {
        padding-left: 0;
        padding-right: 0;
    }
    
    .content--fullwidth .content__body {
        padding-left: 0;
        padding-right: 0;
    }
}

.weather-header {
    margin-bottom: 24px;
}

.weather-header__title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .weather-header__title {
        font-size: 24px;
        margin-bottom: 16px;
    }
}

.weather-search {
    position: relative;
    margin-bottom: 24px;
}

.weather-search__wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.weather-search__input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.weather-search__icon {
    position: absolute;
    left: 12px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.weather-search__input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .weather-search__input {
        padding: 10px 36px 10px 36px;
        font-size: 14px;
    }
    
    .weather-search__icon {
        left: 10px;
    }
    
    .weather-search__clear {
        right: 6px;
    }
}

.weather-search__input:focus {
    outline: none;
    border-color: #0066cc;
}

.weather-search__input::placeholder {
    color: #999;
}

.weather-search__clear {
    position: absolute;
    right: 8px;
    padding: 4px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 1;
    border-radius: 2px;
}

.weather-search__clear:hover {
    color: #000;
    background: #f5f5f5;
}

.weather-search__location {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.weather-search__location:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.weather-search__location:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.weather-search__suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.weather-search__suggestion {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.weather-search__suggestion:last-child {
    border-bottom: none;
}

.weather-search__suggestion:hover {
    background: #f5f5f5;
}

.weather-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.weather-tabs::-webkit-scrollbar {
    display: none;
}

.weather-tabs__tab {
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.weather-tabs__tab:hover {
    color: #000;
}

.weather-tabs__tab--active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 500;
}

.weather-main {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

@media (max-width: 1023px) {
    .weather-main {
        grid-template-columns: 1fr;
        gap: 20px;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .weather-main {
        gap: 16px;
    }
}

.weather-current-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}

.weather-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .weather-details {
        padding: 16px;
    }
}

.weather-current {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

@media (max-width: 767px) {
    .weather-current {
        padding: 20px;
    }
}

.weather-current__loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.weather-current__header {
    margin-bottom: 20px;
}

.weather-current__city {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.weather-current__date {
    font-size: 14px;
    color: #666;
}

.weather-current__main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .weather-current__main {
        gap: 12px;
    }
}

.weather-current__icon {
    font-size: 80px;
    line-height: 1;
    flex-shrink: 0;
}

.weather-current__temp-wrapper {
    flex: 1;
    min-width: 0;
}

.weather-current__temp {
    font-size: 72px;
    font-weight: 300;
    color: #000;
    line-height: 1;
    margin-bottom: 8px;
}

.weather-current__temp {
    font-size: 64px;
    font-weight: 400;
    color: #000;
    line-height: 1;
}

@media (max-width: 767px) {
    .weather-current__temp {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .weather-current__icon {
        font-size: 60px;
    }
    
    .weather-current__temp {
        font-size: 56px;
    }
}

.weather-current__feels {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.weather-current__condition-wrapper {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.weather-current__condition {
    font-size: 16px;
    color: #000;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.weather-current__precipitation {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.weather-current__visibility {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.weather-current__moon,
.weather-current__geomagnetic {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.weather-current__alert {
    font-size: 14px;
    color: #d32f2f;
    background: #ffebee;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    border-left: 3px solid #d32f2f;
}

.weather-current__range {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
}

.weather-current__range-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.weather-current__range-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-current__range-value {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

@media (max-width: 767px) {
    .weather-current__range {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .weather-current__range-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.weather-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.weather-sidebar > * {
    flex: 0 0 auto;
    min-width: 0;
}

.weather-details .weather-now {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.weather-now {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.weather-details .weather-now {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.weather-now__loading {
    padding: 20px;
    text-align: center;
}

.weather-now__title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.weather-now__temp {
    font-size: 36px;
    font-weight: 400;
    color: #000;
    margin-bottom: 16px;
}

.weather-now__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weather-now__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.weather-now__detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.weather-now__detail-label {
    font-size: 14px;
    color: #666;
}

.weather-now__detail-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.weather-now__detail--alert {
    background: #ffebee;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #d32f2f;
    border-bottom: none;
}

.weather-now__detail--alert .weather-now__detail-label,
.weather-now__detail--alert .weather-now__detail-value {
    color: #d32f2f;
    font-weight: 600;
}

.weather-now__detail--warning {
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.weather-now__detail--warning .weather-now__detail-label,
.weather-now__detail--warning .weather-now__detail-value {
    color: #856404;
    font-weight: 500;
}

.weather-hourly {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .weather-hourly {
        padding: 16px;
    }
}

.weather-hourly__title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.weather-hourly__items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.weather-hourly__items::-webkit-scrollbar {
    display: none;
}

.weather-hourly__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 8px 4px;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
}

.weather-hourly__item:hover {
    background: #f5f5f5;
}

.weather-hourly__item--now {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.weather-hourly__time {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
}

.weather-hourly__icon {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1;
}

.weather-hourly__bar-wrapper {
    width: 4px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-end;
}

.weather-hourly__bar {
    width: 100%;
    background: linear-gradient(to top, #2196f3, #64b5f6);
    border-radius: 2px;
    min-height: 4px;
    transition: height 0.3s;
}

.weather-hourly__temp {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-top: 4px;
}

.weather-hourly__prec {
    font-size: 10px;
    color: #2196f3;
    margin-top: 2px;
}

.weather-nearby {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .weather-nearby {
        padding: 16px;
    }
}

.weather-nearby__title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.weather-nearby__cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    min-width: 0;
}

.weather-nearby__city {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    background: #fafafa;
}

.weather-nearby__city:hover {
    background: #f5f5f5;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(33,150,243,0.2);
}

.weather-nearby__city-name {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    text-align: center;
}

.weather-nearby__city-temp {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.weather-nearby__city-icon {
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 767px) {
    .weather-hourly__items {
        gap: 4px;
    }
    
    .weather-hourly__item {
        min-width: 50px;
        padding: 6px 2px;
    }
    
    .weather-hourly__icon {
        font-size: 20px;
    }
    
    .weather-hourly__bar-wrapper {
        height: 50px;
    }
    
    .weather-nearby__cities {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .weather-nearby__city {
        padding: 10px;
    }
}

.weather-forecast-table {
    margin-bottom: 32px;
}

.weather-forecast-table__loading {
    padding: 40px 20px;
    text-align: center;
}

.weather-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    table-layout: fixed;
    min-width: 100%;
}

@media (max-width: 767px) {
    .weather-forecast-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        width: calc(100% + 32px);
        box-sizing: border-box;
    }
    
    .weather-table {
        min-width: 600px;
        width: 100%;
    }
    
    .weather-table th,
    .weather-table td {
        padding: 12px 8px;
        font-size: 13px;
        word-break: break-word;
    }
    
    .weather-table th:first-child,
    .weather-table td:first-child {
        padding-left: 12px;
    }
    
    .weather-table th:last-child,
    .weather-table td:last-child {
        padding-right: 12px;
    }
}

.weather-table thead {
    background: #f5f5f5;
}

.weather-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    border-bottom: 1px solid #e0e0e0;
}

.weather-table td {
    padding: 16px;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid #f0f0f0;
}

.weather-table tbody tr:last-child td {
    border-bottom: none;
}

.weather-table tbody tr:hover {
    background: #f9f9f9;
}

.weather-table__day {
    font-weight: 500;
    margin-bottom: 4px;
}

.weather-table__date {
    font-size: 12px;
    color: #666;
}

.weather-table__temp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-table__temp-max {
    font-weight: 500;
    color: #000;
}

.weather-table__temp-min {
    color: #666;
}

.weather-popular {
    margin-bottom: 32px;
}

.weather-popular__title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.weather-popular__sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

@media (max-width: 767px) {
    .weather-popular__sections {
        grid-template-columns: 1fr;
        gap: 24px;
        min-width: 0;
    }
}

.weather-popular__section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .weather-popular__section {
        padding: 16px;
    }
}

.weather-popular__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.weather-popular__cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

@media (max-width: 767px) {
    .weather-popular__cities {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        min-width: 0;
    }
    
    .weather-popular__city {
        padding: 10px 8px;
        font-size: 13px;
        word-break: break-word;
    }
}

.weather-popular__city {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
}

.weather-popular__city:hover {
    border-color: #0066cc;
    color: #0066cc;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}

.weather-popular__city-name {
    display: block;
}

.weather-popular__city-temp {
    font-weight: 500;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.weather-popular__city:hover .weather-popular__city-temp {
    color: #0066cc;
}

.weather-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid #f0f0f0;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: weather-spin 1s linear infinite;
}

.weather-loader--small {
    width: 20px;
    height: 20px;
    margin: 0;
    border-width: 2px;
}

@keyframes weather-spin {
    to { transform: rotate(360deg); }
}

.weather-notice {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.weather-notice--demo {
    background: #e7f3ff;
    border-color: #2196f3;
}

.weather-notice__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.weather-notice__content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.weather-notice__content strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

