.mrc-mapbox {
    position: relative;
    width: 100%;
    min-height: 240px;
    overflow: hidden;
}

.mrc-mapbox-error {
    padding: 15px;
    border: 1px solid #d63638;
    background: #fff;
    color: #d63638;
}

/* Marker */

.mrc-mapbox-marker {
    display: block;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform-origin: bottom center;
    transition: transform 0.2s ease, filter 0.2s ease;
    will-change: transform;
}

.mrc-mapbox-marker:hover {
    transform: scale(1.08);
}

.mrc-mapbox-marker-custom {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.mrc-mapbox-marker-default {
    color: #009ddf;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.mrc-mapbox-marker-default svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Popup */

.mrc-mapbox-popup {
    min-width: 200px;
    max-width: 350px;
}

.mrc-mapbox-popup-image {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.mrc-mapbox-popup-content {
    padding: 15px;
}

.mrc-mapbox-popup-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.mrc-mapbox-popup-description {
    font-size: 14px;
    line-height: 1.5;
}

.mrc-mapbox-popup-description p:first-child {
    margin-top: 0;
}

.mrc-mapbox-popup-description p:last-child {
    margin-bottom: 0;
}

.mrc-mapbox-popup-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    text-decoration: none;
}

.mrc-mapbox-popup-link:hover {
    text-decoration: underline;
}

/* Contenitore popup Mapbox */

.mrc-mapbox .mapboxgl-popup-content {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

/* Pulsante di chiusura */

.mrc-mapbox .mapboxgl-popup-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;

    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;

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

    border: 0 !important;
    border-radius: 50% !important;

    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;

    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    cursor: pointer !important;
    overflow: hidden !important;
}

.mrc-mapbox .mapboxgl-popup-close-button::before,
.mrc-mapbox .mapboxgl-popup-close-button::after {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    display: block !important;

    width: 14px !important;
    height: 2px !important;

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

    background: #222 !important;
    border: 0 !important;
    border-radius: 2px !important;

    transform-origin: center !important;
}

.mrc-mapbox .mapboxgl-popup-close-button::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.mrc-mapbox .mapboxgl-popup-close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.mrc-mapbox .mapboxgl-popup-close-button:hover,
.mrc-mapbox .mapboxgl-popup-close-button:focus {
    background: #f3f3f3 !important;
    outline: none !important;
}