* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d0d14;
    color: #f0f0f0;
}

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

/* SEO: arama motorları ve ekran okuyucular için var, görsel olarak gizli */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* --- Üst Menü --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    background: #14141c;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
}

.nav-brand {
    font-size: 19px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 32px;
    max-width: 160px;
    object-fit: contain;
}

.site-footer {
    padding: 30px 24px;
    text-align: center;
    background: #14141c;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-links a:hover {
    color: #FF6B6B;
}

/* Harita sayfasında (tam ekran) footer gösterilmez */
body:has(#map) .site-footer {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.nav-links > a,
.nav-dropdown-toggle {
    color: rgba(255,255,255,0.85);
    background: none;
    border: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.nav-links > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    background: rgba(255,255,255,0.1);
}

.nav-active {
    background: rgba(255,107,107,0.2);
    color: #FF6B6B !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #1c1c26;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    max-height: 70vh;
    overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-dropdown-menu a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
}

.nav-count {
    opacity: 0.5;
    font-size: 12px;
}

.nav-dropdown-text {
    width: 260px;
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}

.nav-dropdown-text p + p {
    margin-top: 8px;
}

.nav-search {
    position: relative;
    flex-shrink: 0;
}

.nav-search input {
    width: 220px;
    padding: 9px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 13px;
    outline: none;
}

.nav-search input:focus {
    border-color: #FF6B6B;
    background: rgba(255,255,255,0.12);
}

.nav-search input::placeholder {
    color: rgba(255,255,255,0.4);
}

.nav-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: min(320px, calc(100vw - 24px));
    max-height: 70vh;
    overflow-y: auto;
    background: #1c1c26;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    display: none;
}

.nav-search-results.open {
    display: block;
}

.result-group + .result-group {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.result-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    padding: 10px 12px 4px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    color: white;
    transition: background 0.15s;
}

.result-item:hover {
    background: rgba(255,255,255,0.08);
}

.result-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.result-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.result-label {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-sub {
    font-size: 11px;
    opacity: 0.5;
}

.search-empty {
    padding: 14px 12px;
    opacity: 0.5;
    font-size: 13px;
}

/* Harita sayfasında #pageBody'nin pages.css'ten gelen ortalanmış/dolgulu içerik
   kutusu istenmiyor - #map kendi konumunu tam ekran absolute olarak zaten yönetiyor */
#pageBody:has(#map) {
    padding: 0;
    max-width: none;
    margin: 0;
}

/* --- Harita --- */
#map {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
}

.leaflet-marker-icon {
    cursor: pointer;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(76, 175, 80, 0.5);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(76, 175, 80, 0.85);
    color: white;
    font-weight: bold;
}

/* --- Yükleme Göstergesi --- */
.loading {
    position: fixed;
    top: 76px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* --- Alt Oynatıcı Çubuğu --- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #14141c;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.25s ease;
}

.player-bar.hidden {
    transform: translateY(100%);
}

.player-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.player-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.player-info {
    min-width: 0;
    flex-shrink: 1;
    width: 200px;
}

.player-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-sub {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ctrl-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ctrl-btn:hover {
    background: #FF6B6B;
}

.player-controls input[type="range"] {
    width: 120px;
    accent-color: #FF6B6B;
}

.ctrl-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ctrl-close:hover {
    background: rgba(255,107,107,0.4);
}

/* --- Mobil: menü hamburger'a toplanır, dropdown'lar tam-genişlik açılır panel olur --- */
@media (max-width: 768px) {
    .top-nav {
        gap: 12px;
        padding: 0 14px;
        flex-wrap: nowrap;
    }

    .nav-mobile-toggle {
        display: block;
        order: 1;
    }

    .nav-search {
        order: 2;
        flex: 1;
        min-width: 0;
    }

    .nav-search input {
        width: 100%;
    }

    .nav-search-results {
        left: 0;
        right: 0;
        width: auto;
    }

    .nav-links {
        display: none;
        order: 3;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #14141c;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 10px 14px 16px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a,
    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 12px;
        font-size: 15px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.04);
    }
}

/* --- Çok dar ekranlar: alt oynatıcıdan gereksiz alanı kaldır --- */
@media (max-width: 480px) {
    .player-bar-inner {
        gap: 10px;
        padding: 8px 12px;
    }
    .player-info {
        width: 90px;
    }
    .player-controls {
        gap: 6px;
    }
    .player-controls input[type="range"] {
        display: none;
    }
    .player-logo {
        width: 36px;
        height: 36px;
    }
}
