/* Shared map popup appearance. */
.leaflet-popup.map2-leaflet-popup
                .leaflet-popup-content-wrapper {
                    overflow: hidden;
                    padding: 0;
                    background: #ffffff;
                    border: 1px solid rgba(79, 64, 125, .12);
                    border-radius: 20px;
                    box-shadow:
                        0 20px 52px rgba(39, 32, 59, .20),
                        0 4px 14px rgba(39, 32, 59, .08);
                }


                .leaflet-popup.map2-leaflet-popup-community
                .leaflet-popup-content {
                    width: min(320px, calc(100vw - 52px)) !important;
                    max-width: min(320px, calc(100vw - 52px)) !important;
                    margin: 0;
                }


                .leaflet-popup.map2-leaflet-popup-event
                .leaflet-popup-content {
                    width: min(360px, calc(100vw - 52px)) !important;
                    max-width: min(360px, calc(100vw - 52px)) !important;
                    margin: 0;
                }


                .leaflet-popup.map2-leaflet-popup
                .leaflet-popup-tip {
                    background: #ffffff;
                    box-shadow: 3px 3px 9px rgba(39, 32, 59, .08);
                }


                .leaflet-popup.map2-leaflet-popup
                .leaflet-popup-close-button {
                    z-index: 10;
                    top: 10px;
                    right: 10px;

                    display: flex;
                    align-items: center;
                    justify-content: center;

                    width: 30px;
                    height: 30px;
                    padding: 0;

                    color: #77717f;
                    background: rgba(255, 255, 255, .96);

                    border: 1px solid rgba(77, 64, 118, .12);
                    border-radius: 999px;

                    font-size: 21px;
                    font-weight: 400;
                    line-height: 1;

                    box-shadow: 0 3px 10px rgba(39, 32, 59, .08);
                }


                .leaflet-popup.map2-leaflet-popup
                .leaflet-popup-close-button:hover {
                    color: #5538bd;
                    background: #f6f3ff;
                }


                .map2-popup {
                    min-width: 0;
                    color: #302d35;
                    font-size: .82rem;
                }


                .map2-popup-content {
                    padding: 15px 15px 14px;
                }


                .map2-popup-profile-head {
                    display: grid;
                    grid-template-columns: 64px minmax(0, 1fr);
                    gap: 12px;
                    align-items: center;
                    padding-right: 30px;
                }


                .map2-popup-avatar-box {
                    box-sizing: border-box;

                    width: 64px;
                    height: 64px;
                    overflow: hidden;

                    background: linear-gradient(145deg, #f4f1ff, #ece7ff);

                    border: 2px solid #ffffff;
                    border-radius: 50%;

                    box-shadow:
                        0 0 0 1px #ddd5f5,
                        0 5px 14px rgba(77, 57, 136, .14);
                }


                .map2-popup-avatar-small {
                    display: block !important;

                    width: 64px !important;
                    height: 64px !important;

                    min-width: 64px !important;
                    max-width: 64px !important;
                    min-height: 64px !important;
                    max-height: 64px !important;

                    margin: 0 !important;
                    padding: 0 !important;

                    object-fit: cover !important;
                    border: 0 !important;
                    border-radius: 50% !important;
                }


                .map2-popup-avatar-placeholder {
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    width: 64px;
                    height: 64px;

                    color: #715bd1;
                    font-size: 1.55rem;
                }


                .map2-popup-profile-copy {
                    min-width: 0;
                }


                .map2-popup-kicker {
                    display: flex;
                    align-items: center;
                    gap: 5px;

                    margin-bottom: 3px;

                    color: #72698a;

                    font-size: .68rem;
                    font-weight: 750;
                    line-height: 1.2;
                }


                .map2-popup-title {
                    margin: 0;

                    color: #2f2b35;

                    font-size: 1.06rem;
                    font-weight: 850;
                    line-height: 1.22;

                    overflow-wrap: anywhere;
                }


                .map2-popup-status-row {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 5px;
                    align-items: center;

                    margin-top: 7px;
                }


                .map2-popup-status-row .entry-freshness-badge,
                .map2-popup-confirmed {
                    margin: 0;
                    padding: .18rem .46rem;

                    border-radius: 999px;

                    font-size: .64rem;
                    font-weight: 750;
                    line-height: 1.15;
                }


                .map2-popup-confirmed {
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;

                    color: #24734e;
                    background: #edf8f2;

                    border: 1px solid #cae8d7;
                }


                .map2-popup-meta {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 5px 10px;

                    margin-top: 12px;
                    padding: 8px 10px;

                    color: #6f6b75;
                    background: #f8f7fb;

                    border: 1px solid #ece9f3;
                    border-radius: 10px;
                }


                .map2-popup-location,
                .map2-popup-distance,
                .map2-popup-date,
                .map2-popup-contact,
                .map2-popup-meta .entry-freshness-meta {
                    margin: 0;

                    color: inherit;

                    font-size: .69rem;
                    line-height: 1.3;
                }


                .map2-popup-meta .entry-freshness-meta {
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                }


                .map2-popup-roles {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 5px;

                    margin-top: 10px;
                }


                .map2-popup-role {
                    display: inline-flex;
                    align-items: center;

                    padding: 4px 7px;

                    color: #5d4a98;
                    background: #f2effc;

                    border: 1px solid #e2dbf6;
                    border-radius: 999px;

                    font-size: .66rem;
                    font-weight: 750;
                    line-height: 1.15;
                }


                .map2-popup-description {
                    display: -webkit-box;
                    overflow: hidden;

                    margin-top: 10px;

                    color: #57535e;

                    font-size: .74rem;
                    line-height: 1.46;

                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 3;
                    line-clamp: 3;
                }


                .map2-popup-actions {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 7px;

                    margin-top: 12px;
                    padding-top: 11px;

                    border-top: 1px solid #efedf3;
                }


                .map2-popup-actions > :only-child {
                    grid-column: 1 / -1;
                }


                .map2-popup-button,
                .map2-popup-actions .abdl-favorite-button {
                    box-sizing: border-box;

                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 5px;

                    width: 100%;
                    min-height: 36px;

                    margin: 0;
                    padding: 8px 9px;

                    border-radius: 10px;

                    font: inherit;
                    font-size: .7rem;
                    font-weight: 800;
                    line-height: 1.15;

                    text-decoration: none;
                    white-space: nowrap;
                }


                .map2-popup-button {
                    color: #ffffff;
                    background: #6947df;

                    border: 1px solid #6947df;

                    box-shadow: 0 4px 10px rgba(105, 71, 223, .16);
                }


                .map2-popup-button:hover {
                    color: #ffffff;
                    background: #5838c8;
                    border-color: #5838c8;
                }


                .map2-popup-actions .abdl-favorite-button {
                    color: #5d4d93;
                    background: #ffffff;

                    border: 1px solid #ddd6f4;

                    box-shadow: none;
                }


                .map2-popup-actions .abdl-favorite-button:hover {
                    color: #4e3d8b;
                    background: #f7f5ff;
                    border-color: #cec3f1;
                }


                .map2-popup-event .map2-popup-image-wrap {
                    overflow: hidden;

                    margin: -15px -15px 12px;
                }


                .map2-popup-event .map2-popup-image {
                    display: block;

                    width: 100%;
                    max-height: 175px;

                    object-fit: cover;
                }


                @media (max-width: 390px) {

                    .leaflet-popup.map2-leaflet-popup-community
                    .leaflet-popup-content,
                    .leaflet-popup.map2-leaflet-popup-event
                    .leaflet-popup-content {
                        width: calc(100vw - 44px) !important;
                        max-width: calc(100vw - 44px) !important;
                    }


                    .map2-popup-profile-head {
                        grid-template-columns: 56px minmax(0, 1fr);
                        gap: 10px;
                    }


                    .map2-popup-avatar-box,
                    .map2-popup-avatar-placeholder,
                    .map2-popup-avatar-small {
                        width: 56px !important;
                        height: 56px !important;
                        min-width: 56px !important;
                        max-width: 56px !important;
                        min-height: 56px !important;
                        max-height: 56px !important;
                    }
                }
