/* Expertos Widget Styling */
.mimap-expertos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Sen', sans-serif;
}

/* Search Bar Area */
.mimap-experts-search-wrapper {
    margin-bottom: 30px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mimap-experts-search-wrapper .input-group {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.mimap-experts-search-wrapper input {
    border: 1px solid #eee;
    padding: 15px 20px;
    font-size: 16px;
}

.mimap-experts-search-wrapper .btn-search {
    background-color: #004494;
    color: white;
    padding: 0 25px;
    border: none;
    font-size: 20px;
}

/* Layout Grid */
.mimap-expertos-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .mimap-expertos-layout {
        flex-direction: row;
    }
}

/* Sidebar Filters */
.mimap-expertos-sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .mimap-expertos-sidebar {
        width: 280px;
        flex-shrink: 0;
    }
}

.mimap-filter-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.mimap-filter-card .filter-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mimap-filter-card .filter-header h6 {
    margin: 0;
    font-weight: 800;
    color: #333;
}

.mimap-filter-body {
    padding: 15px 20px;
    max-height: 400px;
    overflow-y: auto;
}

.mimap-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.mimap-filter-item:hover {
    color: #004494;
}

.mimap-filter-item input {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

/* Results Grid */
.mimap-expertos-results-area {
    flex-grow: 1;
}

.mimap-expertos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Column modifiers */
@media (min-width: 768px) {
    .mimap-expertos-grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .mimap-expertos-grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .mimap-expertos-grid--cols-1 {
        grid-template-columns: 1fr;
    }
}

/* When sidebar is hidden, extend layout to full width */
.mimap-no-sidebar .mimap-expertos-results-area {
    width: 100%;
}

/* Expert Card */
.mimap-experto-card {
    background: white;
    border-radius: 4px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.mimap-experto-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.mimap-experto-logo {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #004494;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    overflow: hidden;
    z-index: 2;
    padding: 10px;
}

.mimap-experto-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mimap-experto-content {
    margin-top: 30px;
}

.mimap-experto-content h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
}

.mimap-experto-content p.cargo {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
}

.mimap-experto-line {
    width: 50px;
    height: 3px;
    background: #004494;
    margin-bottom: 25px;
}

.contact-info {
    font-size: 15px;
    color: #444;
    margin-bottom: 30px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-info i {
    color: #004494;
    font-size: 20px;
    font-weight: 700;
}

.mimap-btn-contact {
    background: #ffcc00;
    color: #000;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    display: block;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.mimap-btn-contact:hover {
    background: #ffdb4d;
    color: #000;
}

/* Pagination */
.mimap-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mimap-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.mimap-page-btn.active {
    background: #004494;
    border-color: #004494;
    color: white;
}

.mimap-page-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* Skeleton Loading */
.mimap-skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: mimap-loading 1.5s infinite;
}

@keyframes mimap-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
