@import url("https://use.typekit.net/kuw3loo.css");

.hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: 88vh;
  max-height: 820px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--map-bg-1) 0%, var(--map-bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "poppins", sans-serif;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 80%, rgba(255,255,255,0.4) 100%);
}

.gps-route {
  z-index: 2;
}

.route-base {
  fill: none;
  stroke: #d7dde3;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-progress {
  fill: none;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--route-glow)) drop-shadow(0 0 14px rgba(20, 140, 255, 0.25));
}

.route-tip {
  r: 6.5;
  fill: #eaf7ff;
  stroke: var(--route-blue-2);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--route-glow));
  transition: opacity 0.4s ease;
}

.route-tip-pulse {
  r: 6.5;
  fill: none;
  stroke: var(--route-blue-2);
  stroke-width: 2;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.gps-route--desktop {
  position: relative;
  width: 100%;
}

.gps-route--desktop .route-canvas {
  width: calc(100% - 48px);
  margin: 0 auto;
}

.gps-route--desktop svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  margin-top: 5%;
}

.gps-route--mobile {
  display: none;
  position: absolute;
  left: 50%;
  top: 210px;
  bottom: 28px;
  width: min(66%, 280px);
  transform: translateX(-50%);
}

.gps-route--mobile svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.gps-start {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.gps-start svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gps-start-ring {
  fill: none;
  stroke: var(--route-blue-2);
  stroke-width: 2;
  opacity: 0.35;
}

.gps-start-dot {
  fill: var(--route-blue-2);
}

.gps-start-arrow {
  fill: var(--route-blue-2);
  transform-origin: 17px 17px;
}

.gps-route--mobile .gps-start-arrow {
  transform: rotate(90deg);
}

.gps-destination {
  position: absolute;
  width: clamp(28px, 3.6vw, 46px);
  transform: translate(-50%, -92%);
  z-index: 4;
  pointer-events: none;
}

.gps-destination svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.pin-glow {
  fill: var(--dest-orange);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.6s ease;
}

.pin-body {
  fill: var(--dest-orange);
  stroke: var(--dest-orange-deep);
  stroke-width: 1;
  filter: drop-shadow(0 3px 6px rgba(232, 93, 16, 0.35));
}

.pin-hole {
  fill: #fff;
}

.gps-destination.is-active .pin-glow {
  opacity: 0.55;
  animation: pin-pulse 1.8s ease-in-out infinite;
}

@keyframes pin-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.18); }
}

.gps-waypoint {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.wp-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--wp-idle);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.wp-label {
  position: absolute;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--map-bg-2);
  white-space: nowrap;
  background: rgba(63, 169, 245, 1);
  padding: 9px;
  border-radius: 5px;
  transition: color .35s ease;
  font-family: 'Montserrat', sans-serif;
}

.gps-waypoint.wp-below .wp-label { top: 14px; left: 0; transform: translate(-50%, 0); }
.gps-waypoint.wp-above .wp-label { top: -14px; left: 0; transform: translate(-50%, -100%); }
.gps-waypoint.wp-right .wp-label { left: 14px; top: 0; transform: translate(0, -50%); }
.gps-waypoint.wp-left .wp-label { left: -14px; top: 0; transform: translate(-100%, -50%); }

.gps-waypoint.is-active .wp-dot {
  background: var(--route-blue-2);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.22), 0 0 10px var(--route-glow);
  animation: wp-pop .45s ease;
}

.gps-waypoint.is-active .wp-label {
  color: var(--map-bg-2);
}

@keyframes wp-pop {
  0% { transform: translate(-50%, -50%) scale(.5); }
  60% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.route-cta {
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}

.gps-route--desktop .route-cta {
  bottom: 80px;
}

.route-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.route-cta-btn {
  font-family: 'Montserrat', sans-serif;
  background: var(--dest-orange);
  color: #ffffff;
  border: none;
  padding: 15px 42px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s ease, transform .2s ease, box-shadow .25s ease;
}

.route-cta-btn:hover {
  background: var(--dest-orange-deep);
  transform: translateY(-2px);
}

.route-cta-btn:active {
  transform: translateY(0);
}

.route-canvas {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.hero-content {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--route-blue-2);
  font-weight: 900;
  padding-bottom: 15px;
  padding-bottom: 3%;
}

.hero-eyebrow-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--route-blue-2);
  font-weight: 900;
  padding-bottom: 15px;
}

.hero-title {
  font-size: 35px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--nav-bg);
}

.hero-title span{
  color: var(--dest-orange);
}

/* ============================================================== 
   AJUSTES PARA TELAS MÉDIAS (DESKTOP PEQUENO E TABLET GIGANTE/HORIZONTAL)
============================================================== */
@media (max-width: 1366px) {
  .hero-content { top: 5%; padding-top: 15px; }
  .hero-title { font-size: clamp(24px, 3.5vw, 38px); }
  
  /* Mantém a rota presa no rodapé e libera espaço para o texto */
  .gps-route--desktop { 
    position: absolute; 
    bottom: 3%; 
    left: 0; 
    width: 100%; 
    margin-top: 0;
  }

  .gps-route--desktop svg { margin-top: 0; }
  .gps-route--desktop .route-cta { bottom: 15px; }
  
  /* Força a quebra de linha nas etiquetas horizontalmente compridas */
  .wp-label { 
    font-size: 11px !important; 
    padding: 6px 8px !important; 
    white-space: normal !important; 
    text-align: center !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }
  
  .gps-waypoint.wp-below .wp-label { top: 20px !important; }
  .gps-waypoint.wp-above .wp-label { top: -20px !important; }
}

/* ============================================================== 
   TABLET NA VERTICAL E CELULAR (ATIVA A ROTA EM PÉ)
============================================================== */
@media (max-width: 900px) {
  .hero { min-height: 800px; height: 100vh; }
  .hero-content { top: 5%; width: 100%;}
  
  /* Esconde a rota horizontal e mostra a vertical */
  .gps-route--desktop { display: none; }
  .gps-route--mobile { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  
  /* Formatação das labels da rota vertical */
  .wp-label { font-size: 15px !important; padding: 2px 6px !important; white-space: normal !important; text-align: center !important; }
  
  .gps-waypoint.wp-below .wp-label,
  .gps-waypoint.wp-above .wp-label { max-width: 120px !important; top: auto !important; }
  .gps-waypoint.wp-right .wp-label { left: 20px !important; top: 0 !important; }
  .gps-waypoint.wp-left .wp-label { left: -40px !important; top: 0 !important; }
}

@media (max-width: 600px) {
  .gps-route--mobile { top: 250px; bottom: 24px; }
}

@media (max-width: 480px) {
  .hero-eyebrow-sub {font-size: 15px;}
  .hero-title {font-size: 25px;}
  .wp-label {font-weight: 700 !important;}
}

@media (prefers-reduced-motion: reduce) {
  .route-progress, .route-tip, .route-tip-pulse, .wp-dot { animation: none !important; transition: none !important; }
}