
.home-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .9rem;
}

.home-map-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

#homeMap {
    height: clamp(320px, 62vh, 400px);
    border-radius: 14px;
    z-index: 0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}

.map-info {
    font-size: .65rem;
    color: rgba(227, 30, 36, .82);
    text-align: center;
}

/* Ekran koruyucu */
.map-shield {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.5rem, 4.2vw, 3.2rem);
    letter-spacing: -.02em;
    background: rgba(227, 30, 36, .8);
    backdrop-filter: blur(1.1px);
    cursor: pointer;
    user-select: none;
    transition: transform .7s cubic-bezier(.22, .8, .2, 1),
                opacity .5s ease;
}

.map-shield.is-hidden {
    transform: translateY(105%);
    opacity: 0;
    pointer-events: none;
}

/* Ekran koruyucuyu geri getiren ok */
.map-shield-back {
    position: absolute;
    left: 50%;
    z-index: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translate(-50%, 30px);
    pointer-events: none;
    transition: opacity .4s ease .25s,
                transform .5s ease .25s;
    cursor: pointer;
}

.map-shield-back.show {
    opacity: 1;
    top: 0;
    pointer-events: auto;
}

/* Harita lejantı ve filtreler */
.map-legend {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    bottom: 12px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .70);
    padding: .5rem;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .4);
    font-size: .8rem;
    font-weight: 600;
    text-wrap: nowrap;
    overflow-block: hidden;
    max-width: 95%;
}

.legend-filter {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .55rem;
    background: transparent;
    color: #343a40;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all .25s ease;
}

.legend-filter.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    transform: scale(1.03);
}

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

.legend-sale {
    --pin: #0d6efd;
    background: #0d6efd;
}

.legend-rent {
    --pin: #dc3545;
    background: #dc3545;
}

.legend-project {
    --pin: #198754;
    background: #198754;
}

.legend-kat-karsiligi {
    background: #b8860b;
}

.legend-devren-satilik {
    background: #0000c4;
}

.legend-devren-kiralik {
    background: #6f42c1;
}

/* Fiyat etiketleri */
.price-icon {
    background: transparent;
    border: 0;
}

.price-pin {
    --pin: #0d6efd;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%) translateY(-7px);
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--pin);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.3;
    white-space: nowrap;
    border: 2px solid #fff;
    cursor: pointer;
    transition: transform .12s;
}

.price-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--pin);
}

.price-pin:hover {
    transform: translate(-50%, -100%) translateY(-7px) scale(1.12);
}

.price-pin--rent {
    --pin: #dc3545;
}

.price-pin--project {
    --pin: #198754;
}

.price-pin--devren-satilik {
    --pin: #0000c4;
}

.price-pin--devren-kiralik {
    --pin: #6f42c1;
}

.price-pin--kat-karsiligi {
    --pin: #b8860b;
}

/* Gizli konumlu ilan fiyatları */
.leaflet-tooltip.price-tip {
    --pin: #0d6efd;
    background: var(--pin);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    padding: 2px 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.leaflet-tooltip.price-tip--rent {
    --pin: #dc3545;
}

.leaflet-tooltip.price-tip--project {
    --pin: #198754;
}

.leaflet-tooltip.price-tip::before {
    display: none;
}

/* Harita atıf ve açılır pencereler */
.leaflet-control-attribution {
    font-size: 10px;
    opacity: .75;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 5px !important;
    right: 10px !important;
    font: 30px / 30px Tahoma, Verdana, sans-serif !important;
    color: #fff;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 7px rgba(0, 0, 0, .01);
}

.leaflet-popup-content {
    width: 240px !important;
    margin: 0 !important;
    line-height: 1.3;
}

.map-listing-popup {
    width: 240px;
    color: #222;
    background: #fff;
    text-align: left;
}

.map-listing-popup__image {
    display: block;
    width: 100%;
    height: 115px;
    object-fit: cover;
    margin: 0;
    background: #f1f1f1;
}

.map-listing-popup__body {
    padding: 8px 10px 9px;
    text-align: left;
}

.map-listing-popup__type {
    display: block;
    margin: 0 0 3px;
    color: #777;
    font-size: 10px;
    line-height: 1.2;
}

.map-listing-popup__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 0 5px;
    color: #000 !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    text-align: left;
}

.map-listing-popup__price {
    margin: 0 0 5px;
    font-weight: 600;
    line-height: 1.2;
}

.map-listing-popup__location {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: #666;
    font-size: 9px;
    line-height: 1.3;
    text-align: left;
}

.map-listing-popup__location-icon {
    flex: 0 0 auto;
    color: #E31E24;
}

.map-listing-popup__button {
    display: block;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #E31E24;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.map-listing-popup__button:hover {
    background: #bd171c;
    color: #fff !important;
}

.leaflet-popup-content p {
    margin: 0;
}

/* Tam ekran butonu */
.map-fullscreen-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 500;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.map-fullscreen-btn:hover {
    background: #f1f1f1;
}

.home-map-wrap:fullscreen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
}

.home-map-wrap:fullscreen #homeMap {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Mobil uyumlu tam ekran */
.home-map-wrap.map-fullscreen-fallback {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff;
}

.home-map-wrap.map-fullscreen-fallback #homeMap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

.home-map-wrap.map-fullscreen-fallback .map-legend {
    position: absolute;
    bottom: 15px;
}

.home-map-wrap.map-fullscreen-fallback .map-shield-back {
    top: 60px;
}

body.map-is-fullscreen {
    overflow: hidden !important;
}
