/* ==========================================================================
   O Bacano — areas de entrega
   Mesma lógica da página de áreas da Sushiba (mapa à esquerda com as zonas em
   círculos, painel à direita com as zonas e o custo), no sistema do menu:
   só tokens do tema creme, cartões, chips e botões de base.css.
   ========================================================================== */

/* --- Topo (o mesmo do menu) -------------------------------------------- */
.areas__top {
  position: relative; text-align: center;
  padding-top: calc(var(--header-h) + 52px); padding-bottom: 34px;
}
.areas__top::before {
  content: ""; position: absolute; z-index: -1;
  top: -180px; left: 50%; width: min(880px, 130vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent) 0%,
              color-mix(in srgb, var(--ember) 14%, transparent) 30%, transparent 62%);
  pointer-events: none;
}
.areas { position: relative; isolation: isolate; overflow-x: clip; }
.areas__title { margin: .2em auto 0; font-size: clamp(3rem, 11vw, 5.6rem); line-height: .95; }
.areas__title span { color: var(--gold); }
.areas__lead { margin: 16px auto 0; max-width: 56ch; color: var(--ink-2); font-size: .98rem; }

/* --- Mapa + painel ------------------------------------------------------ */
.areas__grid {
  --alto: clamp(380px, 72vh, 640px);
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .areas__grid { grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); gap: 24px; }
}

.areas__mapa {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
@media (min-width: 960px) { .areas__mapa { height: var(--alto); position: sticky; top: calc(var(--header-h) + 16px); } }
.mapa { position: absolute; inset: 0; z-index: 0; }
.mapa__sem { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }

/* o mapa do OpenStreetMap puxado para o creme da casa */
.mapa .leaflet-tile-pane { filter: sepia(.28) saturate(.75) brightness(1.03) contrast(.95); }
.mapa.leaflet-container { font: inherit; background: var(--surface-2); }
.mapa .leaflet-control-attribution { font-size: .66rem; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.mapa .leaflet-control-zoom { border: 0; box-shadow: var(--shadow-1); border-radius: 12px; overflow: hidden; }
.mapa .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; color: var(--ink); background: var(--surface); border-color: var(--line); }
.mapa .leaflet-control-zoom a:hover { background: var(--surface-2); }
.mapa .leaflet-tooltip {
  font: 600 .8rem/1.3 var(--f-body); color: var(--ink);
  background: var(--surface); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); padding: 6px 10px;
}

.mapa__btn {
  position: absolute; z-index: 500; top: 12px; right: 12px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: var(--ink); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform var(--t-fast) var(--ease-spring);
}
.mapa__btn:active { transform: scale(.92); }

/* marcadores (divIcon) */
.pino { display: grid; place-items: center; }
.pino--casa span {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  background: var(--ember); color: #fff;
  box-shadow: 0 0 0 4px var(--surface), 0 10px 22px -6px rgb(60 30 10 / .55);
}
.pino--casa svg { transform: rotate(45deg); }
.pino--eu span {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 20%, transparent), 0 0 0 3px var(--surface) inset;
}
.pino--eu.is-longe span { background: var(--muted); }

/* --- Painel ------------------------------------------------------------- */
.painel {
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
@media (min-width: 960px) {
  .painel { max-height: var(--alto); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

.verif { display: grid; gap: 10px; }
.verif__label { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; }
.verif__linha { display: flex; gap: 8px; }
.verif__linha input {
  flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border-radius: 14px; border: 0;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.verif__linha input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember); }
.verif__linha input::placeholder { color: var(--muted); }
.verif__linha .btn { flex: 0 0 auto; padding-inline: 18px; }
.verif__geo {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 600; color: var(--ember);
}
.verif__geo .ico { width: 17px; height: 17px; }
.verif__res:empty { display: none; }

/* resultado: o mesmo cartao do carrinho (.geo em pedido.css) */
.res { display: grid; gap: 10px; padding: 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.res strong { display: block; font-size: 1rem; }
.res--ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent); }
.res--longe { background: color-mix(in srgb, var(--ember) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 35%, transparent); }
.res--aviso { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.res .btn { justify-self: start; }

.painel__info {
  padding: 14px; border-radius: 16px; background: var(--bg-deep);
  font-size: .86rem; color: var(--ink-2); line-height: 1.5;
}
.painel__info p { margin: 0; }
.painel__info-h { font-weight: 700; color: var(--ink); margin-bottom: 4px !important; }

/* --- Zonas -------------------------------------------------------------- */
.zonas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zona {
  width: 100%; display: grid; gap: 8px; text-align: left;
  padding: 12px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-spring);
}
button.zona:hover { background: var(--bg); }
button.zona:active { transform: scale(.985); }
.zona[aria-pressed="true"], .zona.is-aqui {
  background: color-mix(in srgb, var(--ember) 7%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--ember);
}
.zona__head { display: flex; align-items: center; gap: 10px; }
.zona__n {
  width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; font-size: .78rem; font-weight: 700;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.zona[aria-pressed="true"] .zona__n, .zona.is-aqui .zona__n { color: #fff; background: var(--ember); }
.zona__titulo { font-weight: 700; font-size: 1rem; }
.zona[aria-pressed="true"] .zona__titulo, .zona.is-aqui .zona__titulo { color: var(--ember); }
.zona__tabela {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 8px 10px; border-radius: 10px; background: var(--bg);
  font-size: .9rem;
}
.zona__th { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.zona__th:nth-child(2), .zona__tabela strong { text-align: right; }
.zona__tabela strong { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; color: var(--gold); letter-spacing: .01em; }
.zona__tempo { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.zona--fora { background: var(--bg); box-shadow: none; }
.zona--fora .zona__n { color: var(--muted); background: var(--surface-2); }
.zona__fora { font-size: .86rem; color: var(--ink-2); }

/* --- Localidades -------------------------------------------------------- */
.locs { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 110px); }
.locs__title { font-size: clamp(2.4rem, 7vw, 3.8rem); }
.locs__title span { color: var(--gold); }
.locs__sub { margin: 10px 0 28px; max-width: 60ch; color: var(--ink-2); }
.locs__grupo { margin-bottom: 24px; }
.locs__h { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.locs__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.locs .btn { margin-top: 12px; }
