.jfs-delivery-map-shell {
    position: relative;
    min-width: 0;
    height: 390px;
    overflow: hidden;
    border: 1px solid #cad3df;
    background: #eef3f7;
    isolation: isolate;
}

.jfs-delivery-map-shell:focus-within {
    outline: 3px solid rgba(216, 75, 66, .24);
    outline-offset: 3px;
}

.jfs-delivery-map-canvas,
.jfs-delivery-map-placeholder {
    position: absolute;
    inset: 0;
}

.jfs-delivery-map-canvas {
    z-index: 1;
    opacity: 0;
    transition: opacity .2s ease;
}

.jfs-delivery-map-placeholder {
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #071d3b;
    background: #eef3f7;
}

.jfs-delivery-map-placeholder::before {
    content: "";
    position: absolute;
    inset: 32px;
    border: 1px solid #d6dee7;
    background: #f7f9fb;
}

.jfs-delivery-map-placeholder span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 10px 14px;
    background: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.jfs-delivery-map-shell.is-ready .jfs-delivery-map-canvas {
    opacity: 1;
}

.jfs-delivery-map-shell.is-ready .jfs-delivery-map-placeholder {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.jfs-delivery-map-shell .leaflet-container {
    width: 100%;
    height: 100%;
    background: #e8eef3;
    font-family: inherit;
}

.jfs-delivery-map-shell .leaflet-control-zoom a {
    color: #071d3b;
}

.jfs-delivery-map-shell .leaflet-control-attribution {
    max-width: 64%;
    padding: 2px 5px;
    background: rgba(255, 255, 255, .9);
    font-size: 9px;
    line-height: 1.3;
}

.jfs-delivery-map-shell .leaflet-tooltip.jfs-state-tooltip {
    border: 0;
    border-radius: 2px;
    color: #071d3b;
    box-shadow: 0 3px 12px rgba(7, 29, 59, .16);
    font-size: .72rem;
    font-weight: 800;
}

.jfs-delivery-map-shell .leaflet-tooltip.jfs-state-label {
    margin: 0;
    padding: 3px 6px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .9);
    color: #9f1f26;
    box-shadow: 0 1px 4px rgba(7, 29, 59, .24);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .04em;
    pointer-events: none;
}

.jfs-delivery-map-shell .leaflet-tooltip.jfs-state-label::before {
    display: none;
}

.jfs-delivery-map-shell .leaflet-tooltip.jfs-state-label-callout {
    min-width: 32px;
    padding: 3px 6px;
    color: #7f121a;
    text-align: center;
    box-shadow: 0 2px 7px rgba(7, 29, 59, .2);
}

.jfs-delivery-map-shell .jfs-state-callout-arrow {
    border: 0;
    background: transparent;
    color: #9f1f26;
    font-size: 18px;
    line-height: 16px;
    pointer-events: none;
}

.jfs-delivery-map-shell .jfs-delivery-hub-marker {
    border: 0;
    background: transparent;
    color: #d71920;
    filter: drop-shadow(0 1px 2px rgba(7, 29, 59, .35));
    font-size: 14px;
    line-height: 16px;
}

.jfs-delivery-map-shell .jfs-delivery-hub-marker i {
    display: block;
    line-height: 16px;
}

.jfs-delivery-map-shell .leaflet-tooltip.jfs-delivery-hub-label {
    margin: 0;
    padding: 3px 6px;
    border: 1px solid rgba(7, 29, 59, .14);
    border-radius: 3px;
    color: #071d3b;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 6px rgba(7, 29, 59, .12);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    pointer-events: none;
}

.jfs-delivery-map-shell .leaflet-tooltip.jfs-delivery-hub-label::before {
    display: none;
}

.jfs-delivery-map-shell .jfs-state-callout-arrow i {
    display: block;
    line-height: 16px;
}

.jfs-delivery-map-shell .leaflet-interactive:focus {
    outline: none;
}

.jfs-delivery-map-shell .leaflet-popup-content {
    margin: 12px 15px;
    color: #071d3b;
    font-family: inherit;
    font-size: .8rem;
}

@media (max-width: 1199.98px) {
    .jfs-delivery-map-shell { height: 360px; }
}

@media (max-width: 991.98px) {
    .jfs-delivery-map-shell { height: 350px; }
}

@media (max-width: 767.98px) {
    .jfs-delivery-map-shell { height: 310px; }
    .jfs-delivery-map-placeholder::before { inset: 20px; }
    .jfs-delivery-map-shell .leaflet-tooltip.jfs-state-label {
        padding: 2px 4px;
        font-size: 8px;
    }
    .jfs-delivery-map-shell .leaflet-tooltip.jfs-state-label-callout {
        min-width: 30px;
    }
    .jfs-delivery-map-shell .leaflet-tooltip.jfs-delivery-hub-label {
        padding: 2px 4px;
        font-size: 8px;
    }
}

@media (max-width: 479.98px) {
    .jfs-delivery .jfs-delivery-grid { gap: 6px; }
    .jfs-delivery-map-shell { height: 250px; }
    .jfs-delivery-map-shell .leaflet-tooltip.jfs-state-label-callout {
        min-width: 28px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jfs-delivery-map-canvas { transition: none; }
}
