.party-action-row {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.party-map-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(130, 196, 255, 0.34);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(61, 121, 255, 0.2), rgba(74, 210, 255, 0.16));
    color: #ecf5ff;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(74, 210, 255, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.party-map-open-button:hover,
.party-map-open-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 215, 106, 0.48);
    box-shadow: 0 10px 24px rgba(74, 210, 255, 0.18);
    background: linear-gradient(90deg, rgba(61, 121, 255, 0.28), rgba(74, 210, 255, 0.2));
    outline: none;
}

.party-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    padding: 6px;
    border-radius: 20px;
    background: rgba(5, 10, 24, 0.84);
    backdrop-filter: blur(7px);
}

.party-map-overlay[hidden] {
    display: none !important;
}

.parties-panel.is-map-open .party-map-overlay {
    display: flex;
}

.party-map-dialog {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(130, 196, 255, 0.24);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 106, 0.14), transparent 28%),
        linear-gradient(155deg, rgba(8, 17, 42, 0.96), rgba(18, 8, 36, 0.94));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.party-map-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff8d2;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.party-map-close-button:hover,
.party-map-close-button:focus-visible {
    transform: rotate(90deg);
    border-color: rgba(255, 215, 106, 0.42);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.party-map-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 44px;
    text-align: left;
}

.party-map-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 215, 106, 0.16);
    color: #ffe88e;
    font-family: 'Roboto Mono', Arial, sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.party-map-title {
    margin: 0;
    color: #fff7d4;
    font-family: 'Roboto Mono', Arial, sans-serif;
    font-size: 1.28rem;
    line-height: 1.2;
}

.party-map-intro,
.party-map-address {
    margin: 0;
    color: #dbe7ff;
    font-size: 0.94rem;
    line-height: 1.6;
}

.party-map-address {
    color: #ffd98d;
    font-weight: 700;
}

.party-map-frame-wrap {
    position: relative;
    min-height: 380px;
    border: 1px solid rgba(130, 196, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
}

.party-map-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.party-map-external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #eaf3ff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(130, 196, 255, 0.2);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.party-map-external-link:hover,
.party-map-external-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 215, 106, 0.34);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

@media (max-width: 768px) {
    .party-action-row {
        justify-content: stretch;
    }

    .party-map-open-button,
    .party-map-external-link {
        width: 100%;
    }

    .party-map-overlay {
        padding: 4px;
        border-radius: 18px;
    }

    .party-map-dialog {
        padding: 14px;
        border-radius: 16px;
    }

    .party-map-frame-wrap,
    .party-map-frame {
        min-height: 320px;
    }

    .party-map-title {
        font-size: 1.14rem;
    }
}