.hromady-map-dialog .modal-content {
    background: #fff;
    color: #212529;
}
.hromady-map-dialog .modal-header {
    background: #1f2a36;
    color: #fff;
    border-bottom: 0;
}
.hromady-map-dialog .modal-header .close {
    color: #fff;
    text-shadow: none;
    opacity: .9;
}
.hromady-map-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.hromady-map-filters {
    gap: 12px;
}
.hromady-map-filter {
    min-width: 180px;
    flex: 0 0 auto;
}
.hromady-map-filter--grow {
    flex: 1 1 220px;
}
.hromady-map-filter--actions {
    flex: 0 0 auto;
}
.hromady-map-body {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-height: 60vh;
}
.hromady-map {
    flex: 1 1 65%;
    height: 60vh;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}
.hromady-map-selected {
    flex: 0 0 280px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 12px;
    background: #f8f9fa;
}
.hromady-selected-header {
    margin-bottom: 8px;
}
.hromady-selected-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}
.hromady-selected-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 13px;
    gap: 6px;
}
.hromady-selected-list li:last-child {
    border-bottom: none;
}
.hromady-selected-list .hromady-remove {
    background: none;
    border: 0;
    color: #c0392b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}
.hromady-selected-empty {
    padding-top: 8px;
}
.hromady-map-popup {
    font-size: 13px;
    min-width: 200px;
}
.hromady-map-popup .hromady-popup-name {
    font-weight: 600;
    margin-bottom: 4px;
}
.hromady-map-popup .hromady-popup-meta {
    color: #555;
    margin-bottom: 6px;
}
.hromady-map-popup button {
    width: 100%;
}
.hromady-marker-selected {
    filter: hue-rotate(110deg) saturate(1.4);
}
.hromady-marker-tooltip {
    background: rgba(33, 37, 41, .9);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 3px 4px 3px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hromady-marker-tooltip::before {
    display: none;
}
.hromady-tooltip-name {
    line-height: 1.2;
}
.hromady-tooltip-btn {
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: filter .15s ease, background .15s ease;
}
.hromady-tooltip-btn--add {
    background: #27ae60;
}
.hromady-tooltip-btn--remove {
    background: #c0392b;
}
.hromady-tooltip-btn:hover:not([disabled]),
.hromady-tooltip-btn:focus:not([disabled]) {
    filter: brightness(1.12);
    outline: 0;
}
.hromady-tooltip-btn[disabled] {
    background: #6c757d;
    cursor: not-allowed;
    opacity: .6;
}
.hromady-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
}
.hromady-chips-inner {
    display: contents;
}
.hromady-chips__label {
    font-weight: 600;
    font-size: 13px;
    color: inherit;
    opacity: .85;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.hromady-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 4px 4px 10px;
    background: #2c7be5;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}
.hromady-chip__name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.hromady-chip__edrpou {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    opacity: .8;
    background: rgba(255, 255, 255, .15);
    padding: 1px 6px;
    border-radius: 999px;
}
.hromady-chip__remove {
    background: rgba(0, 0, 0, .2);
    border: 0;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 18px;
    padding: 0;
    cursor: pointer;
    transition: background .15s ease;
}
.hromady-chip__remove:hover,
.hromady-chip__remove:focus {
    background: rgba(0, 0, 0, .45);
    outline: 0;
}
@media (max-width: 768px) {
    .hromady-chip__name { max-width: 180px; }
}

@media (max-width: 768px) {
    .hromady-map-body {
        flex-direction: column;
        min-height: auto;
    }
    .hromady-map {
        flex: 1 1 auto;
        height: 45vh;
    }
    .hromady-map-selected {
        flex: 1 1 auto;
        max-height: 35vh;
    }
    .hromady-map-filter {
        min-width: 0;
        flex: 1 1 48%;
    }
    .hromady-map-filter--grow {
        flex: 1 1 100%;
    }
}
