/*
Theme Name: Acompanhantes RJ Engine
Theme URI: https://github.com/allanoliveira
Author: Allan Oliveira
Author URI: https://seomais.com.br
Description: Engine de SEO programático para listagem de acompanhantes no Rio de Janeiro. Sistema de páginas automáticas por cidade, bairro e categoria com keyword flickering strategy.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acomp-rj
Tags: seo, programmatic, listings, local

== Changelog ==
= 1.0.0 =
* Versão inicial
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores principais — dark + laranja/dourado */
    --c-primary: #E8860C;
    --c-primary-dark: #CC7400;
    --c-primary-light: #F5B754;
    --c-primary-50: #FFF3E0;

    --c-secondary: #1C1C1C;
    --c-secondary-light: #242424;

    --c-accent: #F5A623;
    --c-gold: #FFD700;

    /* Neutros — fundo escuro profundo */
    --c-bg: #121212;
    --c-bg-card: #1C1C1C;
    --c-bg-card-hover: #252525;
    --c-surface: #2A2A2A;
    --c-border: rgba(255,255,255,0.07);
    --c-border-hover: rgba(255,255,255,0.14);

    /* Texto */
    --c-text: #F0F0F0;
    --c-text-secondary: #A8A8A8;
    --c-text-muted: #666666;

    /* Layout */
    --max-w: 1280px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Tipografia */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(232,134,12,0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18,18,18,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.logo-bold {
    font-weight: 800;
    color: var(--c-text);
}

.logo-accent {
    font-weight: 800;
    color: var(--c-primary);
}

.nav-main {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-main > a,
.nav-dropdown-trigger {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.nav-main > a:hover,
.nav-dropdown-trigger:hover {
    color: var(--c-text);
    background: var(--c-surface);
}

.nav-main > a.active {
    color: var(--c-primary);
    background: rgba(232,134,12,0.1);
}

.nav-highlight {
    color: var(--c-primary) !important;
    font-weight: 600 !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 6px 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.8125rem;
    color: var(--c-text-secondary);
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    color: var(--c-primary);
    background: rgba(232,134,12,0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-search {
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center;
}

.header-search input {
    width: 180px;
    padding: 7px 36px 7px 12px;
    border-radius: 20px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.8125rem;
    outline: none;
    transition: all 0.2s;
}

.header-search input::placeholder {
    color: var(--c-text-muted);
}

.header-search input:focus {
    border-color: var(--c-primary);
    width: 240px;
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.header-search button:hover {
    color: var(--c-primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-anuncie {
    background: var(--c-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
}

.btn-anuncie:hover {
    background: var(--c-primary-dark) !important;
}

/* ============================================
   HERO / HUB HOME
   ============================================ */
.hero-hub {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-hub h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-hub h1 .hl {
    color: var(--c-primary);
}

.hero-hub .subtitle {
    font-size: 1.125rem;
    color: var(--c-text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Search bar */
.search-hero {
    max-width: 560px;
    margin: 0 auto 40px;
    position: relative;
}

.search-hero input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 120px;
    border-radius: 60px;
    border: 1px solid var(--c-border);
    background: var(--c-bg-card);
    color: var(--c-text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-hero input::placeholder {
    color: var(--c-text-muted);
}

.search-hero input:focus {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-glow);
}

.search-hero button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 24px;
    border: none;
    border-radius: 60px;
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-hero button:hover {
    background: var(--c-primary-dark);
}

/* ============================================
   GRID DE CARDS (PERFIS) — Layout horizontal
   ============================================ */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0;
}

.profile-card {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.profile-card:hover {
    transform: translateY(-2px);
    border-color: var(--c-border-hover);
    box-shadow: var(--shadow-md);
}

.profile-card-img {
    position: relative;
    width: 140px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--c-surface);
}

.profile-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.profile-card:hover .profile-card-img img {
    transform: scale(1.05);
}

.profile-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Badges inline (dentro da area de info, nao sobre a foto) */
.profile-card-badges-inline {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.badge-verificada {
    background: rgba(232,134,12,0.15);
    color: #E8860C;
    border: 1px solid rgba(232,134,12,0.3);
}

.badge-premium {
    background: rgba(255,215,0,0.12);
    color: #E8B800;
    border: 1px solid rgba(255,215,0,0.25);
}

.badge-destaque {
    background: rgba(255,215,0,0.2);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.4);
}

.badge-nova {
    background: rgba(76,175,80,0.15);
    color: #4CAF50;
    border: 1px solid rgba(76,175,80,0.3);
}

.badge-online {
    background: rgba(0,200,83,0.15);
    color: #00C853;
    border: 1px solid rgba(0,200,83,0.3);
}

.profile-card-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.profile-card-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-location {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-bottom: 8px;
}

.profile-card-meta {
    font-size: 0.75rem;
    color: var(--c-text-secondary);
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-card-price {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 8px;
}

.profile-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.6875rem;
    background: var(--c-surface);
    color: var(--c-text-secondary);
    border: 1px solid var(--c-border);
}

/* ============================================
   FILTROS AVANÇADOS
   ============================================ */
.filtros-bar {
    position: sticky;
    top: 60px;
    z-index: 90;
    background: rgba(18,18,18,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    padding: 10px 0;
}

.filtros-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filtro-group {
    position: relative;
}

.filtro-group select {
    padding: 7px 28px 7px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.75rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 130px;
    transition: border-color 0.2s;
}

.filtro-group select:focus,
.filtro-group select:hover {
    border-color: var(--c-primary);
}

.filtro-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filtro-range label {
    font-size: 0.6875rem;
    color: var(--c-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.filtro-range input[type="number"] {
    padding: 7px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.75rem;
    outline: none;
    text-align: center;
    -moz-appearance: textfield;
    transition: border-color 0.2s;
}

.filtro-range input[type="number"]::-webkit-inner-spin-button,
.filtro-range input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filtro-range input:focus {
    border-color: var(--c-primary);
}

.filtro-limpar {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.filtro-limpar:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.filtros-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--c-text-muted);
}

.filtros-loading {
    display: none;
    align-items: center;
}

.filtros-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: filspin 0.6s linear infinite;
}

@keyframes filspin { to { transform: rotate(360deg); } }

/* Infinite scroll loader */
.scroll-spinner-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 60px;
    font-size: 0.8125rem;
    color: var(--c-text-muted);
}

.scroll-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: filspin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ============================================
   SEÇÕES SEO (CIDADES, BAIRROS, CATEGORIAS)
   ============================================ */
.seo-section {
    padding: 48px 0;
    border-top: 1px solid var(--c-border);
}

.seo-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.seo-section-subtitle {
    color: var(--c-text-secondary);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.links-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--c-bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    font-size: 0.875rem;
    color: var(--c-text-secondary);
    transition: all 0.2s;
}

.links-grid a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(232,134,12,0.05);
}

.links-grid a .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--c-text-muted);
    background: var(--c-surface);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Compartilhar perfil */
.perfil-share {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.share-wpp:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37,211,102,0.1);
}

.share-tg:hover {
    border-color: #0088cc;
    color: #0088cc;
    background: rgba(0,136,204,0.1);
}

/* ============================================
   TEXTO SEO (CONTEÚDO PROGRAMÁTICO)
   ============================================ */
.seo-content {
    padding: 48px 0;
    border-top: 1px solid var(--c-border);
}

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--c-text);
}

.seo-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--c-text);
}

.seo-content p {
    color: var(--c-text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.seo-content ul, .seo-content ol {
    color: var(--c-text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.seo-content strong {
    color: var(--c-text);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
    padding: 48px 0;
    border-top: 1px solid var(--c-border);
}

.faq-item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: var(--c-bg-card);
    border: none;
    color: var(--c-text);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--c-bg-card-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--c-text-muted);
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--c-primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--c-text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 20px 16px;
    max-height: 300px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 16px 0;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
}

.breadcrumbs-list li::after {
    content: '›';
    margin-left: 8px;
    color: var(--c-text-muted);
}

.breadcrumbs-list li:last-child::after {
    display: none;
}

.breadcrumbs-list a {
    color: var(--c-text-muted);
    transition: color 0.2s;
}

.breadcrumbs-list a:hover {
    color: var(--c-primary);
}

.breadcrumbs-list .current {
    color: var(--c-text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--c-secondary);
    border-top: 1px solid var(--c-border);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-primary);
}

.footer-col a {
    display: block;
    padding: 4px 0;
    color: var(--c-text-muted);
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--c-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--c-text-muted);
}

/* ============================================
   SINGLE PERFIL
   ============================================ */
.perfil-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.perfil-img-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.perfil-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.perfil-nome {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.perfil-idade {
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--c-text-muted);
}

.perfil-local {
    font-size: 0.9375rem;
    color: var(--c-text-secondary);
    margin-bottom: 16px;
}

.perfil-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.perfil-dados {
    margin-bottom: 24px;
}

.perfil-dados h3,
.perfil-valores h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.dados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dado {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--c-bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    font-size: 0.8125rem;
}

.dado-label {
    color: var(--c-text-muted);
}

.dado-valor {
    font-weight: 500;
    color: var(--c-text);
}

.perfil-valores {
    margin-bottom: 24px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.valor-card {
    text-align: center;
    padding: 16px 12px;
    background: var(--c-bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
}

.valor-periodo {
    display: block;
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-bottom: 4px;
}

.valor-preco {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-primary);
}

.perfil-cta {
    margin-top: 24px;
}

.btn-whatsapp {
    display: block;
    text-align: center;
    padding: 16px 32px;
    background: #25D366;
    color: #fff;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
}

.perfil-descricao {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--c-border);
    max-width: 720px;
}

.perfil-descricao h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.perfil-descricao p {
    color: var(--c-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ============================================
   DETAILS / SUMMARY (expandir bairros)
   ============================================ */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 4px;
}

/* ============================================
   GALERIA DE FOTOS (PERFIL)
   ============================================ */
.perfil-galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.galeria-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: var(--c-surface);
}

.galeria-item-main {
    grid-column: span 2;
    grid-row: span 2;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .nav-main {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }

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

    .profile-card-img {
        width: 120px;
        min-height: 140px;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .perfil-layout {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filtros-inner {
        gap: 6px;
    }
    
    .filtro-group select {
        min-width: 110px;
        font-size: 0.6875rem;
        padding: 6px 24px 6px 8px;
    }
    
    .filtro-range {
        display: none;
    }
    
    .filtro-limpar {
        font-size: 0.6875rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .profile-card-img {
        width: 100px;
        min-height: 120px;
    }
    
    .profile-card-meta {
        display: none;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    
    .filtros-inner::-webkit-scrollbar {
        display: none;
    }
}
