.actopim-dynamic-map,
.actopim-dynamic-map * {
    box-sizing: border-box;
}

.actopim-dynamic-map {
    --actopim-map-accent: #007f78;
    --actopim-map-ink: #17313b;
    --actopim-map-muted: #647680;
    --actopim-map-line: #dce5e8;
    --actopim-map-soft: #f5f8f8;
    --actopim-map-warm: #c58b17;
    --actopim-map-alert: #d75d46;
    width: 100%;
    color: var(--actopim-map-ink);
    font-family: inherit;
}

.actopim-map-loading {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--actopim-map-line);
    background: var(--actopim-map-soft);
    color: var(--actopim-map-muted);
}

.actopim-map-shell {
    border: 1px solid var(--actopim-map-line);
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.actopim-map-shell:fullscreen {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.actopim-map-shell:fullscreen .actopim-map-workspace,
.actopim-map-shell:fullscreen .actopim-map-stage,
.actopim-map-shell:fullscreen .actopim-map-canvas {
    min-height: 100vh;
    height: 100vh;
}

.actopim-map-workspace {
    position: relative;
    display: block;
    min-height: var(--actopim-map-height);
    --actopim-map-side-width: clamp(260px, 24vw, 380px);
    --actopim-map-detail-width: clamp(300px, 28vw, 430px);
}

.actopim-map-shell.is-side-closed .actopim-map-workspace {
    grid-template-columns: none;
}

.actopim-map-side {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 650;
    width: var(--actopim-map-side-width);
    min-width: 0;
    border-right: 1px solid rgba(23, 49, 59, 0.14);
    background: #ffffff;
    overflow: auto;
    max-height: none;
    opacity: 1;
    box-shadow: 12px 0 28px rgba(21, 49, 59, 0.16);
    transform: translateX(0);
    transition: transform 0.24s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.actopim-map-shell.is-side-closed .actopim-map-side {
    border-right-color: transparent;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(-100% - 1px));
}

.actopim-map-section {
    padding: 14px;
    border-bottom: 1px solid var(--actopim-map-line);
}

.actopim-map-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #38515a;
}

.actopim-map-count {
    color: var(--actopim-map-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
}

.actopim-map-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--actopim-map-muted);
    font-size: 13px;
    font-weight: 700;
}

.actopim-map-input,
.actopim-map-select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--actopim-map-line);
    background: #ffffff;
    color: var(--actopim-map-ink);
    padding: 8px 10px;
    font: inherit;
    border-radius: 4px;
    outline: none;
}

.actopim-map-input:focus,
.actopim-map-select:focus {
    border-color: var(--actopim-map-accent);
    box-shadow: 0 0 0 3px rgba(0, 127, 120, 0.12);
}

.actopim-map-actions {
    display: flex;
    gap: 8px;
}

.actopim-map-button,
.actopim-map-location {
    appearance: none;
    border: 1px solid var(--actopim-map-line);
    background: #ffffff;
    color: var(--actopim-map-ink);
    cursor: pointer;
    font: inherit;
}

.actopim-map-button {
    min-height: 40px;
    padding: 8px 13px;
    font-weight: 800;
    border-radius: 4px;
}

.actopim-map-button.primary {
    border-color: var(--actopim-map-accent);
    background: var(--actopim-map-accent);
    color: #ffffff;
}

.actopim-map-button.subtle {
    width: 100%;
    min-height: 36px;
    border-color: #dce5e8;
    background: #f7fbfb;
    color: #31545c;
    font-size: 12px;
    font-weight: 500;
}

.actopim-map-button.subtle:hover {
    border-color: var(--actopim-map-accent);
    color: var(--actopim-map-accent);
}

.actopim-map-error {
    margin-top: 10px;
    padding: 8px 10px;
    border-left: 3px solid #d75d46;
    background: #fff4f1;
    color: #913827;
    font-size: 13px;
}

.actopim-map-side > .actopim-map-error {
    margin: 12px 16px 0;
}

.actopim-dynamic-map .actopim-map-list {
    display: grid;
    gap: 0;
    border: 1px solid #e6eef0;
    background: #ffffff;
}

.actopim-dynamic-map .actopim-map-location {
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #edf3f4;
    border-radius: 0;
    background: #ffffff;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.actopim-dynamic-map .actopim-map-location:last-child {
    border-bottom: 0;
}

.actopim-dynamic-map .actopim-map-location:hover {
    background: #f7fbfb;
}

.actopim-dynamic-map .actopim-map-location.active {
    background: #f1fbfa;
    box-shadow: inset 3px 0 0 var(--actopim-map-accent);
}

.actopim-map-location-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.actopim-map-location-name {
    display: block;
    font-weight: 500;
    line-height: 1.25;
    color: #17313b;
}

.actopim-map-location-place,
.actopim-map-location-desc {
    display: block;
    color: var(--actopim-map-muted);
    font-size: 13px;
}

.actopim-map-location-desc {
    margin-top: 7px;
    line-height: 1.35;
}

.actopim-map-location-contact {
    display: block;
    margin-top: 7px;
    color: #31545c;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.actopim-map-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    max-width: 110px;
    padding: 3px 7px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
    border-radius: 4px;
    text-align: center;
}

.actopim-map-empty {
    padding: 14px;
    border: 1px dashed var(--actopim-map-line);
    background: #ffffff;
    color: var(--actopim-map-muted);
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
}

.actopim-map-stage {
    position: relative;
    min-height: var(--actopim-map-height);
    overflow: hidden;
    background: #a9dce8;
    isolation: isolate;
}

.actopim-map-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 430;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 127, 120, 0.18), rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.actopim-map-shell:not(.is-side-closed) .actopim-map-stage::after {
    opacity: 1;
}

.actopim-map-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: var(--actopim-map-height);
    z-index: 1;
}

.actopim-dynamic-map .leaflet-container {
    background: #a9dce8;
    font-family: inherit;
}

.actopim-dynamic-map .leaflet-control-zoom {
    border: 1px solid rgba(23, 49, 59, 0.16);
    box-shadow: 0 5px 16px rgba(21, 49, 59, 0.12);
}

.actopim-dynamic-map .leaflet-control-zoom a {
    border-color: rgba(23, 49, 59, 0.12);
    color: #17313b;
}

.actopim-dynamic-map .leaflet-control-scale-line {
    border-color: rgba(23, 49, 59, 0.42);
    color: #17313b;
    background: rgba(255, 255, 255, 0.76);
}

.actopim-dynamic-map .actopim-map-side-toggle {
    appearance: none;
    position: absolute !important;
    top: 16px !important;
    left: 16px;
    z-index: 1200;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 127, 120, 0.18);
    background: rgba(255, 255, 255, 0.96) !important;
    color: #007f78 !important;
    cursor: pointer;
    font: inherit;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    box-shadow: 0 10px 24px rgba(21, 49, 59, 0.18);
    border-radius: 6px !important;
    transform: none;
    backdrop-filter: blur(8px);
    transition: left 0.24s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.actopim-dynamic-map .actopim-map-shell:not(.is-side-closed) .actopim-map-side-toggle {
    left: calc(var(--actopim-map-side-width) + 12px);
}

.actopim-dynamic-map .actopim-map-side-toggle span {
    display: block;
    transform: translateY(-2px);
}

.actopim-dynamic-map .actopim-map-side-toggle:hover,
.actopim-dynamic-map .actopim-map-side-toggle[aria-expanded="true"] {
    background: #007f78 !important;
    border-color: #007f78;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 127, 120, 0.22);
}

.actopim-dynamic-map .actopim-map-side-toggle:hover {
    transform: translateY(-1px);
}

.actopim-dynamic-map .actopim-map-toolbar {
    position: absolute !important;
    top: 16px !important;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1200;
    max-width: calc(100% - 74px);
    min-height: 44px;
    padding: 5px;
    border: 1px solid rgba(23, 49, 59, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(21, 49, 59, 0.14);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.actopim-dynamic-map .actopim-map-filterbar {
    position: absolute !important;
    top: 16px !important;
    left: calc(var(--actopim-map-side-width) + 64px);
    right: min(472px, 36%);
    z-index: 1190;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 5px;
    border: 1px solid rgba(23, 49, 59, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(21, 49, 59, 0.14);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.actopim-dynamic-map .actopim-map-shell.is-side-closed .actopim-map-filterbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.actopim-dynamic-map .actopim-map-filter-field {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 118px;
    height: 34px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid rgba(23, 49, 59, 0.1);
    background: rgba(245, 248, 248, 0.86);
    color: var(--actopim-map-muted);
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-filter-field.search {
    flex: 1 1 190px;
    min-width: 180px;
}

.actopim-dynamic-map .actopim-map-filterbar .actopim-map-input,
.actopim-dynamic-map .actopim-map-filterbar .actopim-map-select {
    min-height: 0;
    height: 30px;
    min-width: 0;
    width: 100%;
    padding: 4px 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--actopim-map-ink);
    font-size: 12px;
}

.actopim-dynamic-map .actopim-map-filter-clear {
    appearance: none;
    height: 34px;
    min-width: 64px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(23, 49, 59, 0.1);
    background: rgba(255, 255, 255, 0.96);
    color: var(--actopim-map-ink);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-filter-clear:hover {
    border-color: var(--actopim-map-accent);
    color: var(--actopim-map-accent);
}

.actopim-dynamic-map .actopim-map-layer-field {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(23, 49, 59, 0.1);
    background: rgba(245, 248, 248, 0.86) !important;
    color: var(--actopim-map-muted) !important;
    font-size: 11px;
    font-weight: 500;
    box-shadow: none;
    border-radius: 4px;
    pointer-events: auto;
}

.actopim-dynamic-map .actopim-map-layer-select {
    appearance: none;
    min-width: 108px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--actopim-map-ink) !important;
    font: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.actopim-dynamic-map .actopim-map-tool-button {
    appearance: none;
    min-width: 68px;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(23, 49, 59, 0.1);
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--actopim-map-ink) !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    border-radius: 4px !important;
    pointer-events: auto;
    transform: none;
    white-space: nowrap;
}

.actopim-dynamic-map .actopim-map-tool-button.icon {
    min-width: 34px;
    width: 34px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
}

.actopim-dynamic-map .actopim-map-tool-button:disabled {
    cursor: progress;
    opacity: 0.62;
}

.actopim-dynamic-map .actopim-map-tool-button.focus-exit {
    border-color: rgba(36, 25, 93, 0.2);
    background: rgba(36, 25, 93, 0.08) !important;
    color: #24195d !important;
}

.actopim-dynamic-map .actopim-map-tool-button:hover {
    border-color: var(--actopim-map-accent);
    color: var(--actopim-map-accent) !important;
    background: #ffffff !important;
}

.actopim-dynamic-map .leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.actopim-dynamic-map .leaflet-popup-content {
    width: auto !important;
    min-width: 150px;
    max-width: min(260px, calc(100vw - 96px));
    margin: 10px 12px;
}

.actopim-dynamic-map .leaflet-control-attribution {
    display: none !important;
}

.actopim-dynamic-map .leaflet-container {
    cursor: grab;
}

.actopim-dynamic-map .leaflet-container:active {
    cursor: grabbing;
}

.actopim-map-marker-icon {
    filter: drop-shadow(0 4px 7px rgba(21, 49, 59, 0.3));
    transform: translateZ(0);
}

.actopim-map-connection-line {
    filter: drop-shadow(0 1px 3px rgba(36, 25, 93, 0.16));
    stroke-linecap: round;
    stroke-linejoin: round;
}

.actopim-map-connection-image,
.actopim-map-connection-arrow {
    filter: drop-shadow(0 2px 6px rgba(36, 25, 93, 0.24)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.9));
    transform-origin: center;
}

.actopim-map-flow-arrow {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(36, 25, 93, 0.42), 0 0 8px rgba(255, 255, 255, 0.82);
    transform-origin: center;
}

.actopim-map-active-note {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 500;
    max-width: min(360px, calc(100% - 28px));
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--actopim-map-line);
    color: var(--actopim-map-ink);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(21, 49, 59, 0.12);
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-detail {
    position: absolute;
    top: 78px;
    right: 16px;
    bottom: 18px;
    z-index: 1100;
    width: min(var(--actopim-map-detail-width), calc(100% - 32px));
    border: 1px solid rgba(23, 49, 59, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--actopim-map-ink);
    box-shadow: 0 18px 42px rgba(21, 49, 59, 0.18);
    border-radius: 6px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.actopim-dynamic-map .actopim-map-detail[hidden] {
    display: none;
}

.actopim-dynamic-map .actopim-map-detail-head {
    display: none;
}

.actopim-dynamic-map .actopim-map-detail-close {
    appearance: none !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 5;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(23, 49, 59, 0.14) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #17313b !important;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: 0 6px 16px rgba(21, 49, 59, 0.12) !important;
    border-radius: 4px !important;
    transform: none !important;
}

.actopim-dynamic-map .actopim-map-detail-close:hover {
    border-color: var(--actopim-map-accent) !important;
    color: var(--actopim-map-accent) !important;
    background: #ffffff !important;
}

.actopim-dynamic-map .actopim-map-detail-nav {
    appearance: none !important;
    position: absolute !important;
    top: 10px !important;
    z-index: 6;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(23, 49, 59, 0.12) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #17313b !important;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(21, 49, 59, 0.16) !important;
    border-radius: 4px !important;
    transform: none !important;
}

.actopim-dynamic-map .actopim-map-detail-nav.prev {
    right: 76px !important;
    left: auto !important;
}

.actopim-dynamic-map .actopim-map-detail-nav.next {
    right: 43px !important;
}

.actopim-dynamic-map .actopim-map-detail-nav:hover {
    border-color: var(--actopim-map-accent) !important;
    background: var(--actopim-map-accent) !important;
    color: #ffffff !important;
}

.actopim-dynamic-map .actopim-map-detail-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    max-height: 100%;
    padding: 16px;
    padding-top: 42px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.actopim-dynamic-map .actopim-map-detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding-right: 34px;
}

.actopim-dynamic-map .actopim-map-detail-title {
    color: #102b35;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.actopim-dynamic-map .actopim-map-detail-place {
    margin-top: 4px;
    color: var(--actopim-map-muted);
    font-size: 13px;
    line-height: 1.35;
}

.actopim-dynamic-map .actopim-map-detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    max-width: 110px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.actopim-dynamic-map .actopim-map-detail-slider {
    position: relative;
    aspect-ratio: 16 / 8.4;
    width: 100%;
    margin-top: 2px;
    border: 1px solid #e1eaed;
    background: #edf4f5;
    overflow: hidden;
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-detail-slider-track {
    display: flex;
    width: calc(var(--slide-count) * 100%);
    height: 100%;
    transition: transform 0.28s ease;
}

.actopim-dynamic-map .actopim-map-detail-slide {
    flex: 0 0 calc(100% / var(--slide-count));
    height: 100%;
    margin: 0;
}

.actopim-dynamic-map .actopim-map-detail-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actopim-dynamic-map .actopim-map-detail-slide-button {
    appearance: none !important;
    position: absolute !important;
    top: 50% !important;
    z-index: 6;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    background: rgba(0, 127, 120, 0.94) !important;
    color: #ffffff !important;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(21, 49, 59, 0.28) !important;
    border-radius: 4px !important;
    transform: translateY(-50%) !important;
}

.actopim-dynamic-map .actopim-map-detail-slide-button.prev {
    left: 8px !important;
}

.actopim-dynamic-map .actopim-map-detail-slide-button.next {
    right: 8px !important;
}

.actopim-dynamic-map .actopim-map-detail-slide-button:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: #312783 !important;
}

.actopim-dynamic-map .actopim-map-detail-slide-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    min-width: 38px;
    padding: 4px 7px;
    background: rgba(23, 49, 59, 0.74);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
    grid-auto-rows: 36px;
}

.actopim-dynamic-map .actopim-map-detail-scroll {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
}

.actopim-dynamic-map .actopim-map-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--actopim-map-line);
    background: #ffffff;
    color: #17313b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-detail-link:hover {
    border-color: var(--actopim-map-accent);
    color: var(--actopim-map-accent);
}

.actopim-dynamic-map .actopim-map-detail-link.primary {
    border-color: var(--actopim-map-accent);
    background: var(--actopim-map-accent);
    color: #ffffff;
}

.actopim-dynamic-map .actopim-map-detail-link.whatsapp {
    border-color: #1fae67;
    background: #1fae67;
    color: #ffffff;
}

.actopim-dynamic-map .actopim-map-detail-grid {
    display: grid;
    gap: 6px;
}

.actopim-dynamic-map .actopim-map-detail-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #e6eef0;
    background: #fbfdfd;
    border-radius: 4px;
}

.actopim-dynamic-map .actopim-map-detail-row span {
    color: var(--actopim-map-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    min-height: 16px;
}

.actopim-dynamic-map .actopim-map-detail-row strong {
    color: #17313b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    min-height: 16px;
    overflow-wrap: anywhere;
}

.actopim-dynamic-map .actopim-map-detail-row strong a {
    color: var(--actopim-map-accent);
    text-decoration: none;
}

.actopim-dynamic-map .actopim-map-detail-row strong a:hover {
    text-decoration: underline;
}

.actopim-map-coordinates {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 500;
    padding: 6px 8px;
    border: 1px solid rgba(23, 49, 59, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: #31545c;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(21, 49, 59, 0.12);
    border-radius: 4px;
    pointer-events: none;
    transform: translateX(-50%);
}

.actopim-map-ctrl-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1300;
    max-width: min(320px, calc(100% - 40px));
    padding: 10px 14px;
    border: 1px solid rgba(23, 49, 59, 0.14);
    background: rgba(23, 49, 59, 0.86);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 12px 28px rgba(21, 49, 59, 0.22);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.16s ease;
}

.actopim-map-ctrl-hint.is-visible {
    opacity: 1;
}

.actopim-map-popup-title {
    font-weight: 700;
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    color: #17313b;
}

.actopim-map-popup-meta {
    color: #5d7078;
    font-size: 12px;
    margin-bottom: 6px;
}

.actopim-map-popup-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    margin-top: 7px;
    font-size: 12px;
}

.actopim-map-popup-row strong {
    color: #31545c;
}

.actopim-map-popup-row span {
    color: #17313b;
    overflow-wrap: anywhere;
}

.actopim-map-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.actopim-map-popup-link {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid var(--actopim-map-line);
    background: #ffffff;
    color: var(--actopim-map-accent);
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

.actopim-map-popup-link.primary {
    border-color: var(--actopim-map-accent);
    background: var(--actopim-map-accent);
    color: #ffffff;
}

@media (max-width: 860px) {
    .actopim-map-workspace {
        --actopim-map-side-width: clamp(248px, 42vw, 340px);
        --actopim-map-detail-width: clamp(292px, 44vw, 380px);
    }

    .actopim-map-shell.is-side-closed .actopim-map-workspace {
        grid-template-columns: none;
    }

    .actopim-map-side {
        border-right: 1px solid rgba(23, 49, 59, 0.14);
    }

    .actopim-map-shell.is-side-closed .actopim-map-side {
        display: block;
    }

    .actopim-map-shell:not(.is-side-closed) .actopim-map-side {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .actopim-dynamic-map .actopim-map-toolbar {
        top: 10px;
        right: 10px;
        left: 58px;
        max-width: none;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .actopim-dynamic-map .actopim-map-filterbar {
        top: 58px !important;
        left: calc(var(--actopim-map-side-width) + 8px);
        right: 10px;
        flex-wrap: wrap;
    }

    .actopim-dynamic-map .actopim-map-filter-field {
        flex: 1 1 126px;
    }

    .actopim-dynamic-map .actopim-map-side-toggle {
        top: 10px;
        left: 10px;
        transform: none;
    }

    .actopim-dynamic-map .actopim-map-shell:not(.is-side-closed) .actopim-map-side-toggle {
        left: calc(var(--actopim-map-side-width) + 8px);
    }

    .actopim-dynamic-map .actopim-map-side-toggle:hover {
        transform: translateY(-1px);
    }

    .actopim-dynamic-map .actopim-map-detail {
        top: 112px;
        right: 10px;
        bottom: 10px;
        width: min(var(--actopim-map-detail-width), calc(100% - 20px));
    }

    .actopim-dynamic-map .actopim-map-detail-body {
        padding: 12px;
        padding-top: 42px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 520px) {
    .actopim-map-workspace {
        --actopim-map-side-width: min(88vw, calc(100% - 48px));
    }

    .actopim-dynamic-map .actopim-map-layer-field {
        flex: 1 1 150px;
    }

    .actopim-dynamic-map .actopim-map-layer-select {
        min-width: 0;
        width: 100%;
    }

    .actopim-dynamic-map .actopim-map-tool-button {
        min-width: 64px;
        padding: 0 10px;
    }

    .actopim-dynamic-map .actopim-map-toolbar {
        left: 10px;
        top: 58px;
        justify-content: flex-start;
    }

    .actopim-dynamic-map .actopim-map-filterbar {
        top: 112px !important;
        left: 10px;
        right: 10px;
    }

    .actopim-dynamic-map .actopim-map-filter-field,
    .actopim-dynamic-map .actopim-map-filter-field.search {
        flex: 1 1 100%;
        min-width: 0;
    }

    .actopim-dynamic-map .actopim-map-detail {
        top: 154px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    .actopim-dynamic-map .actopim-map-detail-title-row,
    .actopim-dynamic-map .actopim-map-detail-row {
        grid-template-columns: 1fr;
    }

    .actopim-dynamic-map .actopim-map-detail-actions {
        grid-template-columns: 1fr;
    }

    .actopim-dynamic-map .actopim-map-detail-row {
        gap: 4px;
    }

    .actopim-dynamic-map .actopim-map-detail-slider {
        aspect-ratio: 4 / 3;
    }

    .actopim-dynamic-map .actopim-map-detail-nav {
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        font-size: 20px !important;
    }

    .actopim-dynamic-map .actopim-map-detail-body {
        padding-left: 12px;
        padding-right: 12px;
    }
}
