/**
 * OpenGeoData - Veri Kataloğu Sayfası Stilleri
 * Ortak tokenlar ve bileşenler: styles.css
 */
/* OpenGeoData Uygulamasına Özel İnce Stil Dokunuşları */
.ogd-app-hero {
    background: linear-gradient(180deg, #ecfdf5 0%, var(--color-bg) 100%);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    border-bottom: 1px solid #d1fae5;
}

.ogd-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 1rem;
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: 30px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.ogd-app-badge-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: -0.02em;
}

.ogd-app-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #065f46;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ogd-app-hero p {
    max-width: 680px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.ogd-search-box {
    max-width: 580px;
    margin: 0 auto 2rem;
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1.5px solid #a7f3d0;
    box-shadow: var(--shadow-md);
}

.ogd-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--color-text);
}

/* Kataloğun İnteraktif Layout'u */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.catalog-sidebar {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: #f0fdf4;
    color: #047857;
}

.category-btn.active {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.cat-btn-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cat-svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.category-btn:hover .cat-svg,
.category-btn.active .cat-svg {
    color: #047857;
}

.category-count {
    font-size: 0.8rem;
    background: #f1f5f9;
    color: var(--color-text-muted);
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    font-weight: 600;
}

.category-btn.active .category-count {
    background: #d1fae5;
    color: #047857;
}

.catalog-detail-panel {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.detail-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #d1fae5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Başlık/açıklamayı taşıyan flex öğesi. `min-width: 0` OLMADAN varsayılan
   `min-width: auto` yüzünden öğe içeriğinin min-content genişliğinin altına
   inemez: panelden girilmiş uzun bir katman adı .detail-header'ı (290px)
   aşıp sayfayı 375px'te yatay kaydırmaya zorluyordu. Aynı tuzağın grid
   sürümü CLAUDE.md'de kayıtlı (.catalog-detail-panel / .catalog-sidebar). */
.detail-header > div {
    min-width: 0;
}

.detail-header h3,
.detail-header p {
    /* Katman adı ve açıklaması panelden serbest metin; uzun bir "kelime"
       (ör. bir URL ya da kaçırılmış bir XSS yükü) satır sonunda kırılabilsin. */
    overflow-wrap: break-word;
}

.detail-header h3 {
    font-size: 1.5rem;
    color: #065f46;
    font-weight: 700;
}

.detail-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
}

.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.layer-chip {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.layer-chip:hover {
    background: #d1fae5;
    border-color: #059669;
    transform: translateY(-1px);
}

.layer-chip.active-layer {
    background: #047857 !important;
    color: white !important;
    border-color: #065f46 !important;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

.attr-chip {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
}

.meta-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    /* meta değerleri panelden serbest metin (kaynak URL'si, lisans adı…).
       min-width olmadan grid öğesi içeriğinin min-content genişliğinin
       altına inemez ve minmax(170px, 1fr) track'i şişip .meta-info-grid'i
       taşırır — 390px'te sayfa yatay kayardı. */
    min-width: 0;
}

.meta-label {
    font-size: 0.725rem;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Custom Modal System ===== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem;
    animation: fadeIn 0.25s ease;
}

.custom-modal-card {
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-header {
    padding: 1.25rem 1.5rem;
    background: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
}

.custom-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #d1fae5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.custom-modal-close:hover {
    color: #047857;
}

.custom-modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    overflow-wrap: break-word;
}

.geom-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    margin-top: 0.25rem;
    font-family: monospace;
    border: 1px solid #cbd5e1;
}

.search-feedback {
    max-width: 580px;
    margin: 0.85rem auto 0;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.925rem;
    text-align: center;
}

.search-feedback.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.search-feedback.empty {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.search-highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.highlighted-chip {
    background: var(--accent-orange) !important;
    color: white !important;
    border-color: var(--accent-orange-hover) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-sm);
}

/* ETL Akış Adımları */
.etl-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.etl-step-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #047857;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.etl-step-card h4 {
    font-size: 1rem;
    color: #065f46;
    margin-bottom: 0.4rem;
}

.etl-step-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }
    .etl-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Ağaç Sidebar (Tree) Stilleri === */
.catalog-tree-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.5rem 0.25rem 0.75rem;
    border-bottom: 1px solid #d1fae5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tree-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}

.tree-group.active {
    border-color: #a7f3d0;
}

.tree-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    background: #f8fafc;
    user-select: none;
    transition: background 0.18s;
    gap: 0.5rem;
}

.tree-group.active .tree-group-header {
    background: #ecfdf5;
}

.tree-group-header:hover {
    background: #f0fdf4;
}

.tree-group-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    min-width: 0;
}

.tree-group.active .tree-group-title {
    color: #047857;
}

.tree-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #64748b;
}

.tree-group.active .tree-icon {
    color: #047857;
}

.tree-arrow {
    font-size: 0.65rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.tree-group.active .tree-arrow {
    color: #047857;
}

.tree-layers {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0.5rem 0.5rem;
    gap: 0.2rem;
    background: white;
}

.tree-layer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.825rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    border: 1px solid transparent;
    word-break: break-word;
    line-height: 1.35;
}

.tree-layer-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.tree-layer-item:hover {
    background: #f0fdf4;
    color: #047857;
    border-color: #d1fae5;
}

.tree-layer-item:hover svg {
    opacity: 0.9;
    color: #047857;
}

.tree-layer-item.active {
    background: #047857;
    color: white;
    font-weight: 700;
    border-color: #065f46;
    box-shadow: 0 2px 8px rgba(4,120,87,0.2);
}

.tree-layer-item.active svg {
    opacity: 1;
    color: white;
}

/* === Breadcrumb === */
.catalog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.825rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb-item.active {
    color: #047857;
    font-weight: 700;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-weight: 700;
}

/* === Katalog Sekme Navigasyonu === */
.catalog-tabs-nav {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: all 0.18s;
}

.tab-btn:hover {
    color: #047857;
    background: #f0fdf4;
}

.tab-btn.active {
    color: #047857;
    border-bottom-color: #047857;
    background: transparent;
}

/* === Öznitelik Filtresi & Tablo === */
.attr-filter-box {
    margin-bottom: 1rem;
}

.attr-filter-box input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.attr-filter-box input:focus {
    border-color: #a7f3d0;
    box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.3);
}

.attr-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

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

.attr-table thead tr {
    background: #f0fdf4;
}

.attr-table th {
    padding: 0.65rem 0.9rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
    border-bottom: 2px solid #d1fae5;
    white-space: nowrap;
}

.attr-table td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

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

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

.code-badge {
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.type-badge {
    font-family: monospace;
    font-size: 0.78rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.null-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.null-badge.nullable {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.null-badge.not-null {
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.sample-val {
    font-family: monospace;
    font-size: 0.8rem;
    color: #475569;
}

/* Meta grid değer */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}


/* ══════════════════════════════════════════════════════════════════════
   Ağaç öğeleri artık <button> — tarayıcı varsayılanlarını sıfırla
   ══════════════════════════════════════════════════════════════════════ */
.tree-group-header,
.tree-layer-item {
    width: 100%;
    font-family: inherit;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.tree-group-header {
    border: none;
}

.tree-layer-item {
    background: transparent;
}

.tree-group-header:focus-visible,
.tree-layer-item:focus-visible,
.tab-btn:focus-visible {
    outline: 2px solid #047857;
    outline-offset: -2px;
}

/* ── Meta grid vurgusu ─────────────────────────────────────────────── */
.meta-item.highlight {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.meta-item.highlight .meta-value {
    color: #065f46;
    font-weight: 700;
}

.meta-value.strong {
    font-weight: 700;
    color: #047857;
}

.breadcrumb-item.current {
    color: #047857;
    font-weight: 700;
}

/* ── Harita önizleme kutusu ────────────────────────────────────────── */
.map-preview-box {
    position: relative;
}

.map-preview-canvas {
    height: 440px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.map-legend-box {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: var(--shadow-sm);
    max-width: calc(100% - 24px);
}

/* ── İndirme sekmesi ───────────────────────────────────────────────── */
.download-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.download-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin panelinden dosya yüklenmiş formatlarda yeşil nokta göster */
.download-actions .btn.has-file::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

/* ── İndirme modalı içeriği ────────────────────────────────────────── */
.dl-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dl-path {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

.dl-path-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dl-path-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-weight: 700;
    color: #065f46;
    font-size: 1.05rem;
    margin-top: 0.15rem;
}

.dl-arrow {
    color: #34d399;
}

.dl-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
    font-size: 0.875rem;
}

.dl-fact {
    background: #f8fafc;
    padding: 0.65rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.dl-fact-label {
    color: #64748b;
    font-size: 0.75rem;
    display: block;
}

.dl-fact strong {
    color: #0f172a;
}

.modal-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.modal-notice svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.modal-notice.ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.modal-notice.warn {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

/* ── Mobil ağaç aç/kapa ────────────────────────────────────────────── */
#treeContainer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tree-mobile-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #065f46;
    cursor: pointer;
}

.tree-mobile-toggle .chevron {
    transition: transform 0.2s;
}

.catalog-sidebar.mobile-open .tree-mobile-toggle .chevron {
    transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .catalog-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.75rem;
    }

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

    .ogd-grid {
        grid-template-columns: 1fr;
    }

    /* Ağaç mobilde varsayılan kapalı, butonla açılır */
    .tree-mobile-toggle {
        display: flex;
    }

    .catalog-sidebar {
        position: sticky;
        top: 68px;
        z-index: 20;
        padding: 0.85rem;
    }

    .catalog-tree-title {
        display: none;
    }

    #treeContainer {
        display: none;
    }

    .catalog-sidebar.mobile-open #treeContainer {
        display: flex;
        max-height: 55vh;
        overflow-y: auto;
    }

    /* Sekmeler taşmasın, yatay kaysın */
    .catalog-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Öznitelik tablosu kaydırılabilir kalsın, kolonlar ezilmesin */
    .attr-table {
        min-width: 680px;
    }

    .map-preview-canvas {
        height: 360px;
    }
}

@media (max-width: 700px) {
    .ogd-app-hero {
        padding: 3rem 0 2.5rem;
    }

    .ogd-app-hero h1 {
        font-size: 1.85rem;
    }

    .ogd-search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .ogd-search-box .btn {
        width: 100%;
    }

    .catalog-detail-panel {
        padding: 1.1rem;
    }

    .detail-header {
        gap: 0.75rem;
    }

    .meta-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .etl-steps-grid {
        grid-template-columns: 1fr;
    }

    .download-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .download-actions .btn {
        justify-content: center;
    }

    .custom-modal-card {
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
    }

    .map-preview-canvas {
        height: 300px;
    }
}

@media (max-width: 520px) {
    .ogd-app-hero h1 {
        font-size: 1.55rem;
    }

    .detail-header-icon {
        display: none;
    }

    .catalog-breadcrumb {
        font-size: 0.75rem;
    }

    /* Küçük ekranda sekmelerde sadece ikon */
    .tab-btn span {
        display: none;
    }

    .tab-btn {
        padding: 0.6rem 0.9rem;
    }

    .dl-path-value {
        font-size: 0.95rem;
    }

    .map-preview-canvas {
        height: 260px;
    }
}

/* 2 kolonlu servis kartı gridi (mobilde tek kolona düşer) */
.ogd-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .ogd-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Grid taşma düzeltmesi
   `grid-template-columns: 280px 1fr` içinde 1fr track'i, varsayılan
   `min-width: auto` yüzünden içeriğinin min-content genişliğinin altına
   inemez. Öznitelik tablosu geniş olduğunda track büyüyüp tüm sayfayı
   yatay kaydırılabilir yapıyordu. min-width:0 ile track daralabiliyor ve
   .attr-table-wrapper'daki overflow-x:auto devreye giriyor.
   ══════════════════════════════════════════════════════════════════════ */
.catalog-detail-panel,
.catalog-sidebar {
    min-width: 0;
}

.attr-table-wrapper {
    max-width: 100%;
}

/* ── İl bazlı indirme listesi (bina) ─────────────────────────────────── */
/* Bina tek dosya değil 81 GPKG; modal manifest'ten okunan aranabilir bir
   liste gösteriyor. */
.il-liste-aciklama { font-size: 0.85rem; color: #64748b; margin-bottom: 0.6rem; }

/* .form-control admin paneline ait, bu sayfada tanımlı DEĞİL — bu yüzden
   arama kutusu .attr-filter-box input ile aynı görünümü burada kuruyor. */
.il-arama {
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 0.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.il-arama:focus {
    border-color: #a7f3d0;
    box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.3);
}

.il-liste { max-height: 320px; overflow-y: auto; }
.il-satir {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem 0.2rem;
    border-bottom: 1px solid #e2e8f0;
}
/* min-width:0 olmadan uzun il adı 1fr sütununu içeriğinin altına
   sıkıştıramaz ve satır yatay taşmaya zorlar. */
.il-ad { font-weight: 600; min-width: 0; }
.il-sayi, .il-boyut { font-size: 0.78rem; color: #64748b; white-space: nowrap; }
.il-indir { padding: 0.25rem 0.7rem; font-size: 0.78rem; }
.il-liste-bos { padding: 1rem 0; color: #64748b; text-align: center; }

@media (max-width: 520px) {
    .il-satir { grid-template-columns: 1fr auto; row-gap: 0.2rem; }
    .il-boyut { grid-column: 1; }
}
