/* ============================================================
   Şehir sayfası (pages/city.php)
   Ortak bileşenler pages/shared/cp-ui.css içindedir; burada yalnızca
   bu sayfaya özgü kurallar bulunur (.city-page kapsamı).
   ============================================================ */

/* ---------- Üst alan ---------- */
.city-page .city-hero {
    position: relative;
    min-height: 190px;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15, 16, 17, .95) 0%, rgba(15, 16, 17, .78) 45%, rgba(15, 16, 17, .35) 100%),
        linear-gradient(0deg, rgba(15, 16, 17, .85) 0%, rgba(15, 16, 17, 0) 60%),
        url("https://www.upload.ee/image/16661198/_https___freepicdownloader.com__-cityscape-against-sky-sunset-medium") center 60% / cover no-repeat,
        radial-gradient(120% 160% at 0% 0%, rgba(184, 38, 38, .25) 0%, rgba(184, 38, 38, 0) 55%),
        var(--cp-surface);
}

.city-page .city-hero__text {
    position: relative;
    min-width: 0;
}

.city-page .city-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cp-accent-soft);
    border: 1px solid rgba(184, 38, 38, .45);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.city-page .city-hero__eyebrow i {
    display: inline-flex;
}

.city-page .city-hero .cp-pagehead__desc {
    color: #c4c4c4;
}

/* ---------- İskelet: menü + içerik ---------- */
.city-page .city-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.city-page .city-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.city-page .city-nav {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    background: var(--cp-surface);
}

.city-page .city-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--cp-radius-sm);
    color: var(--cp-text-2) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.city-page .city-nav__item i {
    display: inline-flex;
    width: 16px;
    flex: none;
    font-size: 14px;
    color: var(--cp-text-3);
}

.city-page .city-nav__item:hover {
    background: var(--cp-surface-3);
    color: var(--cp-text-1) !important;
}

.city-page .city-nav__item.is-active {
    background: var(--cp-accent-soft);
    color: #fff !important;
}

.city-page .city-nav__item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--cp-accent);
}

.city-page .city-nav__item.is-active i {
    color: #f87171;
}

.city-page .city-nav__item:focus-visible,
.city-page .city-row:focus-visible,
.city-page .city-person:focus-visible,
.city-page .city-cat:focus-visible,
.city-page .city-celeb a:focus-visible,
.city-page .table-izinsoyad a:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}

/* ---------- Yardımcılar ---------- */
.city-page .city-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.city-page .city-muted { color: var(--cp-text-2); }
.city-page small.city-muted { color: var(--cp-text-3); font-size: 11px; }
.city-page .city-strong { color: var(--cp-text-1); font-weight: 600; }
.city-page .city-dash { color: var(--cp-text-3); }

.city-page .city-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}

.city-page .table-izinsoyad .city-right,
.city-page .city-right {
    text-align: right;
}

.city-page .city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.city-page .cp-card__title {
    flex-wrap: wrap;
}

.city-page .cp-toolbar .cp-card__title {
    flex: 1 1 auto;
}

.city-page .city-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 14px;
}

/* index.css: .karaktersayfasiveriyok span { background: #242526 !important } */
.city-page .city-empty span {
    width: auto;
    background: none !important;
}

.city-page .city-empty i {
    display: inline-flex;
    font-size: 22px;
    color: var(--cp-text-3);
}

.city-page .city-loading {
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.city-page .city-loading i {
    font-size: 18px;
}

.city-page .city-scroll {
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Tablolar: başlıklar th ile yazıldığı için cp-ui kurallarını tamamla */
.city-page .city-table th {
    text-align: left;
    white-space: nowrap;
}

/* Gizli (city-sr) öğeler kaydırma kutusunun dışına taşıp sayfayı yatay kaydırmasın */
.city-page .cp-table-wrap,
.city-page .city-months__item {
    position: relative;
}

.city-page .city-table td a {
    white-space: nowrap;
}

.city-page .city-table tr > td {
    max-width: none;
}

.city-page .city-table small {
    font-size: 11px;
    color: var(--cp-text-3);
}

.city-page .city-tags {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.city-page .city-stats .cp-stat {
    align-items: flex-start;
}

.city-page .city-tags .cp-chip {
    font-weight: 500;
}

.city-page .city-stats .cp-stat dt {
    flex: none;
    padding-top: 4px;
}

.city-page .city-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.city-page .cp-kpi__label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-page .cp-kpi__label i {
    display: inline-flex;
    font-size: 12px;
}

/* ---------- Mekanlar ---------- */
.city-page .city-places {
    min-width: 760px;
}

.city-page .city-place__name b {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.city-page .city-place__name a {
    color: var(--cp-text-1);
    text-decoration: none;
}

.city-page .city-place__name a:hover b {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--cp-text-3);
    text-underline-offset: 3px;
}

.city-page .city-hours {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.city-page .city-biz-toggle i {
    transition: transform .15s;
}

.city-page .city-biz-toggle[aria-expanded="true"] {
    background: var(--cp-accent-soft);
    border-color: rgba(184, 38, 38, .5);
}

.city-page .city-biz-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.city-page .table-izinsoyad tbody > tr.city-biz-detail > td,
.city-page .table-izinsoyad tbody > tr.city-biz-detail:hover > td {
    padding: 0 0 12px;
    background: transparent;
}

.city-page .activityinfoarea {
    max-height: 520px;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
}

/* İşyeri aktiflik detayı (moduller/userAjaxActions/getBizActivityInfo.php) */
.city-page .city-bizinfo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.city-page .city-bizinfo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.city-page .city-bizinfo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
}

.city-page .city-bizinfo__block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.city-page .city-bizinfo__title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cp-text-2);
}

.city-page .city-bizinfo__title small {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cp-text-3);
}

.city-page .city-bizinfo__log {
    max-height: 300px;
    overflow: auto;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface);
}

.city-page .city-bizinfo__log thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--cp-surface);
}

.city-page .city-months {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 12px 10px 10px;
    list-style: none;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface);
}

.city-page .city-months__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin: 0;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.city-page .city-months__item b {
    font-size: 11px;
    color: var(--cp-text-1);
}

.city-page .city-months__item small {
    font-size: 10px;
    color: var(--cp-text-3);
}

.city-page .city-months__bar {
    position: relative;
    display: block;
    width: 100%;
    max-width: 22px;
    height: 110px;
    border-radius: 4px;
    background: var(--cp-surface-3);
    overflow: hidden;
}

.city-page .city-months__bar > span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px 4px 0 0;
    background: #7a2a2a;
}

.city-page .city-months__item.is-current .city-months__bar > span {
    background: var(--cp-accent);
}

.city-page .city-months__item.is-current small {
    color: #fca5a5;
    font-weight: 600;
}

.city-page .city-months__item.is-future {
    opacity: .45;
}

/* ---------- Liste satırları (kanunlar / seçimler) ---------- */
.city-page .city-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-page .city-rows > li {
    margin: 0;
}

.city-page .city-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
    color: var(--cp-text-1) !important;
    text-decoration: none !important;
    transition: border-color .15s, background .15s;
}

.city-page a.city-row:hover {
    border-color: #3a3b3e;
    background: var(--cp-surface-3);
}

.city-page .city-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--cp-accent-soft);
    color: #f87171;
    font-size: 15px;
}

.city-page .city-row__icon i {
    display: inline-flex;
}

.city-page .city-row__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.city-page .city-row__body b {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.city-page .city-row__body small {
    font-size: 12px;
    color: var(--cp-text-3);
}

.city-page .city-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-text-2);
}

.city-page .city-row__meta small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cp-text-3);
}

.city-page .city-row__go {
    display: inline-flex;
    flex: none;
    color: var(--cp-text-3);
}

.city-page .city-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: city-pulse 1.6s ease-in-out infinite;
}

@keyframes city-pulse {
    50% { opacity: .35; }
}

/* ---------- Vergiler ---------- */
.city-page .city-taxname {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.city-page .city-taxname i {
    display: inline-flex;
    color: var(--cp-text-3);
}

.city-page .city-rate {
    display: inline-block;
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--cp-surface-3);
    border: 1px solid var(--cp-border);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

/* ---------- Demografi ---------- */
.city-page .city-dist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-page .city-dist__row {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 13px;
}

.city-page .city-dist__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-page .city-dist__bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: var(--cp-surface-3);
    overflow: hidden;
}

.city-page .city-dist__bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--cp-accent);
}

.city-page .city-dist__val {
    min-width: 92px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.city-page .city-dist__val small {
    margin-left: 4px;
    font-size: 11px;
    color: var(--cp-text-3);
}

.city-page .city-dist--sex .city-dist__row {
    grid-template-columns: 110px minmax(0, 1fr) auto;
}

.city-page .city-dist--sex .city-dist__bar {
    height: 10px;
}

.city-page .city-sex {
    width: 14px;
    text-align: center;
}

.city-page .city-sex--m { color: var(--cp-info); }
.city-page .city-sex--f { color: #f472b6; }

.city-page .city-flag {
    width: 18px;
    height: 12px;
    flex: none;
    object-fit: cover;
    border-radius: 2px;
}

/* ---------- Vatandaşlar ---------- */
.city-page .city-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-page .city-people > li {
    margin: 0;
    min-width: 0;
}

.city-page .city-person {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
    color: var(--cp-text-1) !important;
    text-decoration: none !important;
    transition: border-color .15s, background .15s;
}

.city-page .city-person:hover {
    border-color: #3a3b3e;
    background: var(--cp-surface-3);
}

.city-page .city-person__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.city-page .city-person__body b {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-page .city-person__body small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--cp-text-3);
}

.city-page .city-person__body small i {
    display: inline-flex;
}

.city-page .city-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3a1a1a 0%, #241212 100%);
    border: 1px solid rgba(184, 38, 38, .35);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 700;
}

.city-page .city-avatar--gold {
    background: linear-gradient(135deg, #3b2f12 0%, #241d0c 100%);
    border-color: rgba(245, 158, 11, .4);
    color: #fcd34d;
}

/* ---------- Ünlüler ---------- */
.city-page .city-celebs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.city-page .city-celeb {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    background: var(--cp-surface-2);
}

.city-page .city-celeb__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-page .city-celeb__who {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.city-page .city-celeb__who a {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-page .city-celeb__who a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.city-page .city-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 11px;
    color: #fbbf24;
}

.city-page .city-celeb__edit[aria-expanded="true"] {
    background: var(--cp-accent-soft);
    border-color: rgba(184, 38, 38, .5);
}

.city-page .city-celeb__view {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.city-page .city-celeb__field {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 600;
}

.city-page .city-celeb__bio {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--cp-text-2);
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.city-page .city-celeb__bio.is-empty {
    font-style: italic;
    color: var(--cp-text-3);
}

.city-page .city-celeb__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-page .city-celeb__form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.city-page .city-celeb__form label > span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cp-text-3);
}

.city-page .city-celeb__form textarea.cp-input {
    min-height: 90px;
    resize: vertical;
}

.city-page .city-celeb__form .cp-input:focus {
    border-color: #3a3b3e;
    background: var(--cp-surface-3);
}

.city-page .city-celeb__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.city-page .city-celeb__status {
    margin-right: auto;
    font-size: 12px;
    color: var(--cp-text-3);
}

.city-page .city-celeb__status.is-error {
    color: #fca5a5;
}

/* ---------- Piyango ---------- */
.city-page .city-lotto-last {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(34, 197, 94, .12) 0%, rgba(34, 197, 94, 0) 55%),
        var(--cp-surface);
}

.city-page .city-lotto-last__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px 24px;
    align-items: center;
}

.city-page .city-lotto-last__prize {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-page .city-lotto-last__prize span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cp-text-3);
}

.city-page .city-lotto-last__prize b {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.city-page .city-lotto-last__stats a {
    text-decoration: underline;
    text-decoration-color: var(--cp-text-3);
    text-underline-offset: 3px;
}

.city-page .city-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}

.city-page .city-ball--sm {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 12px;
}

/* ---------- Enler: üstte hafta + kategori, altında tam genişlik liste ---------- */
.city-page .city-weekly {
    gap: 14px;
    min-height: 240px;
}

.city-page .city-weekly__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.city-page .city-weekly__week {
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-page .city-weekly__select {
    width: auto;
    min-width: 240px;
    min-height: 36px;
    padding-right: 32px !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-weight: 600;
    cursor: pointer;
}

.city-page .city-weekly__nav {
    width: 36px;
    height: 36px;
    border-color: var(--cp-border);
    background: var(--cp-surface-3);
    color: var(--cp-text-2);
}

.city-page .city-weekly__nav:hover:not(:disabled) {
    background: #2d2e30;
    border-color: #3a3b3e;
    color: #fff;
}

.city-page .city-weekly__nav:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.city-page .city-weekly__info {
    margin: 0;
    font-size: 12.5px;
    color: var(--cp-text-2);
}

.city-page .city-weekly__info b {
    color: #fff;
}

.city-page .city-weekly__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cp-border);
}

.city-page .city-cat {
    padding: 6px 12px;
    border: 1px solid var(--cp-border);
    border-radius: 999px;
    background: var(--cp-surface-2);
    color: var(--cp-text-2);
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.city-page .city-cat:hover {
    background: var(--cp-surface-3);
    color: var(--cp-text-1);
}

.city-page .city-cat[aria-selected="true"] {
    background: var(--cp-accent-soft);
    border-color: rgba(184, 38, 38, .5);
    color: #fff;
}

.city-page .city-weekly__body {
    min-width: 0;
}

/* renderWeeklyTopChart() çıktısı (moduller/functions.php, ana sayfa ile ortak) */
.city-page .city-weekly__table {
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
}

.city-page .city-weekly__table .rina-weeklytop-table-container {
    min-width: 0;
}

.city-page .city-weekly__table table {
    width: 100%;
}

.city-page .city-weekly__table th {
    text-align: left;
    white-space: nowrap;
}

.city-page .city-weekly__table th:first-child,
.city-page .city-weekly__table td:first-child {
    width: 44px;
    text-align: center;
    color: var(--cp-text-3);
    font-variant-numeric: tabular-nums;
}

.city-page .city-weekly__table tbody tr:nth-child(1) td:first-child { color: #fbbf24; font-weight: 700; }
.city-page .city-weekly__table tbody tr:nth-child(2) td:first-child { color: #d1d5db; font-weight: 700; }
.city-page .city-weekly__table tbody tr:nth-child(3) td:first-child { color: #d97706; font-weight: 700; }

.city-page .city-weekly__table th:last-child:not(:nth-child(2)),
.city-page .city-weekly__table td:last-child:not(:nth-child(2)) {
    text-align: right;
}

.city-page .city-weekly__table tr > td {
    max-width: none;
    overflow-wrap: anywhere;
}

/* index.css bayrağı absolute konumlandırıyor; tablo içinde satıra hizala */
.city-page .city-weekly__table .rina-weeklytop-best-characters-origin {
    position: static;
    width: 18px;
    height: 12px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: -1px;
}

.city-page .city-weekly__table .rina-weeklytop-best-characters-name {
    margin-left: 0;
}

/* Satır içi #666 açıklama metni koyu zeminde okunmuyor */
.city-page .city-weekly__table td div[style*="color"] {
    color: var(--cp-text-3) !important;
}

.city-page .city-weekly__table td[style*="#4CAF50"] {
    color: #4ade80 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .city-page .city-bizinfo__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .city-page .city-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .city-page .city-nav {
        position: static;
        flex-direction: row;
        gap: 4px;
        padding: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .city-page .city-nav::-webkit-scrollbar {
        display: none;
    }

    .city-page .city-nav__item {
        flex: none;
        white-space: nowrap;
    }

    .city-page .city-nav__item.is-active::before {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 2px;
        border-radius: 2px 2px 0 0;
    }

    .city-page .city-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .city-page .city-weekly__select {
        flex: 1;
        min-width: 0;
    }

    .city-page .city-weekly__week {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    .city-page .city-hero {
        min-height: 0;
        padding: 18px;
    }

    .city-page .city-hero .cp-pagehead__title {
        font-size: 20px;
    }

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

    .city-page .city-dist__row,
    .city-page .city-dist--sex .city-dist__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
    }

    .city-page .city-dist__bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .city-page .city-row {
        flex-wrap: wrap;
    }

    .city-page .city-row__meta {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-left: 48px;
    }

    .city-page .city-row__go {
        display: none;
    }

    .city-page .city-lotto-last__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .city-page .city-stats .cp-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .city-page .city-stats .cp-stat dd {
        text-align: left;
    }

    .city-page .city-tags {
        justify-content: flex-start;
    }

    .city-page .cp-search {
        max-width: none;
    }

    .city-page .city-weekly__filter {
        flex-basis: 100%;
    }

    .city-page .city-months__bar {
        height: 80px;
    }
}
