/* Portami qui: stessa azione verde nelle schede, nel confronto e nei dettagli. */
.navigate-button,
.redesigned-station-card .navigate-button,
.comparison-best .navigate-button,
.saving-station .navigate-button,
.saving-station:nth-child(2) .navigate-button,
.map-popup .navigate-button,
.favorite-actions .favorite-navigate {
  --navigation-icon-size:21px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  max-width:100%;
  min-height:44px;
  padding:9px 10px;
  border:1px solid var(--green);
  border-radius:999px;
  background:var(--green);
  color:#fff;
  font-size:15px;
  font-weight:650;
  line-height:1.25;
  white-space:nowrap;
  text-decoration:none;
  transition:background .18s,border-color .18s;
}

.navigate-button .navigate-icon,
.redesigned-station-card .navigate-button .navigate-icon {
  flex:0 0 var(--navigation-icon-size);
  width:var(--navigation-icon-size);
  height:var(--navigation-icon-size);
}

.favorite-actions .favorite-navigate::before {
  content:'';
  display:block;
  flex:0 0 var(--navigation-icon-size);
  width:var(--navigation-icon-size);
  height:var(--navigation-icon-size);
  background:currentColor;
  -webkit-mask:url('/assets/navigation.svg') center/contain no-repeat;
  mask:url('/assets/navigation.svg') center/contain no-repeat;
}

.redesigned-station-card .navigate-button {
  --navigation-icon-size:22px;
  font-size:16px;
}

.navigate-button:hover:not(:disabled),
.redesigned-station-card .navigate-button:hover:not(:disabled),
.comparison-best .navigate-button:hover:not(:disabled),
.saving-station .navigate-button:hover:not(:disabled),
.saving-station:nth-child(2) .navigate-button:hover:not(:disabled),
.map-popup .navigate-button:hover:not(:disabled),
.favorite-actions .favorite-navigate:hover:not(:disabled) {
  background:#116d4b;
  border-color:#116d4b;
  color:#fff;
}

.navigate-button:focus-visible,
.redesigned-station-card .navigate-button:focus-visible,
.favorite-actions .favorite-navigate:focus-visible {
  outline:3px solid var(--petrol);
  outline-offset:3px;
}

.saving-station .navigate-button:focus-visible {
  outline-color:var(--lime);
}

.navigate-button:disabled,
.redesigned-station-card .navigate-button:disabled,
.saving-station .navigate-button:disabled,
.saving-station:nth-child(2) .navigate-button:disabled,
.favorite-actions .favorite-navigate:disabled {
  color:#fff;
  opacity:.5;
  cursor:not-allowed;
}

/* Il dettaglio comprende anche il pulsante diretto dei preferiti. */
#detail-dialog .navigate-button {
  --navigation-icon-size:23px;
  min-height:50px;
  padding:11px 16px;
  font-size:17px;
}

@media(max-width:680px) {
  .redesigned-station-card .navigate-button {
    --navigation-icon-size:21px;
    padding-inline:8px;
    gap:5px;
    font-size:15px;
  }

  #detail-dialog .detail-navigation {
    width:100%;
    min-width:0;
  }

  #detail-dialog .navigate-button {
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  .navigate-button,
  .favorite-actions .favorite-navigate {
    transition:none;
  }
}
