/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --radius: 16px;
    --radius-sm: 10px;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-warm: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== AD BANNERS ========== */
.ad-banner {
    text-align: center;
    padding: 10px 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.ad-banner img {
    max-width: 728px;
    max-height: 90px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.ad-header {
    background: #fff;
}

.ad-footer {
    padding: 25px 0;
    border-top: 1px solid var(--border);
}

.ad-sidebar {
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.ad-content-top, .ad-content-bottom {
    padding: 20px 0;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, .35);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav { flex: 1; }

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-list li a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .2s;
}

.nav-list li a:hover {
    background: var(--primary);
    color: #fff;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-date i { color: var(--primary); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ========== HERO / SEARCH ========== */
.hero-section {
    padding: 40px 0 20px;
}

.hero-card {
    background: var(--gradient-blue);
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: .85;
    margin-bottom: 25px;
}

.search-box {
    display: flex;
    gap: 0;
    max-width: 500px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--text);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}

.search-btn:hover {
    background: #d97706;
}

.city-grid-hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.city-hero-item {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    color: #fff;
    transition: transform .2s, background .2s;
    border: 1px solid rgba(255,255,255,.2);
}

.city-hero-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.25);
}

.city-hero-item .temp {
    font-size: 28px;
    font-weight: 700;
}

.city-hero-item .name {
    font-size: 13px;
    opacity: .9;
    margin-top: 4px;
}

.city-hero-item .icon-small {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
    font-size: 20px;
}

.section-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover { text-decoration: underline; }

/* ========== CITY CARDS ========== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.city-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.city-card .weather-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}

.city-card .city-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.city-card .temp-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.city-card .condition {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== WEATHER DETAIL ========== */
.weather-detail {
    padding: 30px 0;
}

.weather-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.weather-main-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.weather-hero-banner {
    background: var(--gradient-blue);
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.weather-hero-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.weather-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.weather-city-name {
    font-size: 28px;
    font-weight: 700;
}

.weather-city-condition {
    font-size: 15px;
    opacity: .85;
    margin-top: 4px;
}

.weather-big-temp {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.weather-big-icon {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 2;
}

.weather-hero-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.detail-item {
    background: rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.15);
}

.detail-item .detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .7;
    margin-bottom: 6px;
}

.detail-item .detail-value {
    font-size: 18px;
    font-weight: 700;
}

/* ========== PERIODS / FORECAST ========== */
.forecast-periods {
    padding: 24px;
}

.forecast-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.periods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.period-card {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .2s;
}

.period-card:hover {
    border-color: var(--primary);
    background: #eef2ff;
}

.period-card .period-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.period-card .period-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
}

.period-card .period-temp {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.period-card .period-wind {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.period-card .period-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== SUN INFO ========== */
.sun-info {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sun-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.sun-item.sunset-item {
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
}

.sun-item i {
    font-size: 24px;
    color: #f59e0b;
    margin-bottom: 8px;
}

.sun-item.sunset-item i {
    color: #ec4899;
}

.sun-item .sun-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sun-item .sun-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

/* ========== SIDEBAR ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-header i {
    color: var(--primary);
}

.sidebar-list {
    padding: 8px 0;
}

.sidebar-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    transition: background .15s;
}

.sidebar-list-item:hover {
    background: #f8fafc;
}

.sidebar-list-item .item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.sidebar-list-item .item-temp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.sidebar-list-item .item-icon {
    width: 28px;
    height: 28px;
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== WEEKLY FORECAST ========== */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 24px;
}

.week-day-card {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .2s;
}

.week-day-card:hover {
    border-color: var(--primary);
    background: #eef2ff;
    transform: translateY(-2px);
}

.week-day-card .day-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.week-day-card .day-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
}

.week-day-card .day-temp {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.week-day-card .day-wind {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========== ALL CITIES TABLE ========== */
.cities-table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cities-table {
    width: 100%;
    border-collapse: collapse;
}

.cities-table thead {
    background: var(--secondary);
    color: #fff;
}

.cities-table th {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cities-table td {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.cities-table tbody tr {
    transition: background .15s;
}

.cities-table tbody tr:hover {
    background: #f8fafc;
}

.cities-table .city-link {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cities-table .city-link:hover {
    text-decoration: underline;
}

.cities-table .temp-cell {
    font-weight: 700;
    font-size: 16px;
}

.temp-hot { color: #ef4444; }
.temp-warm { color: #f59e0b; }
.temp-cool { color: #3b82f6; }
.temp-cold { color: #1d4ed8; }

/* ========== FOOTER ========== */
.site-footer {
    margin-top: 40px;
}

.footer-main {
    background: var(--secondary);
    color: #e2e8f0;
    padding: 50px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.footer-logo .logo-main {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 15px;
    transition: all .2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #94a3b8;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    background: #020617;
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
}

/* ========== ADMIN ========== */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    padding: 20px;
}

.admin-login-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.admin-login-card h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.form-input:focus {
    border-color: var(--primary);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Admin Dashboard */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    color: #fff;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.admin-sidebar .logo .logo-main {
    color: #fff;
    font-size: 18px;
}

.admin-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    transition: all .2s;
}

.admin-nav-list li a:hover,
.admin-nav-list li a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-nav-list li a i {
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    background: var(--bg);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.admin-table {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.actions-cell {
    display: flex;
    gap: 8px;
}

/* ========== NO RESULTS ========== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .weather-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .city-grid-hero {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
        background: none;
        border: none;
        font-size: 22px;
        color: var(--text);
        cursor: pointer;
        padding: 8px;
    }

    .nav-list {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 220px;
        background: var(--bg-card);
        padding: 8px 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        z-index: 200;
        gap: 0;
    }

    .nav-list.active {
        display: flex !important;
    }

    .nav-list li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
    }

    .header-date {
        display: none;
    }

    .hero-card {
        padding: 24px;
    }

    .hero-title {
        font-size: 24px;
    }

    .city-grid-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .periods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-hero-banner {
        padding: 24px;
    }

    .weather-hero-top {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .weather-big-temp {
        font-size: 56px;
    }

    .weather-hero-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sun-info {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
        padding: 0 16px;
    }

    .tab {
        white-space: nowrap;
        padding: 12px 14px;
        font-size: 13px;
    }

    .week-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
    }

    .cities-table th,
    .cities-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .city-grid {
        grid-template-columns: 1fr;
    }

    .city-grid-hero {
        grid-template-columns: 1fr 1fr;
    }

    .city-hero-item .temp {
        font-size: 22px;
    }

    .periods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        border-radius: var(--radius-sm);
    }

    .search-btn {
        border-radius: var(--radius-sm);
    }

    .city-card .temp-value {
        font-size: 28px;
    }
}
