/* Devredin tarzı tek harita bölümü */
.harita-section--devredin {
    padding: 3rem 0 4rem;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.harita-section__container {
    max-width: 80rem;
}

.harita-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.harita-section__eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #44403c;
    margin-bottom: 0.25rem;
}

.harita-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0c0a09;
    margin: 0;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .harita-section--devredin {
        padding: 4rem 0 4.5rem;
    }
    .harita-section__title {
        font-size: 1.75rem;
    }
}

.harita-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0c0a09 !important;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.harita-section__link:hover {
    color: #192273 !important;
    text-decoration: underline;
}

.harita-map-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.harita-map-stage {
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: 100%;
    height: 420px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #e8eaed;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
    .harita-map-stage {
        height: 480px;
    }
}

.harita-map-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.harita-map-canvas.harita-map-canvas--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
}

.harita-map-canvas.harita-map-canvas--loading::after {
    content: 'Harita yükleniyor…';
}

/* Marker pill â€” Devredin tarzÄ± */
.harita-map-marker-wrap {
    background: none !important;
    border: none !important;
}

.harita-map-marker {
    margin-left: 0 !important;
    margin-top: 0 !important;
}

.harita-map-marker__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    left: 50%;
    transform: translate(-50%, -100%);
    cursor: default;
    pointer-events: none;
}

.harita-map-marker__pill {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #1c1917;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12), 0 6px 20px rgba(15, 23, 42, 0.14);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.harita-map-marker__point {
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #fff;
    border: 2px solid #192273;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s ease;
}

.harita-map-marker.is-active .harita-map-marker__stack {
    transform: translate(-50%, -100%) scale(1.06);
}

.harita-map-marker.is-active .harita-map-marker__pill {
    border-color: #192273;
    background: #192273;
    color: #fff;
    box-shadow: 0 4px 12px rgba(25, 34, 115, 0.25), 0 10px 28px rgba(25, 34, 115, 0.3);
}

.harita-map-marker.is-active .harita-map-marker__point {
    background: #192273;
    border-color: #192273;
}

.harita-map-marker.is-dim .harita-map-marker__pill {
    opacity: 0.85;
}

/* Overlay kart — yalnızca harita alanı içinde katmanlanır */
.harita-map-card {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.harita-map-card:not(.is-active) {
    z-index: 1;
}

.harita-map-card.is-active {
    z-index: 6;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.harita-map-card:not(.harita-map-card--mobile) {
    top: 50%;
    left: 1rem;
    transform: translateY(-50%) translateX(-12px);
    width: min(360px, calc(100vw - 2rem));
}

.harita-map-card:not(.harita-map-card--mobile).is-active {
    transform: translateY(-50%) translateX(0);
}

.harita-map-card--mobile {
    display: none;
}

.harita-map-card__inner {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    border: 2px solid transparent;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.harita-map-card.is-active .harita-map-card__inner {
    border-color: #192273;
    box-shadow: 0 12px 28px rgba(25, 34, 115, 0.2);
}

.harita-map-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #192273;
    background: #f9f9f9;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.harita-map-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.35;
}

.harita-map-card__address {
    font-size: 0.9rem;
    color: #57534e;
    margin: 0 0 12px;
    line-height: 1.5;
}

.harita-map-card__address i {
    color: #192273;
    margin-right: 4px;
}

.harita-map-card__meta {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 0.88rem;
}

.harita-map-card__meta a {
    color: #192273 !important;
    text-decoration: none;
}

.harita-map-card__meta a:hover {
    text-decoration: underline;
}

.harita-map-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Ülke seçici — haritanın altında, tek sıra yatay kaydırma */
.harita-map-countries-wrap {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.harita-map-countries-wrap::before,
.harita-map-countries-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
    border-radius: 0;
}

.harita-map-countries-wrap::before {
    left: 0;
    border-radius: 0.75rem 0 0 0.75rem;
    background: linear-gradient(to right, #fff 15%, rgba(255, 255, 255, 0));
}

.harita-map-countries-wrap::after {
    right: 0;
    border-radius: 0 0.75rem 0.75rem 0;
    background: linear-gradient(to left, #fff 15%, rgba(255, 255, 255, 0));
}

.harita-map-countries {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 113, 108, 0.2) transparent;
    border-radius: 0.75rem;
}

.harita-map-countries::-webkit-scrollbar {
    height: 1px;
}

.harita-map-countries::-webkit-scrollbar-track {
    background: transparent;
}

.harita-map-countries::-webkit-scrollbar-thumb {
    background: rgba(120, 113, 108, 0.22);
    border-radius: 999px;
}

.harita-map-countries::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 113, 108, 0.4);
}

.harita-map-country {
    display: inline-flex;
    flex-shrink: 0;
    scroll-snap-align: center;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    background: #fff;
    color: #1c1917;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.harita-map-country__flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.harita-map-country__name {
    white-space: nowrap;
}

.harita-map-country.is-active {
    background: #192273;
    border-color: #192273;
    color: #fff;
    box-shadow: 0 4px 14px rgba(25, 34, 115, 0.28);
}

.harita-map-country:hover:not(.is-active) {
    border-color: #192273;
    color: #192273;
}

.leaflet-container {
    font-family: inherit;
    background: #e8eaed;
}

/* Leaflet katmanları — harita kutusu dışına taşmasın */
.harita-map-stage .leaflet-pane,
.harita-map-stage .leaflet-map-pane {
    z-index: 1 !important;
}

.harita-map-stage .leaflet-tile-pane {
    z-index: 1 !important;
}

.harita-map-stage .leaflet-overlay-pane {
    z-index: 2 !important;
}

.harita-map-stage .leaflet-marker-pane {
    z-index: 3 !important;
}

.harita-map-stage .leaflet-tooltip-pane {
    z-index: 4 !important;
}

.harita-map-stage .leaflet-control-container {
    z-index: 5 !important;
    pointer-events: none;
}

.harita-map-stage .leaflet-control-container .leaflet-control {
    pointer-events: auto;
}

.harita-map-stage .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12) !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin: 0 12px 12px 0 !important;
}

.harita-map-stage .leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 16px !important;
    color: #44403c !important;
    background: #fff !important;
    border: none !important;
}

.harita-map-stage .leaflet-control-zoom a:hover {
    background: #f5f5f4 !important;
    color: #192273 !important;
}

.harita-map-stage .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.75) !important;
    padding: 2px 6px !important;
    border-radius: 4px 0 0 0;
    color: #78716c;
}

.harita-map-stage .leaflet-control-attribution a {
    color: #57534e;
}

@media (max-width: 767.98px) {
    .harita-map-card:not(.harita-map-card--mobile) {
        display: none !important;
    }

    .harita-map-countries-wrap {
        border-radius: 0.65rem;
    }

    .harita-map-countries-wrap::before {
        border-radius: 0.65rem 0 0 0.65rem;
    }

    .harita-map-countries-wrap::after {
        border-radius: 0 0.65rem 0.65rem 0;
    }

    .harita-map-countries {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 0.65rem;
    }

    .harita-map-country {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .harita-map-country__flag {
        width: 20px;
        height: 15px;
    }

    .harita-map-card--mobile {
        display: block;
        left: 50%;
        bottom: 1rem;
        top: auto;
        transform: translateX(-50%) translateY(12px);
        width: min(335px, calc(100% - 1.5rem));
    }

    .harita-map-card--mobile.is-active {
        transform: translateX(-50%) translateY(0);
    }

    .harita-map-card--mobile .harita-map-card__inner {
        padding: 0.85rem 1rem;
    }

    .harita-map-card--mobile .harita-map-card__title {
        font-size: 0.95rem;
    }

    .harita-map-card--mobile .harita-map-card__actions {
        display: none;
    }
}
