﻿.elimys-pin .pin {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #3A648A;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: 3px solid #22c55e;
    outline-offset: 2px;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, .35));
    position: relative;
}

    .elimys-pin .pin::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -9px;
        width: 14px;
        height: 14px;
        transform: translateX(-50%) rotate(45deg);
        background: #3A648A;
        border-right: 3px solid #fff;
        border-bottom: 3px solid #fff;
        box-shadow: 8px 8px 18px rgba(0,0,0,.12);
        outline: 3px solid #22c55e;
        outline-offset: -3px;
        border-bottom-right-radius: 3px;
    }

.elimys-pin .avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-family: system-ui,Segoe UI,Roboto,Arial;
    border: 2px solid rgba(255,255,255,.85);
    background: #fff;
}

.elimys-pin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 2px;
}

/* Cluster marker */
.elimys-cluster {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #3A648A;
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    font-family: system-ui,Segoe UI,Roboto,Arial;
    cursor: pointer;
    user-select: none;
}

    .elimys-cluster:hover {
        filter: brightness(1.06);
    }

/* Mini clusters created during progressive spiderfy */
/*.elimys-mini-cluster {
    background: #e67e22 !important;
    border-color: #fff !important;
    font-size: 11px !important;
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}*/

/* InfoWindow content container */
.elimys-iw {
    width: 100%;
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    color: #111827;
    padding: 8px 0;
}

.elimys-iw__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.elimys-iw__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid rgba(17, 24, 39, .12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .elimys-iw__logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
        padding: 6px;
        display: block;
    }

    .elimys-iw__logo span {
        font-weight: 900;
        font-size: 20px;
        color: #3A648A;
    }

.elimys-iw__titles {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.elimys-iw__primary {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #111827;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.elimys-iw__secondary {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.elimys-iw__desc {
    margin-top: 12px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: left;
}

.elimys-iw__footer {
    margin-top: 12px;
    padding: 8px 12px 0;
    text-align: center;
    border-top: 1px solid rgba(17, 24, 39, .1);
    padding-top: 12px;
}

.elimys-iw__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #3A648A;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .elimys-iw__link:hover {
        background: #1a2b3a;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(33, 55, 76, .3);
        color: #fff !important;
        text-decoration: none;
    }

    .elimys-iw__link:active {
        transform: translateY(0);
    }

    .elimys-iw__link i {
        font-size: 12px;
    }

.elimys-iw__cover {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -12px -12px 12px -12px;
    width: calc(100% + 24px);
}

.elimys-iw__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Google InfoWindow Chrome overrides */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15) !important;
    border-radius: 12px !important;
    filter: none !important;
    max-width: 360px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-width: 100% !important;
}

.gm-style .gm-style-iw-t::after {
    filter: none !important;
    box-shadow: none !important;
}

.gm-style .gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
    top: 6px !important;
    right: 6px !important;
    opacity: 0.7 !important;
}

    .gm-style .gm-ui-hover-effect:hover {
        opacity: 1 !important;
    }

    .gm-style .gm-ui-hover-effect > span {
        width: 16px !important;
        height: 16px !important;
        margin: 6px !important;
        background-size: 16px 16px !important;
    }

/* Map wrappers */
.elimys-map-wrap {
    position: relative;
}

.elimys-map-overlay-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #3A648A;
    color: #fff;
    border: 0;
    padding: 10px 12px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .elimys-map-overlay-btn:hover {
        filter: brightness(1.05);
    }

    .elimys-map-overlay-btn:focus {
        outline: 0;
    }

.elimys-map-slot {
    width: 100%;
}

.elimys-map-slot--sidebar {
    width: 100%;
}

.elimys-map-slot--full {
    width: 100%;
    height: var(--elimys-map-full-height, 520px);
    min-height: 240px;
    max-height: none;
}

/* Zoom controls */
.elimys-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px;
}

.elimys-zoom-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 0;
    background: #3A648A;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .elimys-zoom-btn i {
        font-size: 18px;
    }

    .elimys-zoom-btn:hover {
        filter: brightness(1.08);
    }

    .elimys-zoom-btn:active {
        transform: translateY(1px);
    }


.elimys-mini-cluster {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #e67e22;
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    font-family: system-ui, Segoe UI, Roboto, Arial;
    cursor: pointer;
    user-select: none;
}

    .elimys-mini-cluster:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .elimys-mini-cluster:active {
        transform: translateY(0);
    }
