.ekl-discovery-map {
    width: 100%;
    font-family: "Nunito Sans", "Nunito", sans-serif;
}

.ekl-discovery-map__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.ekl-discovery-map__filter {
    appearance: none;
    min-height: 42px;
    padding: 9px 16px;
    color: #0C4857 !important;
    background: transparent !important;
    border: 1px solid #b9c8d0 !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: none !important;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.ekl-discovery-map__filter:hover,
.ekl-discovery-map__filter:focus-visible {
    color: #fff !important;
    background: #6f8fa1 !important;
    border-color: #6f8fa1 !important;
}

.ekl-discovery-map__filter.is-active {
    color: #fff !important;
    background: #4B6E81 !important;
    border-color: #4B6E81 !important;
}

.ekl-discovery-map__status {
    min-height: 24px;
    margin: 0 0 10px;
    color: #54595F;
    font-size: 15px;
    font-weight: 700;
}

.ekl-discovery-map.is-loading .ekl-discovery-map__status::after {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 8px;
    content: "";
    border: 2px solid #cbd5da;
    border-top-color: #4B6E81;
    border-radius: 50%;
    animation: ekl-discovery-spin 700ms linear infinite;
}

.ekl-discovery-map__canvas {
    width: 100%;
    height: var(--ekl-discovery-height, 650px);
    min-height: 500px;
    overflow: hidden;
    border: 1px solid #cfd8dc;
    border-radius: 0px;
}

.ekl-discovery-map__canvas img {
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ekl-discovery-marker {
    position: relative;
    width: 28px;
    height: 28px;
    background: #4B6E81;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(20,38,55,.32);
    cursor: pointer;
    transform: scale(1);
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ekl-discovery-marker::after {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 10px;
    height: 10px;
    content: "";
    background: #4B6E81;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

.ekl-discovery-marker span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.ekl-discovery-marker.is-active {
    background: #0C4857;
    transform: scale(1.2);
}
.ekl-discovery-marker.is-active::after { background: #0C4857; }

.ekl-map-popup {
    min-width: 190px;
    max-width: 260px;
    font-family: "Nunito Sans", "Nunito", sans-serif !important;
    line-height: 1.4;
}
.ekl-map-popup strong {
    display: block;
    margin-bottom: 3px;
    color: #0C4857;
    font-size: 16px;
    line-height: 1.25;
}
.ekl-map-popup__location {
    color: #687681;
    font-size: 14px;
}
.ekl-map-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.ekl-map-popup__actions a {
    color: #0C4857 !important;
    font-weight: 800;
    text-decoration: none !important;
}
.ekl-map-popup__actions a:hover,
.ekl-map-popup__actions a:focus { text-decoration: underline !important; }

.ekl-discovery-map__message {
    margin-top: 10px;
    padding: 10px 12px;
    color: #7a2630;
    background: #fff5f5;
    border: 1px solid #efc7cb;
}

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

@media (max-width: 767px) {
    .ekl-discovery-map {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .ekl-discovery-map__filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-bottom: 16px;
    }

    .ekl-discovery-map__filter {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 8px 8px;
        font-size: 13px;
        line-height: 1.15;
        white-space: normal;
    }

    .ekl-discovery-map__filter[data-category="all"] {
        grid-column: 1 / -1;
    }

    .ekl-discovery-map__status {
        margin-bottom: 10px;
    }

    .ekl-discovery-map__canvas {
        width: 100%;
        height: 440px;
        min-height: 440px;
    }
}

@media (max-width: 420px) {
    .ekl-discovery-map__filter {
        font-size: 12.5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .ekl-discovery-map__canvas {
        height: 420px;
        min-height: 420px;
    }
}

/* v0.2 popup thumbnail */
.ekl-map-popup__image-link,
.ekl-map-popup__image {
    display: block;
    width: 100%;
}

.ekl-map-popup__image-link {
    margin: 0 0 10px;
    text-decoration: none !important;
}

.ekl-map-popup__image {
    height: 112px;
    object-fit: cover;
    border-radius: 0 !important;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 0px !important;
}

.gm-style .gm-style-iw-d {
    max-height: none !important;
    padding: 12px 40px 14px 14px !important;
    overflow: visible !important;
}
/* v0.5 mobile popup tuning */
@media (max-width: 767px) {
    .ekl-map-popup {
        min-width: 152px;
        max-width: 208px;
        line-height: 1.3;
    }

    .ekl-map-popup strong {
        margin-bottom: 2px;
        font-size: 13px;
        line-height: 1.2;
    }

    .ekl-map-popup__location {
        font-size: 11px;
    }

    .ekl-map-popup__actions {
        gap: 10px;
        margin-top: 8px;
    }

    .ekl-map-popup__actions a {
        font-size: 12px;
    }

    .ekl-map-popup__image-link {
        margin-bottom: 8px;
    }

    .ekl-map-popup__image {
        height: 90px;
    }

    .gm-style .gm-style-iw-d {
        padding: 10px 34px 11px 11px !important;
    }
}

