/* ==========================================================================
   Portal de Visitação — Daniel Garcia Leilões
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green-950: #0a2a20;
  --green-900: #0f3b2c;
  --green-800: #154d3a;
  --green-600: #1a7a52;
  --green-500: #1f9d5c;
  --green-400: #36c275;
  --green-100: #e3f3ea;
  --green-50: #f1f8f4;

  --ink: #17201c;
  --ink-2: #44504a;
  --ink-3: #6f7a74;
  --line: #e3e6e1;
  --line-2: #d3d8d1;
  --paper: #ffffff;
  --bg: #f6f5f1;
  --bg-2: #eeede7;

  --amber: #b26b00;
  --amber-bg: #fdf4e3;
  --red: #b42318;
  --red-bg: #fdecea;
  --gray-status: #7a807c;

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(16, 32, 24, .06), 0 1px 1px rgba(16, 32, 24, .04);
  --shadow-2: 0 10px 30px -12px rgba(16, 40, 28, .22);
  --focus: 0 0 0 3px rgba(31, 157, 92, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-600); }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }
h1[tabindex="-1"]:focus { box-shadow: none; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5); border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 var(--s-4); font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-600); }
.btn-primary:disabled { background: var(--line-2); color: var(--ink-3); cursor: not-allowed; }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--green-900); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-600); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-600); }
.btn-muted { background: var(--bg-2); color: var(--ink-3); cursor: not-allowed; font-weight: 600; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--green-500); color: var(--green-600); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.link { background: none; border: 0; padding: 0; color: var(--green-600); font-weight: 600; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -16px rgba(0, 0, 0, .3); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); }

.brand { display: flex; align-items: center; gap: var(--s-4); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { display: flex; align-items: center; height: 44px; max-width: 170px; }
.brand-logo img { max-height: 44px; width: auto; object-fit: contain; }
.brand-logo-placeholder { display: none; }
.brand-logo.is-empty .brand-logo-placeholder {
  display: grid; place-items: center; width: 140px; height: 40px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm);
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; color: var(--ink-3);
}
.brand-divider { width: 1px; height: 32px; background: var(--line-2); }
.brand-label { font-size: .72rem; line-height: 1.25; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-800); }

.site-nav { display: flex; align-items: center; gap: var(--s-2); }
.site-nav > a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; transition: color .2s, background .2s; }
.site-nav > a:hover { color: var(--green-800); background: var(--green-50); }
.site-nav .btn { margin-left: var(--s-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Progresso (compacto, ao lado do contador) ---------- */
.progress { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-2); font-size: .92rem; }
.progress-step { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-3); font-weight: 600; }
.progress-step:not(:last-child)::after { content: ''; width: 24px; height: 2px; background: var(--line-2); border-radius: 2px; transition: background .4s var(--ease); }
.progress-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line-2); background: var(--paper); font-size: .72rem; font-weight: 700; transition: all .3s var(--ease);
}
.progress-label { white-space: nowrap; }
.progress-step.is-current { color: var(--ink); }
.progress-step.is-current .progress-dot { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.progress-step.is-done { color: var(--green-800); }
.progress-step.is-done .progress-dot { background: var(--green-500); border-color: var(--green-500); color: transparent; position: relative; }
.progress-step.is-done .progress-dot::after { content: ''; position: absolute; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.progress-step.is-done:not(:last-child)::after { background: var(--green-500); }
.step-head [data-progress-slot] { margin-top: var(--s-3); }
.success-wrap [data-progress-slot] { display: flex; justify-content: center; margin-bottom: var(--s-6); }

/* ---------- Transição de etapas ---------- */
.view.is-entering { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--green-900); color: #fff;
  padding: var(--s-8) 0 var(--s-8);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  border: 1px solid rgba(54, 194, 117, .35); box-shadow: 0 0 0 60px rgba(54, 194, 117, .04), 0 0 0 120px rgba(54, 194, 117, .03);
}
.hero-inner { position: relative; z-index: 1; }

/* Variante com imagem (banner.jpg). Sem a classe, vale o fundo verde original acima. */
.hero--banner {
  background:
    linear-gradient(90deg, rgba(10, 42, 32, .88) 0%, rgba(10, 42, 32, .6) 50%, rgba(10, 42, 32, .15) 100%),
    url('banner.jpg') right bottom / cover no-repeat,
    var(--green-900);
}
.hero--banner::before, .hero--banner::after { display: none; }
.hero--banner .search-panel { max-width: 800px; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-400); }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin: var(--s-4) 0 var(--s-3); max-width: 14ch; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.78); max-width: 52ch; }

.search-panel {
  margin-top: var(--s-6); background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: var(--s-2);
  display: grid; grid-template-columns: 1.3fr 2fr; gap: var(--s-2); box-shadow: var(--shadow-2); max-width: 1040px;
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 18px; color: var(--ink-3); width: 20px; height: 20px; }
.search-field input {
  width: 100%; height: 56px; border: 0; border-radius: var(--r-md); background: var(--bg); padding: 0 16px 0 50px; font-size: 1rem;
  transition: background .2s, box-shadow .2s;
}
.search-field input::placeholder { color: var(--ink-3); }
.search-field input:focus { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--green-500); outline: none; }
.filter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.search-panel--compact { grid-template-columns: 1fr 260px; max-width: 820px; }
.filter-row--single { grid-template-columns: 1fr; }
.select-field { position: relative; display: flex; flex-direction: column; justify-content: center; height: 56px; padding: 0 14px; border-radius: var(--r-md); background: var(--bg); transition: box-shadow .2s, background .2s; }
.select-field:focus-within { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--green-500); }
.select-field > span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.select-field select { appearance: none; border: 0; background: transparent; padding: 0 20px 0 0; font-weight: 600; font-size: .92rem; width: 100%; outline: none; cursor: pointer; text-overflow: ellipsis; }
.select-field::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--ink-3); border-width: 0 1.6px 1.6px 0; transform: translateY(-20%) rotate(45deg); pointer-events: none; }

/* ---------- Lista ---------- */
.list-section { position: relative; padding-top: var(--s-6); }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
/* barra de resultados */
.result-count { color: var(--ink-3); font-size: .92rem; }
.result-count strong { color: var(--ink); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-open { background: var(--green-400); box-shadow: 0 0 0 3px rgba(54,194,117,.2); }
.dot-soon { background: #e3a008; }
.dot-closed { background: #a3a8a5; }

.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-5); }

/* Card */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  animation: cardIn .5s var(--ease) both;
}
.card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; } .card:nth-child(4) { animation-delay: .12s; }
.card:nth-child(5) { animation-delay: .16s; } .card:nth-child(6) { animation-delay: .2s; } .card:nth-child(n+7) { animation-delay: .24s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:not(.is-disabled):hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card:not(.is-disabled):hover .cover-art { transform: scale(1.06) rotate(-2deg); }
.card.is-disabled { cursor: default; }
.card.is-disabled .card-media { filter: grayscale(.85); opacity: .8; }
.card.is-selected { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100), var(--shadow-2); }
.card-check {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 59, 44, .55); opacity: 0; transition: opacity .25s;
}
.card-check .icon { width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: var(--green-500); color: #fff; stroke-width: 2.6; transform: scale(.6); transition: transform .35s var(--ease); }
.card.is-selected .card-check { opacity: 1; }
.card.is-selected .card-check .icon { transform: scale(1); }
.card.is-loading .card-cta { pointer-events: none; opacity: .75; }

.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 45%),
              repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}
.cover-art { position: relative; width: 44%; max-width: 150px; height: auto; aspect-ratio: 1; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.cover-leilao     { background: linear-gradient(140deg, #17543f, #0f3b2c); }
.cover-veiculos   { background: linear-gradient(140deg, #17543f, #0f3b2c); }
.cover-maquinas   { background: linear-gradient(140deg, #3d4a33, #263022); }
.cover-imoveis    { background: linear-gradient(140deg, #2f5d63, #1c3d42); }
.cover-mobiliario { background: linear-gradient(140deg, #4b5a52, #2e3833); }
.cover-sucatas    { background: linear-gradient(140deg, #5c5242, #3a3429); }

.status, .lots {
  position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: rgba(255,255,255,.95); color: var(--ink);
}
.status { left: 14px; }
.lots { right: 14px; background: rgba(10, 42, 32, .55); color: #fff; backdrop-filter: blur(6px); font-weight: 600; }

.card-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); flex: 1; }
.card-notice { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--green-600); letter-spacing: .02em; }
.card-notice .icon { width: 15px; height: 15px; }
.card-title { font-size: 1.14rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card-organ { font-size: .88rem; color: var(--ink-3); }
.card-meta { margin: var(--s-2) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.card-meta div { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.card-meta dt { color: var(--green-600); padding-top: 1px; }
.card-meta dt .icon { width: 17px; height: 17px; }
.card-meta dd { margin: 0; }
.card-kicker { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-3); flex-wrap: wrap; }
.card-kicker .card-notice { white-space: nowrap; }
.card-foot { margin-top: auto; padding-top: var(--s-4); }
.tag { flex: none; font-size: .76rem; font-weight: 700; color: var(--ink-2); background: var(--bg); padding: 5px 10px; border-radius: 6px; }

/* Skeleton */
.card-skeleton { cursor: default; animation: none; }
.sk { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 6px; }
.sk-cover { aspect-ratio: 16 / 9; border-radius: 0; }
.sk-line { height: 13px; margin-bottom: 6px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w90 { width: 90%; height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Estado vazio */
.empty-state { text-align: center; padding: var(--s-8) var(--s-5); background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h2 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.empty-state p { color: var(--ink-3); margin-bottom: var(--s-5); }

/* ---------- Etapa 2 ---------- */
.step-head { padding-top: var(--s-6); padding-bottom: var(--s-5); }
.link-back { display: inline-flex; align-items: center; gap: var(--s-2); border: 0; background: none; padding: 6px 0; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.link-back:hover { color: var(--green-600); }
.link-back .icon { transition: transform .2s var(--ease); }
.link-back:hover .icon { transform: translateX(-3px); }
.step-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: var(--s-3); }

.step-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; padding-bottom: var(--s-8); }
.booking-form { display: grid; gap: var(--s-5); min-width: 0; }

.form-card { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: var(--s-6); min-width: 0; }
.form-card-title { display: flex; align-items: center; gap: var(--s-3); font-size: 1.12rem; font-weight: 800; padding: 0; margin-bottom: var(--s-5); float: left; width: 100%; }
.form-card-title + * { clear: both; }
.form-card-num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); font-size: .85rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .88rem; }
.req { color: var(--green-600); }
.field input, .field select {
  height: 50px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:disabled { background-color: var(--bg); color: var(--ink-3); }
.field input:hover, .field select:hover:not(:disabled) { border-color: #b9c0b8; }
.field input:focus, .field select:focus { border-color: var(--green-500); box-shadow: var(--focus); outline: none; }
.field.is-valid input { border-color: #9fd4b5; background: linear-gradient(var(--paper), var(--paper)) padding-box; }
.field.has-error input { border-color: var(--red); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.field-help { font-size: .8rem; color: var(--ink-3); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--red); min-height: 0; }
.field-error:empty { display: none; }
.field-error .icon { width: 15px; height: 15px; }

.notice { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); font-size: .92rem; align-items: flex-start; }
.notice .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice-warn { background: var(--amber-bg); color: #6b4300; border: 1px solid #f3dfb6; margin-bottom: var(--s-5); }
.notice-warn .icon { color: var(--amber); }
.notice-info { background: var(--green-50); color: var(--green-900); border: 1px solid #cfe8da; }
.notice-info .icon { color: var(--green-600); }
.notice-error { background: var(--red-bg); color: var(--red); border: 1px solid #f6c9c4; }

/* Pátios */
.patio-picker { margin-bottom: var(--s-5); }
.patio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-2); }
.patio-opt {
  display: flex; gap: var(--s-3); align-items: flex-start; text-align: left; padding: 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-2); background: var(--paper); transition: border-color .15s, background .15s, color .15s;
  animation: cardIn .3s var(--ease) both;
}
.patio-opt .icon { color: var(--green-600); margin-top: 2px; }
.patio-opt strong { display: block; font-size: .95rem; }
.patio-opt span { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.patio-opt:hover { border-color: var(--green-500); }
.patio-opt.is-selected { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.patio-opt.is-selected .icon, .patio-opt.is-selected span { color: rgba(255,255,255,.8); }
.card-desc { font-size: .88rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

/* Calendário */
.schedule { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-5); }
.calendar { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.cal-month { font-weight: 800; text-transform: capitalize; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span { text-align: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 4px 0; }
.cal-cell {
  aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent;
  font-weight: 600; font-size: .92rem; color: #b5bab6; position: relative; transition: background .15s, color .15s, transform .15s;
}
.cal-cell:disabled { cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.12); }
.cal-cell.is-pad { pointer-events: none; }
.cal-cell.is-available { color: var(--green-900); background: var(--green-50); cursor: pointer; }
.cal-cell.is-available:hover { background: var(--green-100); }
.cal-cell.is-today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-cell.is-selected { background: var(--green-900); color: #fff; transform: scale(1.04); }
.cal-cell.is-selected:hover { background: var(--green-800); }
.cal-legend { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); font-size: .76rem; color: var(--ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; }
.lg-av { background: var(--green-50); border: 1px solid var(--green-100); }
.lg-sel { background: var(--green-900); }
.lg-off { background: var(--bg-2); }

/* Horários */
.slots-title { font-weight: 800; margin-bottom: var(--s-3); }
.slots-title::first-letter { text-transform: uppercase; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s-2); }
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-2); background: var(--paper); transition: border-color .15s, background .15s, color .15s, transform .15s;
  animation: cardIn .3s var(--ease) both;
}
.slot-time { font-weight: 800; font-size: 1rem; }
.slot-info { font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.slot:hover:not(:disabled) { border-color: var(--green-500); }
.slot.is-selected { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.slot.is-selected .slot-info { color: var(--green-400); }
.slot:disabled { background: var(--bg); border-style: dashed; color: #a9aeaa; cursor: not-allowed; }
.slots-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; color: var(--ink-3); font-size: .9rem; padding: var(--s-6) var(--s-4); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); }
.slots-empty .icon { width: 26px; height: 26px; color: var(--green-500); }
#schedule-err { margin-top: var(--s-3); }

/* Orientações */
.guide-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); }
.guide-list li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); font-size: .94rem; }
.guide-list .icon { color: var(--green-500); margin-top: 3px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); cursor: pointer; font-weight: 600; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-600); flex: none; cursor: pointer; }
.check.has-error { box-shadow: inset 0 0 0 1.5px var(--red); }
#consent-err { margin-top: var(--s-2); }

.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.form-hint { color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.form-hint.is-ok { color: var(--green-600); }

/* Resumo lateral */
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cover-sm { position: relative; height: 120px; }
.cover-sm .cover-art { width: 74px; }
.summary-body { padding: var(--s-5); display: grid; gap: var(--s-2); }
.summary-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.summary-title { font-size: 1.1rem; line-height: 1.3; }
.summary-list { margin: var(--s-3) 0 0; display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.summary-list dt { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); margin-bottom: 2px; }
.summary-list dt .icon { width: 15px; height: 15px; }
.summary-list dd { margin: 0; font-size: .9rem; font-weight: 600; }
.summary-list .muted { font-weight: 500; font-size: .85rem; }
.summary-pick { display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-3) 0; padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); border: 1.5px dashed var(--line-2); transition: all .3s var(--ease); }
.summary-pick .icon { color: var(--ink-3); margin-top: 2px; }
.summary-pick strong { display: block; font-size: .92rem; }
.summary-pick strong::first-letter { text-transform: uppercase; }
.summary-pick.is-set { background: var(--green-50); border: 1.5px solid #cfe8da; }
.summary-pick.is-set .icon { color: var(--green-600); }

/* ---------- Etapa 3 ---------- */
.review-wrap { max-width: 760px; display: grid; gap: var(--s-5); padding-bottom: var(--s-8); }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.review-head { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5); background: var(--green-50); border-bottom: 1px solid var(--line); }
.cover-xs { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); flex: none; }
.cover-xs .cover-art { width: 38px; }
.review-when { font-weight: 800; font-size: 1.1rem; }
.review-when::first-letter { text-transform: uppercase; }
.review-list { margin: 0; padding: var(--s-2) var(--s-5); }
.review-list div { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-list div:last-child { border-bottom: 0; }
.review-list dt { font-size: .84rem; font-weight: 700; color: var(--ink-3); }
.review-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review-list .muted { font-weight: 500; font-size: .88rem; }
.review-edit { display: flex; gap: var(--s-5); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.review-actions { display: flex; justify-content: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.review-actions.center { justify-content: center; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
#btn-confirm.is-loading .spinner { display: inline-block; }
#btn-confirm.is-loading .btn-text::after { content: '…'; }
#btn-confirm:disabled { background: var(--green-600); color: #fff; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sucesso */
.success-wrap { max-width: 720px; text-align: center; padding-top: var(--s-7); padding-bottom: var(--s-8); }
.success-badge { width: 76px; height: 76px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: var(--green-500); color: #fff; box-shadow: 0 0 0 10px var(--green-100); animation: pop .6s var(--ease) both .1s; }
.success-badge .icon { width: 36px; height: 36px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s ease forwards .45s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.demo-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); background: var(--amber-bg); border: 1px solid #f3dfb6; border-radius: 999px; padding: 4px 12px; }
.success-sub { color: var(--ink-2); margin: var(--s-3) auto var(--s-6); max-width: 56ch; }

.ticket { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s-6); box-shadow: var(--shadow-2); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5); flex-wrap: wrap; }
.ticket-code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; color: var(--green-900); }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--line-2); margin: 0 var(--s-5); }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket-cut::before { left: -36px; clip-path: inset(0 0 0 50%); }
.ticket-cut::after { right: -36px; clip-path: inset(0 50% 0 0); }
.ticket-grid { margin: 0; padding: var(--s-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.ticket-grid dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ticket-grid dd { margin: 0; font-weight: 700; }
.ticket-grid dd::first-letter { text-transform: uppercase; }
.ticket-grid .muted { display: block; font-weight: 500; font-size: .88rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: var(--s-6) 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.footer-brand { font-weight: 800; color: var(--green-900); }
.footer-muted { color: var(--ink-3); font-size: .86rem; }
.footer-links { display: flex; gap: var(--s-5); flex-wrap: wrap; font-size: .9rem; }

/* ---------- Modal ---------- */
.modal { width: min(560px, calc(100% - 32px)); border: 0; border-radius: var(--r-xl); padding: 0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); color: var(--ink); }
.modal::backdrop { background: rgba(10, 30, 22, .5); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5) 0; }
.modal-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.modal-body { padding: var(--s-5); }
.modal-body .guide-list { margin: 0; }
.modal-foot { padding: 0 var(--s-5) var(--s-5); display: flex; justify-content: flex-end; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--green-950); color: #fff; padding: 14px 20px; border-radius: var(--r-md); font-weight: 600; font-size: .92rem;
  max-width: calc(100% - 32px); box-shadow: var(--shadow-2); transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .step-layout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .summary-card { display: grid; grid-template-columns: 200px 1fr; }
  .cover-sm { height: auto; min-height: 100%; }
  .search-panel, .search-panel--compact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: var(--s-3) var(--s-5) var(--s-5); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a { padding: 12px 14px; border-radius: var(--r-sm); }
  .site-nav .btn { margin: var(--s-2) 0 0; }
  .schedule { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--s-4); }
  .brand-logo { height: 36px; max-width: 120px; }
  .brand-logo img { max-height: 36px; }
  .brand-divider, .brand-label { display: none; }
  .progress-step:not(:last-child)::after { width: 14px; }
  .progress-step:not(.is-current) .progress-label { display: none; }
  .hero { padding: var(--s-7) 0; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row .select-field:last-child { grid-column: 1 / -1; }
  .step-head { padding-bottom: var(--s-4); }
  .auction-grid { grid-template-columns: 1fr; }
  .form-card { padding: var(--s-5) var(--s-4); }
  .field-grid { grid-template-columns: 1fr; }
  .summary-card { grid-template-columns: 1fr; }
  .cover-sm { height: 96px; min-height: 0; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn, .review-actions .btn { width: 100%; }
  .form-hint { text-align: center; }
  .review-list div { grid-template-columns: 1fr; gap: 2px; }
  .ticket-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Impressão (comprovante demonstrativo) ---------- */
@media print {
  .site-header, .progress, .site-footer, .review-actions, .toast, .skip-link { display: none !important; }
  body { background: #fff; }
  .ticket { box-shadow: none; }
}
