/* ══════════════════════════════════════════════════════════════════════════
   Grupo Capoeira Brasil — İki Modlu Etkileşimli Dünya Haritası ve Pano
   Tema: Koyu Zemin (#0b0b0b) & GCB Altın Sarısı (#FFD000)
   ══════════════════════════════════════════════════════════════════════════ */

.map-page-main {
    padding-top: 85px;
    min-height: 100vh;
    background-color: #0b0b0b;
    display: flex;
    flex-direction: column;
}

.map-header-section {
    padding: 1.75rem 1.25rem 1.25rem;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.map-page-badge {
    display: inline-block;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 208, 0, 0.08);
    border: 1px solid rgba(255, 208, 0, 0.28);
    color: var(--primary-yellow);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 0.65rem;
}

.map-page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.map-page-title span {
    color: var(--primary-yellow);
}

.map-page-subtitle {
    color: #9c9c9c;
    font-size: 0.98rem;
    max-width: 620px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
}

/* ── İki Farklı Görünüm Modu Seçici Barı ── */
.map-mode-toggle-bar {
    display: inline-flex;
    align-items: center;
    background: #141414;
    border: 1px solid #282828;
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.mode-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.mode-toggle-btn .mode-icon {
    font-size: 1rem;
    line-height: 1;
}

.mode-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.mode-toggle-btn.active {
    background: var(--primary-yellow);
    color: #0b0b0b;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(255, 208, 0, 0.35);
}

/* ── Harita Sahnesi Çerçevesi ── */
.map-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-viewport {
    position: relative;
    width: 100%;
    height: clamp(460px, 68vh, 720px);
    background: #0f0f0f;
    border: 1px solid #222222;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

#world-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
}

/* ── Ülke Odaklı Görünümde Açılan Üst Navigasyon Çubuğu ── */
.map-top-nav {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 25;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.map-top-nav.visible {
    opacity: 1;
    visibility: visible;
}

.map-back-btn {
    pointer-events: auto;
    background: #181818;
    border: 1px solid #333333;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.map-back-btn:hover {
    background: #252525;
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-1px);
}

.country-focus-badge {
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid #2e2e2e;
    backdrop-filter: blur(8px);
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.country-name-text {
    color: var(--primary-yellow);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.country-city-count {
    color: #9e9e9e;
    font-size: 0.82rem;
    font-weight: 600;
    border-left: 1px solid #383838;
    padding-left: 0.65rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   SVG KATMANLARI VE COĞRAFİ ÇİZİMLER
   ══════════════════════════════════════════════════════════════════════════ */

/* Dünya Haritası Arka Plan Ülkeleri (GCB olmayan) */
.layer-world-background {
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.country-path-non-gcb {
    fill: #191919;
    stroke: #2a2a2a;
    stroke-width: 0.65px;
    vector-effect: non-scaling-stroke;
}

/* ── GCB Ülke Grupları (Dünya ve Pano Arasında Transform Olanlar) ── */
.gcb-country-group {
    cursor: pointer;
    outline: none;
}

.gcb-country-shape {
    fill: rgba(255, 208, 0, 0.22);
    stroke: var(--primary-yellow);
    stroke-width: 1.2px;
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.gcb-country-group:hover .gcb-country-shape,
.gcb-country-group:focus-visible .gcb-country-shape {
    fill: rgba(255, 208, 0, 0.48);
    stroke: #ffffff;
    stroke-width: 1.8px;
    filter: drop-shadow(0 0 12px rgba(255, 208, 0, 0.55));
}

/* ── GCB Ülkeleri Pano Kartları (Grid Mode) ── */
.layer-grid-cards {
    transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.grid-card-group {
    cursor: pointer;
    outline: none;
}

.grid-card-bg {
    fill: #141414;
    stroke: #252525;
    stroke-width: 1px;
    transition: all 0.25s ease;
}

.grid-card-group:hover .grid-card-bg,
.grid-card-group:focus-visible .grid-card-bg {
    fill: #1a1a1a;
    stroke: var(--primary-yellow);
    stroke-width: 1.5px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
}

.grid-card-country-name {
    fill: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
    letter-spacing: 0.3px;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.grid-card-group:hover .grid-card-country-name {
    fill: var(--primary-yellow);
}

.grid-card-city-count {
    fill: #8a8a8a;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
}

.grid-card-hint {
    fill: rgba(255, 208, 0, 0.65);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: 0.4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.grid-card-group:hover .grid-card-hint {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   ÜLKE ODAKLI GÖRÜNÜM (Country-Focused View) & ÇAKIŞMAYAN ŞEHİR PİNLERİ
   ══════════════════════════════════════════════════════════════════════════ */

.layer-country-focus {
    transition: opacity 0.4s ease;
}

.focused-country-outline {
    fill: rgba(255, 208, 0, 0.12);
    stroke: var(--primary-yellow);
    stroke-width: 1.8px;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 24px rgba(255, 208, 0, 0.2));
}

/* Şehir Noktaları */
.city-marker-group {
    cursor: pointer;
    outline: none;
}

.city-leader-line {
    stroke: rgba(255, 208, 0, 0.55);
    stroke-width: 1.2px;
    stroke-dasharray: 2, 2;
    pointer-events: none;
    transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.city-marker-group:hover .city-leader-line,
.city-marker-group.is-highlighted .city-leader-line {
    stroke: #ffffff;
    stroke-width: 1.8px;
    stroke-dasharray: none;
}

.city-pin-outer {
    fill: rgba(255, 208, 0, 0.28);
    transition: transform 0.25s ease, fill 0.25s ease;
    transform-origin: center;
}

.city-pin-core {
    fill: var(--primary-yellow);
    stroke: #111111;
    stroke-width: 1.5px;
    transition: fill 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.city-marker-group:hover .city-pin-core,
.city-marker-group.is-highlighted .city-pin-core {
    fill: #ffffff;
    stroke: var(--primary-yellow);
    stroke-width: 2.2px;
    transform: scale(1.35);
}

.city-label-bg {
    fill: rgba(14, 14, 14, 0.94);
    stroke: rgba(255, 208, 0, 0.5);
    stroke-width: 1px;
    rx: 5px;
    ry: 5px;
    transition: stroke 0.2s ease, fill 0.2s ease;
}

.city-marker-group:hover .city-label-bg,
.city-marker-group.is-highlighted .city-label-bg {
    fill: var(--primary-yellow);
    stroke: var(--primary-yellow);
}

.city-label-text {
    fill: #f5f5f5;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.city-marker-group:hover .city-label-text,
.city-marker-group.is-highlighted .city-label-text {
    fill: #0b0b0b;
}

/* ── Ülke Odaklı Şehir Listesi Barı (Alt Bölüm) ── */
.country-cities-panel {
    max-width: 1320px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    display: none;
}

.country-cities-panel.visible {
    display: block;
}

.cities-panel-inner {
    background: #141414;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
}

.cities-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #9e9e9e;
    margin-bottom: 0.85rem;
}

.cities-panel-title strong {
    color: var(--primary-yellow);
    font-weight: 800;
}

.cities-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.city-pill-btn {
    background: #1c1c1c;
    border: 1px solid #333333;
    color: #e5e5e5;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-pill-btn:hover,
.city-pill-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #0b0b0b;
    font-weight: 800;
    transform: translateY(-1px);
}

/* ── Sade Bilgi İpucu (Tooltip) ── */
.map-simple-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: #151515;
    border: 1px solid rgba(255, 208, 0, 0.5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
    transition: opacity 0.12s ease;
    max-width: 270px;
}

.map-simple-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-country-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.tooltip-country-title {
    color: var(--primary-yellow);
    font-size: 0.96rem;
    font-weight: 800;
}

.tooltip-badge {
    color: #9e9e9e;
    font-size: 0.76rem;
    background: #242424;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.tooltip-cities-label {
    color: #7a7a7a;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.tooltip-cities-list {
    color: #f0f0f0;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ── Tercih Edilen Azaltılmış Hareket (prefers-reduced-motion) ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Mobil Uyumluluk ── */
@media (max-width: 768px) {
    .map-header-section {
        padding: 1.25rem 1rem 0.85rem;
    }

    .map-mode-toggle-bar {
        width: 100%;
        max-width: 330px;
    }

    .mode-toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.82rem;
    }

    .map-viewport {
        height: 420px;
        border-radius: 10px;
    }
}
