/* ============================================================
   KACHOW.PT — folha de estilos única
   ------------------------------------------------------------
    1. Tokens (tema claro / escuro)
    2. Base e tipografia
    3. Utilitários e layout
    4. Botões
    5. Formulários e mensagens
    6. Cabeçalho, navegação e menu do utilizador
    7. Menu mobile (gaveta)
    8. Modal de login
    9. Hero com parallax
   10. Pesquisa sobreposta
   11. Secções da homepage
   12. Cards de veículos
   13. Destaques e stands
   14. Listagem: filtros, ordenação, paginação
   15. Espaços publicitários
   16. Página de detalhe
   17. Página do stand
   18. Institucional (sobre, como funciona, planos)
   19. Rodapé
   20. Páginas de conta (favoritos, meus anúncios, mensagens)
   21. Administração
   22. Lightbox e páginas de erro
   23. Movimento reduzido
   ============================================================ */


/* ============================================================
   1. TOKENS
   Tema claro = predefinido. O tema escuro aplica-se com
   <html data-theme="dark"> (definido antes do CSS, sem "flash").
   ============================================================ */
:root,
[data-theme="light"] {
    color-scheme: light;

    /* Marca */
    --primary: #FF2438;               /* vermelho da marca (acentos, ícones, sublinhados) */
    --primary-hover: #C8152A;
    --primary-solid: #E11930;         /* fundo de botões com texto branco (contraste AA 4.6:1) */
    --primary-text: #C0102A;          /* vermelho para texto sobre fundo claro (contraste AA) */
    --primary-soft: rgba(255, 36, 56, .08);
    --accent: #FFD629;                /* amarelo elétrico — raio do logótipo, palavras-chave */
    --accent-text: #8A6A00;           /* amarelo legível sobre fundo claro */
    --graphite: #11151C;

    /* Superfícies */
    --bg: #F4F6F8;
    --surface: #FFFFFF;
    --surface-2: #F1F4F7;
    --surface-3: #E7ECF1;
    --overlay: rgba(9, 12, 17, .62);

    /* Texto */
    --text: #111827;
    --text-2: #334155;
    --muted: #556274;                 /* 5:1 sobre --bg (AA) */
    --on-primary: #FFFFFF;
    --on-dark: #F8FAFC;

    /* Bordas e sombras */
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 6px 20px rgba(15, 23, 42, .08);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);

    /* Estados */
    --success: #15803D;
    --success-bg: #DCFCE7;
    --danger: #B91C1C;
    --danger-bg: #FEE2E2;
    --warning: #92400E;
    --warning-bg: #FEF3C7;
    --info: #1D4ED8;
    --info-bg: #DBEAFE;
    --focus: #2563EB;

    /* Cabeçalho */
    --header-bg: rgba(255, 255, 255, .92);
    --header-text: #111827;

    /* Secção escura (hero, institucional) — escura nos dois temas */
    --dark-bg: #11151C;
    --dark-surface: #1B222D;
    --dark-border: #2B3443;
    --dark-muted: #A7B0BF;

    /* Tipografia */
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Sora", "Inter", system-ui, sans-serif;

    /* Medidas */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --container: 1280px;
    --header-h: 68px;
    --gutter: clamp(16px, 3vw, 28px);
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Camadas */
    --z-header: 100;
    --z-drawer: 200;
    --z-modal: 300;
    --z-lightbox: 400;
}

[data-theme="dark"] {
    color-scheme: dark;

    --primary: #FF3348;
    --primary-hover: #C8152A;
    --primary-solid: #E11930;
    --primary-text: #FF6B7A;
    --primary-soft: rgba(255, 51, 72, .14);
    --accent-text: #FFD629;

    --bg: #11151C;
    --surface: #1B222D;
    --surface-2: #222B38;
    --surface-3: #2B3544;
    --overlay: rgba(0, 0, 0, .7);

    --text: #F8FAFC;
    --text-2: #D7DEE8;
    --muted: #A7B0BF;

    --border: #303A49;
    --border-strong: #3E4A5C;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 52px rgba(0, 0, 0, .55);

    --success: #4ADE80;
    --success-bg: rgba(34, 197, 94, .14);
    --danger: #FCA5A5;
    --danger-bg: rgba(239, 68, 68, .16);
    --warning: #FCD34D;
    --warning-bg: rgba(245, 158, 11, .16);
    --info: #93C5FD;
    --info-bg: rgba(59, 130, 246, .16);
    --focus: #60A5FA;

    --header-bg: rgba(17, 21, 28, .92);
    --header-text: #F8FAFC;
}


/* ============================================================
   2. BASE E TIPOGRAFIA
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}

body > main, .pagina { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--text);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--accent); color: var(--graphite); }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.saltar-conteudo {
    position: absolute;
    left: 12px; top: -60px;
    z-index: calc(var(--z-modal) + 1);
    background: var(--primary-solid);
    color: var(--on-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}
.saltar-conteudo:focus { top: 12px; }


/* ============================================================
   3. UTILITÁRIOS E LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.pagina { padding-block: 28px 56px; }
.pagina-estreita { max-width: 980px; }

.texto-muted { color: var(--muted); }
.destaque-amarelo { color: var(--accent); }
.destaque-vermelho { color: var(--primary); }

.cartao {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 20px;
}


/* ============================================================
   4. BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn i { font-size: 18px; }

.btn-primario, .btn-anunciar {
    background: var(--primary-solid);
    color: var(--on-primary);
    box-shadow: 0 6px 18px rgba(255, 36, 56, .25);
}
.btn-primario:hover, .btn-anunciar:hover { background: var(--primary-hover); color: var(--on-primary); }

.btn-secundario {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secundario:hover { border-color: var(--text); }

.btn-fantasma {
    background: transparent;
    color: inherit;
    border-color: transparent;
}
.btn-fantasma:hover { background: var(--surface-2); }

.btn-perigo { background: var(--danger-bg); color: var(--danger); }
.btn-perigo:hover { filter: brightness(.96); }

.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.btn-bloco { width: 100%; }

.btn-icone {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.btn-icone:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-icone i { font-size: 20px; }

/* compatibilidade com classes antigas */
.btn-link {
    background: none;
    border: 0;
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.btn-voltar { display: inline-flex; margin-top: 16px; text-decoration: none; }


/* ============================================================
   5. FORMULÁRIOS E MENSAGENS
   ============================================================ */
input, select, textarea {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }

.register-container {
    width: min(100% - 2 * var(--gutter), 460px);
    margin: 40px auto 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: clamp(20px, 4vw, 32px);
}
.register-container-wide { width: min(100% - 2 * var(--gutter), 560px); }
.register-container h2 { text-align: center; margin-bottom: 20px; font-size: 24px; }
.register-container > p { color: var(--muted); }

.register-form { display: flex; flex-direction: column; gap: 12px; }
.register-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.register-form select,
.register-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
}
.register-form textarea { min-height: 120px; resize: vertical; }
.register-form input[type="file"] { padding: 9px; }
.register-form > button[type="submit"],
.register-form .btn-submeter {
    min-height: 48px;
    background: var(--primary-solid);
    color: var(--on-primary);
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-top: 4px;
}
.register-form > button[type="submit"]:hover { background: var(--primary-hover); }
.register-form > label:not(.campo-label) { font-size: 13px; color: var(--text-2); font-weight: 600; }

.campo-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.campo-label input, .campo-label select, .campo-label textarea { font-weight: 400; }
.campo-checkbox, .campo-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.password-field { display: flex; flex-direction: column; gap: 6px; }
.password-strength { width: 100%; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.password-strength-bar { height: 100%; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.password-hint { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }

.lojista-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.lojista-fields-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lojista-fields-nota { font-size: 13px; color: var(--muted); }
.lojista-fields-nota a { color: var(--primary-text); }

.logo-atual { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.logo-atual img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.verificar-texto { font-size: 14px; color: var(--muted); margin-bottom: 16px; text-align: center; }
.verificar-reenviar { margin-top: 12px; text-align: center; }
.form-rodape { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.form-rodape a { color: var(--primary-text); font-weight: 600; }
.form-intro { text-align: center; color: var(--muted); font-size: 14px; margin: -8px 0 20px; }

/* Mensagens de feedback */
.sucesso, .erro, .aviso, .info, .mensagem_enviada {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.sucesso, .mensagem_enviada { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.erro { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.aviso { background: var(--warning-bg); color: var(--warning); }
.info { background: var(--info-bg); color: var(--info); }
.pagina > .sucesso, main > .sucesso { max-width: var(--container); margin: 16px auto; }

.badge-sync { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: var(--radius-pill); margin-left: 8px; }
.badge-sync-ok { background: var(--success-bg); color: var(--success); }
.badge-sync-erro { background: var(--danger-bg); color: var(--danger); }
.badge-sync-pendente { background: var(--warning-bg); color: var(--warning); }

.lista-resumo { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }


/* ============================================================
   6. CABEÇALHO E NAVEGAÇÃO
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--header-text);
    flex-shrink: 0;
}
.logo-raio {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--graphite);
    color: var(--accent);
}
[data-theme="dark"] .logo-raio { background: #262F3D; }
.logo-raio svg { width: 22px; height: 22px; }
.logo-texto {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.03em;
    line-height: 1;
}
.logo-texto span { color: var(--primary); }

.nav-principal { display: flex; align-items: center; gap: 4px; }
.nav-principal a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-2);
    transition: color .2s, background-color .2s;
}
.nav-principal a:hover { color: var(--text); background: var(--surface-2); }
.nav-principal a[aria-current="page"] { color: var(--primary-text); }

.header-pesquisa {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--muted);
}
.header-pesquisa input { border: 0; background: transparent; width: 100%; height: 100%; padding: 0; color: var(--text); }
.header-pesquisa input:focus { box-shadow: none; }
.header-pesquisa:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }

.header-acoes { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-tema .icone-lua { display: none; }
[data-theme="dark"] .btn-tema .icone-sol { display: none; }
[data-theme="dark"] .btn-tema .icone-lua { display: block; }

.btn-entrar { color: var(--text); }

/* Menu do utilizador (dropdown) */
.menu-utilizador { position: relative; }
.menu-utilizador-botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    max-width: 220px;
}
.menu-utilizador-botao:hover { border-color: var(--border-strong); }
.avatar {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--graphite);
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
}
.menu-utilizador-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-contador {
    display: inline-grid;
    place-items: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--primary-solid);
    color: var(--on-primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
}
.menu-utilizador.aberto .menu-dropdown { display: block; }
.menu-dropdown a, .menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}
.menu-dropdown a:hover, .menu-dropdown button:hover { background: var(--surface-2); }
.menu-dropdown i { font-size: 18px; color: var(--muted); }
.menu-dropdown .badge-contador { margin-left: auto; }
.menu-dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.menu-dropdown .link-sair, .menu-dropdown .link-sair i { color: var(--danger); }

.btn-menu-mobile { display: none; }

@media (max-width: 1180px) {
    .header-pesquisa { display: none; }
}
@media (max-width: 960px) {
    .nav-principal, .menu-utilizador, .header-acoes .btn-entrar, .header-acoes .btn-anunciar { display: none; }
    .btn-menu-mobile { display: inline-grid; }
}


/* ============================================================
   7. MENU MOBILE (GAVETA)
   ============================================================ */
.gaveta-fundo {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    background: var(--overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
}
.gaveta {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: calc(var(--z-drawer) + 1);
    width: min(88vw, 360px);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.gaveta-aberta { overflow: hidden; }
body.gaveta-aberta .gaveta { transform: none; visibility: visible; }
body.gaveta-aberta .gaveta-fundo { opacity: 1; visibility: visible; }

.gaveta-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.gaveta-corpo { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.gaveta-corpo > * { flex-shrink: 0; }
.gaveta-corpo .header-pesquisa { display: flex; max-width: none; margin-bottom: 8px; }
.gaveta-titulo { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 4px 6px; }
.gaveta-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    font-size: 15px;
}
.gaveta-link:hover { background: var(--surface-2); }
.gaveta-link i { font-size: 20px; color: var(--muted); }
.gaveta-link .badge-contador { margin-left: auto; }
.gaveta-corpo .btn { margin-top: 8px; }


/* ============================================================
   8. MODAL DE LOGIN
   ============================================================ */
.modal-login {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: var(--overlay);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-login.aberto { display: flex; }
.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 24px 22px;
    -webkit-overflow-scrolling: touch;
}
.modal-content h3 { font-size: 22px; margin-bottom: 4px; }
.modal-subtitulo { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-fechar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; }
.modal-content form { display: flex; flex-direction: column; gap: 10px; }
.modal-content input:not([type="hidden"]) { width: 100%; min-height: 46px; padding: 11px 14px; }
.modal-content form button[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-solid);
    color: var(--on-primary);
    font-weight: 700;
}
.modal-content form button[type="submit"]:hover { background: var(--primary-hover); }
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.btn-google:hover { background: var(--surface-2); }
.modal-login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; }
.modal-login-links a { color: var(--primary-text); text-decoration: none; font-weight: 600; }
.modal-login-links a:hover { text-decoration: underline; }
.login-separador { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.login-separador::before, .login-separador::after { content: ""; flex: 1; border-bottom: 1px solid var(--border); }


/* ============================================================
   9. HERO COM PARALLAX
   ============================================================ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--dark-bg);
    color: var(--on-dark);
    min-height: clamp(480px, 62vh, 560px);
    padding-bottom: 96px; /* espaço para a pesquisa sobreposta */
}
.hero-fundo {
    position: absolute;
    inset: -8% 0 56px;        /* margem superior para o parallax; em baixo, a zona da pesquisa */
    z-index: -2;
}
.hero { background: linear-gradient(180deg, var(--dark-bg) 0%, #1A1F29 100%); }
@media (max-width: 720px) { .hero-fundo { inset: -8% 0 0; } }
.hero-fundo picture, .hero-fundo img, .hero-fundo svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%; /* automóvel do lado direito */
}
.hero-camada { position: absolute; inset: 0; will-change: transform; }
.hero-camada svg { width: 100%; height: 100%; }

/* Degradê para legibilidade do texto (esquerda escura → direita transparente) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 12, 17, .92) 0%, rgba(9, 12, 17, .72) 38%, rgba(9, 12, 17, .15) 72%, rgba(9, 12, 17, .05) 100%),
        linear-gradient(0deg, rgba(9, 12, 17, .75) 0%, rgba(9, 12, 17, 0) 40%);
}

.hero-conteudo {
    position: relative;
    padding-block: clamp(48px, 9vh, 88px) 40px;
    max-width: 640px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 214, 41, .12);
    border: 1px solid rgba(255, 214, 41, .35);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}
.hero h1 {
    color: #FFFFFF;
    font-size: clamp(36px, 5.6vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 16px;
    text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-subtitulo {
    font-size: clamp(16px, 1.6vw, 19px);
    color: #D7DEE8;
    max-width: 520px;
    margin-bottom: 24px;
}
.hero-indicadores { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.hero-indicadores li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #F1F5F9;
}
.hero-ind-icone {
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 214, 41, .16);
    color: var(--accent);
    font-size: 16px;
}
.hero-contagem { margin-top: 18px; font-size: 14px; color: var(--dark-muted); }
.hero-contagem strong { color: #FFFFFF; }

@media (max-width: 720px) {
    .hero { min-height: 0; padding-bottom: 32px; }
    .hero::after {
        background: linear-gradient(180deg, rgba(9, 12, 17, .55) 0%, rgba(9, 12, 17, .82) 60%, rgba(9, 12, 17, .95) 100%);
    }
    .hero-conteudo { padding-block: 36px 24px; }
    .hero-indicadores { gap: 8px 16px; }
}


/* ============================================================
   10. PESQUISA SOBREPOSTA
   ============================================================ */
.pesquisa-wrap {
    position: relative;
    z-index: 2;
    margin-top: -72px;          /* sobrepõe a parte inferior do hero */
}
.pesquisa {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 18px 18px;
}
.pesquisa-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.pesquisa-tabs::-webkit-scrollbar { display: none; }
.pesquisa-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    margin-bottom: -1px;
    text-decoration: none;
}
.pesquisa-tab i { font-size: 20px; }
.pesquisa-tab:hover { color: var(--text); }
.pesquisa-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }

.pesquisa-campos {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}
.pesquisa-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pesquisa-campo label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pesquisa-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.pesquisa-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.pesquisa-input i { color: var(--muted); font-size: 20px; flex-shrink: 0; }
.pesquisa-input input, .pesquisa-input select {
    border: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 15px;
    box-shadow: none !important;
    min-width: 0;
    text-overflow: ellipsis;
}
.pesquisa-botao { height: 52px; padding-inline: 26px; font-size: 15px; }
.pesquisa-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pesquisa-rodape a { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.pesquisa-rodape a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .pesquisa-campos { grid-template-columns: 1fr 1fr; }
    .pesquisa-campo-texto, .pesquisa-botao { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .pesquisa-wrap { margin-top: 0; padding-top: 16px; }
    .pesquisa { padding: 4px 14px 16px; border-radius: var(--radius); }
}
@media (max-width: 480px) {
    .pesquisa-campos { grid-template-columns: 1fr; }
    .pesquisa-tab { padding-inline: 12px; font-size: 14px; }
}


/* ============================================================
   11. SECÇÕES DA HOMEPAGE
   ============================================================ */
.secao { padding-block: 48px 8px; }
.secao-cabecalho {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.secao-titulo { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; }
.secao-titulo em { font-style: normal; color: var(--primary); }
.secao-subtitulo { color: var(--muted); margin-top: 6px; max-width: 620px; }
.secao-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-text);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.secao-link:hover { text-decoration: underline; }

.layout-com-lateral {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}
@media (min-width: 1280px) {
    .layout-com-lateral.tem-lateral { grid-template-columns: minmax(0, 1fr) 300px; }
}
.coluna-lateral { display: flex; flex-direction: column; gap: 20px; }
.coluna-lateral-fixa { position: sticky; top: calc(var(--header-h) + 20px); }


/* ============================================================
   12. CARDS DE VEÍCULOS
   ============================================================ */
.cars-grid, .grelha-veiculos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
    grid-auto-flow: row dense; /* o anúncio in-feed (linha inteira) não deixa buracos na grelha */
    gap: 22px;
}

.card-veiculo {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card-veiculo:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-veiculo:focus-within { border-color: var(--focus); }

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.card-veiculo:hover .card-media img { transform: scale(1.04); }
.card-sem-foto { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-sem-foto i { font-size: 48px; opacity: .45; }

.card-selos { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.selo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.selo i { font-size: 14px; }
.selo-destaque { background: var(--accent); color: #111827; }
.selo-novo { background: #15803D; color: #FFFFFF; }

.btn-favorito {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    transition: transform .15s, color .2s;
}
.btn-favorito:hover { transform: scale(1.08); color: var(--primary); }
.btn-favorito svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-favorito[aria-pressed="true"] { color: var(--primary); }
.btn-favorito[aria-pressed="true"] svg { fill: currentColor; }

.card-corpo { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.card-titulo { font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--text); }
.card-titulo a { color: inherit; text-decoration: none; }
/* Link ocupa todo o card (o botão de favorito fica por cima) */
.card-titulo a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-titulo a:focus-visible { outline: none; }
.card-titulo a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius-lg); }
.card-modelo { display: block; font-weight: 500; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card-preco {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--primary-text);
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    list-style: none;
    font-size: 13px;
    color: var(--text-2);
}
.card-specs li { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-specs i { color: var(--muted); font-size: 16px; flex-shrink: 0; }

.card-rodape {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}
.card-rodape i { font-size: 16px; }

/* compatibilidade com marcação antiga */
.car-badge { display: inline-flex; padding: 3px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.badge-novo { background: var(--success-bg); color: var(--success); }
.badge-used { background: var(--surface-2); color: var(--text-2); }
.sem-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}


/* ============================================================
   13. DESTAQUES E STANDS
   ============================================================ */
.stands-grelha {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}
.loja-card-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.loja-card-top:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.loja-card-avatar {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    color: var(--muted);
}
.loja-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.loja-card-avatar i { font-size: 24px; }
.loja-card-info { min-width: 0; }
.loja-card-nome { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-card-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-card-badge { position: absolute; top: 10px; right: 10px; color: var(--accent-text); }

.lojistas-vazio {
    text-align: center;
    padding: 36px 20px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
}
.lojistas-vazio i { font-size: 36px; display: block; margin: 0 auto 10px; }
.lojistas-vazio p { margin-bottom: 16px; }


/* ============================================================
   14. LISTAGEM: FILTROS, ORDENAÇÃO, PAGINAÇÃO
   ============================================================ */
.tipo-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tipo-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.tipo-tab:hover { border-color: var(--border-strong); }
.tipo-tab.active { background: var(--graphite); border-color: var(--graphite); color: #FFFFFF; }
[data-theme="dark"] .tipo-tab.active { background: var(--text); border-color: var(--text); color: var(--graphite); }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.filter-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}
.filter-chip::-webkit-details-marker { display: none; }
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.filter-advanced { flex-basis: 100%; order: 10; }
.filter-advanced > details > summary { width: max-content; }
.filter-sort { margin-left: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; }

.filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px;
    margin-top: 12px;
    background: var(--surface-2);
    border-radius: var(--radius);
}
.filter-panel label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.filter-panel input, .filter-panel select { min-height: 42px; padding: 8px 10px; font-size: 14px; font-weight: 400; }
.btn-filter {
    min-height: 42px;
    padding: 8px 18px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-solid);
    color: var(--on-primary);
    font-weight: 700;
}
.btn-filter:hover { background: var(--primary-hover); }

.gallery-header, .listagem-cabecalho {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.gallery-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.gallery-count { font-size: 14px; color: var(--muted); }

.paginacao {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 32px 0 8px;
}
.paginacao a, .paginacao span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.paginacao a:hover { border-color: var(--border-strong); color: var(--text); }
.paginacao [aria-current="page"] { background: var(--primary-solid); border-color: var(--primary-solid); color: var(--on-primary); }
.paginacao .reticencias { border: 0; background: none; min-width: 20px; padding: 0; }


/* ============================================================
   15. ESPAÇOS PUBLICITÁRIOS
   Claramente separados dos anúncios de veículos (política Google):
   etiqueta "Publicidade", sem selos nem estilo de card de veículo.
   ============================================================ */
.ad-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-inline: auto;
    width: 100%;
}
.ad-slot-etiqueta {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ad-slot-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Altura reservada (evita CLS quando o anúncio carrega) */
.ad-slot--home_top { max-width: 970px; margin-block: 32px 0; }
.ad-slot--home_top .ad-slot-area { min-height: 100px; }
.ad-slot--home_between_sections { max-width: 970px; margin-block: 40px 0; }
.ad-slot--home_between_sections .ad-slot-area { min-height: 100px; }
.ad-slot--listing_inline { grid-column: 1 / -1; }
.ad-slot--listing_inline .ad-slot-area { min-height: 120px; }
.ad-slot--vehicle_detail { margin-block: 20px; }
.ad-slot--vehicle_detail .ad-slot-area { min-height: 100px; }
.ad-slot--home_sidebar .ad-slot-area { min-height: 600px; width: 300px; }
.ad-slot--sidebar_medium .ad-slot-area { min-height: 250px; width: 300px; }
@media (min-width: 768px) {
    .ad-slot--home_top .ad-slot-area,
    .ad-slot--home_between_sections .ad-slot-area,
    .ad-slot--vehicle_detail .ad-slot-area { min-height: 90px; }
}
/* Só em desenvolvimento: mostra onde fica cada espaço */
.ad-slot-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
   16. PÁGINA DE DETALHE
   ============================================================ */
.detalhe-page { padding-block: 24px 56px; }
.detalhe-voltar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.detalhe-voltar:hover { color: var(--text); }

.detalhe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .detalhe-grid { grid-template-columns: minmax(0, 1fr); }
    /* Mobile: galeria → preço/contacto → publicidade → ficha → descrição */
    .detalhe-grid:first-of-type { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .detalhe-grid:first-of-type > .detalhe-galeria { display: contents; }
    .detalhe-galeria > .slider { order: 1; }
    .detalhe-galeria > .slider-thumbs { order: 2; }
    .detalhe-grid:first-of-type > .detalhe-lateral { order: 3; margin-top: 16px; }
    .detalhe-galeria > .ad-slot { order: 4; }
    .detalhe-galeria > .detalhe-bloco { order: 5; }
}

.detalhe-galeria { min-width: 0; }
.detalhe-lateral { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 961px) { .detalhe-lateral { position: sticky; top: calc(var(--header-h) + 20px); } }

.slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.slider-viewport { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0B0E13; overflow: hidden; }
.slider-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s; z-index: 0; }
.slider-slide.active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.slider-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.slider-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--dark-muted); }
.slider-placeholder i { font-size: 64px; opacity: .4; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111827;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.slider-btn:hover { background: #FFFFFF; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.slider-dot.active { background: var(--accent); transform: scale(1.25); }
.slider-contador {
    position: absolute;
    right: 12px; bottom: 12px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, .6);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}
.slider-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.slider-thumb {
    flex: 0 0 84px;
    height: 63px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: none;
    opacity: .65;
    transition: opacity .2s, border-color .2s;
}
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider-thumb.active, .slider-thumb:hover { opacity: 1; border-color: var(--primary); }

.detalhe-info, .detalhe-caixa {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(18px, 3vw, 26px);
}
.detalhe-badges { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.detalhe-titulo { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 6px; }
.detalhe-subtitulo { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.detalhe-preco { font-family: var(--font-display); font-size: clamp(30px, 4vw, 38px); font-weight: 800; color: var(--primary-text); letter-spacing: -.03em; margin-bottom: 18px; }

.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn:hover { border-color: var(--primary); color: var(--primary-text); }
.fav-btn.is-fav { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.fav-btn.is-fav svg { fill: currentColor; }

.detalhe-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    margin-bottom: 4px;
    background: var(--surface-2);
    border-radius: var(--radius);
}
.spec-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec-item span, .spec-item dt { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.spec-item strong, .spec-item dd { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.detalhe-bloco { margin-top: 20px; }
.detalhe-grid.detalhe-bloco { margin-top: 28px; }
.detalhe-caixa > p.texto-muted { margin-bottom: 14px; }
.selo-contorno { box-shadow: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.selo-contorno.selo-novo { background: #15803D; border-color: #15803D; color: #FFFFFF; }
.sem-borda { border: 0; }
.card-avaliacao { margin-bottom: 20px; }
.aviso-seguranca { margin-top: 12px; }

.detalhe-descricao h2, .detalhe-contacto h2, .detalhe-caixa h2 { font-size: 18px; margin-bottom: 12px; }
.detalhe-descricao p { color: var(--text-2); line-height: 1.7; overflow-wrap: anywhere; }

.contacto-nome { font-weight: 700; font-size: 16px; }
.contacto-local { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.detalhe-contacto form { display: flex; flex-direction: column; gap: 10px; }
.detalhe-contacto textarea, .form-control { width: 100%; min-height: 110px; padding: 12px; resize: vertical; }
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-solid);
    color: var(--on-primary);
    font-weight: 700;
    text-decoration: none;
}
.contact-button:hover { background: var(--primary-hover); }
.aviso-seguranca { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }

.card-avaliacao { padding: 0; border: 0; }
.subtitulo-avaliacao { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.estrelas-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; margin-bottom: 12px; }
.estrelas-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estrelas-input label { font-size: 30px; color: var(--surface-3); cursor: pointer; transition: color .2s; padding: 0 2px; }
.estrelas-input label::before { content: "★"; }
.estrelas-input input:checked ~ label, .estrelas-input label:hover, .estrelas-input label:hover ~ label { color: #F5B301; }
.estrelas-input input:focus-visible + label { outline: 3px solid var(--focus); border-radius: 4px; }
.campo-comentario textarea { width: 100%; min-height: 80px; padding: 10px 12px; resize: vertical; }
.btn-enviar-avaliacao { margin-top: 10px; }

.lista-comentarios { display: flex; flex-direction: column; gap: 12px; }
.comentario-card { padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.comentario-topo { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.comentario-data { color: var(--muted); font-size: 12px; margin-left: 8px; }
.estrelas-fixas { color: #F5B301; letter-spacing: 2px; }
.comentario-texto { color: var(--text-2); font-size: 14px; font-style: italic; overflow-wrap: anywhere; }

.btn-denunciar { align-self: flex-start; }

/* Modal de denúncia */
.modal-denuncia { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--overlay); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-denuncia.aberto { display: flex; }
.modal-denuncia .modal-content { max-width: 480px; }
.modal-denuncia form { gap: 12px; }
.modal-denuncia select, .modal-denuncia textarea { width: 100%; padding: 10px 12px; min-height: 44px; }
.modal-denuncia textarea { min-height: 110px; resize: vertical; }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }


/* ============================================================
   17. PÁGINA DO STAND
   ============================================================ */
.loja-page { padding-block: 24px 56px; }
.loja-header {
    display: flex;
    gap: 24px;
    padding: clamp(18px, 3vw, 28px);
    margin-bottom: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) { .loja-header { flex-direction: column; } }
.loja-logo { display: grid; place-items: center; width: 104px; height: 104px; flex-shrink: 0; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.loja-logo img { width: 100%; height: 100%; object-fit: cover; }
.loja-logo i { font-size: 44px; color: var(--muted); }
.loja-info { min-width: 0; }
.loja-info h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.loja-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.loja-meta span { display: inline-flex; align-items: center; gap: 6px; }
.loja-morada { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.loja-descricao { color: var(--text-2); margin-bottom: 14px; overflow-wrap: anywhere; }
.loja-vazio { text-align: center; padding: 48px 20px; }
.loja-vazio i { font-size: 48px; color: var(--muted); display: block; margin: 0 auto 12px; }
.loja-vazio h2 { margin-bottom: 8px; }
.loja-vazio p { color: var(--muted); margin-bottom: 18px; }


/* ============================================================
   18. INSTITUCIONAL (SOBRE / COMO FUNCIONA / PLANOS)
   ============================================================ */
.inst-section { padding-block: clamp(48px, 7vw, 80px); }
.inst-section-dark { background: var(--dark-bg); color: var(--on-dark); }
.inst-section-dark h1, .inst-section-dark h2, .inst-section-dark h3 { color: #FFFFFF; }
.inst-inner { max-width: 1040px; margin-inline: auto; padding-inline: var(--gutter); }
.inst-eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    margin-bottom: 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--primary-soft);
    color: var(--primary-text);
}
.inst-section-dark .inst-eyebrow { background: rgba(255, 214, 41, .12); color: var(--accent); }
.inst-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; max-width: 760px; margin-bottom: 16px; }
.inst-title-light { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 30px; }
.inst-lead { font-size: 17px; max-width: 720px; color: var(--dark-muted); margin-bottom: 32px; }
.inst-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.inst-stat { padding: 20px; border-radius: var(--radius); background: var(--dark-surface); border: 1px solid var(--dark-border); }
.inst-stat i { font-size: 26px; color: var(--accent); }
.inst-stat strong { display: block; font-size: 18px; color: #FFFFFF; margin: 8px 0 4px; }
.inst-stat span { font-size: 14px; color: var(--dark-muted); }

.como-funciona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.como-funciona-col { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.como-funciona-col h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 18px; }
.como-funciona-col h3 i { color: var(--primary); }
.inst-steps { list-style: none; counter-reset: passo; display: flex; flex-direction: column; gap: 16px; }
.inst-steps li { counter-increment: passo; position: relative; padding-left: 42px; }
.inst-steps li::before {
    content: counter(passo);
    position: absolute;
    left: 0; top: 0;
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--graphite);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}
.inst-steps li strong { display: block; margin-bottom: 2px; }
.inst-steps li span { font-size: 14px; color: var(--muted); }

.planos-cabecalho { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.planos-cabecalho p { color: var(--dark-muted); }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; max-width: 920px; margin-inline: auto; }
.plano-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
}
.plano-card.plano-destaque { border: 2px solid var(--primary); }
.plano-tag {
    position: absolute;
    top: -13px; right: 22px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--primary-solid);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.plano-nome { font-size: 20px; margin-bottom: 4px; }
.plano-preco { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.plano-preco span { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--dark-muted); }
.plano-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; font-size: 14px; color: #D7DEE8; }
.plano-features li { display: flex; gap: 10px; align-items: flex-start; }
.plano-features i { color: var(--accent); margin-top: 3px; }
.btn-plano { margin-top: auto; }


/* ============================================================
   19. RODAPÉ
   ============================================================ */
.footer {
    margin-top: 56px;
    background: var(--graphite);
    color: #C3CAD5;
    padding-block: 48px 24px;
}
[data-theme="dark"] .footer { background: #0B0E13; border-top: 1px solid var(--border); }
.footer .logo { color: #FFFFFF; }
.footer .logo-raio { background: #262F3D; }
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-sobre { font-size: 14px; color: #A7B0BF; margin-top: 12px; max-width: 320px; }
.footer-titulo { font-family: var(--font); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #FFFFFF; margin-bottom: 12px; }
.footer-link {
    display: block;
    padding: 4px 0;
    color: #C3CAD5;
    font-size: 14px;
    text-decoration: none;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: #A7B0BF; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #FFFFFF;
    text-decoration: none;
}
.footer-socials a:hover { background: var(--primary-solid); }
.footer-socials i { font-size: 20px; }


/* ============================================================
   20. PÁGINAS DE CONTA (favoritos, meus anúncios, mensagens)
   ============================================================ */
.no-favs, .estado-vazio {
    text-align: center;
    padding: 48px 20px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
}
.no-favs i, .estado-vazio i { font-size: 44px; display: block; margin: 0 auto 10px; }

.card-acoes { position: relative; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.card-acoes > * { flex: 1; }
.card-acoes form { display: flex; margin: 0; }
.card-acoes form .btn { width: 100%; }
.card-metricas { position: relative; z-index: 2; display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.card-metricas span { display: inline-flex; align-items: center; gap: 4px; }
.card-metricas strong { color: var(--text); }

.thread-card { padding: 18px; margin-bottom: 18px; }
.thread-card.nao-lida { border-left: 4px solid var(--primary); }
.thread-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.thread-topo small { color: var(--muted); }
.thread-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.thread-acoes form { margin: 0; }
.thread-acoes button { background: none; border: 0; padding: 4px 0; font-size: 13px; font-weight: 600; }
.thread-acoes .acao-ler { color: var(--primary-text); }
.thread-acoes .acao-apagar { color: var(--danger); }
.selo-nova { background: var(--primary-solid); color: #FFFFFF; padding: 3px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.chat-history { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 14px; background: var(--surface-2); border-radius: var(--radius); }
.bolha { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 14px; overflow-wrap: anywhere; }
.bolha small { display: block; margin-top: 3px; font-size: 11px; opacity: .75; }
.bolha-eu { align-self: flex-end; background: var(--primary-solid); color: #FFFFFF; border-bottom-right-radius: 4px; }
.bolha-outro { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bolha-outro.nao-lida { border-color: var(--primary); }
.resposta-form { display: flex; gap: 10px; }
.resposta-form textarea { flex: 1; min-height: 46px; height: 46px; padding: 11px 12px; resize: vertical; }


/* ============================================================
   21. ADMINISTRAÇÃO
   ============================================================ */
.admin-page { width: min(100% - 2 * var(--gutter), 1200px); margin: 28px auto 56px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-header h1 { font-size: 24px; }
.admin-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.admin-btn:hover { background: var(--surface-2); }
.admin-btn-primary { background: var(--primary-solid); border-color: var(--primary-solid); color: #FFFFFF; }
.admin-filtros { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-filtros input, .admin-filtros select { min-height: 40px; padding: 8px 12px; }
.admin-filtros input { flex: 1; min-width: 200px; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { background: var(--surface-2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.admin-form { max-width: 520px; }
/* As páginas de admin ainda usam estilos inline com cores fixas: estas regras
   adaptam as superfícies e textos ao tema escuro. */
[data-theme="dark"] .admin-page [style*="background: #fff"],
[data-theme="dark"] .admin-page [style*="background:#fff"],
[data-theme="dark"] .admin-page [style*="background: #f8fafc"],
[data-theme="dark"] .admin-page [style*="background:#f8fafc"] { background: var(--surface) !important; }
[data-theme="dark"] .admin-page [style*="border: 1px solid #e2e8f0"],
[data-theme="dark"] .admin-page [style*="border-bottom: 1px solid #e2e8f0"],
[data-theme="dark"] .admin-page [style*="border-top: 1px solid #e2e8f0"],
[data-theme="dark"] .admin-page [style*="border: 1px solid #cbd5e1"] { border-color: var(--border) !important; }
[data-theme="dark"] .admin-page [style*="color: #1a1a2e"],
[data-theme="dark"] .admin-page [style*="color: #1f2937"],
[data-theme="dark"] .admin-page [style*="color: #374151"],
[data-theme="dark"] .admin-page [style*="color: #334155"],
[data-theme="dark"] .admin-page [style*="color: #475569"] { color: var(--text) !important; }
[data-theme="dark"] .admin-page [style*="color: #6b7280"],
[data-theme="dark"] .admin-page [style*="color: #64748b"],
[data-theme="dark"] .admin-page [style*="color:#6b7280"] { color: var(--muted) !important; }
[data-theme="dark"] .admin-page tr[style*="#ffffec"],
[data-theme="dark"] .admin-page tr[style*="#fff7f7"] { background: var(--warning-bg) !important; }


/* ============================================================
   22. LIGHTBOX E PÁGINAS DE ERRO
   ============================================================ */
.lightbox-overlay { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(5, 7, 10, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox-overlay.ativo { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; background: none; color: #FFFFFF; font-size: 32px; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 22px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.erro-pagina { max-width: 600px; margin: 64px auto; padding-inline: var(--gutter); text-align: center; }
.erro-pagina-codigo { font-family: var(--font-display); font-size: 72px; font-weight: 800; line-height: 1; color: var(--primary); margin-bottom: 12px; }
.erro-pagina h1 { font-size: 26px; margin-bottom: 10px; }
.erro-pagina p { color: var(--muted); margin-bottom: 22px; }


/* ============================================================
   23. MOVIMENTO REDUZIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-camada { transform: none !important; }
    .card-veiculo:hover, .card-veiculo:hover .card-media img { transform: none; }
}


/* ============================================================
   24. PÁGINAS DE TEXTO (privacidade, manual do utilizador)
   ============================================================ */
.conteudo-texto { max-width: 820px; line-height: 1.75; color: var(--text-2); }
.conteudo-texto h1 { font-size: clamp(28px, 4vw, 38px); color: var(--text); margin-bottom: 18px; }
.conteudo-texto h2 { font-size: 22px; color: var(--text); margin: 36px 0 12px; }
.conteudo-texto h3 { font-size: 18px; color: var(--text); margin: 24px 0 8px; }
.conteudo-texto p, .conteudo-texto ul, .conteudo-texto ol, .conteudo-texto table, .conteudo-texto blockquote { margin-bottom: 14px; }
.conteudo-texto ul, .conteudo-texto ol { padding-left: 22px; }
.conteudo-texto li { margin-bottom: 4px; }
.conteudo-texto a { color: var(--primary-text); }
.conteudo-texto strong { color: var(--text); }
.conteudo-texto hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.conteudo-texto blockquote { padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.conteudo-texto table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 14px; }
.conteudo-texto th, .conteudo-texto td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.conteudo-texto th { background: var(--surface-2); color: var(--text); }
.conteudo-texto code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* Rent e ferramentas administrativas: layouts fluidos em telemóveis e iPhone. */
.rent-page { padding-bottom: 48px; }
[hidden] { display:none!important; }
.rent-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.rent-intro h1 { margin:0 0 8px; font-size:clamp(28px,5vw,42px); }
.rent-intro p { color:var(--muted); margin:0; }
.rent-eyebrow { color:var(--primary-text)!important; font-weight:800; letter-spacing:.12em; font-size:12px; margin-bottom:8px!important; }
.rent-notice { padding:16px 18px; border:1px solid var(--border); border-left:4px solid var(--accent); border-radius:var(--radius-md); background:var(--surface-2); color:var(--text-2); line-height:1.6; margin:20px 0; }
.rent-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:18px; }
.rent-card,.rent-empty { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; }
.rent-card h2 { font-size:20px; margin:18px 0 6px; }
.rent-card p { color:var(--muted); }
.rent-card-top { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.rent-card-top span { color:var(--primary-text); font-size:12px; font-weight:800; letter-spacing:.1em; }
.rent-card-top strong { font-size:20px; }.rent-card-top small { color:var(--muted); font-size:13px; }
.card-preco small { color:var(--muted); font-size:.72em; font-weight:500; }
.rent-description { white-space:normal; overflow-wrap:anywhere; }
.rent-form-wrap { max-width:760px; }
.rent-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rent-form-wrap .register-form textarea { width:100%; }
.rent-page .btn,.rent-form-wrap button { min-height:44px; }
.admin-dashboard { width:min(100% - 2 * var(--gutter),1200px); }
.admin-dashboard > div:first-child { flex-wrap:wrap; gap:14px; }
.admin-dashboard > div:first-child > div { flex-wrap:wrap; }
.admin-dashboard > div:last-child { min-width:0!important; }
.admin-page table { min-width:720px; }
@media (max-width:720px) {
  .rent-intro { align-items:flex-start; flex-direction:column; }
  .rent-fields { grid-template-columns:1fr; }
  .rent-form-wrap { width:min(100% - 2 * var(--gutter),760px); padding:20px 16px; }
  .admin-dashboard > div:first-child { align-items:flex-start!important; }
  .admin-dashboard > div:last-child { grid-template-columns:1fr!important; }
  .admin-page .admin-header { align-items:flex-start!important; flex-direction:column; gap:12px; }
  .admin-page .admin-filtros { flex-direction:column; }
  .admin-page .admin-filtros input,.admin-page .admin-filtros select,.admin-page .admin-filtros button { min-height:44px; width:100%; }
}
@supports (padding: max(0px)) { .site-header { padding-top:env(safe-area-inset-top); } body { padding-bottom:env(safe-area-inset-bottom); } }
@supports (height: 100dvh) {
  .modal-content { max-height:calc(100dvh - 32px); }
  .modal-login { min-height:100dvh; }
}
@media (max-width:600px) {
  .modal-login { align-items:flex-start; overflow-y:auto; padding:16px 12px max(16px,env(safe-area-inset-bottom)); }
  .modal-content { margin:auto 0; padding:26px 18px 20px; }
  .modal-content input:not([type="hidden"]),.rent-form-wrap input,.rent-form-wrap textarea { font-size:16px; }
}
