/*
    Bidentra proje haritası
    Kapsam: harita paneli, harita yüksekliği, boş durum ve mevcut bilgi penceresi.
    Google Maps kontrol ikonları ve marker dosyaları bu dosyada değiştirilmez.
*/

#mapArea {
    position: relative;
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#mapArea .bd-projects-map-panel {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d5e1ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

#dvSearchResultMap,
#dvSearchResultMap.google-map {
    display: block;
    width: 100%;
    height: 430px;
    min-height: 430px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #e5e3df;
}

.bd-map-empty {
    display: none;
    margin: 12px 16px 16px;
    padding: 12px 14px;
    border: 1px solid #f2d38b;
    border-radius: 8px;
    background: #fff8e6;
    color: #6d4a00;
    font-size: 13px;
    font-weight: 700;
}

#dvSearchResultMap .gm-style-iw-c,
#dvSearchResultMap .gm-style-iw-d,
#dvSearchResultMap .gm-style-iw-chr,
#dvSearchResultMap .gm-style-iw-tc {
    display: none !important;
}

.bd-project-popup-overlay {
    position: absolute;
    z-index: 1000;
    width: 420px;
    max-width: calc(100vw - 32px);
    transform: translate(-50%, calc(-100% - 22px));
    pointer-events: auto;
}

.bd-project-popup-overlay::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 120, 190, .10);
    border-bottom: 1px solid rgba(0, 120, 190, .10);
    box-shadow: 8px 8px 18px rgba(6, 35, 66, .12);
    transform: translateX(-50%) rotate(45deg);
}

.bd-project-popup {
    width: 420px;
    max-width: calc(100vw - 34px);
    margin: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(0, 120, 190, .16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 56px rgba(0, 46, 91, .24);
    color: #0a2342;
    font-family: "Titillium Web", Arial, sans-serif;
}

.bd-project-popup-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #002e5b 0%, #0079bd 54%, #00adee 100%);
}

.bd-project-popup-image-link,
.bd-project-popup-image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.bd-project-popup-image-link img {
    object-fit: cover;
    transition: transform .35s ease;
}

.bd-project-popup:hover .bd-project-popup-image-link img {
    transform: scale(1.022);
}

.bd-project-popup-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: rgba(255,255,255,.96);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .15px;
}

.bd-project-popup-placeholder-mark {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #ffffff;
    font-size: 29px;
    font-weight: 800;
}

.bd-project-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    border: 1px solid rgba(255,255,255,.90);
    border-radius: 50%;
    background: #00adee;
    box-shadow: 0 10px 24px rgba(0, 87, 140, .28);
    color: #ffffff;
    cursor: pointer;
    font: 400 27px/1 Arial, sans-serif;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bd-project-popup-close:hover {
    background: #0098d4;
    box-shadow: 0 12px 28px rgba(0, 77, 126, .34);
    transform: scale(1.06);
}

.bd-project-popup-body {
    padding: 17px 18px 18px;
}

.bd-project-popup-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.bd-project-popup-category,
.bd-project-popup-progress {
    display: inline-flex;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.bd-project-popup-category {
    max-width: 58%;
    overflow: hidden;
    border: 1px solid #87cdf3;
    background: #eaf7ff;
    color: #007bc1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
    text-overflow: ellipsis;
}

.bd-project-popup-progress {
    flex: 0 0 auto;
    border: 1px solid #8bd39f;
    background: #effbf2;
    color: #168338;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}

.bd-project-popup h3 {
    display: -webkit-box;
    margin: 0 0 9px;
    overflow: hidden;
    color: #08294a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.20;
    letter-spacing: -.25px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bd-project-popup h3 a {
    color: inherit;
    text-decoration: none;
}

.bd-project-popup-location {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #536d87;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.bd-project-popup-location > span:first-child {
    flex: 0 0 auto;
    color: #008fd1;
    font-size: 17px;
    line-height: 1;
}

.bd-project-popup-location span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bd-project-popup-cta {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #008ed0;
    border-radius: 9px;
    background: #00adee;
    box-shadow: 0 10px 24px rgba(0, 130, 190, .24);
    color: #ffffff !important;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .1px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bd-project-popup-cta:hover {
    background: #0098d4;
    box-shadow: 0 12px 28px rgba(0, 105, 160, .30);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.bd-project-popup-cta span:last-child {
    font-size: 22px;
    line-height: 1;
    transition: transform .18s ease;
}

.bd-project-popup-cta:hover span:last-child {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    #dvSearchResultMap,
    #dvSearchResultMap.google-map {
        height: 360px;
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    #dvSearchResultMap,
    #dvSearchResultMap.google-map {
        height: 330px;
        min-height: 330px;
    }

    .bd-project-popup-overlay {
        width: min(380px, calc(100vw - 24px));
        transform: translate(-50%, calc(-100% - 18px));
    }

    .bd-project-popup {
        width: 100%;
    }

    .bd-project-popup-media {
        height: 194px;
    }

    .bd-project-popup-body {
        padding: 15px;
    }

    .bd-project-popup h3 {
        font-size: 19px;
    }

    .bd-project-popup-category,
    .bd-project-popup-progress {
        min-height: 29px;
        padding: 5px 9px;
        font-size: 10.5px;
    }
}
