.rrm-card {
    width: 100%;
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    box-sizing: border-box;
}

.rrm-card * {
    box-sizing: border-box;
}

.rrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.rrm-heading-wrap {
    min-width: 0;
}

.rrm-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.rrm-subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

.rrm-button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #10b981);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.rrm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.34);
}

.rrm-button:active {
    transform: translateY(0);
    opacity: 0.92;
}

.rrm-map {
    position: relative;
    width: 100%;
    height: var(--rrm-height, 620px);
    min-height: 220px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.18), transparent 32%),
        radial-gradient(circle at 70% 70%, rgba(20, 184, 166, 0.14), transparent 34%),
        #f8fafc;
}

.rrm-map .leaflet-container,
.rrm-map.leaflet-container {
    background: transparent;
}

.rrm-loading,
.rrm-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
}

.rrm-loading {
    color: #475569;
}

.rrm-error {
    color: #b91c1c;
    background: rgba(255, 255, 255, 0.68);
}

.rrm-region-tooltip {
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .rrm-card {
        padding: 14px;
        border-radius: 22px;
    }

    .rrm-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rrm-button {
        width: 100%;
    }

    .rrm-map {
        height: var(--rrm-mobile-height, 460px);
        border-radius: 18px;
    }
}
