/* Map display fixes for active call view */

/* Ensure map tab is visible when active */
#active-conversationMap {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the map container itself is visible */
#conversationIncidentMap {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    background-color: #1a1a1a !important;
    position: relative !important;
}

/* Fix for when map is inside the conversation tab */
.conversation-tab-content#active-conversationMap {
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

/* Ensure parent containers don't hide the map */
#active-conversationTab .flex-grow {
    position: relative !important;
    min-height: 0 !important;
}

/* Override any hidden states */
#active-conversationMap:not([style*="display: none"]) {
    display: block !important;
}

/* Leaflet specific fixes */
#conversationIncidentMap .leaflet-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}