/* Геолокация в чате — карта OSM */
.chat-geo-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 20, 25, 0.72);
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.chat-geo-map-panel {
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    max-height: 100%;
    background: var(--surface-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.chat-geo-map-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.chat-geo-map-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary, #64748b);
    padding: 0 4px;
}

.chat-geo-map-title-wrap {
    flex: 1;
    min-width: 160px;
}

.chat-geo-map-title {
    margin: 0;
    font-size: 1rem;
}

.chat-geo-map-distance {
    margin: 4px 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color, #6366f1);
}

.chat-geo-map-bearing {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: var(--text-secondary, #64748b);
}

.chat-geo-map-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-geo-map-canvas {
    flex: 1;
    min-height: 320px;
    height: min(60vh, 520px);
    width: 100%;
}

.chat-geo-map-hint {
    margin: 0;
    padding: 8px 14px 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary, #94a3b8);
}

.chat-geo-tooltip {
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chat-live-location-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 4px 0;
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.08));
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
}

.chat-live-location-bubble:hover {
    border-color: var(--primary-color, #6366f1);
}

.chat-live-location-icon {
    color: #10b981;
    font-size: 1.25rem;
}

.chat-live-location-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.chat-live-location-action {
    font-size: 0.8125rem;
    color: var(--primary-color, #6366f1);
}

@media (max-width: 640px) {
    .chat-geo-map-overlay {
        padding: 0;
    }

    .chat-geo-map-panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .chat-geo-map-canvas {
        height: auto;
        flex: 1;
        min-height: 240px;
    }
}
