/*
 * Mapbox map popups and the REcharge contact modal.
 *
 * The modal classes are namespaced .nk-map-*. They used to be bare .modal,
 * .modal-content and .close-button, which collide with the Donation System now
 * that both live in this plugin and both stylesheets load site-wide. Every
 * selector here has a matching rename in js/mapbox.js.
 *
 * The .mapboxgl-* selectors are Mapbox GL's own class names and are left alone.
 */

/* Custom styles for Mapbox popups */
.mapboxgl-popup {
    max-width: 300px;
}

.mapboxgl-popup-content {
    color: #4d40b2 !important;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    font-size: .8rem;
    border-radius: .24rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mapboxgl-popup-tip {
    border-bottom-color: #ffffff;
}

.mapboxgl-popup h3 {
    margin: 0 0 .667rem;
    font-size: 1rem;
    color: #4d40b2;
}

.mapboxgl-popup a {
    color: #4d40b2;
    text-decoration: underline;
    font-weight: bold;
}

.mapboxgl-popup a:hover {
    text-decoration: underline;
}

/*
 * Deliberately NOT namespaced, unlike the modal selectors above.
 *
 * Nothing in this repo emits class="headshot"; it comes from Cornerstone
 * templates stored in the database, and a production count found it on 3 posts
 * and 18 postmeta rows. Renaming it silenced round avatars on all of them,
 * so the bare selector stays. There is no competing .headshot rule anywhere.
 */
.headshot {
    border-radius: 100%;
}

/* Modal styles */
.nk-map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.nk-map-modal-content {
    background-color: #fff;
    margin: 5rem auto;
    padding: 2.25rem 1.5rem 1rem;
    border: 1px solid #888;
    width: calc(100% - 3rem);
    max-width: 40rem;
    border-radius: 1rem;
}

.nk-map-close-button {
    color: #4d40b2;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
}

.nk-map-close-button:hover,
.nk-map-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
