/*!
 * hously — Mapbox harita arayuzu
 * Elle yazilir, build yok (bkz. public/js/mapbox-map.js basligi).
 *
 * Marka rengi her yerde --primary-color uzerinden okunur (header.blade.php
 * :root icinde tema ayarindan basiyor). Sabit renk yazmiyoruz: tema ayari
 * su an MAVI, dosyada yesil sabitler kalirsa arayuz markadan kopuyor.
 */

/* --------------------------------------------------------------------- */
/* Akis: bulten widget'i icin alt bosluk                                  */
/* --------------------------------------------------------------------- */

/*
 * pre_footer sidebar'indaki "Bultene Abone Ol" widget'i Tailwind `-top-40`
 * ile 160px YUKARI kayiyor (top:-10rem !important) ama AKISTA yer kaplamiyor
 * -- yani kendinden onceki bolumun uzerine biniyor. Tasarim geregi boyle;
 * diger sayfalarda onceki bolumun alt dolgusu bu bosluğu sagliyor.
 * Harita sayfasinda saglamiyordu ve bulten haritanin alt kismini,
 * pinleri ve Mapbox atifini kapatiyordu.
 */
.mbx-flow {
    padding-bottom: 10rem;
}

@media (max-width: 767px) {
    /* Mobilde bulten karti daha yuksek; ayni 160px yeterli ama harita zaten
       ekranin cogunu kapladigi icin fazladan bosluk gormemek adina biraz az */
    .mbx-flow {
        padding-bottom: 9rem;
    }
}

.mbx {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f5;
    isolation: isolate;
}

.mbx__canvas {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

/* Liste sayfasi: harita ekranin buyuk kismini kaplasin ama header ve ust
   filtre seridi gorunur kalsin. dvh kullaniyoruz cunku mobil tarayicilarda
   vh, adres cubugu gizlenene kadar yanlis olcup haritanin altini ekran
   disina itiyordu. */
.mbx--search {
    height: 70vh;
}

@supports (height: 100dvh) {
    .mbx--search {
        height: calc(100dvh - 260px);
        min-height: 460px;
        max-height: 780px;
    }
}

.mbx--single {
    height: 380px;
}

.mbx--static {
    height: 480px;
}

/* Kucuk haritada scroll-zoom kullanici dokunana kadar kapali; acildiginda
   ince bir kenarlik ile "artik etkilesimli" oldugunu belli et. */
.mbx.is-interactive {
    box-shadow: 0 0 0 2px rgb(var(--primary-color, 22 163 74) / .35);
}

/* --------------------------------------------------------------------- */
/* Yukleniyor durumu                                                      */
/* --------------------------------------------------------------------- */

/* Kutuphane 1477 KB; inene kadar ekranda hicbir sey yoktu ve kullanici
   "harita calismiyor" saniyordu. Iskelet + acik metin. */
.mbx__loading {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f5;
}

.mbx__loading[hidden] {
    display: none;
}

/* Harita hissi veren soluk bir izgara — duz gri kutudan daha az "bozuk" durur */
.mbx__loading-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .18) 1px, transparent 1px);
    background-size: 56px 56px;
}

.mbx__loading-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .12);
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    max-width: calc(100% - 32px);
}

/* Uzun metinlerde ("beklenenden uzun suruyor") rozet tasmasin */
.mbx__loading-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mbx__spinner,
.mbx__busy {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(148, 163, 184, .45);
    border-top-color: rgb(var(--primary-color, 22 163 74));
    border-radius: 50%;
    animation: mbx-spin .8s linear infinite;
    flex: 0 0 auto;
}

.mbx__busy {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-width: 3px;
    border-color: rgba(255, 255, 255, .55);
    border-top-color: rgb(var(--primary-color, 22 163 74));
    pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
    .mbx__spinner,
    .mbx__busy { animation-duration: 3s; }
}

.mbx__notice {
    position: absolute;
    z-index: 9;
    inset: auto 12px 12px 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #7f1d1d;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------- */
/* Arac cubugu                                                            */
/* --------------------------------------------------------------------- */

.mbx__bar {
    position: absolute;
    z-index: 4;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    /* Navigasyon kontrolleri sag ustte; sola pay birakiyoruz ki binmesin */
    max-width: calc(100% - 100px);
}

.mbx__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    white-space: nowrap;
}

.mbx__btn:hover {
    background: #f1f5f9;
}

.mbx__btn.is-active,
.mbx__btn--primary {
    background: rgb(var(--primary-color, 22 163 74));
    color: #fff;
}

.mbx__btn--primary:hover {
    background: rgb(var(--primary-color, 22 163 74) / .9);
}

.mbx__btn--clear {
    background: #0f172a;
    color: #fff;
}

.mbx__btn--icon {
    padding: 8px 10px;
}

.mbx__btn--ghost {
    background: transparent;
    box-shadow: none;
    color: #475569;
}

.mbx__btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: rgb(var(--primary-color, 22 163 74));
    font-size: 11px;
    font-weight: 700;
}

/* Sayac + koordinatsiz notu: cubugun ALTINDA ayri bir satir. Once hepsi
   ayni satirdaydi ve 5 cip yan yana gelince mobilde tasiyordu. */
.mbx__stats {
    position: absolute;
    z-index: 3;
    top: 52px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
}

.mbx__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* Koordinatsiz ilan notu BILGIDIR, hata degil. Onceki turuncu dolgu
   kullanicida "bir sey bozuldu" hissi yaratiyordu — soluk zemin. */
.mbx__note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
}

.mbx__note i {
    font-size: 12px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------- */
/* Paneller (filtre + ayarlar)                                            */
/* --------------------------------------------------------------------- */

.mbx__panel {
    position: absolute;
    /* Mapbox kendi kontrol konteynerini yuksek z-index ile basiyor;
       panel onun da ustunde kalmali yoksa tiklanamiyor gibi gorunuyor. */
    z-index: 12;
    top: 52px;
    left: 10px;
    width: 310px;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 72px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .24);
}

.mbx__panel[hidden] {
    display: none;
}

/* Ayar paneli filtre panelinden dar: icinde kaydirac yok, yalnizca
   segment + satir butonlari var. */
.mbx__panel--settings {
    width: 260px;
}

.mbx__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: #0f172a;
}

.mbx__panel-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    line-height: 1;
}

.mbx__field {
    margin-bottom: 14px;
}

.mbx__field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

.mbx__field-value {
    font-weight: 700;
    color: rgb(var(--primary-color, 22 163 74));
}

.mbx__seg {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: #f1f5f9;
}

.mbx__seg-btn {
    flex: 1 1 auto;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.mbx__seg-btn.is-active {
    background: rgb(var(--primary-color, 22 163 74));
    color: #fff;
}

/* Iki range ust uste: tek "dual slider" bileseni yok. Ust input'un
   pointer-events'i kapali, yalnizca tutamaklar tiklanabilir — aksi halde
   ustteki input alttakini tamamen bloke ediyordu. */
.mbx__range {
    position: relative;
    height: 26px;
}

.mbx__range-track {
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}

.mbx__range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: rgb(var(--primary-color, 22 163 74));
}

.mbx__range input[type=range] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 26px;
    margin: 0;
    background: none;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.mbx__range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgb(var(--primary-color, 22 163 74));
    box-shadow: 0 1px 4px rgba(15, 23, 42, .25);
    cursor: pointer;
    pointer-events: auto;
}

.mbx__range input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgb(var(--primary-color, 22 163 74));
    cursor: pointer;
    pointer-events: auto;
}

.mbx__panel-foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 4px;
}

.mbx__panel-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mbx__row-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}

.mbx__row-btn:hover {
    background: #f1f5f9;
}

.mbx__row-btn.is-active {
    background: rgb(var(--primary-color, 22 163 74) / .12);
    color: rgb(var(--primary-color, 22 163 74));
}

.mbx__row-btn i {
    font-size: 16px;
}

/* --------------------------------------------------------------------- */
/* Renk anahtari                                                          */
/* --------------------------------------------------------------------- */

.mbx__legend {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 52px;
    display: flex;
    gap: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.mbx__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mbx__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.mbx__dot--sale { background: rgb(var(--primary-color, 22 163 74)); }
.mbx__dot--rent { background: #0d9488; }

/* --------------------------------------------------------------------- */
/* Alan secme                                                             */
/* --------------------------------------------------------------------- */

.mbx__draw-overlay {
    position: absolute;
    z-index: 5;
    inset: 0;
    cursor: crosshair;
    /* touch-action:none olmadan mobilde parmak hareketi tarayicinin
       kaydirmasina gidiyor ve kutu hic cizilmiyordu */
    touch-action: none;
    background: rgba(15, 23, 42, .06);
}

.mbx__draw-box {
    position: absolute;
    border: 2px dashed rgb(var(--primary-color, 22 163 74));
    background: rgb(var(--primary-color, 22 163 74) / .14);
    pointer-events: none;
}

.mbx__hint {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    font-size: 13px;
    text-align: center;
    max-width: calc(100% - 24px);
}

/* --------------------------------------------------------------------- */
/* Onizleme karti                                                         */
/* --------------------------------------------------------------------- */

.mbx__card {
    position: absolute;
    z-index: 6;
    left: 12px;
    bottom: 12px;
    width: 300px;
    max-width: calc(100% - 24px);
    /* Kart harita kabinin alt kenarindan tasip kirpiliyordu (ozellikler
       satirindan yalnizca ilk karakterler gorunuyordu). Ust sinir koyup
       icerigi kaydirilabilir yapiyoruz; kart HER ZAMAN gorunur alanda. */
    max-height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .3);
    overflow: hidden;
}

.mbx__card[hidden] {
    display: none;
}

/* Pine cipalanmis kart: konum JS tarafindan (positionCard) yaziliyor.
   Sol-alt sabit konum "hangi pine ait?" sorusunu cevaplamiyordu. */
.mbx__card.is-anchored {
    right: auto;
    bottom: auto;
}

.mbx-card__media {
    position: relative;
    display: block;
    /* Fotograf belirgin olsun: onceki 84x68 kucuk thumbnail "onizleme sifir"
       geri bildirimi aliyordu. */
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    flex: 0 0 auto;
}

.mbx-card__frames {
    position: absolute;
    inset: 0;
    display: block;
}

.mbx-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .2s ease;
}

.mbx-card__img.is-active {
    opacity: 1;
}

.mbx-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 40px;
}

.mbx-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgb(var(--primary-color, 22 163 74));
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
}

.mbx-card__badge--rent {
    background: #0d9488;
}

.mbx-card__nav {
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #0f172a;
    font-size: 15px;
    line-height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
}

.mbx-card__nav[hidden] { display: none; }
.mbx-card__nav--prev { left: 8px; }
.mbx-card__nav--next { right: 8px; }

.mbx-card__dots {
    position: absolute;
    left: 0;
    right: 0;
    /* Gorselin alt kenarinda; kart govdesi asagida basliyor */
    top: calc(62.5% - 16px);
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.mbx-card__dots[hidden] { display: none; }

.mbx-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.mbx-card__dot.is-active {
    background: #fff;
}

.mbx-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 12px 12px;
    min-height: 0;
    overflow-y: auto;
}

.mbx-card__price {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    color: rgb(var(--primary-color, 22 163 74));
}

.mbx-card__title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    text-decoration: none;
    /* Uzun ilan basliklari karti tasiriyordu */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbx-card__title:hover {
    color: rgb(var(--primary-color, 22 163 74));
}

.mbx-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 11px;
    font-size: 12px;
    color: #64748b;
}

.mbx-card__specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mbx-card__specs i {
    font-size: 14px;
    color: #94a3b8;
}

.mbx-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgb(var(--primary-color, 22 163 74));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mbx-card__cta:hover {
    background: rgb(var(--primary-color, 22 163 74) / .9);
    color: #fff;
}

.mbx__card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #334155;
    font-size: 14px;
    line-height: 28px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
}

/* --------------------------------------------------------------------- */
/* Markali isaretci (detay sayfasi)                                       */
/* --------------------------------------------------------------------- */

/* Mapbox'in stok mavi damlasi kullanilmiyor: kullanici ekraninda pin
   markasiz ve bilgisizdi. Bu isaretci logo + islem tipi + fiyat tasir ve
   etiketi zoom'dan bagimsiz her zaman gorunur (DOM Marker, symbol layer degil). */
.mbx-pin {
    position: relative;
    display: block;
    cursor: default;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, .35));
}

.mbx-pin__body {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 5px;
    border-radius: 999px;
    background: rgb(var(--primary-color, 22 163 74));
    border: 2px solid #fff;
    color: #fff;
    white-space: nowrap;
}

.mbx-pin--rent .mbx-pin__body {
    background: #0d9488;
}

.mbx-pin__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
    flex: 0 0 auto;
}

.mbx-pin__logo img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mbx-pin__logo--text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.mbx-pin__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.mbx-pin__deal {
    font-size: 9.5px;
    font-weight: 600;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mbx-pin__price {
    font-size: 13px;
    font-weight: 800;
}

.mbx-pin__tail {
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #fff;
}

/* --------------------------------------------------------------------- */
/* Kendi logomuz — Mapbox atifi GIZLENMEZ (kullanim sarti)                */
/* --------------------------------------------------------------------- */

.mbx-watermark {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    /* Tema ayarindaki logo BEYAZ; beyaz zeminde kayboldugu icin rozet koyu. */
    background: rgba(15, 23, 42, .72);
    pointer-events: none;
    opacity: .92;
}

.mbx-watermark img {
    /* 20px okunmuyordu (kullanici bildirdi). 34px logo net okunur ve
       harita icerigini kapatmaz; genislik %38 ile sinirli ki genis logolar
       arac cubuguna girmesin. */
    height: 34px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Mapbox atifi KALDIRILAMAZ (kullanim sartlari). Yalnizca sadelestiriyoruz:
   okunur kaliyor ama ilanlarin onune gecmiyor. */
.mbx .mapboxgl-ctrl-attrib {
    font-size: 10px;
    background: rgba(255, 255, 255, .72);
}

.mbx .mapboxgl-ctrl-attrib a {
    color: #64748b;
}

@media (max-width: 767px) {
    /* Mobilde gizlemiyoruz (kullanici "mobilde de gorunsun" dedi) ama
       ust seride girmemesi icin ALTA aliniyor ve kuculuyor. */
    .mbx-watermark {
        top: auto;
        bottom: 42px;
        padding: 3px 8px;
    }

    .mbx-watermark img {
        height: 24px;
    }
}

/* --------------------------------------------------------------------- */
/* Tam ekran                                                              */
/* --------------------------------------------------------------------- */

.mbx.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 10000;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    max-height: none;
}

@supports (height: 100dvh) {
    .mbx.is-expanded { height: 100dvh; }
}

/* Arkadaki sayfa kaymasin — iOS'ta tam ekran haritada scroll sizmasi
   sik gorulen bir sorun */
body.mbx-locked {
    overflow: hidden;
}

/* --------------------------------------------------------------------- */
/* Mobil liste <-> harita anahtari                                        */
/* --------------------------------------------------------------------- */

.mbx-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e2e8f0;
    gap: 2px;
}

.mbx-switch__btn {
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.mbx-switch__btn.is-active {
    background: rgb(var(--primary-color, 22 163 74));
    color: #fff;
}

/* --------------------------------------------------------------------- */
/* Konum paylasma                                                         */
/* --------------------------------------------------------------------- */

.mbx-share {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

/* WhatsApp BIRINCIL: ana iletisim kanalimiz. Once bes esit agirlikli buton
   yan yanaydi, hangisinin birincil oldugu belli degildi ve mobilde tasiyordu. */
.mbx-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.mbx-share__btn:hover {
    border-color: rgb(var(--primary-color, 22 163 74));
    color: rgb(var(--primary-color, 22 163 74));
}

.mbx-share__btn--primary {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.mbx-share__btn--primary:hover {
    background: #1fbe5a;
    border-color: #1fbe5a;
    color: #fff;
}

.mbx-share__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    min-width: 230px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .22);
    border: 1px solid #e2e8f0;
}

.mbx-share__menu[hidden] { display: none; }

.mbx-share__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.mbx-share__item:hover {
    background: #f1f5f9;
    color: rgb(var(--primary-color, 22 163 74));
}

.dark .mbx-share__btn,
.dark .mbx-share__menu,
.dark .mbx-share__item {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.dark .mbx-share__btn--primary {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* --------------------------------------------------------------------- */
/* Mobil                                                                  */
/* --------------------------------------------------------------------- */

@media (max-width: 767px) {
    .mbx {
        border-radius: 10px;
    }

    /* Harita ekranin cogunu kaplasin; liste anahtari haritanin DISINDA
       oldugu icin liste hep bir dokunus uzakta */
    .mbx--search {
        height: calc(100vh - 210px);
        min-height: 380px;
    }

    @supports (height: 100dvh) {
        .mbx--search {
            height: calc(100dvh - 210px);
            max-height: none;
        }
    }

    .mbx--single {
        height: 280px;
    }

    .mbx__bar {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 58px);
        gap: 5px;
    }

    .mbx__stats {
        top: 48px;
        left: 8px;
    }

    .mbx__btn {
        /* Dokunma hedefi: 12.5px yazi + 9px dolgu ~ 36px yukseklik.
           Daha kucugu parmakla isabet ettirilemiyordu. */
        padding: 9px 12px;
        font-size: 12.5px;
    }

    /* Legend mobilde ust satiri sikistiriyordu; kartla birlikte alta al */
    .mbx__legend {
        top: auto;
        right: 8px;
        bottom: 8px;
        font-size: 11px;
        padding: 5px 9px;
    }

    /* Filtre/ayar paneli mobilde alttan acilan tabaka: 310px'lik kutu
       kucuk ekranda haritanin tamamini kapatiyordu. */
    .mbx__panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        max-height: 72%;
        border-radius: 16px 16px 0 0;
        padding: 14px 14px 18px;
        box-shadow: 0 -8px 30px rgba(15, 23, 42, .28);
    }

    /* Pine dokununca acilan kart alt tabaka gibi dursun */
    .mbx__card {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        border-radius: 14px;
        max-height: 66%;
    }

    /* Mapbox'in kendi kontrolleri mobilde kucuk kaliyor; buyut */
    .mbx .mapboxgl-ctrl-group button {
        width: 36px;
        height: 36px;
    }

    .mbx-share {
        gap: 6px;
    }

    .mbx-share__btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 11px 14px;
    }

    .mbx-share__menu {
        inset-inline-start: 0;
        inset-inline-end: 0;
        min-width: 0;
    }
}

/* Fotograf sayaci ("3 / 10") — gorselin sag ustunde, rozetin karsisinda.
   Uc kirpilmamis image_count gonderdigi icin ilanda daha fazla fotograf
   oldugu belli oluyor. */
.mbx-card__counter {
    position: absolute;
    top: 8px;
    right: 40px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .68);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.mbx-card__counter[hidden] { display: none; }
