/*
 * Rota do Café — página imersiva do totem.
 * Paleta cafeeira (espresso, creme e caramelo) contrastando com o azul do app.
 * Otimizada para totem vertical: alvos de toque grandes e rolagem vertical.
 */

.rota-cafe {
  --cafe-espresso: #1b0f09;
  --cafe-espresso-2: #26150d;
  --cafe-cream: #f6ecdd;
  --cafe-cream-soft: rgba(246, 236, 221, 0.72);
  --cafe-caramel: #d9a25e;
  --cafe-gold: #e8b876;
  --cafe-latte: #c9a37a;
  --cafe-line: rgba(217, 162, 94, 0.28);

  position: fixed;
  inset: var(--totem-safe-area-top) var(--totem-safe-area-right) var(--totem-safe-area-bottom) var(--totem-safe-area-left);
  z-index: 44;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.rota-cafe[hidden] {
  display: none !important;
}

.rota-cafe.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rota-cafe__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 162, 94, 0.22), transparent 34%),
    rgba(10, 5, 2, 0.82);
  backdrop-filter: blur(10px);
}

.rota-cafe__panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--cafe-cream);
  background:
    radial-gradient(circle at 15% -8%, rgba(122, 74, 36, 0.55), transparent 42%),
    radial-gradient(circle at 92% 108%, rgba(93, 54, 24, 0.5), transparent 46%),
    linear-gradient(168deg, var(--cafe-espresso-2) 0%, var(--cafe-espresso) 60%, #120a06 100%);
}

/* Grãos decorativos flutuando ao fundo */
.rota-cafe__beans {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rota-cafe__beans span {
  position: absolute;
  color: rgba(217, 162, 94, 0.12);
  font-size: 88px;
  animation: cafeBeanFloat 14s ease-in-out infinite;
}

.rota-cafe__beans span:nth-child(1) { top: 12%; left: 8%; font-size: 72px; animation-delay: 0s; }
.rota-cafe__beans span:nth-child(2) { top: 30%; right: 10%; font-size: 108px; animation-delay: 2.4s; }
.rota-cafe__beans span:nth-child(3) { top: 62%; left: 6%; font-size: 92px; animation-delay: 4.8s; }
.rota-cafe__beans span:nth-child(4) { bottom: 8%; right: 14%; font-size: 76px; animation-delay: 1.6s; }
.rota-cafe__beans span:nth-child(5) { top: 48%; right: 40%; font-size: 64px; animation-delay: 3.6s; }
.rota-cafe__beans span:nth-child(6) { bottom: 26%; left: 42%; font-size: 84px; animation-delay: 6s; }

/* Cabeçalho */
.rota-cafe__header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vh, 30px) clamp(20px, 3.4vw, 40px) clamp(14px, 2vh, 20px);
  background: linear-gradient(180deg, rgba(18, 10, 6, 0.92), rgba(18, 10, 6, 0));
}

.rota-cafe__header-copy {
  display: grid;
  gap: 6px;
}

.rota-cafe__eyebrow {
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cafe-gold);
}

.rota-cafe__title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--cafe-cream);
}

.rota-cafe__close {
  min-height: 52px;
  padding: 0 clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--cafe-line);
  border-radius: 999px;
  background: rgba(246, 236, 221, 0.08);
  color: var(--cafe-cream);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 180ms ease, transform 180ms ease;
}

.rota-cafe__close:hover,
.rota-cafe__close:active {
  background: rgba(217, 162, 94, 0.22);
  transform: translateY(-1px);
}

/* Área rolável */
.rota-cafe__scroll {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cafe-caramel) transparent;
}

.rota-cafe__scroll::-webkit-scrollbar { width: 10px; }
.rota-cafe__scroll::-webkit-scrollbar-thumb {
  background: rgba(217, 162, 94, 0.5);
  border-radius: 999px;
}

.rota-cafe__view {
  display: none;
  padding: clamp(6px, 1.5vh, 16px) clamp(18px, 3.2vw, 40px) clamp(40px, 6vh, 72px);
}

.rota-cafe__view.is-active {
  display: block;
}

/* ---------- Tela 1: vitrine ---------- */
.rota-cafe__hero {
  max-width: 940px;
  margin: 0 auto clamp(22px, 3.4vh, 38px);
  text-align: center;
  animation: cafeFadeUp 620ms ease both;
}

.rota-cafe__hero-cup {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(88px, 12vw, 120px);
  height: clamp(88px, 12vw, 120px);
  margin-bottom: clamp(12px, 2vh, 20px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #8a5528, #35190a 78%);
  box-shadow: 0 18px 40px rgba(20, 10, 4, 0.6), inset 0 2px 0 rgba(255, 233, 201, 0.25);
  color: #ffe9c9;
}

.rota-cafe__hero-cup .material-symbols-outlined {
  font-size: clamp(46px, 6.4vw, 62px);
}

.rota-cafe__hero-steam {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 34px;
}

.rota-cafe__hero-steam span {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(255, 233, 201, 0), rgba(255, 233, 201, 0.9));
  opacity: 0;
  animation: cafeSteamRise 2.8s ease-in-out infinite;
}

.rota-cafe__hero-steam span:nth-child(1) { left: 4px; animation-delay: 0s; }
.rota-cafe__hero-steam span:nth-child(2) { left: 17px; animation-delay: 0.6s; }
.rota-cafe__hero-steam span:nth-child(3) { left: 30px; animation-delay: 1.2s; }

.rota-cafe__hero-title {
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 clamp(8px, 1.4vh, 14px);
  color: var(--cafe-cream);
}

.rota-cafe__hero-lead {
  font-size: clamp(1rem, 1.9vw, 1.24rem);
  line-height: 1.5;
  color: var(--cafe-cream-soft);
  margin: 0 auto;
  max-width: 720px;
}

.rota-cafe__hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 16px);
  margin-top: clamp(16px, 2.4vh, 24px);
}

.rota-cafe__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--cafe-line);
  border-radius: 999px;
  background: rgba(217, 162, 94, 0.1);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  color: var(--cafe-cream);
}

.rota-cafe__stat .material-symbols-outlined {
  font-size: 22px;
  color: var(--cafe-gold);
}

/* Grade de cards */
.rota-cafe__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  max-width: 1100px;
  margin: 0 auto;
}

.rota-cafe__card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: clamp(300px, 40vh, 430px);
  background: #2a1a10;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(217, 162, 94, 0.16);
  box-shadow: 0 20px 44px rgba(12, 6, 2, 0.5);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  opacity: 0;
  transform: translateY(22px);
  animation: cafeCardIn 560ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.rota-cafe__card:hover,
.rota-cafe__card:active {
  transform: translateY(-6px);
  border-color: rgba(232, 184, 118, 0.6);
  box-shadow: 0 30px 60px rgba(12, 6, 2, 0.6);
}

.rota-cafe__card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 640ms ease;
}

.rota-cafe__card:hover .rota-cafe__card-img {
  transform: scale(1.07);
}

.rota-cafe__card-img--empty {
  background:
    radial-gradient(circle at 40% 30%, rgba(217, 162, 94, 0.34), transparent 60%),
    linear-gradient(160deg, #3a2213, #1c0f08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rota-cafe__card-img--empty .material-symbols-outlined {
  font-size: 84px;
  color: rgba(255, 233, 201, 0.5);
}

.rota-cafe__card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 8, 3, 0.95) 14%, rgba(16, 8, 3, 0.5) 48%, rgba(16, 8, 3, 0.04) 82%);
}

.rota-cafe__card-body {
  position: relative;
  z-index: 2;
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  gap: clamp(6px, 1vw, 10px);
}

.rota-cafe__card-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 162, 94, 0.92);
  color: #2a1206;
  font-weight: 800;
  font-size: clamp(0.72rem, 1.3vw, 0.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rota-cafe__card-chip .material-symbols-outlined { font-size: 18px; }

.rota-cafe__card-name {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.rota-cafe__card-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--cafe-gold);
  font-weight: 600;
}

.rota-cafe__card-place .material-symbols-outlined { font-size: 20px; }

.rota-cafe__card-spec {
  font-size: clamp(0.9rem, 1.6vw, 1.04rem);
  color: rgba(246, 236, 221, 0.86);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rota-cafe__card-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  color: var(--cafe-cream);
}

.rota-cafe__card-cta .material-symbols-outlined {
  font-size: 20px;
  transition: transform 200ms ease;
}

.rota-cafe__card:hover .rota-cafe__card-cta .material-symbols-outlined {
  transform: translateX(5px);
}

/* Estado de carregamento / vazio */
.rota-cafe__state {
  max-width: 620px;
  margin: clamp(30px, 6vh, 60px) auto 0;
  text-align: center;
  color: var(--cafe-cream-soft);
  font-size: 1.1rem;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.rota-cafe__state[hidden] { display: none; }

.rota-cafe__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(217, 162, 94, 0.25);
  border-top-color: var(--cafe-gold);
  animation: cafeSpin 900ms linear infinite;
}

/* ---------- Tela 2: detalhe ---------- */
.rota-cafe__view--detail { animation: cafeFadeUp 420ms ease both; }

.rota-cafe__detail {
  max-width: 1000px;
  margin: 0 auto;
}

.rota-cafe__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px 0 14px;
  margin-bottom: clamp(14px, 2vh, 20px);
  border: 1px solid var(--cafe-line);
  border-radius: 999px;
  background: rgba(246, 236, 221, 0.08);
  color: var(--cafe-cream);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 180ms ease, transform 180ms ease;
}

.rota-cafe__back:hover,
.rota-cafe__back:active {
  background: rgba(217, 162, 94, 0.22);
  transform: translateX(-3px);
}

/* Carrossel de imagens */
.rota-cafe__gallery {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1c0f08;
  box-shadow: 0 24px 56px rgba(12, 6, 2, 0.55);
}

.rota-cafe__slides {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rota-cafe__slide {
  position: relative;
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
}

.rota-cafe__gallery-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(16, 8, 3, 0.5), transparent 40%);
}

.rota-cafe__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 10, 4, 0.6);
  color: var(--cafe-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(4px);
  transition: background 180ms ease, transform 180ms ease;
}

.rota-cafe__gallery-nav .material-symbols-outlined { font-size: 32px; }
.rota-cafe__gallery-nav:hover { background: rgba(217, 162, 94, 0.85); color: #2a1206; }
.rota-cafe__gallery-nav--prev { left: 14px; }
.rota-cafe__gallery-nav--next { right: 14px; }
.rota-cafe__gallery-nav[hidden] { display: none; }

.rota-cafe__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.rota-cafe__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(246, 236, 221, 0.4);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.rota-cafe__dot.is-active {
  background: var(--cafe-gold);
  transform: scale(1.3);
}

/* Cabeçalho do detalhe */
.rota-cafe__detail-head {
  margin: clamp(20px, 3vh, 30px) 0 clamp(12px, 2vh, 18px);
}

.rota-cafe__detail-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cafe-gold);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  margin-bottom: 6px;
}

.rota-cafe__detail-place .material-symbols-outlined { font-size: 20px; }

.rota-cafe__detail-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.06;
  margin: 0;
  color: #fff;
}

.rota-cafe__detail-slogan {
  margin: 8px 0 0;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  font-style: italic;
  color: var(--cafe-cream-soft);
}

/* Selos/tags do detalhe */
.rota-cafe__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(14px, 2vh, 20px) 0;
}

.rota-cafe__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--cafe-line);
  background: rgba(217, 162, 94, 0.12);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 0.98rem);
  color: var(--cafe-cream);
}

.rota-cafe__tag .material-symbols-outlined { font-size: 20px; color: var(--cafe-gold); }
.rota-cafe__tag--benefit {
  background: linear-gradient(120deg, rgba(232, 184, 118, 0.95), rgba(217, 162, 94, 0.85));
  color: #2a1206;
  border-color: transparent;
}
.rota-cafe__tag--benefit .material-symbols-outlined { color: #2a1206; }

/* História / seções de texto */
.rota-cafe__section {
  margin: clamp(18px, 2.8vh, 28px) 0;
}

.rota-cafe__section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 800;
  color: var(--cafe-gold);
  margin: 0 0 clamp(8px, 1.4vh, 14px);
}

.rota-cafe__section-title .material-symbols-outlined { font-size: 26px; }

.rota-cafe__section-text {
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  line-height: 1.62;
  color: rgba(246, 236, 221, 0.9);
}

.rota-cafe__section-text p { margin: 0 0 14px; }
.rota-cafe__section-text p:last-child { margin-bottom: 0; }

/* Grade de informações práticas */
.rota-cafe__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
}

.rota-cafe__info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(14px, 2vw, 18px);
  border-radius: 18px;
  border: 1px solid rgba(217, 162, 94, 0.18);
  background: rgba(38, 21, 13, 0.6);
}

.rota-cafe__info .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 28px;
  color: var(--cafe-gold);
}

.rota-cafe__info-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cafe-latte);
  margin-bottom: 3px;
}

.rota-cafe__info-value {
  font-size: clamp(0.96rem, 1.7vw, 1.1rem);
  font-weight: 700;
  color: var(--cafe-cream);
  line-height: 1.3;
  word-break: break-word;
}

.rota-cafe__info-value a { color: var(--cafe-gold); text-decoration: none; }

/* Chips de serviços/vibe */
.rota-cafe__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rota-cafe__pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(246, 236, 221, 0.08);
  border: 1px solid rgba(217, 162, 94, 0.2);
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  font-weight: 600;
  color: var(--cafe-cream);
  text-transform: capitalize;
}

/* Card largo (chips dentro do grid de informações) */
.rota-cafe__info--wide {
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 10px;
}

.rota-cafe__info--wide > .material-symbols-outlined {
  order: -1;
}

.rota-cafe__info--wide .rota-cafe__info-label { margin-bottom: 8px; }

/* Botões de ação (WhatsApp / Instagram / Catálogo) */
.rota-cafe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 16px);
  margin: clamp(16px, 2.4vh, 22px) 0 clamp(4px, 1vh, 8px);
}

.rota-cafe__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 clamp(18px, 2.6vw, 26px);
  border-radius: 999px;
  border: 1px solid var(--cafe-line);
  background: rgba(246, 236, 221, 0.08);
  color: var(--cafe-cream);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.rota-cafe__action .material-symbols-outlined { font-size: 24px; color: var(--cafe-gold); }

.rota-cafe__action:hover,
.rota-cafe__action:active {
  transform: translateY(-2px);
  background: rgba(217, 162, 94, 0.18);
}

.rota-cafe__action--primary {
  background: linear-gradient(120deg, #2fae63, #1f8f4f);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(20, 90, 45, 0.4);
}

.rota-cafe__action--primary .material-symbols-outlined { color: #ffffff; }
.rota-cafe__action--primary:hover { background: linear-gradient(120deg, #35bd6c, #23a259); }

/* Cartão "Como chegar" — visual próprio (origem → trajeto tracejado → pino de
   destino), em paleta terracota exclusiva, diferente do verde de contato e do
   dourado dos títulos, para não parecer um ícone jogado de qualquer jeito. */
.rota-cafe__section--route { margin-top: clamp(24px, 3.6vh, 36px); }

.rota-cafe__route-card {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(193, 97, 58, 0.32);
  background:
    radial-gradient(circle at 88% 12%, rgba(193, 97, 58, 0.24), transparent 55%),
    linear-gradient(165deg, rgba(38, 21, 13, 0.92), rgba(20, 11, 6, 0.96));
  box-shadow: 0 22px 48px rgba(10, 5, 2, 0.5);
}

.rota-cafe__route-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 10px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 14px 14px,
    linear-gradient(180deg, rgba(193, 97, 58, 0.16), rgba(193, 97, 58, 0.02));
  border-right: 1px dashed rgba(217, 162, 94, 0.24);
}

.rota-cafe__route-origin,
.rota-cafe__route-pin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.rota-cafe__route-origin {
  background: rgba(217, 162, 94, 0.16);
  border: 1px solid rgba(217, 162, 94, 0.4);
  color: var(--cafe-gold);
}

.rota-cafe__route-origin .material-symbols-outlined { font-size: 22px; }

.rota-cafe__route-path {
  width: 2px;
  flex: 1 1 auto;
  min-height: 26px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(217, 162, 94, 0.65) 0,
    rgba(217, 162, 94, 0.65) 6px,
    transparent 6px,
    transparent 12px
  );
}

.rota-cafe__route-pin {
  background: linear-gradient(150deg, #d9723f, #a8451f);
  color: #fff3e8;
  box-shadow: 0 8px 18px rgba(168, 69, 31, 0.5);
}

.rota-cafe__route-pin .material-symbols-outlined { font-size: 24px; }

.rota-cafe__route-body {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rota-cafe__route-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--cafe-gold);
  font-weight: 800;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
}

.rota-cafe__route-kicker .material-symbols-outlined { font-size: 24px; }

.rota-cafe__route-address {
  margin: 0;
  color: rgba(246, 236, 221, 0.86);
  font-size: clamp(0.96rem, 1.7vw, 1.08rem);
  line-height: 1.5;
}

.rota-cafe__route-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 58px;
  padding: 0 clamp(24px, 3.4vw, 34px);
  border-radius: 999px;
  border: 0;
  background: linear-gradient(120deg, #d9723f, #a8451f);
  color: #fff3e8;
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 16px 34px rgba(168, 69, 31, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.rota-cafe__route-cta .material-symbols-outlined { font-size: 24px; }

.rota-cafe__route-cta:hover,
.rota-cafe__route-cta:active {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #e8834f, #b6512a);
  box-shadow: 0 20px 40px rgba(168, 69, 31, 0.52);
}

.rota-cafe__route-hint {
  margin: 2px 0 0;
  font-size: clamp(0.85rem, 1.5vw, 0.96rem);
  color: rgba(246, 236, 221, 0.62);
  font-style: italic;
}

@media (max-width: 640px) {
  .rota-cafe__route-card { grid-template-columns: 1fr; }
  .rota-cafe__route-visual {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px dashed rgba(217, 162, 94, 0.24);
    padding: 16px 20px;
  }
  .rota-cafe__route-path {
    width: auto;
    height: 2px;
    min-height: 0;
    background: repeating-linear-gradient(
      to right,
      rgba(217, 162, 94, 0.65) 0,
      rgba(217, 162, 94, 0.65) 6px,
      transparent 6px,
      transparent 12px
    );
  }
  .rota-cafe__route-cta { align-self: stretch; }
}

/* Seção de horário de atendimento */
.rota-cafe__schedule-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.rota-cafe__schedule-head .rota-cafe__section-title { margin: 0; }

.rota-cafe__status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  background: rgba(246, 236, 221, 0.1);
  color: var(--cafe-cream);
  border: 1px solid rgba(217, 162, 94, 0.24);
}

.rota-cafe__status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.rota-cafe__status-chip.is-open {
  background: rgba(47, 174, 99, 0.18);
  border-color: rgba(47, 174, 99, 0.5);
  color: #6fe3a0;
}

.rota-cafe__schedule-note {
  margin: 6px 0 clamp(12px, 2vh, 18px);
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  color: rgba(246, 236, 221, 0.82);
  font-style: italic;
}

/* Lista de horários de funcionamento — ocupa toda a largura da seção, com
   cada dia em seu próprio cartão (rótulo em cima, horários embaixo) para
   nunca espremer intervalos de vários turnos numa mesma linha. */
.rota-cafe__schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.rota-cafe__schedule li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(217, 162, 94, 0.18);
  background: rgba(38, 21, 13, 0.55);
}

.rota-cafe__schedule li strong {
  color: var(--cafe-gold);
  font-weight: 800;
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rota-cafe__schedule li span {
  color: var(--cafe-cream);
  font-weight: 600;
  font-size: clamp(0.96rem, 1.7vw, 1.08rem);
  line-height: 1.4;
  word-break: break-word;
}

.rota-cafe__schedule li.is-today {
  grid-column: span 2;
  border-color: rgba(232, 184, 118, 0.65);
  background: linear-gradient(120deg, rgba(217, 162, 94, 0.22), rgba(38, 21, 13, 0.55));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.rota-cafe__schedule li.is-today strong::after {
  content: " • hoje";
  color: var(--cafe-gold);
  font-weight: 700;
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .rota-cafe__schedule { grid-template-columns: 1fr; }
  .rota-cafe__schedule li.is-today { grid-column: span 1; }
}

/* Dica de zoom na galeria */
.rota-cafe__gallery--zoomable .rota-cafe__slide { cursor: zoom-in; }

.rota-cafe__gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 4, 0.6);
  color: var(--cafe-cream);
  font-size: 26px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Modal de QR Code */
.rota-cafe__qr {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.rota-cafe__qr[hidden] { display: none !important; }
.rota-cafe__qr.is-open { opacity: 1; pointer-events: auto; }

.rota-cafe__qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 2, 0.82);
  backdrop-filter: blur(8px);
}

.rota-cafe__qr-dialog {
  position: relative;
  z-index: 2;
  width: min(90vw, 440px);
  padding: clamp(26px, 4vw, 40px);
  border-radius: 28px;
  text-align: center;
  color: #2a1206;
  background: linear-gradient(168deg, #fbf3e6, #efd9b8);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 240ms ease;
}

.rota-cafe__qr.is-open .rota-cafe__qr-dialog { transform: translateY(0) scale(1); }

.rota-cafe__qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(42, 18, 6, 0.1);
  color: #2a1206;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rota-cafe__qr-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
}

.rota-cafe__qr-desc {
  margin: 0 0 20px;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #5a3418;
  line-height: 1.4;
}

.rota-cafe__qr-wrap {
  display: inline-flex;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(42, 18, 6, 0.08);
}

.rota-cafe__qr-img {
  width: min(64vw, 300px);
  height: min(64vw, 300px);
  display: block;
}

/* Lightbox fullscreen */
.rota-cafe__lightbox {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.rota-cafe__lightbox[hidden] { display: none !important; }
.rota-cafe__lightbox.is-open { opacity: 1; pointer-events: auto; }

.rota-cafe__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 1, 0.94);
}

.rota-cafe__lightbox-img {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.97);
  transition: transform 240ms ease;
}

.rota-cafe__lightbox.is-open .rota-cafe__lightbox-img { transform: scale(1); }

.rota-cafe__lightbox-close {
  position: absolute;
  top: clamp(16px, 3vh, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(246, 236, 221, 0.12);
  color: var(--cafe-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease;
}

.rota-cafe__lightbox-close:hover { background: rgba(217, 162, 94, 0.8); color: #2a1206; }
.rota-cafe__lightbox-close .material-symbols-outlined { font-size: 32px; }

.rota-cafe__lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: rgba(246, 236, 221, 0.12);
  color: var(--cafe-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease;
}

.rota-cafe__lightbox-nav:hover { background: rgba(217, 162, 94, 0.8); color: #2a1206; }
.rota-cafe__lightbox-nav .material-symbols-outlined { font-size: 36px; }
.rota-cafe__lightbox-nav--prev { left: clamp(10px, 2vw, 24px); }
.rota-cafe__lightbox-nav--next { right: clamp(10px, 2vw, 24px); }
.rota-cafe__lightbox-nav[hidden] { display: none; }

.rota-cafe__lightbox-status {
  position: absolute;
  bottom: clamp(16px, 3vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(20, 10, 4, 0.7);
  color: var(--cafe-cream);
  font-weight: 700;
  font-size: 0.95rem;
}

.rota-cafe__lightbox-status[hidden] { display: none; }

/* Animações */
@keyframes cafeFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cafeCardIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cafeSpin {
  to { transform: rotate(360deg); }
}

@keyframes cafeSteamRise {
  0% { opacity: 0; transform: translateY(4px) scaleY(0.7); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-22px) scaleY(1.25); }
}

@keyframes cafeBeanFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-26px) rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rota-cafe__beans span,
  .rota-cafe__hero-steam span,
  .rota-cafe__card { animation: none; }
  .rota-cafe__card { opacity: 1; transform: none; }
}

/* Telas estreitas (celular): uma coluna */
@media (max-width: 720px) {
  .rota-cafe__grid { grid-template-columns: 1fr; }
  .rota-cafe__gallery { aspect-ratio: 4 / 3; }
}
