/* ═══════════════════════════════════════════════════════════════
   DernekHarita — Ana CSS
   ═══════════════════════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ─── CSS Değişkenleri ─── */
:root {
    --bg:           #f8fafc;
    --surface:      rgba(255, 255, 255, 0.85);
    --surface-solid:#ffffff;
    --surface2:     #f1f5f9;
    --border:       rgba(226, 232, 240, 0.7);
    --primary:      #2E3D46;
    --primary-dark: #1e2930;
    --primary-light:rgba(46, 61, 70, 0.08);
    --accent:       #2E3D46; /* HURSAD Logo Slate */
    --text:         #2E3D46; /* HURSAD Logo Slate */
    --text-muted:   #64748b;
    --danger:       #dc2626;
    --success:      #475569;
    --warning:      #dc2626;
    --sidebar-w:    320px;
    --header-h:     64px;
    --panel-w:      380px;
    --radius:       16px;
    --radius-sm:    12px;
    --shadow:       0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md:    0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08);
    --shadow-lg:    0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --glass:        blur(12px) saturate(180%);
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --warning-surface: #fef2f2;
    --warning-text: #b91c1c;
    --danger-surface: #fef2f2;
    --danger-text: #dc2626;
    --info-surface: #eff6ff;
    --accent-title: #1e3a8a;
    --input-bg: #f9fafb;
}

[data-theme="dark"] {
    --bg:           #141b1f; /* Koyu Slate Arka Plan */
    --surface:      rgba(46, 61, 70, 0.8);
    --surface-solid:#2E3D46; /* HURSAD Logo Slate */
    --surface2:     #232F36;
    --border:       rgba(148, 163, 184, 0.22);
    --primary:      #cbd5e1;
    --primary-dark: #e2e8f0;
    --primary-light:rgba(226, 232, 240, 0.12);
    --text:         #f8fafc;
    --text-muted:   #94a3b8;
    --glass:        blur(16px) saturate(200%);
    --warning-surface: rgba(245, 158, 11, 0.14);
    --warning-text: #fbbf24;
    --danger-surface: rgba(239, 68, 68, 0.14);
    --danger-text: #f87171;
    --info-surface: rgba(59, 130, 246, 0.12);
    --accent-title: #93c5fd;
    --input-bg:     #232F36;
    --shadow:       0 4px 6px -1px rgba(0,0,0,0.25), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-md:    0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.25);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    transition: background 0.5s ease;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.mobile-tab-bar, .mobile-floating-search { display: none !important; } /* Desktop'ta gizle */

.mobile-tab-bar { display: none !important; } /* Desktop'ta gizle */

/* ─── HEADER ─── */
.app-header {
    position: fixed;
    top: 12px; left: 12px; right: 12px;
    height: var(--header-h);
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    white-space: nowrap;
}

.header-brand svg { width: 24px; height: 24px; }
.header-spacer { flex: 1; }

.btn-admin {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--primary-light);
}
.btn-admin:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-light);
}

/* Header Links (Desktop) */
.header-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.header-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.header-link .link-icon { font-size: 1rem; }

@media (max-width: 900px) {
    .header-links { display: none !important; }
}

/* ─── LAYOUT ─── */
.app-shell {
    display: flex;
    height: 100vh;
    padding: calc(var(--header-h) + 24px) 12px 12px 12px;
    gap: 12px;
    transition: gap var(--transition);
}

.app-shell.sidebar-hidden {
    gap: 0;
}

/* ─── SIDEBAR ─── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.app-shell.sidebar-hidden .sidebar {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    opacity: 0;
    pointer-events: none;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: var(--transition);
}

[data-theme="dark"] .sidebar-section {
    background: rgba(15, 23, 42, 0.3);
}

.sidebar-section:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-section-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: .75rem;
    opacity: 0.8;
}

/* Arama */
.search-box {
    position: relative;
    width: 100%;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-solid);
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}
.search-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-1px);
}

.sidebar-search {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.sidebar-search-btn {
    flex-shrink: 0;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar-section-compact {
    padding: 0.75rem;
}

.sidebar-search .search-input {
    padding-left: 2.5rem;
}

.sidebar-portal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.sidebar-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.sidebar-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 0.5rem;
    min-width: 0;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-katman-row {
    display: flex;
    gap: 0.5rem;
}

.btn-katman-sidebar {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-katman-sidebar.active,
.btn-katman-sidebar:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.public-page-wrap {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.public-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.public-page-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: var(--text);
}

.public-page-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 42rem;
}

.public-page-search {
    margin-bottom: 1.25rem;
}

.public-page-meta {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.public-uye-search-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

[data-theme="dark"] .public-uye-search-panel {
    background: rgba(255, 255, 255, 0.04);
}

.public-uye-search-panel-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: none;
    background: var(--surface2, rgba(248, 250, 252, 0.8));
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.public-uye-search-panel-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.public-uye-search-panel-chevron.is-open {
    transform: rotate(180deg);
}

.public-uye-search-panel-body {
    padding: 1rem 1rem 1.1rem;
    border-top: 1px solid var(--border);
}

.public-uye-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

.public-uye-search-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.public-uye-btn-ara {
    min-width: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
}

.public-uye-btn-temizle {
    min-width: 6.5rem;
}

.public-uye-btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.public-uye-btn-spinner {
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: public-uye-spin 0.7s linear infinite;
}

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

.public-uye-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.public-uye-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.public-uye-results-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-uye-results-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.public-uye-no-records {
    color: #dc2626;
    font-weight: 600;
}

.public-uye-hint {
    font-size: 0.75rem;
    color: #dc2626;
}

.public-uye-table-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.public-uye-table-filter-input {
    width: 11rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
}

.public-uye-results-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.public-uye-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .public-uye-table-wrap {
    background: rgba(255, 255, 255, 0.03);
}

.public-uye-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.public-uye-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface2, rgba(248, 250, 252, 0.95));
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

[data-theme="dark"] .public-uye-table thead th {
    background: rgba(15, 23, 42, 0.92);
}

.public-uye-table tbody tr.public-uye-row {
    cursor: pointer;
}

.public-uye-table tbody tr.public-uye-row.is-expanded {
    background: rgba(34, 197, 94, 0.06);
}

.public-uye-col-toggle {
    width: 2.5rem;
    text-align: center;
    padding-left: 0.65rem !important;
    padding-right: 0.35rem !important;
}

.public-uye-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 3px;
    background: #64748b;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.public-uye-expand-icon.is-open {
    background: #dc2626;
}

.public-uye-table-name-cell {
    font-weight: 600;
    min-width: 11rem;
}

.public-uye-table th:nth-child(2),
.public-uye-table td:nth-child(2) {
    min-width: 6rem;
    white-space: nowrap;
}

.public-uye-table th:nth-child(4),
.public-uye-table td:nth-child(4) {
    min-width: 16rem;
}

.public-uye-table th:nth-child(5),
.public-uye-table td:nth-child(5) {
    min-width: 9rem;
    white-space: nowrap;
}

.public-uye-detail-row td {
    padding: 0 !important;
    background: rgba(248, 250, 252, 0.6);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .public-uye-detail-row td {
    background: rgba(15, 23, 42, 0.5);
}

.public-uye-detail-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 2.5rem;
    padding: 1.1rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.public-uye-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 11rem;
    min-width: 10rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.public-uye-detail-item.is-adres {
    flex: 2.5 1 22rem;
    min-width: 18rem;
    max-width: 100%;
}

.public-uye-detail-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.public-uye-detail-value {
    color: var(--text);
    word-break: break-word;
}

.public-uye-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem !important;
}

.public-uye-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.public-uye-page-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.public-uye-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.public-uye-table tbody tr:last-child {
    border-bottom: none;
}

.public-uye-table tbody tr:hover {
    background: rgba(34, 197, 94, 0.04);
}

.public-uye-table td {
    padding: 0.9rem 1rem;
    vertical-align: top;
    color: var(--text);
    line-height: 1.45;
}

.public-uye-table-acente {
    min-width: 12rem;
    max-width: 18rem;
}

.public-uye-table-name {
    display: block;
    font-weight: 700;
    color: var(--text);
}

.public-uye-table-unvan {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.public-uye-table-mono {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.public-uye-table-adres {
    min-width: 10rem;
    max-width: 22rem;
    color: var(--text-muted);
}

.public-uye-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.public-uye-pill.is-yes {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.public-uye-pill.is-no {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.public-uye-pill.is-member {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .public-uye-pill.is-yes,
[data-theme="dark"] .public-uye-pill.is-member {
    color: #86efac;
}

@media (max-width: 900px) {
    .public-uye-search-grid {
        grid-template-columns: 1fr;
    }

    .public-uye-results-toolbar {
        flex-direction: column;
    }

    .public-uye-table-filter-input {
        width: 100%;
    }

    .public-uye-table thead {
        display: none;
    }

    .public-uye-table,
    .public-uye-table tbody,
    .public-uye-table tr,
    .public-uye-table td {
        display: block;
        width: 100%;
    }

    .public-uye-table tbody tr {
        padding: 0.85rem 1rem 0.65rem;
        margin: 0;
    }

    .public-uye-table tbody tr + tr {
        border-top: 1px solid var(--border);
    }

    .public-uye-table td {
        display: grid;
        grid-template-columns: 6.5rem 1fr;
        gap: 0.65rem;
        padding: 0.45rem 0;
        align-items: start;
    }

    .public-uye-table td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .public-uye-table-acente {
        grid-template-columns: 1fr;
        padding-top: 0;
        margin-bottom: 0.25rem;
    }

    .public-uye-table-acente::before {
        display: none;
    }

    .public-uye-table-adres {
        max-width: none;
    }
}

.public-page-kvkk {
    margin: 1.5rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Select */
.sidebar-select {
    width: 100%;
    padding: .7rem 2.25rem .7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-solid);
    color: var(--text);
    font-size: .88rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    margin-top: .4rem;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}
.sidebar-select:hover { 
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Radio grupları */
.radio-group { display: flex; flex-direction: column; gap: .35rem; }
.radio-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    cursor: pointer;
    padding: .3rem .4rem;
    border-radius: 6px;
    transition: background var(--transition);
}
.radio-label:hover { background: var(--primary-light); }
.radio-label input[type="radio"] { accent-color: var(--primary); }

/* Toggle */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ─── HARİTA ALANI ─── */
.map-container {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Pin renk efsanesi */
.map-pin-legend {
    position: absolute;
    left: 12px;
    bottom: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-size: 0.72rem;
    color: var(--text-muted);
    pointer-events: none;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.map-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.map-legend-dot.is-service { background: #3b82f6; }
.map-legend-dot.is-hotel-service { background: #8b5cf6; }
.map-legend-dot.is-walk { background: #f59e0b; }
.map-legend-dot.is-walk-v2 { background: #ea580c; }
.map-legend-dot.is-tent { background: #10b981; }

/* Cluster + zoom konumu */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(37, 99, 235, 0.28);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.map-container .leaflet-bottom.leaflet-right {
    bottom: 82px;
    right: 16px;
}

.map-container .leaflet-control-zoom {
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container .leaflet-control-zoom a {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 18px !important;
}

.map-container .leaflet-control-zoom a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-katman {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-katman.active,
.btn-katman:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ─── DETAY PANELİ ─── */
.detail-panel {
    width: var(--panel-w);
    flex-shrink: 0;
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 850;
    box-shadow: var(--shadow-lg);
}

.detail-panel.hidden {
    transform: translateX(calc(100% + 24px));
    width: 0;
    margin-left: -12px;
    pointer-events: none;
}

.panel-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.panel-header h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.panel-header p  { font-size: .78rem; opacity: .85; margin: .15rem 0 0; }

/* Yeşil başlık üzerinde tarih: koyu muted/primary renk kullanma — kontrast kırılıyor */
.panel-stay-dates {
    margin-top: .35rem !important;
    font-size: .82rem !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, .92) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .45rem;
}
.panel-stay-dates.is-active {
    color: #fff !important;
    font-weight: 600;
}
.panel-stay-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .01em;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
}

.panel-close {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.panel-close:hover { background: rgba(255,255,255,.35); }

.panel-body { padding: 1rem; flex: 1; }

/* Seyahat programı (üye detay) */
.seyahat-panel {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seyahat-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seyahat-panel-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.seyahat-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.seyahat-otel {
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.seyahat-otel:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.seyahat-otel.is-active {
    border-color: #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.seyahat-otel.is-muted {
    opacity: 0.78;
    grid-template-columns: 1fr;
}

.seyahat-otel-rail {
    width: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    margin-top: 0.15rem;
}

.seyahat-otel.is-active .seyahat-otel-rail {
    background: #10b981;
}

.seyahat-otel-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.seyahat-otel-top strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
}

.seyahat-otel-sehir {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.seyahat-otel-dates {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: center;
}

.seyahat-otel-gece {
    font-weight: 700;
    color: var(--text);
    font-size: 0.72rem;
}

.seyahat-aktif-badge {
    display: inline-flex;
    margin-top: 0.4rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.seyahat-ucus {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.seyahat-ucus strong {
    display: block;
    color: var(--text);
    font-size: 0.8rem;
}

.seyahat-ucus-icon {
    font-size: 0.85rem;
    line-height: 1.4;
}

.seyahat-tarihsiz {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: color-mix(in srgb, var(--surface2, #f8fafc) 80%, transparent);
}

.seyahat-tarihsiz summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.seyahat-tarihsiz summary::-webkit-details-marker { display: none; }

.seyahat-tarihsiz summary span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.seyahat-tarihsiz-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

/* Üye listesi */
.uye-list { display: flex; flex-direction: column; gap: .4rem; }

.uye-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}
.uye-item:hover, .uye-item.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.uye-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.uye-info { flex: 1; min-width: 0; }
.uye-name { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uye-rol  { font-size: .75rem; color: var(--text-muted); }

/* Faaliyet listesi */
.faaliyet-list { display: flex; flex-direction: column; gap: .5rem; }

.faaliyet-item {
    padding: .65rem .75rem;
    border-left: 3px solid var(--primary);
    background: var(--surface2);
    border-radius: 0 8px 8px 0;
}

.faaliyet-tip {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .15rem .5rem;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: .25rem;
}

.faaliyet-baslik { font-weight: 600; font-size: .88rem; }
.faaliyet-tarih  { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.faaliyet-aciklama { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* Diğer lokasyonlar */
.diger-lokasyon-list { display: flex; flex-direction: column; gap: .35rem; }

.diger-lokasyon-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .83rem;
    padding: .4rem .6rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    transition: all var(--transition);
}
.diger-lokasyon-item:hover { background: var(--primary-light); border-color: var(--primary); }

/* Geri butonu */
.btn-geri {
    display: flex; align-items: center; gap: .4rem;
    background: none; border: 1px solid var(--border);
    color: var(--text-muted); border-radius: 7px;
    padding: .35rem .75rem; font-size: .8rem;
    cursor: pointer; margin-bottom: .75rem;
    transition: all var(--transition);
}
.btn-geri:hover { background: var(--surface2); color: var(--text); }

/* ─── GENEL BUTONLAR ─── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: 8px;
    font-size: .85rem; font-weight: 600;
    border: none; cursor: pointer;
    transition: all var(--transition);
}
.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: none;
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    transform: none;
    box-shadow: none;
}
.btn-secondary { 
    background: var(--surface); 
    color: var(--text); 
    border: 1px solid var(--border); 
}
.btn-secondary:hover { 
    background: var(--surface2); 
    border-color: var(--text-muted);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .3rem .65rem; font-size: .78rem; }

/* Action Buttons for Tables */
.action-btns {
    display: flex;
    justify-content: flex-end;
    gap: .4rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-icon.edit:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.btn-icon.archive:hover { color: var(--warning); border-color: var(--warning); background: #fffbeb; }
.btn-icon.delete:hover { color: var(--danger); border-color: var(--danger); background: #fef2f2; }

.btn-icon svg { width: 16px; height: 16px; }

/* ─── ADMIN LAYOUT ─── */
.admin-shell {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-h);
}

.admin-nav {
    width: 260px;
    flex-shrink: 0;
    background: var(--surface-solid);
    border-right: 1px solid var(--border);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: width var(--transition), padding var(--transition), background var(--transition);
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
}

.admin-shell .admin-nav .admin-nav-item {
    color: var(--text-muted);
}

.admin-shell .admin-nav .admin-nav-item:hover:not(.active) {
    background: var(--surface2);
    color: var(--text);
}

.admin-shell .admin-nav .sidebar-section-title {
    color: var(--text-muted);
}

.admin-shell .admin-nav .sidebar-section-title:hover {
    color: var(--text);
    background: var(--surface2);
}

.admin-shell .admin-nav .nav-sub-title {
    color: var(--text-muted);
}

.admin-shell .admin-nav .nav-sub-title:hover {
    color: var(--text);
    background: var(--surface2);
}

.admin-shell.sidebar-hidden .admin-nav {
    width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-right: none !important;
    overflow: hidden !important;
}

.nav-group {
    margin-bottom: 0.15rem;
}
.nav-group[open] .sidebar-section-title::after {
    transform: rotate(180deg);
}
.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    margin-top: 0.65rem;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 8px;
}
.sidebar-section-title::-webkit-details-marker {
    display: none;
}
.sidebar-section-title:hover {
    color: var(--text);
    background: var(--surface2);
}
.sidebar-section-title::after {
    display: none; /* Hide the arrow */
}
.nav-group-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0;
    margin-top: 0.25rem;
    border-left: none;
    margin-left: 0;
}

.nav-sub-group {
    margin: 0.15rem 0 0.35rem 0;
}
.nav-sub-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.45rem 0.75rem 0.45rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-sub-title::-webkit-details-marker { display: none; }
.nav-sub-title:hover {
    color: var(--text);
    background: var(--surface2);
}
.nav-sub-group-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.15rem 0 0.25rem 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border);
}
.admin-nav-item.nested {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 8px;
}
.admin-nav-item.nested svg { display: none; }

.admin-nav-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.admin-nav-item:hover:not(.active) {
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
}
.admin-nav-item.active,
.admin-nav-item.active:hover,
.admin-shell .admin-nav .admin-nav-item.active,
.admin-shell .admin-nav .admin-nav-item.active:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-light);
    text-decoration: none;
}
.admin-nav-item:focus { outline: none; }
.admin-nav-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.admin-nav-item svg {
    width: 20px; height: 20px;
    stroke-width: 2;
    opacity: 0.8;
}
.admin-nav-item.active svg,
.admin-nav-item.active:hover svg {
    opacity: 1;
    stroke: currentColor;
}

.admin-nav-item .nav-pending-badge {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    margin-left: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.admin-nav-item .nav-pending-badge.danger {
    background: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.admin-nav-item .nav-pending-badge.primary {
    background: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.admin-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.admin-season-bar {
    background: var(--surface-solid);
    padding: 0.65rem 1.5rem;
    margin-top: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: none;
}

.admin-chrome-title {
    min-width: 0;
    flex: 1;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.admin-season-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.admin-season-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.35rem 0.85rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: default;
    white-space: nowrap;
}

.admin-season-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}

.admin-season-display-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-season-display-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-season-pill-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-season-dropdown {
    appearance: auto;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0;
    margin: 0;
    min-width: 3.5rem;
    max-width: 5.5rem;
    width: auto;
    cursor: pointer;
    box-shadow: none;
    outline: none;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.admin-user-chip:hover {
    background: var(--surface2);
    border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
    text-decoration: none;
    color: inherit;
}

.admin-user-chip:focus { outline: none; }
.admin-user-chip:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.admin-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.admin-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-season-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface2);
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.admin-season-select label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.admin-season-select select,
.admin-season-select .form-select {
    width: auto;
    min-width: 72px;
    max-width: 110px;
    font-weight: 700;
    color: var(--primary);
    border: none;
    background: transparent;
    padding: 0 0.25rem 0 0;
    cursor: pointer;
    box-shadow: none;
    flex-shrink: 0;
}

.admin-page-content {
    padding: 0.5rem 1.5rem 1.5rem;
}

.admin-page-title {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex; 
    align-items: center; 
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.adm-dash-header.is-chrome-moved { display: none; }
.ap-title.is-chrome-moved { display: none; }
.premium-page-title.is-chrome-moved { display: none; }
.premium-page-header.is-chrome-moved .premium-icon-wrapper,
.premium-page-header.is-chrome-moved .premium-icon-box { display: none; }
.admin-page-title.is-chrome-moved {
    font-size: 0;
    font-weight: 400;
    padding: 0 0 0.85rem;
    margin: 0 0 0.35rem;
    border-bottom: none;
    min-height: 0;
}
.admin-page-title.is-chrome-moved:not(:has(:not(script))) { display: none; }
.admin-page-title.is-chrome-moved > * {
    font-size: 0.88rem;
    font-weight: 600;
}

/* ─── TABLO ─── */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

thead th {
    background: var(--surface);
    padding: 1rem .85rem;
    text-align: left;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.filter-bar-search {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    margin-left: auto;
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--surface2); }

td { padding: .6rem .85rem; vertical-align: middle; }

/* ─── FORM ─── */
.form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }

.form-label { font-size: .82rem; font-weight: 600; color: var(--text); }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: .85rem;
    outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { min-height: 80px; resize: vertical; }

/* ─── MODAL ─── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal {
    background: var(--surface);
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.modal.modal-scrollable {
    max-width: 720px;
    max-height: min(92dvh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal.modal-scrollable .modal-header,
.modal.modal-scrollable .modal-footer {
    flex-shrink: 0;
}

.modal.modal-scrollable .modal-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-muted) 45%, transparent) transparent;
}

.modal.modal-scrollable .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal.modal-scrollable .modal-body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-muted) 45%, transparent);
    border-radius: 999px;
}

.modal.modal-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--text-muted) 65%, transparent);
}

@media (max-width: 900px) {
    .modal-overlay.modal-overlay-sheet {
        padding: 0;
        align-items: stretch;
    }

    .modal.modal-scrollable.modal-sheet {
        max-width: 100%;
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
}

.modal-body    { padding: 1.25rem; }
.modal-footer  { padding: .85rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .5rem; }

/* ─── BADGE ─── */
.badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
}
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-blue   { background: var(--primary-light); color: var(--primary); }

/* ─── ALERT ─── */
.alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 1rem;
    display: flex; align-items: flex-start; gap: .5rem;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info    { background: var(--primary-light); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border)); }

/* ─── LEAFLET PIN BADGE (3D GÖRÜNÜM DİNAMİK RENKLİ) ─── */
.leaflet-div-icon.custom-div-icon {
    background: transparent !important;
    border: none !important;
    pointer-events: auto !important;
}

.custom-div-icon .pin-badge {
    pointer-events: auto;
}

.pin-badge {
    --pin-bg: var(--primary);
    --pin-bg-dark: var(--primary-dark);
    --pin-bg-light: var(--primary-light);
    --pin-shadow: rgba(37, 99, 235, 0.5);

    position: relative;
    background: linear-gradient(135deg, var(--pin-bg-light) 0%, var(--pin-bg) 40%, var(--pin-bg-dark) 100%);
    color: #fff;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    border: 2px solid #fff;
    box-shadow: 
        0 12px 18px -4px var(--pin-shadow),
        0 4px 6px -2px var(--pin-shadow),
        inset 0 4px 6px rgba(255, 255, 255, 0.5),
        inset 0 -4px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-6px);
    z-index: 10;
}

.pin-badge::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    margin-left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 14px solid var(--pin-bg-dark);
    filter: drop-shadow(0 6px 4px rgba(0,0,0,0.4));
    z-index: -1;
}

.pin-badge:hover { 
    transform: scale(1.15) translateY(-10px);
    box-shadow: 
        0 20px 25px -5px var(--pin-shadow),
        0 10px 10px -5px var(--pin-shadow),
        inset 0 4px 6px rgba(255, 255, 255, 0.6),
        inset 0 -4px 6px rgba(0, 0, 0, 0.4);
}

.pin-badge.single { 
    --pin-bg: var(--accent);
    --pin-bg-dark: #0284c7;
    --pin-bg-light: #7dd3fc;
    --pin-shadow: rgba(14, 165, 233, 0.5);
}

/* ─── LOADING ─── */
.loading-spinner {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    gap: .5rem;
    font-size: .9rem;
}

/* ─── Sidebar Header Mobile ─── */
.sidebar-header-mobile {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── MAP POPUP ─── */
.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-md);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.custom-popup .leaflet-popup-tip {
    background: var(--surface);
}

.map-popup {
    padding: 1.25rem;
}

.popup-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.popup-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none !important;
}

.popup-btn-primary {
    background: var(--primary);
    color: #fff;
}
.popup-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.popup-btn-outline {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}
.popup-btn-outline:hover {
    background: var(--border);
    transform: translateY(-1px);
}

/* ─── PAGINATION ─── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: .75rem;
    border-top: 1px solid var(--border);
    font-size: .84rem;
    color: var(--text-muted);
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0 .5rem;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.pagination-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pagination-dots {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Hızlı Erişim Çubuğu */
.quick-access-bar {
    position: absolute;
    top: 80px;
    right: 24px;
    z-index: 1100;
    width: 300px;
    background: var(--surface);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.quick-access-bar.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.quick-access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.quick-access-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.quick-access-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-access-item .item-icon { font-size: 1.5rem; }
.quick-access-item .item-text { 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-align: center;
    color: var(--text);
}

@media (max-width: 900px) {
    .quick-access-bar {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -60%);
        width: 90%;
        max-width: 360px;
    }
    .quick-access-bar.active {
        transform: translate(-50%, -50%);
    }
}

.quick-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quick-btn span {
    font-size: 1.1rem;
}

.focus-pin {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: bounce 1s infinite alternate;
}

.focus-tooltip {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Responsive ─── */
@media (max-width: 900px) {
    .sidebar { 
        position: fixed;
        left: 12px;
        top: calc(var(--header-h) + 24px);
        bottom: 80px;
        width: calc(100% - 24px) !important;
        max-width: none;
        z-index: 1100;
    }
    .app-shell.sidebar-hidden .sidebar {
        transform: translateX(calc(-100% - 24px));
        opacity: 0;
    }
    :root { --panel-w: 100%; }
}

@media (max-width: 768px) {
    /* Admin Layout Adjustments — tablet/küçük ekran ek düzenlemeler */
    
    .admin-season-toolbar { max-width: 100%; }
    .admin-user-name { max-width: 120px; }
    
    .admin-page-title { flex-direction: column; align-items: flex-start; gap: 0.75rem; font-size: 1.2rem; }
    .admin-page-title button { align-self: stretch; justify-content: center; }
    
    .filter-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .filter-group { justify-content: space-between; }
    .filter-bar-search { max-width: none; margin-left: 0; width: 100%; }
    
    /* Tables */
    .table-wrap { margin: 0 -1.5rem; padding: 0 1.5rem; }
}

/* Masaüstünde yüzen arama kutusunu ve tab barı gizle */
.mobile-floating-search, .mobile-tab-bar { display: none !important; }

.btn-location {
    position: absolute;
    right: 20px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    color: var(--primary);
    cursor: pointer;
    transition: all .2s;
}

.btn-location:hover { transform: scale(1.05); color: var(--primary-dark); }
.btn-location:active { transform: scale(0.95); }

@media (max-width: 900px) {
    .map-pin-legend { display: none; }

    .map-container .leaflet-bottom.leaflet-right {
        bottom: 8px !important;
        right: 12px !important;
    }

    .map-container .leaflet-bottom.leaflet-left {
        bottom: 6px !important;
        left: 8px !important;
    }

    .map-container .leaflet-control-attribution {
        margin: 0 !important;
        font-size: 10px !important;
    }

    .btn-location {
        bottom: 58px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
    }
    .app-shell { 
        display: flex !important;
        flex-direction: column !important; 
        height: 100vh !important;
        overflow: hidden !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* Harita uygulaması: tam genişlik üst bar, ortada logo */
    .app-shell:not(.admin-shell) .app-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(52px + env(safe-area-inset-top, 0px)) !important;
        min-height: 52px !important;
        padding: env(safe-area-inset-top, 0px) 1rem 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--surface) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1100 !important;
    }

    .app-shell:not(.admin-shell) .header-brand {
        position: static !important;
        left: auto !important;
        transform: none !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .app-shell:not(.admin-shell) .header-brand span {
        display: inline-block !important;
        font-size: 0.95rem;
        font-weight: 700;
        max-width: min(62vw, 280px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-shell:not(.admin-shell) .header-brand img {
        height: 34px !important;
        width: auto !important;
        max-width: min(200px, 58vw) !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    .app-shell:not(.admin-shell) > .map-container {
        margin-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
        height: calc(100dvh - 52px - env(safe-area-inset-top, 0px) - 76px - env(safe-area-inset-bottom, 0px)) !important;
        flex: none !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* Admin: tam genişlik bar, sol menü + ortada logo + sağ tema */
    .admin-shell {
        padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    }

    .admin-shell .app-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(52px + env(safe-area-inset-top, 0px)) !important;
        min-height: 52px !important;
        padding: env(safe-area-inset-top, 0px) 1rem 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1100 !important;
    }

    .admin-shell .header-brand {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .admin-shell .header-brand span {
        display: none !important;
    }

    .admin-shell .header-brand img,
    .admin-shell .header-brand svg {
        margin-right: 0 !important;
    }

    .admin-shell .app-header > .btn-icon {
        position: absolute !important;
        left: 0.75rem !important;
        z-index: 3100 !important;
        margin-right: 0 !important;
    }

    .admin-shell .app-header .admin-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .admin-shell .app-header .toggle-row {
        position: absolute !important;
        right: 0.75rem !important;
        margin-right: 0 !important;
        z-index: 2 !important;
    }

    .admin-shell .app-header .header-spacer,
    .admin-shell .app-header .notification-wrapper,
    .admin-shell .app-header > .btn,
    .admin-shell .app-header > div:not(.header-brand) {
        display: none !important;
    }

    .admin-shell .app-header .btn-icon,
    .admin-shell .app-header .toggle-row {
        display: inline-flex !important;
    }

    .admin-shell {
        flex-direction: column;
    }

    .mobile-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg-overlay);
        backdrop-filter: blur(2px);
        z-index: 2900;
        animation: fadeIn 0.3s ease;
    }

    .mobile-overlay-passive {
        pointer-events: none !important;
    }

    .admin-nav {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        max-width: 85vw !important;
        z-index: 3000 !important;
        transition: left 0.3s ease !important;
        background: var(--surface-solid) !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: calc(52px + env(safe-area-inset-top, 0px) + 1rem) 1rem 1.5rem !important;
        border-right: 1px solid var(--border) !important;
        pointer-events: none;
        -webkit-overflow-scrolling: touch;
    }

    .admin-shell.mobile-menu-open .admin-nav {
        left: 0 !important;
        pointer-events: auto;
    }

    .admin-shell.sidebar-hidden .admin-nav {
        width: 280px !important;
        max-width: 85vw !important;
        overflow-y: auto !important;
    }

    .admin-nav::-webkit-scrollbar { width: 4px; }
    .admin-nav-item { white-space: normal; padding: 0.65rem 1rem; }

    .sidebar { 
        position: fixed !important; 
        left: -100% !important; 
        top: 0 !important;
        height: 100vh !important; 
        width: 100% !important; 
        z-index: 3000 !important; /* En üstte olsun */
        transition: left 0.3s ease !important; 
        background: var(--surface) !important;
        flex-direction: column !important;
        display: flex !important;
        padding-bottom: 80px !important;
    }

    .app-shell:not(.sidebar-hidden) .sidebar { 
        left: 0 !important; 
    }
    
    .mobile-tab-bar {
        position: fixed !important;
        bottom: 12px !important; 
        left: 12px !important; 
        right: 12px !important;
        height: 64px !important;
        background: var(--surface) !important;
        backdrop-filter: var(--glass) !important;
        -webkit-backdrop-filter: var(--glass) !important;
        border: 1px solid var(--border) !important;
        border-radius: 20px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-around !important;
        z-index: 2500 !important;
        box-shadow: var(--shadow-lg) !important;
    }

    .tab-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        color: var(--text-muted) !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        border: none !important;
        background: transparent !important;
        flex: 1 !important;
        height: 100% !important;
        box-shadow: none !important;
    }

    .tab-item svg {
        width: 22px !important;
        height: 22px !important;
        color: inherit !important;
    }

    .tab-item.active {
        color: var(--primary) !important;
    }

    .app-header .btn-icon, .app-header .btn-admin, .app-header .toggle-row { display: none !important; } 
    .admin-shell .app-header .btn-icon, .admin-shell .app-header .toggle-row { display: inline-flex !important; }
    .acenta-container .app-header .btn-icon, .acenta-container .app-header .toggle-row { display: inline-flex !important; }
    
    .map-container { 
        position: relative !important;
        flex: 1 !important;
        min-height: 0 !important;
        width: 100% !important;
        top: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 100 !important;
        display: block !important;
    }

    #map {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .map-info-bar { display: none !important; }

    .sidebar-header-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1.25rem !important;
        border-bottom: 1px solid var(--border) !important;
        background: var(--surface) !important;
    }

    .sidebar-header-mobile h3 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    .btn-close-sidebar {
        background: var(--bg) !important;
        border: none !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        color: var(--text) !important;
    }

    .quick-access-bar { 
        position: fixed !important;
        bottom: 0 !important; 
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important; 
        background: var(--surface) !important;
        z-index: 2800 !important;
        padding: 1.5rem !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        display: none !important; /* Varsayılan kapalı */
        flex-direction: column !important;
        gap: 1rem !important;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .app-shell.quick-access-visible .quick-access-bar {
        display: flex !important;
        transform: translateY(0);
        bottom: 65px !important; /* Tab barın üstünde */
    }

    .quick-access-title { 
        display: block !important; 
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .quick-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 1rem !important;
        background: var(--bg) !important;
        border-radius: 12px !important;
    }

    .detail-panel { 
        position: fixed !important;
        bottom: 0 !important; 
        left: 0 !important;
        right: 0 !important;
        width: 100% !important; 
        max-height: 80vh !important; 
        border-radius: 20px 20px 0 0 !important; 
        z-index: 4000 !important;
        background: var(--surface) !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }
    
    .detail-panel.hidden { 
        transform: translateY(110%) !important;
        pointer-events: none !important;
    }

    .mobile-tab-bar {
        display: flex !important;
    }
    
    .sidebar-header-mobile {
        display: flex !important;
    }
}

/* ─── DESKTOP SPECIFIC OVERRIDES ─── */
@media (min-width: 901px) {
    .app-shell:not(.sidebar-hidden) .sidebar {
        width: var(--sidebar-w) !important;
        left: 0 !important;
        position: relative !important;
    }
    
    .map-container {
        flex: 1 !important;
        position: relative !important;
    }

    .quick-access-bar {
        display: none !important;
    }

    .quick-access-title {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--text-muted);
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }

    .quick-btn {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.6rem 0.75rem;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .quick-btn:hover {
        background: var(--primary-light);
        border-color: var(--primary);
        color: var(--primary);
    }

    .map-info-bar {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--surface);
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        box-shadow: var(--shadow-md);
        z-index: 500;
        font-size: 0.85rem;
        color: var(--text-muted);
        border: 1px solid var(--border);
        white-space: nowrap;
    }
}
/* ─── RTL DESTEĞİ (ARAPÇA) ─── */
[dir="rtl"] .sidebar { left: auto !important; right: 12px !important; }
[dir="rtl"] .app-shell.sidebar-hidden .sidebar { right: -100% !important; }
[dir="rtl"] .header-brand { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .header-brand img { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .btn-admin svg { margin-left: 0.5rem; margin-right: 0; }
[dir="rtl"] .header-link .link-icon { margin-right: 0; margin-left: 0.4rem; }
[dir="rtl"] .header-links { margin-left: 0; margin-right: 2rem; }
[dir="rtl"] .toggle-row { margin-right: 0; margin-left: 1.5rem; border-right: none; border-left: 1px solid var(--border); padding-right: 0; padding-left: 1.5rem; }
[dir="rtl"] .search-input { padding: .75rem 2.5rem .75rem 1rem; }
[dir="rtl"] .search-input-icon { left: auto; right: 1rem; }
[dir="rtl"] .sidebar-select { padding: .7rem 1rem .7rem 2.25rem; background-position: left 1rem center; }
[dir="rtl"] .detail-panel { left: 12px; right: auto; }
[dir="rtl"] .detail-panel.hidden { transform: translateX(calc(-100% - 24px)); }

/* ─── KVKK HARİTA FOOTER ─── */
.kvkk-public-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    text-align: center;
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-top: 1px solid var(--border);
    white-space: nowrap;
    pointer-events: auto;
}

.kvkk-public-footer a {
    color: inherit;
    text-decoration: none;
}

.kvkk-public-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .kvkk-public-footer {
        display: none;
    }
}

/* ─── YARDIMCI SINIFLAR ─── */
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 901px) {
    .mobile-only { display: none !important; }
}

/* Premium Modallar için CSS */
.premium-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}

.premium-modal-content {
    background: var(--surface-solid);
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text);
    border: 1px solid var(--border);
}

.premium-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.premium-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-btn-close {
    background: var(--surface2);
    border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.premium-btn-close:hover {
    background: var(--border);
    color: var(--text);
}

.premium-modal-body {
    padding: 1.5rem;
}

.premium-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface2);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.yil-tarih-tablo-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.yil-tarih-tablo {
    margin: 0;
    font-size: 0.875rem;
}

.yil-tarih-tablo thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.yil-tarih-tablo tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.yil-tarih-tablo tbody tr:last-child td {
    border-bottom: none;
}

.yil-tarih-tablo .yil-tarih-grup-baslik td {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
}

.yil-tarih-input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
}

.premium-form-group {
    margin-bottom: 1.25rem;
}
.premium-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
}
.input-with-icon input, .input-with-icon select, .input-with-icon .form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.input-with-icon input:focus, .input-with-icon select:focus, .input-with-icon .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* ─── AUTH SUBPAGES ─── */
.auth-subpage {
    flex: 1 1 100%;
    width: 100%;
    min-height: calc(100vh - var(--header-h) - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-sizing: border-box;
}

.auth-subpage-in-app {
    min-height: auto;
    align-items: flex-start;
    padding: 1.75rem 1.25rem 3rem;
    background: var(--bg, #f1f5f9);
}

.auth-subpage-in-app .auth-card {
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-back:hover {
    color: #5E8B42;
}

.auth-card h2 {
    margin: 0 0 0.5rem;
    color: #1e293b;
    font-size: 1.35rem;
}

.auth-card p {
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.auth-card .form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.auth-card .btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    background: #5E8B42;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-card .btn-submit:hover {
    background: #4a7334;
}

.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    line-height: 1.45;
}

.auth-alert.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.auth-alert.warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.auth-alert.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.auth-link { color: #5E8B42; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* ─── ADMIN ORTAK BİLEŞENLER ─── */
.admin-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
}

.admin-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--text);
}

.admin-card-body { padding: 1.25rem; }

.admin-table tbody td {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: var(--surface2);
}

/* Premium admin sayfa bileşenleri */
.premium-page-header {
    border-bottom-color: var(--border) !important;
}

.premium-page-title { color: var(--text) !important; }
.premium-page-subtitle { color: var(--text-muted) !important; }

.premium-stat-card {
    background: var(--surface-solid) !important;
    border-color: var(--border) !important;
    color: var(--text);
    box-shadow: var(--shadow-md) !important;
}

.premium-stat-card.gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.premium-stat-card.gradient-primary .premium-stat-label,
.premium-stat-card.gradient-primary .premium-stat-value,
.premium-stat-card.gradient-primary i {
    color: #ffffff !important;
}

.premium-stat-card.warning-border {
    background: var(--warning-surface) !important;
}

.premium-stat-card.warning-border .premium-stat-label {
    color: var(--warning-text) !important;
}

.premium-stat-card.warning-border .premium-stat-value {
    color: var(--warning-text) !important;
}

.premium-stat-card .text-gray-800,
.premium-stat-value.text-gray-800 {
    color: var(--text) !important;
}

.premium-acenta-card {
    background: var(--surface-solid) !important;
    border-color: var(--border) !important;
    color: var(--text);
}

.premium-progress-bar {
    background: var(--surface2) !important;
}

.premium-search-box input {
    background: var(--input-bg) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.premium-search-box input:focus {
    background: var(--surface-solid) !important;
    border-color: var(--primary) !important;
}

.premium-search-icon { color: var(--text-muted) !important; }

.premium-btn-secondary,
.premium-btn-outline-light {
    background: var(--surface2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.premium-btn-secondary:hover,
.premium-btn-outline-light:hover {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.acenta-card-name { color: var(--accent-title) !important; font-weight: 700; font-size: 1.15rem; }
.acenta-card-meta { color: var(--text-muted) !important; font-size: 0.85rem; }
.acenta-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.95rem; color: var(--text-muted);
    background: var(--surface2); padding: 0.75rem; border-radius: 8px;
}
.acenta-stat-row strong { color: var(--text); font-weight: 700; }
.acenta-alert-missing {
    background: var(--danger-surface); color: var(--danger-text);
    font-size: 0.85rem; font-weight: 500; padding: 0.5rem 0.75rem;
    border-radius: 8px; display: flex; align-items: center; gap: 0.5rem; margin-top: -0.5rem;
}
.acenta-medine-label { color: var(--text-muted); font-weight: 500; }
.acenta-medine-value { color: var(--text); font-weight: 700; }
.acenta-kalan { font-size: 0.8rem; color: var(--text-muted); text-align: right; margin-top: 0.4rem; font-weight: 500; }

.masar-filter-bar {
    display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center;
    background: var(--surface2); padding: 0.4rem; border-radius: 12px;
    border: 1px solid var(--border);
}

.premium-info-box,
.premium-modal-desc {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text);
}

.premium-form-group label { color: var(--text-muted) !important; }

.input-with-icon input,
.input-with-icon select,
.input-with-icon .form-control,
.premium-textarea {
    background: var(--input-bg) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.yil-tarih-tablo-wrap,
.yil-tarih-tablo thead th,
.yil-tarih-tablo tbody td {
    background: var(--surface-solid);
    border-color: var(--border);
    color: var(--text);
}

/* Rapor sekmeleri */
.rapor-tab {
    background: var(--surface-solid);
    border-color: var(--border);
    color: var(--text-muted);
}
.rapor-tab.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

/* Bootstrap override — admin panel */
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-outline-secondary {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-outline:hover {
    background: var(--surface);
    color: var(--text);
}

[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control,
[data-theme="dark"] select,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]) {
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] tbody td,
[data-theme="dark"] tbody tr {
    background: transparent;
    color: var(--text);
}

[data-theme="dark"] .admin-content {
    background: var(--bg);
}

[data-theme="dark"] .admin-shell .admin-nav {
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.2);
}
