/* Atlas Pin (/atlas-pin): the street and the world map. Tiles and buttons come from the app kit. */

.atlas-pin-play {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--ak-space-3);
    width: min(100%, 1080px);
}

.atlas-pin-scene,
.atlas-pin-map {
    display: block;
    width: 100%;
    border-radius: 12px;
    touch-action: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(0, 0, 0, 0.14);
}

.atlas-pin-scene {
    aspect-ratio: 4 / 3;
    background: #8ec4ea;
}

/* The map takes the street's height beside it, and its own shape when the two stack. */
.atlas-pin-map-wrap {
    position: relative;
    min-height: 0;
}

.atlas-pin-map {
    position: absolute;
    inset: 0;
    height: 100%;
    background: #1f5a8c;
    cursor: crosshair;
}

.atlas-pin-map:active {
    cursor: grabbing;
}

.atlas-pin-map:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent);
}

.atlas-pin-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.atlas-pin-zoom-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: #1d2733;
    cursor: pointer;
}

.atlas-pin-zoom-btn:last-child {
    border-bottom: 0;
}

.atlas-pin-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.atlas-pin-zoom-btn:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: -2px;
}

.atlas-pin-zoom-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.atlas-pin-status {
    margin-top: var(--ak-space-2);
}

@media (max-width: 800px) {
    .atlas-pin-play {
        grid-template-columns: 1fr;
    }

    .atlas-pin-map-wrap {
        aspect-ratio: 16 / 10;
    }
}
