/* =========================================================================
 * MEU LAR CORE — Estilos do Perfil de Usuário
 * =========================================================================
 *
 * Arquivo:     assets/css/profile.css
 *
 * COMO EDITAR DEPOIS
 * ---------------------------------------------------------------------------
 * 1. CORES -> vá até a seção ":ROOT (variáveis)" abaixo e mude os valores.
 *    Todas as cores do perfil usam essas variáveis.
 * 2. ESPAÇAMENTOS -> procure por "padding" / "margin" nos blocos.
 * 3. MOBILE -> as regras para celular ficam na seção
 *    "@MEDIA (MAX-WIDTH: 768PX)" no final do arquivo.
 *
 * ESTRUTURA DESTE ARQUIVO (nesta ordem):
 *   1. Variáveis de cores e fontes
 *   2. Reset do wrapper (para não conflitar com o tema)
 *   3. Hero (capa + avatar + nome + botões)
 *   4. Barra de estatísticas
 *   5. Abas (tabs)
 *   6. Conteúdo: grid de imóveis + avaliações + notificações
 *   7. Sidebar (Sobre mim + Estatísticas)
 *   8. Botões, badges, estrelas
 *   9. Responsivo mobile (≤768px)
 * ========================================================================= */


/* =========================================================================
 * 1. VARIÁVEIS (MUDE AS CORES AQUI!)
 * ========================================================================= */

:root {
    /* --- Cor principal (verde escuro do Meu Lar) --- */
    --ml-verde: #14532d;            /* verde dos botões e header */
    --ml-verde-hover: #0f3d21;      /* verde ao passar o mouse */
    --ml-verde-destaque: #0D5C2F;   /* verde oficial do site (pedidos v13) */
    --ml-verde-claro: #dcfce7;      /* fundo do badge "Verificado" */
    --ml-verde-texto: #166534;      /* texto do badge */

    /* --- Cores de apoio --- */
    --ml-amarelo: #f0b429;          /* estrelas */
    --ml-fundo: #f4f6f4;            /* fundo geral da página */
    --ml-branco: #ffffff;           /* fundo dos cards */
    --ml-borda: #e5e7e5;            /* bordas sutis */
    --ml-texto: #1f2923;            /* textos escuros */
    --ml-cinza: #6b7280;            /* textos secundários */
    --ml-cinza-claro: #9ca3af;      /* textos fracos (labels) */
    --ml-sombra: 0 1px 3px rgba(20, 83, 45, 0.08); /* sombra dos cards */

    /* --- Tamanhos --- */
    --ml-radius: 12px;              /* cantos arredondados dos cards */
    --ml-avatar: 150px;             /* tamanho do avatar no PC */
    --ml-fonte: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}


/* =========================================================================
 * 2. WRAPPER (reset local para não quebrar o resto do tema)
 * ========================================================================= */

.ml-profile {
    font-family: var(--ml-fonte);
    color: var(--ml-texto);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--ml-fundo);
}

.ml-profile *,
.ml-profile *::before,
.ml-profile *::after {
    box-sizing: border-box;
}


/* =========================================================================
 * 3. HERO DO PERFIL
 * ========================================================================= */

/* ----- Capa com a curva no canto (igual à imagem de referência) ----- */

.ml-profile-hero {
    position: relative;
}

.ml-profile-cover {
    position: relative;
    height: 260px;                      /* altura da capa no PC */
    overflow: hidden;
    background: var(--ml-verde);
    border-bottom-left-radius: 160px;   /* curva no canto inferior esquerdo */
    border-bottom-right-radius: 40px;
}

.ml-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Capa padrão (quando o usuário não enviou foto) */
.ml-profile-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #14532d 0%, #1e7a45 60%, #34a05a 100%);
}
/* Capa padrão elegante: fundo verde do site quando o usuário não tem foto.
 * A capa NUNCA fica vazia/branca — o degradê verde já era o padrão do
 * design; aqui apenas garantimos consistência. */

/* Botão de trocar a capa (só o dono vê) */
.ml-cover-edit {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-cover-edit svg {
    width: 18px;
    height: 18px;
    fill: var(--ml-verde);
}

/* ----- Container do hero (avatar + info + botões) ----- */

.ml-profile-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
    padding: 0 32px 24px;
    margin-top: -75px;                  /* avatar sobrepõe a capa */
    position: relative;
}

/* ----- Avatar circular com borda branca ----- */

.ml-profile-avatar {
    position: relative;
    width: var(--ml-avatar);
    height: var(--ml-avatar);
    border-radius: 50%;
    border: 5px solid var(--ml-branco);
    background: var(--ml-branco);
    box-shadow: var(--ml-sombra);
    flex-shrink: 0;
    overflow: hidden;
}

.ml-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- Avatar padrão (bonequinho cinza) ----- */

/*
 * (v15) Quando o usuário NÃO tem foto cadastrada, o WordPress mostra
 * automaticamente o ícone de "pessoa" cinza clássico (get_avatar).
 * Estes estilos garantem que ele preencha o círculo certinho e o SVG
 * de reserva (último recurso) também fique elegante.
 */

.ml-avatar-padrao,
.ml-profile-avatar .ml-avatar-padrao {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e5e7e5;            /* cinza claro, combina com o tema */
}

.ml-avatar-padrao svg,
.ml-profile-avatar .ml-avatar-padrao svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ícone de câmera no canto do avatar (só o dono vê)
 * Reposicionado (v13): fica encostado na borda, metade para fora do
 * círculo — elegante, não invade mais a foto.
 */
.ml-avatar-camera {
    position: absolute;
    bottom: -2px;                   /* encostado na borda, metade para fora (v13) */
    right: -2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ml-verde);
    border: 3px solid var(--ml-branco);
    box-shadow: 0 2px 6px rgba(13, 92, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.ml-avatar-camera:hover {
    background: var(--ml-verde-hover);
    transform: scale(1.08);
}
.ml-avatar-camera svg {
    width: 16px;
    height: 16px;
    fill: #fff;                     /* ícone branco sobre o verde (v13) */
}

/* ----- Informações principais ----- */

.ml-profile-info {
    flex: 1 1 320px;
    min-width: 240px;
    padding-bottom: 4px;
    text-align: center;             /* nome, badge e metas centralizados (v13) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ml-profile-name {
    display: inline-flex;           /* centraliza o nome com o ícone verificado (v13) */
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

/* Badge verde de verificado (check azul/verde ao lado do nome) */
.ml-verified {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ml-verde-texto);
    flex-shrink: 0;
}

.ml-verified svg {
    width: 14px;
    height: 14px;
    fill: var(--ml-verde-texto);
}

/* Badge "Corretor Verificado" (pílula verde clara, centralizado abaixo do nome — v13) */
.ml-profile-badge {
    display: block;                 /* linha própria: fica centralizado (v13) */
    max-width: fit-content;
    margin: 0 auto 12px;
    background: var(--ml-verde-claro);
    color: var(--ml-verde-texto);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Estrelas + nota */
.ml-profile-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.ml-rating-num {
    font-weight: 700;
    font-size: 15px;
}

.ml-profile-rating small {
    color: var(--ml-cinza);
    font-size: 13px;
}

/* Linha: localização + membro desde */
.ml-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--ml-cinza);
    font-size: 14px;
}

.ml-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ml-icon {
    width: 16px;
    height: 16px;
    fill: var(--ml-cinza);
    flex-shrink: 0;
}

/* ----- Botões de ação ----- */

.ml-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
}


/* =========================================================================
 * 4. BARRA DE ESTATÍSTICAS (6 itens)
 * ========================================================================= */

.ml-stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: var(--ml-branco);
    border: 1px solid var(--ml-borda);
    border-radius: var(--ml-radius);
    margin: 8px 32px 24px;
    padding: 18px 8px;
    box-shadow: var(--ml-sombra);
}

.ml-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    position: relative;
    text-align: center;
}

/* Linha divisória entre os itens */
.ml-stat-item + .ml-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--ml-borda);
}

.ml-stat-icon {
    width: 22px;
    height: 22px;
    fill: var(--ml-verde);            /* ícones verdes (v13) */
    margin-bottom: 2px;
}
.ml-stat-item strong {
    font-size: 22px;                  /* número maior e verde (v13) */
    font-weight: 800;
    color: var(--ml-verde-destaque);
    line-height: 1.2;
}
.ml-stat-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--ml-cinza);
    line-height: 1.3;
    text-transform: capitalize;
}


/* =========================================================================
 * 5. ABAS (TABS)
 * ========================================================================= */

.ml-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 32px 20px;
    border-bottom: 1px solid var(--ml-borda);
    padding-bottom: 0;
}

.ml-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 14px;
    font-family: var(--ml-fonte);
    font-size: 14px;
    font-weight: 600;
    color: var(--ml-cinza);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.ml-tab:hover {
    color: var(--ml-verde-destaque);
    background: rgba(13, 92, 47, 0.04);
}
/* Aba ativa: SEMPRE verde (#0D5C2F), nunca vermelho/rosa (v13) */
.ml-tab-active {
    color: var(--ml-verde-destaque);
    border-bottom-color: var(--ml-verde-destaque);
    font-weight: 700;
}

.ml-tab-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Badge verde de notificações */
.ml-tab-badge {
    background: var(--ml-verde-texto);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}


/* =========================================================================
 * 6. CONTEÚDO (layout em 2 colunas no PC)
 * ========================================================================= */

.ml-tab-content {
    display: grid;
    grid-template-columns: 1fr 320px;     /* conteúdo + sidebar */
    gap: 24px;
    padding: 0 32px 40px;
    align-items: start;
}

/* Painéis das abas */
.ml-tab-panel {
    display: none;
    grid-column: 1 / -1;
}

.ml-panel-active {
    display: block;
}

/* Cabeçalho do painel (título + botões) */
.ml-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ml-panel-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.ml-panel-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Select de ordenação */
.ml-select {
    font-family: var(--ml-fonte);
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid var(--ml-borda);
    border-radius: 8px;
    background: var(--ml-branco);
    color: var(--ml-texto);
    cursor: pointer;
}


/* =========================================================================
 * 6.1 GRID DE IMÓVEIS
 * ========================================================================= */

.ml-imoveis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards por linha no PC */
    gap: 16px;
}

.ml-imovel-card {
    background: var(--ml-branco);
    border: 1px solid var(--ml-borda);
    border-radius: var(--ml-radius);
    overflow: hidden;
    box-shadow: var(--ml-sombra);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;  /* hover elegante (v13) */
}
.ml-imovel-card:hover {
    transform: translateY(-4px);    /* card sobe suavemente (v13) */
    box-shadow: 0 8px 24px rgba(13, 92, 47, 0.14);
}
.ml-imovel-card a {                 /* card inteiro clicável (v13) */
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

/* Imagem do card: MAIOR (v13) */
.ml-imovel-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;            /* imagem mais alta que antes (v13) */
    overflow: hidden;
}

.ml-imovel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.ml-imovel-card:hover .ml-imovel-img img {
    transform: scale(1.05);         /* zoom suave na imagem (v13) */
}

/* Badge de status (Ativo / Pendente) */
.ml-imovel-status {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    text-transform: capitalize;
}

.ml-status-ativo {
    color: var(--ml-verde-texto);
}

.ml-status-pendente {
    color: #b45309;
}

.ml-status-vendido,
.ml-status-alugado {
    color: var(--ml-cinza);
}

/* Coração de favoritar */
.ml-imovel-fav {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-imovel-fav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--ml-verde);
    stroke-width: 2;
}

.ml-imovel-fav.ml-fav-on svg {
    fill: var(--ml-verde);
}

/* Corpo do card */
.ml-imovel-body {
    padding: 12px 14px 4px;
}

.ml-imovel-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ml-imovel-title a {
    color: var(--ml-texto);
    text-decoration: none;
}

.ml-imovel-title a:hover {
    color: var(--ml-verde);
}

.ml-imovel-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-texto);
}

.ml-price-dot {
    color: var(--ml-cinza-claro);
    margin: 0 4px;
}

.ml-imovel-location {
    font-size: 12px;
    color: var(--ml-cinza);
    margin-top: 4px;
    padding-bottom: 10px;
}

/* Rodapé do card */
.ml-imovel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 12px;
    font-size: 12px;
    color: var(--ml-cinza);
    margin-top: auto;
}

.ml-mini-icon {
    width: 13px;
    height: 13px;
    fill: var(--ml-cinza);
    vertical-align: -2px;
    margin-right: 3px;
}

/* Estado vazio (sem imóveis) */
.ml-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--ml-cinza);
}

.ml-empty-icon {
    width: 48px;
    height: 48px;
    fill: var(--ml-verde);              /* ícone verde (v13) */
    opacity: 0.35;
    margin-bottom: 12px;
}

.ml-empty-sm {
    padding: 24px 12px;
    font-size: 14px;
}

.ml-empty p {
    margin: 0 0 16px;
}

/* Botão "Ver todos os imóveis" */
.ml-ver-todos {
    text-align: center;
    margin-top: 24px;
}


/* =========================================================================
 * 6.2 AVALIAÇÕES RECENTES
 * ========================================================================= */

.ml-avaliacoes-section {
    grid-column: 1 / 2;
    background: var(--ml-branco);
    border: 1px solid var(--ml-borda);
    border-radius: var(--ml-radius);
    padding: 24px;
    box-shadow: var(--ml-sombra);
    transition: box-shadow 0.25s ease;  /* transição suave (v13) */
}
.ml-avaliacoes-section:hover {
    box-shadow: 0 6px 18px rgba(13, 92, 47, 0.10);
}

.ml-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ml-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.ml-section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-verde);
    text-decoration: none;
}

.ml-avaliacoes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ml-avaliacao-card {
    border: 1px solid var(--ml-borda);
    border-radius: 10px;
    padding: 14px;
    background: #fcfdfc;
}

.ml-avaliacao-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ml-avaliacao-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ml-avaliacao-nome {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ml-avaliacao-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ml-avaliacao-nota {
    font-size: 13px;
    font-weight: 700;
    margin-left: 4px;
}

.ml-avaliacao-texto {
    font-size: 13px;
    color: var(--ml-cinza);
    line-height: 1.5;
    margin: 0 0 8px;
}

.ml-avaliacao-data {
    font-size: 12px;
    color: var(--ml-cinza-claro);
}


/* =========================================================================
 * 6.3 NOTIFICAÇÕES
 * ========================================================================= */

.ml-notificacoes-section {
    grid-column: 1 / 2;
    background: var(--ml-branco);
    border: 1px solid var(--ml-borda);
    border-radius: var(--ml-radius);
    padding: 24px;
    box-shadow: var(--ml-sombra);
    transition: box-shadow 0.25s ease;  /* transição suave (v13) */
}
.ml-notificacoes-section:hover {
    box-shadow: 0 6px 18px rgba(13, 92, 47, 0.10);
}

.ml-notificacoes-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ml-notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-radius: 8px;
}

.ml-notif-item:hover {
    background: #f6f9f6;
}

/* Ícones coloridos das notificações */
.ml-notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-notif-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.ml-notif-follow {
    background: var(--ml-verde-texto);
}
.ml-notif-review {
    background: var(--ml-amarelo);
}
/* Notificação de favorito: VERDE (v13 — nunca vermelho) */
.ml-notif-favorite {
    background: var(--ml-verde-destaque);
}

.ml-notif-texto {
    font-size: 13px;
    line-height: 1.4;
}

.ml-notif-texto time {
    display: block;
    font-size: 12px;
    color: var(--ml-cinza-claro);
    margin-top: 2px;
}


/* =========================================================================
 * 7. SIDEBAR (Sobre mim + Estatísticas)
 * ========================================================================= */

.ml-sidebar {
    grid-column: 2 / 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ml-sidebar-card {
    background: var(--ml-branco);
    border: 1px solid var(--ml-borda);
    border-radius: var(--ml-radius);
    padding: 24px;
    box-shadow: var(--ml-sombra);
    transition: box-shadow 0.25s ease;  /* transição suave (v13) */
}
.ml-sidebar-card:hover {
    box-shadow: 0 6px 18px rgba(13, 92, 47, 0.10);
}

.ml-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.ml-sidebar-bio {
    font-size: 14px;
    color: var(--ml-cinza);
    line-height: 1.6;
    margin: 0 0 14px;
}

/* Ícones sociais da sidebar */
.ml-sidebar-social {
    display: flex;
    gap: 10px;
}

.ml-sidebar-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ml-borda);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ml-verde);
    text-decoration: none;
    transition: background 0.2s;
}

.ml-sidebar-social a:hover {
    background: var(--ml-verde-claro);
}

.ml-sidebar-social svg {
    width: 17px;
    height: 17px;
    fill: var(--ml-verde);
}

/* Lista de estatísticas */
.ml-estat-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ml-estat-lista li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--ml-borda);
    font-size: 13px;
    color: var(--ml-cinza);
}

.ml-estat-lista li:last-child {
    border-bottom: none;
}

.ml-estat-lista strong {
    color: var(--ml-texto);
    font-weight: 600;
}


/* =========================================================================
 * 8. ÍCONES DE CONTATO (WhatsApp, email, redes) NO HERO
 * ========================================================================= */

.ml-profile-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ml-social-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.ml-social-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ml-borda);
    background: var(--ml-branco);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-social-circle svg {
    width: 16px;
    height: 16px;
    fill: var(--ml-verde);
}

.ml-social-text {
    font-size: 13px;
    color: var(--ml-texto);
    font-weight: 500;
}


/* =========================================================================
 * 9. BOTÕES
 * ========================================================================= */

.ml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--ml-fonte);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
/* Ao passar o mouse, o botão sobe levemente (animação suave — v13) */
.ml-btn:hover {
    transform: translateY(-1px);
}

/* =========================================================================
 * RESET DE TOQUE/CLIQUE (v11)
 * =========================================================================
 * Remove o destaque VERMELHO/AZUL que o navegador mostra ao tocar/clicar
 * nos botões e links (efeito do Chrome/Android). O clique continua
 * funcionando normalmente — só some o retângulo de destaque que destoa
 * do design verde do site.
 * ========================================================================= */

/* (v15) Reset GLOBAL de toque: REMOVE o retângulo VERMELHO/AZUL em
 * QUALQUER elemento interativo do perfil (botões, abas, links, cards,
 * contadores...). É o efeito padrão do Chrome/Android/iOS ao tocar.
 * O clique continua funcionando — só some o destaque que destoa do
 * design verde do site. */
*,
button,
a,
[role="button"],
.ml-btn,
.ml-tab,
.ml-btn-share,
.ml-imovel-fav,
.meular-follow-btn,
.meular-followers-count,
.meular-open-list,
.meular-user-row,
a.ml-none,
.meular-social-stats a,
.ml-stat-item,
.ml-tab-active,
.ml-cover-edit {
    -webkit-tap-highlight-color: transparent !important; /* Android/Chrome */
    -webkit-touch-callout: none;                         /* iOS: não copia ao tocar */
    -webkit-user-select: none;                           /* não seleciona texto ao tocar */
    outline: none;                                       /* sem contorno azul */
}
/* Exceção: o contorno APARECE para quem navega com TECLADO (acessibilidade) */
button:focus-visible,
a:focus-visible,
.ml-btn:focus-visible,
.ml-tab:focus-visible,
.meular-follow-btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ml-verde);
    outline-offset: 2px;
}

/* Contorno apenas quando navegar com TECLADO (acessibilidade), na cor do site */
.ml-btn:focus-visible,
.ml-tab:focus-visible,
.meular-follow-btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ml-verde);
    outline-offset: 2px;
}

/* Ao tocar/clicar, apenas escurece levemente o fundo — nada de vermelho */
.ml-btn:active,
.ml-tab:active,
.meular-follow-btn:active {
    opacity: 0.85;
}

.ml-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Botão verde principal (Seguir / Anunciar) */
.ml-btn-primary {
    background: var(--ml-verde);
    color: #fff;
}

.ml-btn-primary:hover {
    background: var(--ml-verde-hover);
}

/* Botão com contorno (Mensagem / Compartilhar / Ver todos) */
.ml-btn-outline {
    background: var(--ml-branco);
    color: var(--ml-texto);
    border-color: var(--ml-borda);
}

.ml-btn-outline:hover {
    background: #f0f4f0;
    color: var(--ml-verde);
}

/* =========================================================================
 * 9.5 BOTÃO E MODAL DO SISTEMA REAL DE SEGUIDORES
 * =========================================================================
 * Estilos dos componentes usados pelo seu JS real (followers.js):
 *   - .meular-follow-btn  -> botão Seguir/Seguindo
 *   - .meular-followers-count -> número clicável de Seguidores
 *   - .meular-follow-modal -> janela que mostra a lista
 *   - .ml-user-card      -> card de cada usuário dentro da lista
 */

/* Botão Seguir do sistema real (usa as classes .ml-btn acima) */
.meular-follow-btn.seguindo {
    background: var(--ml-verde-claro);
    color: var(--ml-verde-texto);
    border-color: var(--ml-verde-claro);
}

/* Ao passar o mouse (ou tocar) no botão "Seguindo": fica verde mais
 * escuro, igual aos outros botões do site (antes era vermelho) */
.meular-follow-btn.seguindo:hover,
.meular-follow-btn.seguindo:active {
    background: var(--ml-verde);
    color: #fff;
    border-color: var(--ml-verde);
}

/* Números clicáveis da barra de estatísticas */
.ml-stat-item .meular-open-list,
.meular-followers-count {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
}

.ml-stat-item .meular-open-list strong,
.ml-stat-item .meular-open-list span {
    font-weight: 700;
}

.meular-followers-count {
    font-weight: 700;
    border-bottom: 1px dashed var(--ml-cinza-claro);
    transition: color 0.2s;
}

.meular-followers-count:hover {
    color: var(--ml-verde);
}

/* ----- Modal de Seguidores/Seguindo ----- */

.meular-follow-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;            /* o JS controla (flex quando aberto) */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.meular-modal-box {
    position: relative;
    background: var(--ml-branco);
    border-radius: var(--ml-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.meular-modal-title {
    font-family: var(--ml-fonte);
    font-size: 18px;
    font-weight: 700;
    color: var(--ml-texto);
    margin: 0 0 14px 0;
}

.meular-modal-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ml-borda);
    border-radius: 24px;
    font-family: var(--ml-fonte);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.meular-modal-search:focus {
    border-color: var(--ml-verde);
}

.meular-modal-content {
    margin-top: 14px;
    overflow-y: auto;
    flex: 1;
    min-height: 120px;
    max-height: 50vh;
}

.meular-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--ml-fundo);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: var(--ml-cinza);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.meular-close-modal:hover {
    background: #f0f4f0;
    color: var(--ml-texto);
}

/* ----- Card de usuário dentro do modal ----- */

.ml-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--ml-borda);
}

.ml-user-card:last-child {
    border-bottom: none;
}

.ml-user-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ml-user-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.ml-user-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ml-user-card-nome {
    font-weight: 600;
    font-size: 14px;
    color: var(--ml-texto);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-user-card-login {
    font-size: 12px;
    color: var(--ml-cinza);
}

.ml-empty {
    padding: 24px;
    text-align: center;
    color: var(--ml-cinza);
    font-size: 14px;
}


/* =========================================================================
 * 10. ESTRELAS (SVG)
 * ========================================================================= */

.ml-star {
    width: 16px;
    height: 16px;
}

/* Estrela cheia */
.ml-star-full {
    fill: var(--ml-amarelo);
}

/* Estrela vazia */
.ml-star-empty {
    fill: none;
    stroke: var(--ml-amarelo);
    stroke-width: 1;
}

/* Meia estrela (metade pintada com gradiente) */
.ml-star-half {
    fill: none;
    stroke: var(--ml-amarelo);
    stroke-width: 1;
    position: relative;
}

.ml-star-half-fill {
    fill: url(#ml-half-star-gradient);
}


/* =========================================================================
 * 11. RESPONSIVO — TABLET (até 1024px)
 * ========================================================================= */

@media (max-width: 1024px) {

    /* Grid de imóveis: de 4 para 2 por linha */
    .ml-imoveis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Avaliações: de 3 para 2 por linha */
    .ml-avaliacoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sidebar desce para baixo do conteúdo */
    .ml-tab-content {
        grid-template-columns: 1fr;
    }

    .ml-sidebar {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}


/* =========================================================================
 * 12. RESPONSIVO — MOBILE (até 768px)
 * =========================================================================
 * Aqui acontece a transformação para o layout da tela "MOBILE"
 * da imagem de referência: capa menor, avatar centralizado,
 * nome centralizado, stats em 2 linhas de 3, abas compactas.
 */

@media (max-width: 768px) {

    /* --- Hero: capa mais baixa, avatar centralizado --- */

    .ml-profile-cover {
        height: 160px;
        border-bottom-left-radius: 80px;   /* curva menor no mobile */
    }

    .ml-profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px 20px;
        margin-top: -60px;
    }

    .ml-profile-avatar {
        width: 110px;
        height: 110px;
        margin-top: -55px;
    }
    /* Ícone de câmera proporcional ao avatar menor (v13) */
    .ml-avatar-camera {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
    .ml-avatar-camera svg {
        width: 14px;
        height: 14px;
    }

    .ml-profile-name {
        font-size: 22px;
        justify-content: center;
    }

    .ml-profile-info {
        min-width: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ml-profile-rating {
        justify-content: center;
    }

    .ml-profile-meta {
        justify-content: center;
    }

    /* --- Botões no mobile --- */

    .ml-profile-actions {
        justify-content: center;
        width: 100%;
    }

    .ml-btn-seguir {
        flex: 1 1 auto;
        max-width: 180px;
    }

    .ml-social-text {
        display: none;   /* esconde o texto, fica só o ícone circular */
    }

    .ml-profile-social {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    /* --- Stats: 2 linhas de 3 itens --- */

    .ml-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        margin: 8px 16px 20px;
        gap: 8px 0;
    }

    /* Divisória a cada linha */
    .ml-stat-item:nth-child(3n + 2)::before,
    .ml-stat-item:nth-child(3n + 3)::before {
        content: '';
    }

    .ml-stat-item:nth-child(4)::before,
    .ml-stat-item:nth-child(5)::before,
    .ml-stat-item:nth-child(6)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: var(--ml-borda);
    }

    /* --- Abas: scroll horizontal compacto --- */

    .ml-tabs {
        margin: 0 16px 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
    }

    .ml-tab {
        font-size: 13px;
        padding: 10px 10px;
    }

    /* --- Conteúdo: padding menor --- */

    .ml-tab-content {
        padding: 0 16px 32px;
    }

    /* --- Grid de imóveis: 1 por linha no mobile --- */

    .ml-imoveis-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Avaliações: 1 por linha no mobile */
    .ml-avaliacoes-grid {
        grid-template-columns: 1fr;
    }

    /* --- Títulos menores --- */

    .ml-panel-title {
        font-size: 17px;
    }
}

/* --- Mobile bem pequeno (até 480px): imóveis 1 por linha --- */

@media (max-width: 480px) {

    .ml-imoveis-grid {
        grid-template-columns: 1fr;
    }

    .ml-profile-cover {
        height: 130px;
    }

    .ml-stats-bar {
        padding: 14px 6px;
    }
}

/* =========================================================================
 * 9.6 CLASSES DO MODAL/SHORTCODES DO SISTEMA DE SEGUIDORES
 * =========================================================================
 * Classes geradas pelos shortcodes [meular_botao_seguir] e
 * [meular_area_social] (followers.php) e pelo HTML da lista AJAX.
 * O JS do modal (followers.js) usa .meular-follow-modal-box, mas o CSS
 * define como .meular-modal-box + alias para não quebrar nada.
 */

/* Alias da caixa do modal (o HTML oficial usa .meular-follow-modal-box) */
.meular-follow-modal-box,
.meular-modal-box {
    position: relative;
    background: var(--ml-branco);
    border-radius: var(--ml-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Card de cada usuário dentro da lista do modal (AJAX) */
.meular-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--ml-borda);
}

.meular-user-row:last-child {
    border-bottom: none;
}

.meular-user-row img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.meular-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.meular-user-info a {
    font-weight: 600;
    font-size: 14px;
    color: var(--ml-texto);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meular-user-info span {
    font-size: 12px;
    color: var(--ml-cinza);
}

.meular-user-info small {
    font-size: 11px;
    color: var(--ml-cinza-claro);
}

.meular-user-action {
    flex-shrink: 0;
}

/* Mensagem de lista vazia no modal */
.meular-empty-list {
    padding: 24px;
    text-align: center;
    color: var(--ml-cinza);
    font-size: 14px;
}

/* Link "Entrar para seguir" (visitante não logado) */
.meular-follow-login {
    display: inline-block;
    padding: 10px 22px;
    font-family: var(--ml-fonte);
    font-size: 14px;
    font-weight: 600;
    color: var(--ml-verde-texto);
    background: var(--ml-verde);
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s;
}

.meular-follow-login:hover {
    background: #1f6f4a;
    color: #fff;
}

/* Contador de "seguindo" (número clicável) */
.meular-following-count {
    font-weight: 700;
}

/* Botão Gerenciar Seguidores (no próprio perfil) */
.meular-manage-followers {
    display: inline-block;
    padding: 10px 22px;
    font-family: var(--ml-fonte);
    font-size: 14px;
    font-weight: 600;
    color: var(--ml-texto);
    background: var(--ml-fundo);
    border: 1px solid var(--ml-borda);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.meular-manage-followers:hover {
    background: #f0f4f0;
}

