/*
 * Click to load map. The placeholder sets the box size (never below the old map
 * height, taller only if its text needs it on a narrow phone) and stays in place,
 * hidden, under the map once it loads, so nothing on the page moves.
 */
.sdd-map {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: var(--sdd-map-h, 350px);
    background: var(--purple-pale);
    background-image: radial-gradient(circle at 20% 25%, rgba(0, 204, 229, 0.14) 0, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(107, 47, 160, 0.12) 0, transparent 50%);
    overflow: hidden;
}

.sdd-map--fixed {
    height: auto;
}

/* The contact page box had a fixed height for the old frame; the map box sets it now. */
.map-container {
    height: auto;
}

.sdd-map__placeholder {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    text-align: center;
    line-height: 1.45;
}

.sdd-map__pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--purple);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sdd-map .sdd-map__name {
    margin: var(--space-xs) 0 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    line-height: 1.2;
    font-weight: 600;
    color: var(--purple-dark);
}

.sdd-map .sdd-map__address {
    margin: 0;
    font-size: var(--text-base);
    color: var(--grey-dark);
}

.sdd-map__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

/* .btn sets display, which would otherwise beat the hidden attribute. */
.sdd-map__show[hidden] {
    display: none;
}

.sdd-map .sdd-map__note {
    max-width: 34em;
    margin: var(--space-xs) 0 0;
    font-size: var(--text-xs);
    color: var(--grey-text);
}

.sdd-map__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sdd-map.is-loaded .sdd-map__placeholder {
    visibility: hidden;
}

@media (max-width: 480px) {
    .sdd-map__placeholder {
        padding: var(--space-md);
    }

    .sdd-map__pin {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}
