.projects-map-container {
    width: 100%;
    height: auto;
}

#projects-map {
    width: 100%;
    height: auto;
}

.leaflet-container {
    width: 100% !important;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 5px;
    right: 5px;
}

.leaflet-popup-content p {
    margin: 0 0 1.3em;
}

.custom-marker {
    border: none;
    background: transparent;
}

.custom-marker-cluster {
    border: none;
    background: transparent;
}

.project-popup {
    /* max-width set dynamically in JS */
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.project-popup strong {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

.project-popup h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    line-height: 1.2 !important;
}

.project-popup p {
    margin-bottom: 0 !important;
    font-size: 16px !important;
}

.project-popup a {
    color: #000 !important;
    text-decoration: underline !important;
    font-weight: normal !important;
    font-size: 16px !important;
}

.project-popup a:hover {
    text-decoration: none;
}

.project-popup img {
    margin-bottom: 10px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* SVG images used as logos/icons should be shown at a consistent height */
.project-popup img.is-svg {
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    margin-bottom: 20px !important;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .project-popup {
        padding: 8px;
        font-size: 13px;
    }

    .project-popup h3 {
        font-size: 17px !important;
    }

    .project-popup p {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .project-popup a {
        font-size: 14px !important;
    }

    .leaflet-container a.leaflet-popup-close-button {
        width: 24px;
        height: 24px;
        font-size: 18px;
        line-height: 22px;
        top: 5px;
        right: 5px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 3px;
    }

    .leaflet-popup-content-wrapper {
        border-radius: 8px;
    }
}