/* Prologis portfolio locator map (snippets/portfolio-map.php) */
.portfolio-map {
    position: relative;
    width: 100%;
}

.portfolio-map__canvas {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    cursor: default;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
    .portfolio-map__canvas {
        height: 0;
        padding-bottom: 75%;
    }
}

.portfolio-map__label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-div-icon.portfolio-map__label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
}

.portfolio-map__label:focus {
    outline: none;
}

.portfolio-map__label:focus span {
    outline: 2px solid #005a9c;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Only show the ring for keyboard focus, not mouse clicks */
.portfolio-map__label:focus:not(:focus-visible) span {
    outline: none;
}

.leaflet-container .portfolio-map__label span,
.portfolio-map__label span {
    position: absolute;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    filter: none;
}

.portfolio-map__label--callout span {
    color: #003840 !important;
}

.portfolio-map__label--on-land span {
    color: #333333 !important;
}

.portfolio-map__label--right span {
    transform: translate(-100%, -50%);
    text-align: left;
}

.portfolio-map__label--left span {
    transform: translate(0, -50%);
    text-align: left;
}

.portfolio-map__label--center span {
    transform: translate(-50%, -50%);
    text-align: center;
}

.leaflet-tooltip.portfolio-map__tooltip {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #333333;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 10px;
    white-space: normal;
    width: max-content;
    max-width: 240px;
}

.leaflet-tooltip.portfolio-map__tooltip::before {
    display: none;
}

.leaflet-tooltip.portfolio-map__tooltip big {
    font-size: 14px;
}

.portfolio-map .leaflet-container {
    font-family: inherit;
}

.portfolio-map .leaflet-control-attribution {
    background: #ffffff;
    color: #4a4a4a;
    font-size: 11px;
}

.portfolio-map .leaflet-control-attribution a {
    color: #4a4a4a;
    text-decoration: underline;
}
