﻿:root {
    /* Cores Clean & Clinical (Azul/Verde Claro/Branco) */
    --primary-color: #0d9488; /* Teal 600 */
    --primary-hover: #0f766e; /* Teal 700 */
    --secondary-color: #0ea5e9; /* Sky 500 */
    --background-light: #f0fdfa; /* Teal 50 */
    --surface-color: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --border-color: rgba(203, 213, 225, 0.5); /* Slate 300 com opacidade */
    
    /* Sombras e Efeitos (Glassmorphism) */
    --glass-shadow: 0 8px 32px 0 rgba(13, 148, 136, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    
    /* Background com gradiente suave estilo clínico/saúde */
    background-image: 
        radial-gradient(at 0% 0%, hsla(184, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(199, 100%, 93%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(172, 66%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(214, 100%, 96%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
}

/* Utilitários Visuais */
.hidden {
    display: none !important;
}

.glass-panel {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

/* Sistema de Telas (Views) */
.view {
    display: none;
    opacity: 0;
    animation: fadeIn var(--transition-smooth) forwards;
}

.view.active {
    display: block;
}

#login-view.active, #register-view.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botões */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.23);
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
}

.btn-secondary {
    background: #25D366; /* WhatsApp Green */
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #1ebc5a;
}

.btn-icon {
    background: transparent;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
}

.btn-icon:hover {
    background: rgba(0,0,0,0.05);
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-group input, .rating-select select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input:focus, .rating-select select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
    outline: none;
    background: #fff;
}

/* Login View */
#login-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-header .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.5);
    padding: 6px;
    border-radius: 14px;
}

.role-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 500;
}

.role-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* App Header & Layout */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 4%;
}

/* Search Bar */
.search-bar {
    text-align: center;
}

.search-bar h2 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-size: 1rem;
}

/* Category Tabs (Filtros na Home) */
.category-tabs-container {
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
    justify-content: center;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:hover {
    background: white;
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

/* Vertical List - Cards de Profissionais */
.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.professional-card {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: pointer;
}

.professional-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.1);
}

.card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-info {
    flex: 1;
}

.card-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

.card-info .specialty {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.card-info .rating {
    font-size: 0.9rem;
    color: #f59e0b;
}

/* Profile Page */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: -60px; /* Overlap effect */
    background: white;
}

.specialty-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 8px 0 16px 0;
}

/* Tabs */
.tabs-container {
    display: flex;
    flex-direction: column;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.tabs-header::-webkit-scrollbar {
    display: none; /* Chrome */
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.tab-pane {
    display: none;
    animation: fadeIn var(--transition-fast) forwards;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Aba Conteúdos */
.styled-list li {
    background: rgba(255,255,255,0.6);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    list-style: none;
    display: flex;
    align-items: center;
}
.styled-list li::before {
    content: '✅';
    margin-right: 10px;
}

/* Galeria */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.photo-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform var(--transition-fast);
}

.photo-grid img:hover {
    transform: scale(1.05);
}

/* Preços */
.pricing-list .price-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.price-item strong {
    color: var(--primary-color);
}

/* Comentários */
.add-comment-box {
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.add-comment-box textarea {
    min-height: 80px;
    resize: vertical;
    margin-bottom: 10px;
}

.rating-select {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-author {
    font-weight: 600;
}
.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toast Notificações */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

body.dark-mode .toast {
    background: var(--surface-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Dark Mode */
body.dark-mode {
    --background-light: #0f172a;
    --surface-color: rgba(30, 41, 59, 0.85);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(51, 65, 85, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    
    background-image: 
        radial-gradient(at 0% 0%, hsla(184, 100%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(199, 100%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(172, 66%, 12%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(214, 100%, 18%, 1) 0px, transparent 50%);
}

body.dark-mode .input-group input, 
body.dark-mode .rating-select select, 
body.dark-mode textarea {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-main);
}
body.dark-mode .category-btn { background: rgba(30, 41, 59, 0.7); }
body.dark-mode .category-btn:hover { background: rgba(51, 65, 85, 0.9); }
body.dark-mode .tab-btn { background: rgba(30, 41, 59, 0.6); }
body.dark-mode .price-item, body.dark-mode .comment-card, body.dark-mode .add-comment-box {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-main);
}

/* Carrossel de Categorias Premium */
.categories-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none;
}
.categories-carousel::-webkit-scrollbar { display: none; }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15);
}
.category-card.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.category-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skeleton Loading */
.skeleton {
    background: #e2e8f0;
    background-image: linear-gradient(90deg, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}
body.dark-mode .skeleton {
    background: #334155;
    background-image: linear-gradient(90deg, #334155 0px, #475569 40px, #334155 80px);
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}
.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 100%;
}
.skeleton-text.short { width: 50%; }

/* Profile Badges */
.profile-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0 25px 0;
}
.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: var(--glass-border);
}
.badge.rating-badge { color: #f59e0b; }
.badge.distance-badge { color: var(--secondary-color); }
.badge.specialty-badge-new { color: var(--primary-color); }

/* --- Dicas de Saúde (Articles) --- */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: var(--glass-border);
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.article-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15);
}

.article-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-content h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal de Artigo */
.article-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Abre de baixo para cima no mobile */
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.article-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.article-modal-content {
    background: var(--background-light);
    width: 100%;
    max-width: 600px;
    height: 85vh; /* Ocupa 85% da tela */
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

body.dark-mode .article-modal-content {
    background: var(--surface-color);
}

.article-modal.active .article-modal-content {
    transform: translateY(0);
}

.close-article-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    z-index: 10;
}
body.dark-mode .close-article-btn {
    background: rgba(255,255,255,0.1);
    color: white;
}

.article-modal-image {
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.5rem -2rem;
    height: 200px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.article-modal-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-modal-body {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* --- Favoritos e Ordenação --- */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
    z-index: 5;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

body.dark-mode .favorite-btn {
    background: var(--surface-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.professional-card {
    position: relative; /* Para o botão de favorito ficar absoluto a ele */
}

.sort-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--background-light);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-smooth);
    margin-top: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

body.dark-mode .sort-select {
    background-color: #1f2937; /* Mais escuro */
}

.sort-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* Responsividade Mobile para o Header */
@media (max-width: 600px) {
    .app-header {
        padding: 0.5rem 1rem;
    }
    .app-header .logo {
        font-size: 1rem;
    }
    .user-profile-mini {
        gap: 5px;
    }
    .greeting-container {
        display: none !important;
    }
    #my-profile-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin-right: 5px !important;
    }
    .btn-icon {
        padding: 4px;
        margin-right: 5px !important;
        font-size: 1rem;
    }
    .avatar-small {
        width: 32px;
        height: 32px;
    }
}

/* Anima��es e Skeleton */
.skeleton {
  background: #e2e8f0;
  background-image: linear-gradient(90deg, #e2e8f0 0px, #f8fafc 40px, #e2e8f0 80px);
  background-size: 200vw 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

body.dark-mode .skeleton {
  background: #374151;
  background-image: linear-gradient(90deg, #374151 0px, #4b5563 40px, #374151 80px);
}

@keyframes shimmer {
  0% { background-position: -200vw 0; }
  100% { background-position: 200vw 0; }
}

.view {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.view.active {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary, .btn-secondary, .btn-icon, .role-btn, .category-card {
  transition: all 0.2s ease-in-out;
}

.btn-primary:active, .btn-secondary:active, .category-card:active {
  transform: scale(0.95);
}


/* CSS para Skeleton Card */
.skeleton-card {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 15px;
}

.skeleton-lines {
  flex: 1;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
  width: 40%;
}

.skeleton-avatar, .skeleton-line {
  background: #e2e8f0;
  background-image: linear-gradient(90deg, #e2e8f0 0px, #f8fafc 40px, #e2e8f0 80px);
  background-size: 200vw 100%;
  animation: shimmer 1.5s infinite linear;
}

body.dark-mode .skeleton-card { background: #1f2937; }
body.dark-mode .skeleton-avatar, body.dark-mode .skeleton-line {
  background: #374151;
  background-image: linear-gradient(90deg, #374151 0px, #4b5563 40px, #374151 80px);
}


.scroll-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--primary-color); padding: 8px; border-radius: 50%; cursor: pointer; transition: all var(--transition-smooth); z-index: 2; height: 36px; width: 36px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .scroll-btn:hover { background: var(--primary-color); color: white; } @media (hover: none) { .scroll-btn { display: none !important; } } .category-tabs-container::-webkit-scrollbar { display: none; } .category-tabs-container { -ms-overflow-style: none; scrollbar-width: none; }

/* Map Split Layout */
.home-layout { display: flex; flex-direction: column; }

/* Online Status */
.online-status { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; margin-top: 5px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-dot.online { background-color: #10b981; box-shadow: 0 0 5px rgba(16, 185, 129, 0.5); }
.status-dot.offline { background-color: #94a3b8; }
.status-text { color: var(--text-muted); }

@media (min-width: 768px) { 
  .home-layout { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 30px; transition: all 0.4s ease; } 
  .home-left-column { flex: 1; max-width: 800px; width: 100%; transition: all 0.4s ease; }
  .home-layout.map-expanded .home-left-column { max-width: 50%; }
  
  #professionals-list { display: flex !important; } 
  
  #map-container-wrapper { width: 350px; flex-shrink: 0; position: sticky; top: 80px; margin-top: 0 !important; transition: width 0.4s ease; }
  #map-container { display: block !important; height: 350px !important; transition: height 0.4s ease; }
  
  .home-layout.map-expanded #map-container-wrapper { width: 50%; }
  .home-layout.map-expanded #map-container { height: 650px !important; max-height: 80vh !important; cursor: default !important; }
  .home-layout.map-expanded #map-expand-overlay { display: none !important; }
  .home-layout.map-expanded #map-collapse-btn { display: block !important; }
  
  #view-toggle-container { display: none !important; } 
}






#map-expand-overlay { z-index: 1000 !important; }

