/* ==========================================================
   Barbearia App — Paleta Coffee/Brown (Ivory → Espresso)
   Inspirado no template 4089388.jpg + paleta 6b5cba...
   ========================================================== */

:root {
    /* App é sempre claro — impede o WebView/navegador de escurecer
       automaticamente a página no modo noturno do sistema (algorithmic
       darkening), mantendo o modo escuro idêntico ao modo normal. */
    color-scheme: only light;

    /* Paleta principal */
    --ivory:     #F5EDDC;
    --beige:    #E8DBBD;
    --sand:     #D9BC85;
    --camel:    #B5803A;
    --caramel:  #9A6020;
    --chestnut: #6F4017;
    --cognac:   #4A2810;
    --coffee:   #2E180A;
    --chocolate:#1C0F06;
    --espresso: #0F0703;

    /* Tokens semânticos */
    --bg:           var(--ivory);
    --bg-alt:       var(--beige);
    --surface:      #FFFFFF;
    --surface-alt:  var(--ivory);
    --border:       rgba(111, 64, 23, 0.18);
    --border-strong:rgba(111, 64, 23, 0.32);

    --text:         var(--coffee);
    --text-muted:   var(--chestnut);
    --text-soft:    var(--camel);

    --primary:      var(--caramel);
    --primary-hover:var(--chestnut);
    --primary-fg:   var(--ivory);

    --accent:       var(--camel);
    --danger:       #C0392B;
    --success:      #2E7D32;
    --whatsapp:     #7fb392;

    --shadow-sm: 0 1px 2px rgba(28, 15, 6, 0.06);
    --shadow:    0 4px 18px rgba(28, 15, 6, 0.10);
    --shadow-lg: 0 12px 40px rgba(28, 15, 6, 0.16);

    --radius-sm: 8px;
    --radius:   14px;
    --radius-lg:22px;
    --radius-pill: 999px;
}

/* Reset suave */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* Layout containers */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 80px;
}
.container { padding: 16px 20px; }

/* Header tipo "hero" do template */
.hero {
    background: linear-gradient(135deg, var(--coffee) 0%, var(--chocolate) 100%);
    color: var(--ivory);
    padding: 14px 20px 22px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
}
.hero h1 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.hero p { margin: 0; color: rgba(245, 237, 220, 0.7); font-size: 12px; }
.hero .icon-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--camel); color: var(--coffee);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(181, 128, 58, 0.4);
}
/* Container que segue o hero — sobe levemente pra dar o efeito de "card flutuando" */
.after-hero { margin-top: 8px !important; }

/* Card */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.card-floating {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

/* Forms */
label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 12px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input, input[type="text"], input[type="tel"], input[type="email"],
input[type="number"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.input:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(154, 96, 32, 0.15);
}
textarea { min-height: 90px; resize: vertical; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
    box-shadow: 0 4px 14px rgba(154, 96, 32, 0.35);
}
.btn-primary:hover { background: var(--primary-hover); color: var(--ivory); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn-danger { background: var(--danger); color: white; }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-google {
    background: #fff;
    color: #1f1f1f;
    border: 1.5px solid #dadce0;
}
.btn-google img { width: 20px; height: 20px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Botão pequeno quadrado de ícone (ações em cards) */
.icon-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.12s, transform 0.1s;
    flex-shrink: 0;
    background: var(--bg-alt);
    color: var(--text);
}
.icon-btn:hover { filter: brightness(0.95); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.whatsapp { background: var(--whatsapp); color: #fff; }
.icon-btn.danger { background: rgba(192,57,43,0.1); color: var(--danger); }
.icon-btn .material-symbols-outlined { font-size: 18px; }

/* Badge de nota (★ X.X · N) usado nos cards de agendamento */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-alt);
    color: var(--text);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    margin-top: 3px;
}
.rating-badge .star { color: var(--camel); }
.rating-badge.empty { color: var(--text-muted); background: transparent; padding: 0; font-weight: 500; }

/* Cabeçalho de grupo por data — versão CLIENTE (lista "Meus agendamentos")
   Visual discreto: o destaque agora fica no header "Meus agendamentos" do card. */
.cliente-ag-data-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 16px 4px;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0.2px;
}
.cliente-ag-icone {
    width: 18px; height: 18px;
    background: transparent;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px !important;
    flex-shrink: 0;
    box-shadow: none;
    border-radius: 0;
}
.cliente-ag-rotulo {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cliente-ag-pill {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
}
.cliente-ag-data-header + .ag-card {
    padding-top: 10px !important;
    border-bottom-width: 1.5px !important;
}

/* ───────── Card de agendamento (layout uniforme) ───────── */
.ag-card {
    padding: 14px 4px;
    margin: 0 -4px;
    border-bottom: 6px solid var(--border-strong);
}
.ag-card:last-child { border-bottom: none; }
.ag-card + .ag-card { margin-top: 4px; }
.ag-card-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    user-select: none;
}
.ag-card-header.tem-perfil { cursor: pointer; }
.ag-card-header.tem-perfil:hover .ag-name { text-decoration: underline; }
.ag-card-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--camel);
    color: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.ag-card-header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ag-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ag-service-header {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ag-stars-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}
.ag-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 15px;
    letter-spacing: 1.5px;
    user-select: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.1s;
}
.ag-stars:active { transform: scale(0.94); }
.ag-stars-wrap { cursor: pointer; }

/* Estrelas dentro do modal de avaliação */
.aval-stars-modal {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 14px 0 4px;
}
.aval-stars-modal button {
    background: none;
    border: none;
    font-size: 38px;
    line-height: 1;
    color: rgba(111, 64, 23, 0.22);
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.12s, transform 0.08s;
    font-family: inherit;
}
.aval-stars-modal button.preview,
.aval-stars-modal button:hover:not(:disabled) {
    color: var(--camel);
}
.aval-stars-modal button:hover:not(:disabled) { transform: scale(1.08); }
.aval-stars-modal button:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}
.ag-stars-bg {
    color: rgba(111, 64, 23, 0.22);
    display: inline-block;
}
.ag-stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: var(--camel);
    white-space: nowrap;
    width: 0;
}
.ag-stars-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ag-stars-empty {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ag-card-body {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ag-time-badge {
    background: var(--bg-alt);
    color: var(--coffee);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
}
.ag-time-badge .data-line {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.ag-service {
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ag-actions {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: space-evenly;
}

/* Tipo: cards de seleção (cliente/comerciante) — estilo template */
.role-grid { display: grid; gap: 8px; margin-top: 12px; }
.role-card {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    width: 100%;
    color: var(--text);
}
.role-card:hover, .role-card.active {
    border-color: var(--primary);
    background: var(--surface-alt);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.role-card .icon {
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(135deg, var(--camel), var(--caramel));
    color: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.role-card .icon .material-symbols-outlined { font-size: 20px; }
.role-card .info h3 { margin: 0 0 1px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.role-card .info p { margin: 0; font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }

/* Bottom Navigation (template) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(28, 15, 6, 0.08);
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 0;
    transition: color 0.15s;
}
.bottom-nav a span.material-symbols-outlined {
    font-size: 24px;
    display: block;
    margin: 0 auto 2px;
}
.bottom-nav a.active { color: var(--primary); }

/* Utility */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-soft); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Spinner */
.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast / Alert
   Centralizado horizontal+vertical. Caixa elegante com ícone discreto à
   esquerda e texto bem distribuído. Não compete com o conteúdo embaixo
   (backdrop sutil só pra dar foco). */
.toast-backdrop {
    position: fixed; inset: 0;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;          /* não bloqueia clique */
    padding: 24px;
    animation: toastFade 0.18s ease;
}
.toast {
    background: var(--coffee);
    color: var(--ivory);
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(28, 15, 6, 0.28), 0 0 0 1px rgba(245, 237, 220, 0.06);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    width: max-content;
    text-align: left;
    pointer-events: auto;
    animation: toastPop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.toast > span { flex: 1; min-width: 0; word-break: break-word; }
.toast .toast-ico {
    width: 18px; height: 18px;
    flex-shrink: 0;
    stroke-width: 2.4;
    opacity: 0.85;                  /* ícone discreto, sem competir com o texto */
}
.toast.error   { background: var(--danger); }
.toast.success { background: var(--success); }
.toast.warning {
    background: #c47a2a;
    color: var(--ivory);
}
@keyframes toastFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes toastPop {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes toastFadeOut {
    to   { opacity: 0; transform: scale(0.96); }
}
.toast.fechando { animation: toastFadeOut 0.18s ease forwards; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(28, 15, 6, 0.6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    padding: 16px;
    animation: fadeIn 0.15s ease;
}
.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.18s ease;
}
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Modal avulso fixo no topo (teclado não empurra o conteúdo) */
.modal-backdrop.modal-topo {
    align-items: flex-start !important;
    padding: 0 !important;
}
.modal-backdrop.modal-topo .modal {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    padding: 14px 16px !important;
    max-height: 100svh !important;
    margin: 0 !important;
}

/* Pulse neon — chama atenção pra um botão (usado no modo teste no "Modo Cliente / Modo Empresa") */
@keyframes pulseNeon {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(181, 128, 58, 0.85),
                    0 0 12px 4px rgba(181, 128, 58, 0.55),
                    inset 0 0 6px rgba(181, 128, 58, 0.25);
        border-color: var(--camel);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(181, 128, 58, 0),
                    0 0 36px 12px rgba(212, 175, 55, 0.85),
                    inset 0 0 14px rgba(212, 175, 55, 0.45);
        border-color: var(--caramel);
        transform: scale(1.04);
    }
}
.pulse-neon {
    animation: pulseNeon 1.4s ease-in-out infinite;
    border-width: 2.5px !important;
    position: relative;
    z-index: 5;
}

/* Grid de ações no rodapé das páginas (Meu perfil, Alertas, Trocar, Sair) */
.menu-acoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}
.menu-acao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 7px 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
    -webkit-tap-highlight-color: transparent;
}
.menu-acao:active {
    transform: scale(0.97);
    background: var(--bg-alt);
}
.menu-acao:hover {
    border-color: var(--primary);
}
.menu-acao .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
    line-height: 1;
}
.menu-acao.danger { color: var(--danger); border-color: rgba(192, 57, 43, 0.25); }
.menu-acao.danger .material-symbols-outlined { color: var(--danger); }
.menu-acao.danger:hover { border-color: var(--danger); }

/* Lista de estabelecimentos */
.estab-list { display: flex; flex-direction: column; gap: 14px; }
/* ──────────────────────────────────────────────────────────
   Estabelecimento Card — Premium Gold (foto coluna esquerda)
   Foto ocupa 35% da largura do card e a altura toda (do topo
   até o rodapé). Texto fica à direita: nome, endereço e footer.
   Borda dourada gradiente envolve o card. */
.estab-card {
    display: flex;                   /* horizontal: foto + conteúdo */
    align-items: stretch;
    min-height: 130px;
    border-radius: 14px;
    /* Truque "borda gradiente": camada interna sólida + camada externa gradiente */
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, var(--camel), var(--chestnut), var(--camel)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(181, 128, 58, 0.18),
                0 1px 3px rgba(28, 15, 6, 0.06);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.18s;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    position: relative;
}
.estab-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(181, 128, 58, 0.28),
                0 2px 6px rgba(28, 15, 6, 0.08);
}

/* Coluna esquerda — foto ou inicial em gradiente */
.estab-card .estab-foto {
    flex: 0 0 35%;
    background: linear-gradient(135deg, var(--camel), var(--chestnut));
    background-size: cover;
    background-position: center;
    color: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    position: relative;
}

/* Coluna direita — conteúdo textual */
.estab-card .estab-content {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.estab-card .estab-nome {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.25;
    color: var(--coffee);
    text-transform: uppercase;
    /* até 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.estab-card .endereco {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    /* até 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
/* Footer do card: nota à esquerda + distância à direita */
.estab-card .estab-footer {
    margin-top: auto;        /* empurra pro fim da coluna direita */
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.estab-card .estab-footer .meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    white-space: nowrap;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.estab-card .estab-footer .meta .stars { color: var(--camel); font-weight: 800; }
.estab-card .estab-distance {
    font-size: 10px;
    background: linear-gradient(135deg, var(--camel), var(--chestnut));
    color: var(--ivory);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(181, 128, 58, 0.3);
}

/* Star rating */
.stars-input { display: flex; gap: 4px; }
.stars-input button {
    background: transparent; border: none;
    font-size: 32px; cursor: pointer;
    color: var(--border-strong);
    transition: color 0.15s, transform 0.1s;
    padding: 0;
    width: auto;
}
.stars-input button.filled { color: var(--camel); }
.stars-input button:active { transform: scale(0.85); }

/* Pills / Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    background: var(--bg-alt);
    color: var(--text);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
}
.chip.active { background: var(--primary); color: var(--primary-fg); border-color: transparent; }

/* Grade de filtros (Buscar) — 3 colunas iguais com ícone + label */
.filtro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.filtro-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    width: 100%;
}
.filtro-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filtro-btn .material-symbols-outlined { font-size: 22px; }
.filtro-btn .filtro-svg {
    width: 26px;
    height: 26px;
    color: currentColor;
}
.filtro-btn .filtro-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.filtro-btn.active {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(154, 96, 32, 0.25);
    position: relative;
}
.filtro-btn.active::after {
    content: '↓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.85;
}
.filtro-btn.active.invertido::after { content: '↑'; }

/* Slot grid (horários) */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
/* Mensagens de status dentro do grid (ex: "estab não abre domingo")
   ocupam a linha inteira — sem isso entram numa coluna de 80px e
   o texto quebra a cada palavra. */
.slot-grid > p {
    grid-column: 1 / -1;
    margin: 0;
}
.slot {
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.slot:hover { border-color: var(--primary); }
.slot.taken { opacity: 0.4; pointer-events: none; text-decoration: line-through; }
.slot.selected { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* Empty state */
.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty .material-symbols-outlined {
    font-size: 56px;
    color: var(--text-soft);
    margin-bottom: 12px;
}
