/* ══ PERFIL ══════════════════════════════════════════════════════════ */

.perfil-pg {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* ── Card do anunciante ── */
.perfil-card-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,40,100,.08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ── Topbar ── */
.perfil-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 0;
    gap: 12px;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .15s;
}
.btn-voltar:hover { color: #0055a4; }

.perfil-topbar-acoes {
    display: flex;
    gap: 8px;
}

.btn-acao-perfil {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #4a5568;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}
.btn-acao-perfil:hover     { border-color: #0055a4; color: #0055a4; background: #f4f7fb; }
.btn-acao-perfil.copiado   { border-color: #0ea673; color: #0ea673; background: #e8f5ef; }

/* ── Card body ── */
.perfil-card-body {
    display: flex;
    gap: 28px;
    padding: 20px 24px 24px;
    align-items: flex-start;
}

.perfil-card-esq {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}

/* ── Avatar ── */
.perfil-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e3f0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0055a4;
    overflow: hidden;
    flex-shrink: 0;
}
.perfil-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Info ── */
.perfil-info { flex: 1; min-width: 0; }

.perfil-nome-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.perfil-nome {
    font-size: 20px;
    font-weight: 700;
    color: #1e2d3d;
    margin: 0;
    line-height: 1.3;
}

.badge-verificado-perfil {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0ea673;
    background: #e8f5ef;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.perfil-sub {
    font-size: 13px;
    color: #6b7a8d;
    margin: 0 0 10px;
    line-height: 1.5;
}

.perfil-website {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #0055a4;
    text-decoration: none;
    margin: 0 0 10px;
    word-break: break-all;
}
.perfil-website:hover { text-decoration: underline; }

.perfil-bio {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 10px;
}

.perfil-endereco {
    font-size: 13px;
    color: #6b7a8d;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

/* ── CTAs direita ── */
.perfil-card-dir {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 220px;
    flex-shrink: 0;
}

.btn-cta-wpp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F59E0B;
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.btn-cta-wpp:hover { background: #d97706; color: #fff; }
.btn-cta-wpp i { font-size: 18px; }

.perfil-ctas-row {
    display: flex;
    gap: 8px;
}

.btn-cta-sec {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: #1e2d3d;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 9px 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}
.btn-cta-sec:hover { border-color: #0055a4; color: #0055a4; background: #f4f7fb; }

/* ── Stats strip ── */
.perfil-stats-strip {
    display: flex;
    border-top: 1px solid #f0f4fa;
    flex-wrap: wrap;
}

.perfil-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    flex: 1;
    min-width: 150px;
    border-right: 1px solid #f0f4fa;
}
.perfil-stat:last-child { border-right: none; }

.perfil-stat-icone {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: #eef3fb;
    color: #0055a4;
}
.perfil-stat-icone.verde   { background: #e8f5ef; color: #0ea673; }
.perfil-stat-icone.laranja { background: #fef3e2; color: #d97706; }

.perfil-stat strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1e2d3d;
    line-height: 1.2;
    white-space: nowrap;
}
.perfil-stat span {
    font-size: 12px;
    color: #6b7a8d;
    font-weight: 500;
}

/* ══ Seção imóveis ═══════════════════════════════════════════════════ */
.perfil-imoveis-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,40,100,.08);
    overflow: hidden;
    padding-bottom: 24px;
}

.perfil-imoveis-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f4fa;
    flex-wrap: wrap;
}

.perfil-imoveis-titulo h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1e2d3d;
    margin: 0 0 2px;
}

.perfil-imoveis-count {
    font-size: 13px;
    color: #6b7a8d;
    display: block;
}

/* ── Filter bar desktop ── */
.filtros-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filtro-sel {
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #1e2d3d;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}
.filtro-sel:focus { border-color: #0055a4; outline: none; }

/* Preço popover */
.filtro-preco-wrap { position: relative; }

.filtro-preco-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    color: #1e2d3d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .15s;
    white-space: nowrap;
}
.filtro-preco-btn:hover { border-color: #0055a4; }

.filtro-preco-drop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    z-index: 200;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filtro-preco-drop label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7a8d;
}

.filtro-preco-drop input {
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    color: #1e2d3d;
}
.filtro-preco-drop input:focus { border-color: #0055a4; outline: none; }

/* Vista toggle */
.vista-toggle {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.vista-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #6b7a8d;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.vista-btn + .vista-btn { border-left: 1.5px solid #e2e8f0; }
.vista-btn.ativo { background: #0055a4; color: #fff; }

.btn-limpar-filtros {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1.5px solid #f87171;
    border-radius: 8px;
    background: #fff;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.btn-limpar-filtros:hover { background: #fef2f2; }

/* ── Mobile tabs ── */
.filtros-mobile {
    display: none;
    flex-direction: column;
    padding: 12px 20px;
    gap: 8px;
    border-bottom: 1px solid #f0f4fa;
}

.filtros-mobile-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filtros-mobile-pills::-webkit-scrollbar { display: none; }

.tab-fin {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 99px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all .15s;
    flex-shrink: 0;
}
.tab-fin.tab-ativo { background: #0d2654; border-color: #0d2654; color: #fff; }

.filtros-mobile-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.filtro-tipo-mobile {
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #1e2d3d;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-limpar-filtros-mob {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border: 1.5px solid #f87171;
    border-radius: 8px;
    background: #fff;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.btn-limpar-filtros-mob:hover { background: #fef2f2; }

/* ── Listas e mapa ── */
.perfil-lista-inner {
    padding: 20px 24px 0;
}

#map {
    height: 480px;
    width: 100%;
    margin-bottom: 0;
}

/* ── Sticky bar mobile ── */
.perfil-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    z-index: 500;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.perfil-sticky-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.perfil-sticky-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e3f0fb;
    color: #0055a4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.perfil-sticky-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sticky-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #0ea673;
    border-radius: 50%;
    border: 2px solid #fff;
}

.perfil-sticky-info strong {
    display: block;
    font-size: 14px;
    color: #1e2d3d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-status { font-size: 11px; color: #0ea673; font-weight: 500; }

.perfil-sticky-ctas { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.sticky-btn-sec {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fb;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    color: #1e2d3d;
    font-size: 18px;
    text-decoration: none;
    transition: background .15s;
}
.sticky-btn-sec:hover { background: #e2e8f0; }

.sticky-btn-wpp {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #F59E0B;
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.sticky-btn-wpp:hover { background: #d97706; }

/* ══ Responsivo ══════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .perfil-card-body    { flex-direction: column; }
    .perfil-card-dir     { width: 100%; }
    .filtros-bar         { display: none; }
    .filtros-mobile      { display: flex; }
    .perfil-sticky-bar   { display: flex; }
    .perfil-pg           { padding-bottom: 80px; }

    .perfil-stats-strip  { flex-wrap: wrap; }
    .perfil-stat         { min-width: calc(50% - 1px); border-right: none; border-bottom: 1px solid #f0f4fa; }
    .perfil-stat:nth-child(odd)  { border-right: 1px solid #f0f4fa; }
    .perfil-stat:nth-last-child(-n+2) { border-bottom: none; }

    #map { height: 320px; }
}

@media (max-width: 540px) {
    .perfil-pg               { padding: 12px 12px 80px; }
    .perfil-topbar           { padding: 12px 16px 0; }
    .perfil-card-body        { padding: 16px; }
    .perfil-card-esq         { flex-direction: column; align-items: center; text-align: center; }
    .perfil-nome-row         { justify-content: center; }
    .perfil-endereco         { justify-content: center; }
    .perfil-imoveis-cabecalho { padding: 16px; }
    .perfil-lista-inner      { padding: 16px 16px 0; }
    .filtros-mobile          { padding: 10px 16px; }
    .btn-acao-perfil span    { display: none; }
    .perfil-avatar           { width: 80px; height: 80px; font-size: 36px; }
}
