.map-icon-marker {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

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

.map-icon-marker .inner-circle {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transform: rotate(45deg);

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

.map-icon-marker .inner-circle svg {
    fill: var(--color-primary);
    width: 14px;
    height: 14px;
}

.map-popup-title {
    all: unset;
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    cursor: pointer;
}

.map-popup-title:hover {
    text-decoration: underline;
}

.modal-title--primary {
    font-weight: 700;
    color: var(--color-primary);
}

.modal-header {
    padding: 30px 30px 0 30px;
    align-items: start;
}

body.modal-open {
    padding-right: 0 !important;
}

.modal-dialog-custom {
    width: 80vw !important;
    max-width: 80vw !important;
}

.modal-custom {
    height: 70vh;
    max-height: 70vh !important;
}

.img-panel-mobile {
    height: 250px;
    width: 100%;
}

.custom-img-container {
    width: 100%;
    height: 250px;
}

@media (min-width: 992px) {
    .custom-img-container {
        width: 40%;
        height: 100%;
    }
}

.custom-img-panel {
    width: 100%;
    height: 200px;
}

@media (max-width: 768px) {
    .modal-dialog-custom {
        width: auto !important;
        max-width: 100% !important;
    }

    .modal-custom {
        height: 90vh;
        max-height: 90vh !important;
    }
}

@media (min-width: 768px) {
    .custom-img-panel {
        width: 40%;
        height: auto;
    }
}

.map-page-wrapper {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
}

.map-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
}

.map-buttons-row {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

#map {
    flex: 1;
    min-height: 0;
    position: relative;
    touch-action: pan-x pan-y;
}

#map:focus {
    outline: none;
}

.leaflet-container {
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: transparent;
}

.leaflet-popup-content button {
    cursor: pointer;
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.modal-open #map {
    pointer-events: none;
}

@supports (-webkit-touch-callout: none) {
    .map-page-wrapper {
        height: -webkit-fill-available;
    }
}
