* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #eaf0f4;
    color: #243447;
    line-height: 1.5;
}

a {
    color: #1e88a8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px;
}

.topbar {
    background: #eef3f6;
    border-bottom: 1px solid #d9e2e8;
    font-size: 13px;
    color: #51606f;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #d9e2e8;
}

.site-header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #23a7c6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
}

.brand-text strong {
    display: block;
    font-size: 24px;
    color: #243447;
    line-height: 1.2;
}

.brand-text span {
    display: block;
    font-size: 13px;
    color: #66788a;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #34495e;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.main-nav a:hover {
    background: #eef6f8;
    text-decoration: none;
}

.page-hero {
    background: #27a9c7;
    color: #ffffff;
    padding: 18px 0;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
}

.page-hero h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.page-hero p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.main-content {
    padding: 24px 0 40px;
}

.card {
    background: #ffffff;
    border: 1px solid #d9e2e8;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.card-title {
    margin: 0 0 14px;
    font-size: 22px;
    color: #243447;
}

.card-subtitle {
    margin: -4px 0 18px;
    color: #677888;
    font-size: 14px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 180px;
    gap: 14px;
}

.form-control,
.form-select,
.form-button {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #cfd9df;
    padding: 0 14px;
    font-size: 15px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #27a9c7;
    box-shadow: 0 0 0 3px rgba(39, 169, 199, 0.12);
}

.form-button {
    border: none;
    background: #27a9c7;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.form-button:hover {
    background: #1f96b2;
}

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

.stat-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 16px;
}

.stat-box strong {
    display: block;
    color: #213547;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-box span {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #23a7c6;
}

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

.city-card {
    display: block;
    background: #fdfefe;
    border: 1px solid #d9e2e8;
    border-radius: 12px;
    padding: 16px;
    transition: 0.2s ease;
    color: #243447;
}

.city-card:hover {
    border-color: #27a9c7;
    box-shadow: 0 6px 18px rgba(39, 169, 199, 0.10);
    text-decoration: none;
}

.city-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: #243447;
}

.city-card span {
    display: block;
    font-size: 13px;
    color: #6b7b8b;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.info-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 18px;
}

.info-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.info-box p {
    margin: 0;
    color: #687887;
    font-size: 14px;
}

.site-footer {
    background: #394655;
    color: #dfe7ee;
    margin-top: 24px;
}

.footer-top {
    padding: 34px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.footer-title {
    font-size: 18px;
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-text,
.footer-links a {
    color: #d6e0e8;
    font-size: 14px;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 0;
    font-size: 13px;
    color: #d3dce4;
}

.breadcrumb {
    font-size: 13px;
    color: #6b7b8b;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #5b7384;
}

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

.weather-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.weather-box strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #58697a;
}

.weather-box span {
    font-size: 24px;
    font-weight: bold;
    color: #23a7c6;
}

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

.list-link {
    display: block;
    padding: 14px;
    border-radius: 10px;
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    color: #243447;
}

.list-link:hover {
    border-color: #27a9c7;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .city-grid,
    .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 900px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .search-grid,
    .stats-grid,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .city-grid,
    .list-grid,
    .weather-grid {
        grid-template-columns: 1fr;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .page-hero h1 {
        font-size: 24px;
    }
}
/* şehir kartı sıcaklık */

.compact-city-card {
    padding: 14px 16px;
    min-height: 118px;
}

.compact-city-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #1f2d3d;
}

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

.city-weather-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.city-weather-icon-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef4f8;
    color: #90a4ae;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.city-weather-temp {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: #2f3e4d;
}

.city-card:hover {
    background: #f7fbfd;
    border-color: #9ed3df;
    text-decoration: none;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}
.page-section-title {
    margin: 0 0 14px;
    font-size: 24px;
    color: #203246;
}

.city-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.city-meta-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 16px;
}

.city-meta-box strong {
    display: block;
    font-size: 13px;
    color: #607283;
    margin-bottom: 8px;
}

.city-meta-box span {
    font-size: 20px;
    font-weight: 700;
    color: #203246;
}

.city-main-weather {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: stretch;
}

.city-temp-box {
    background: linear-gradient(180deg, #2aa9c7 0%, #1f96b2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.city-temp-value {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.city-temp-desc {
    font-size: 18px;
    opacity: 0.95;
}

.city-temp-update {
    margin-top: 14px;
    font-size: 13px;
    opacity: 0.9;
}

.city-weather-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.city-weather-detail-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 18px;
}

.city-weather-detail-box strong {
    display: block;
    font-size: 13px;
    color: #607283;
    margin-bottom: 8px;
}

.city-weather-detail-box span {
    font-size: 26px;
    font-weight: 700;
    color: #1f2d3d;
}

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

.district-card {
    display: block;
    background: #fdfefe;
    border: 1px solid #d9e2e8;
    border-radius: 12px;
    padding: 16px;
    color: #243447;
    transition: 0.2s ease;
}

.district-card:hover {
    border-color: #27a9c7;
    box-shadow: 0 6px 18px rgba(39, 169, 199, 0.10);
    text-decoration: none;
}

.district-card strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

.district-card span {
    font-size: 13px;
    color: #6b7b8b;
}

.city-info-text {
    color: #5f7284;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .district-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .city-main-weather,
    .city-meta-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .city-weather-detail-grid,
    .district-grid {
        grid-template-columns: 1fr;
    }

    .city-temp-value {
        font-size: 44px;
    }
}
.district-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.district-meta-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 16px;
}

.district-meta-box strong {
    display: block;
    font-size: 13px;
    color: #607283;
    margin-bottom: 8px;
}

.district-meta-box span {
    font-size: 20px;
    font-weight: 700;
    color: #203246;
}

.district-main-weather {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: stretch;
}

.district-temp-box {
    background: linear-gradient(180deg, #2aa9c7 0%, #1f96b2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.district-temp-value {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.district-temp-desc {
    font-size: 18px;
    opacity: 0.95;
}

.district-temp-update {
    margin-top: 14px;
    font-size: 13px;
    opacity: 0.9;
}

.district-weather-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.district-weather-detail-box {
    background: #f8fbfc;
    border: 1px solid #dce6eb;
    border-radius: 12px;
    padding: 18px;
}

.district-weather-detail-box strong {
    display: block;
    font-size: 13px;
    color: #607283;
    margin-bottom: 8px;
}

.district-weather-detail-box span {
    font-size: 24px;
    font-weight: 700;
    color: #1f2d3d;
}

.other-district-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.other-district-card {
    display: block;
    background: #fdfefe;
    border: 1px solid #d9e2e8;
    border-radius: 12px;
    padding: 16px;
    color: #243447;
    transition: 0.2s ease;
}

.other-district-card:hover {
    border-color: #27a9c7;
    box-shadow: 0 6px 18px rgba(39, 169, 199, 0.10);
    text-decoration: none;
}

.other-district-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.other-district-card span {
    font-size: 13px;
    color: #6b7b8b;
}

@media (max-width: 1100px) {
    .other-district-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .district-main-weather,
    .district-meta-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .district-weather-detail-grid,
    .other-district-grid {
        grid-template-columns: 1fr;
    }

    .district-temp-value {
        font-size: 42px;
    }
}