
body, html { margin: 0; padding: 0; height: 100%; font-family: Arial, sans-serif; background-color: #041f3f; }
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff; /* azul escuro */
    color: #041f3f; /* texto branco */
    padding: 1rem;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.menu h1 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    color: #041f3f;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    
}
.menu-header img {
    height: 40px;
}


.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 0 1 auto;
    min-width: 200px;
}

.menu-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 200px;
}


.menu-nav a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
    background-color: #f79633;
}

.menu-nav a:hover {
    background-color: #f79633;
    color: #FFF;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.filters select {
    background: white;
    color: #041f3f;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0.2rem;
}

.menu h1 {
    font-size: 1.2rem;
    margin: 0;
    
}
#map {
    position: absolute;
    top: 160px;
    bottom: 0;
    width: 100%;
    height: calc(100% - 160px);
    z-index: 0;
}
.sidebar {
    position: fixed;
    top: 160px;
    right: 0;
    width: 300px;
    max-height: calc(100% - 160px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 1rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}
.professional {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
    padding: 0.5rem;
}
.professional:hover { background-color: #ccc; }
.professional img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #041f3f;
}
.professional-info { flex: 1; }
.professional-info strong { color: #041f3f; }
#loadingIcon {
    text-align: center;
    padding: 1rem;
    display: none;
    font-size: 14px;
    color: #555;
}
.floating-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background-color: #f26935;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    z-index: 1002;
    transition: background-color 0.3s;
}
.floating-btn:hover { background-color: #d95829; }

/* Select2 custom styles */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #041f3f !important;
    color: #FFF !important;
    border: none;
    font-weight: bold;
}
.select2-container--default .select2-selection--multiple {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    min-height: 38px;
    max-height: 90px;
    padding: 0.2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
#stateFilter.select2-hidden-accessible + .select2-container { width: 140px !important; }
#cityFilter.select2-hidden-accessible + .select2-container { width: 200px !important; }
#specialtyFilter.select2-hidden-accessible + .select2-container { width: 400px !important; }

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        top: auto;
        bottom: 0;
        max-height: 40%;
    }
    #map {
        top: 160px;
        height: calc(60% - 160px);
    }
}
@media (max-width: 500px) {
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .menu-nav {
        justify-content: flex-start;
        width: 100%;
    }
}

.main-content {
    display: flex;
    height: calc(100vh - 150px);
    /* ajusta conforme necessário */
    overflow: hidden;
}

#map {
    flex: 2;
    height: 100%;
}

#professionalList.sidebar {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    /* altura padrão (desktop) */
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 1px solid #ccc;
}

/* 🔽 Quando for tela pequena (mobile), muda o layout */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        /* empilha o mapa e a lista */
    }

    #map {
        height: 78%;
        /* ocupa 78% da altura */
        flex: none;
    }

    #professionalList.sidebar {
        height: 30%;
        /* ocupa 22% da altura */
        flex: none;
        border-left: none;
        border-top: 1px solid #ccc;
    }
}
