
.pw-osm-map {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #f5f5f4 25%, #fafaf9 25%, #fafaf9 50%, #f5f5f4 50%, #f5f5f4 75%, #fafaf9 75%);
    background-size: 32px 32px;
    user-select: none;
    touch-action: none;
    cursor: grab;
}

.pw-osm-map.pw-osm-dragging {
    cursor: grabbing;
}

.pw-osm-tile-layer,
.pw-osm-overlay-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pw-osm-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    max-width: none !important;
    border: 0;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.pw-osm-marker {
    position: absolute;
    width: 34px;
    height: 46px;
    margin-left: -17px;
    margin-top: -43px;
    z-index: 30;
    cursor: grab;
    touch-action: none;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,.28));
}

.pw-osm-marker:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50% 50% 50% 0;
    background: #881337;
    border: 3px solid #fff;
    transform: rotate(-45deg);
    box-sizing: border-box;
}

.pw-osm-marker:after {
    content: "";
    position: absolute;
    left: 13px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.pw-osm-marker.pw-osm-marker-dragging {
    cursor: grabbing;
    transform: scale(1.08);
}

.pw-osm-controls {
    position: absolute;
    z-index: 50;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pw-osm-control {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    color: #292524;
    font: 700 20px/1 Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
}

.pw-osm-control:hover {
    background: #fff;
    color: #881337;
}

.pw-osm-attribution {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 50;
    background: rgba(255,255,255,.88);
    padding: 3px 6px;
    border-radius: 5px;
    font: 10px/1.35 Arial, sans-serif;
    color: #57534e;
}

.pw-osm-attribution a {
    color: #57534e;
    text-decoration: underline;
}

.pw-osm-loading {
    position: absolute;
    z-index: 20;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #78716c;
    font: 12px/1.2 Arial, sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}

.pw-osm-map.pw-osm-first-load .pw-osm-loading {
    opacity: 1;
}

.pw-osm-fallback {
    position: absolute;
    z-index: 18;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: rgba(250,250,249,.92);
    color: #57534e;
    font: 13px/1.55 Arial, sans-serif;
}

.pw-osm-map.pw-osm-no-tiles .pw-osm-fallback {
    display: flex;
}

@media (max-width: 640px) {
    .pw-osm-map {
        min-height: 320px;
    }
}
