/* ── Página de Corretores ── */
.corretores-wrap {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 32px auto;
    padding: 0 16px;
}

.corretores-titulo {
    font-size: 22px;
    font-weight: 700;
    color: #1e2d3d;
    margin: 0 0 6px;
}

.corretores-subtitulo {
    font-size: 14px;
    color: #6b7a8d;
    margin: 0 0 20px;
}

/* ── Filtros ── */
.corretores-filtros {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.corretores-filtros-busca {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.corretores-filtros-busca i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aabbc;
    font-size: 15px;
    pointer-events: none;
}

.corretores-filtros-busca input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 14px;
    color: #1e2d3d;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}

.corretores-filtros-busca input:focus {
    border-color: #0B3D7A;
}

.corretores-filtros select {
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 14px;
    color: #1e2d3d;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}

.corretores-filtros select:focus {
    border-color: #0B3D7A;
}

.filtro-verificado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.filtro-verificado input[type="checkbox"] {
    display: none;
}

.filtro-verificado i {
    color: #0ea673;
    font-size: 15px;
}

.filtro-verificado:has(input:checked) {
    border-color: #0ea673;
    background: #e8f5ef;
    color: #0ea673;
}

.corretores-contador {
    font-size: 13px;
    color: #6b7a8d;
    white-space: nowrap;
    padding: 0 4px;
}

@media (max-width: 600px) {
    .corretores-filtros { gap: 8px; }
    .corretores-filtros-busca { min-width: 100%; }
    .corretores-filtros select { flex: 1; }
}

/* ── Grade ── */
.corretores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Card ── */
.corretor-card {
    background: #fff;
    border: 1.5px solid #e5e9ec;
    border-radius: 14px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.corretor-card:hover {
    box-shadow: 0 6px 24px rgba(0,40,100,.10);
    border-color: #ccd6e0;
    transform: translateY(-2px);
}

/* ── Topo do card ── */
.corretor-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.corretor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0055a4;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.corretor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corretor-info {
    min-width: 0;
}

.corretor-nome {
    font-size: 15px;
    font-weight: 700;
    color: #1e2d3d;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

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

.corretor-stat-desde {
    font-size: 13px !important;
    color: #6b7a8d !important;
    font-weight: 600 !important;
}

.corretor-tipo {
    font-size: 12px;
    color: #6b7a8d;
    margin-top: 2px;
}

.corretor-cidade {
    font-size: 12px;
    color: #aab4be;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Stats do card ── */
.corretor-stats {
    display: flex;
    gap: 12px;
    border-top: 1px solid #f0f3f6;
    padding-top: 14px;
}

.corretor-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.corretor-stat-valor {
    font-size: 18px;
    font-weight: 700;
    color: #0055a4;
    line-height: 1.1;
}

.corretor-stat-label {
    font-size: 11px;
    color: #6b7a8d;
}

/* ── Badge tipo ── */
.badge-tipo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: #eef3fb;
    color: #0055a4;
}

.badge-tipo.corretora,
.badge-tipo.pessoa_juridica {
    background: #e8f5ef;
    color: #0ea673;
}

/* ── Empty state ── */
.corretores-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7a8d;
    font-size: 15px;
}

.corretores-empty i {
    font-size: 48px;
    color: #d1d9e0;
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .corretores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .corretores-grid { grid-template-columns: 1fr; }
    .corretores-titulo { font-size: 18px; }
}
