/* ── Harita ── */
#map {
    margin: 0;
    padding: 0;
    height: 500px !important;
    max-width: none;
}

/* ── InfoWindow dış kapsayıcı ── */
.gm-style-iw {
    width: 300px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}

/* ── Google'ın kapat butonunu tamamen gizle (kalıcı çözüm) ── */
.gm-ui-hover-effect,
.gm-style-iw-chr {
    display: none !important;
}

/* ── İçerik ── */
#iw-container {
    display: flex;
    flex-direction: column;
    width: 300px;
    font-family: 'Open Sans', sans-serif;
}

/* Görsel alan */
#iw-container .iw-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

#iw-container .iw-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Görsel üstü koyu örtü + başlık */
#iw-container .iw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.55) 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
}

#iw-container .iw-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

/* Kendi kapat butonu */
#iw-container .iw-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #444;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

#iw-container .iw-close-btn:hover {
    background: #ffffff;
}

/* Meta bilgileri */
#iw-container .iw-meta {
    padding: 12px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#iw-container .iw-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #555555;
    line-height: 1.5;
}

#iw-container .iw-meta-row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #0071dc;
}

#iw-container .iw-meta-row strong {
    color: #222222;
    font-weight: 600;
}

/* Topla butonu */
#iw-container .iw-footer {
    padding: 10px 14px 14px;
}

#iw-container .iw-btn {
    display: block;
    width: 100%;
    padding: 9px;
    background: #0071dc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

#iw-container .iw-btn:hover {
    background: #005bb5;
}

/* Arama kutusu z-index */
.pac-container {
    z-index: 9999 !important;
}
