/* Mappa posti bus — uscite Avventure */
.trip-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
.trip-hero {
  margin: 0 -1rem 1.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  background: linear-gradient(160deg, #e8f3e4 0%, #f7faf5 45%, #fff 100%);
  border-bottom: 1px solid #d5e5d0;
}
.trip-hero h1 {
  font-size: 1.55rem;
  margin: 0.4rem 0 0.35rem;
  color: var(--green-dark, #0c5505);
}
.trip-hero .trip-partner {
  font-size: 0.95rem;
  color: #335533;
  margin: 0;
}
.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.trip-seats-status {
  font-weight: 700;
  color: var(--green-dark, #0c5505);
}
.trip-section {
  margin: 1.75rem 0;
}
.trip-section h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--green-dark, #0c5505);
}
.trip-form label {
  display: block;
  margin: 0.65rem 0 0.2rem;
  font-size: 0.92rem;
}
.trip-form input[type="text"],
.trip-form input[type="email"],
.trip-form input[type="tel"],
.trip-form input[type="date"],
.trip-form input[type="number"],
.trip-form select,
.trip-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #b7c9b3;
  border-radius: 4px;
}
.trip-form .trip-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .trip-form .trip-row-2 { grid-template-columns: 1fr; }
}
.trip-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.6rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
}
.trip-check input { margin-top: 0.2rem; flex-shrink: 0; }
.trip-legal {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #223322;
  background: #f4f8f3;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid #d5e5d0;
}
.trip-legal--preamble {
  margin-top: 1rem;
}
.trip-legal--block {
  margin: 0.85rem 0;
}
.trip-legal__title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0c5505;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.trip-legal__note {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid #d5e5d0;
  font-size: 0.86rem;
}
.trip-legal ul { margin: 0.4rem 0 0.4rem 1.1rem; padding: 0; }
.trip-legal p { margin: 0.35rem 0; }
.trip-bus {
  background: #1a2e1a;
  color: #e8f3e4;
  border-radius: 12px;
  padding: 1rem 0.75rem 1.25rem;
  margin: 1rem 0;
}
.trip-bus__hint {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 0.75rem;
  text-align: center;
}
.trip-bus__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0;
}
.trip-seat {
  width: 48px;
  height: 44px;
  border: 2px solid #7a9a74;
  border-radius: 8px 8px 4px 4px;
  background: #2d4a2d;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.trip-seat:hover:not(:disabled) {
  background: #3d6a3d;
}
.trip-seat.is-selected {
  background: #e9e944;
  color: #003300;
  border-color: #c8c830;
}
.trip-seat.is-held,
.trip-seat.is-held:disabled {
  background: #8a6a20;
  color: #fff3d0;
  border-color: #c9a227;
  cursor: not-allowed;
  opacity: 0.9;
}
.trip-seat.is-sold,
.trip-seat.is-sold:disabled {
  background: #444;
  color: #999;
  border-color: #555;
  cursor: not-allowed;
  opacity: 0.75;
}
.trip-seat.is-blocked,
.trip-seat.is-blocked:disabled {
  background: #2d3748;
  color: #cbd5e0;
  border-color: #1a202c;
  cursor: not-allowed;
  opacity: 0.95;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0.25) 6px
  );
}
.trip-seat:disabled:not(.is-held):not(.is-sold):not(.is-blocked):not(.is-driver) {
  background: #444;
  color: #999;
  border-color: #555;
  cursor: not-allowed;
  opacity: 0.75;
}
.trip-seat.is-driver {
  background: #5a4030;
  border-color: #8a6a50;
  cursor: default;
  width: calc(48px * 2 + 0.35rem);
  flex-shrink: 0;
}
.trip-bus-legend {
  list-style: none;
  margin: 0.85rem 0 0.35rem;
  padding: 0.55rem 0.35rem 0;
  border-top: 1px solid rgba(232, 243, 228, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f2f8ef;
}
.trip-bus-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f2f8ef;
}
.trip-bus-legend li span[data-translateid] {
  color: #f2f8ef;
}
.trip-seat--legend {
  width: 22px;
  height: 20px;
  font-size: 0;
  pointer-events: none;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.trip-seat--legend.is-driver {
  width: 36px;
}
.trip-hold-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #dcefd4;
  text-align: center;
}
.trip-seat-empty {
  width: 48px;
  height: 44px;
  flex-shrink: 0;
  visibility: hidden;
  pointer-events: none;
}
.trip-bus__supplier {
  font-size: 0.78rem;
  opacity: 0.85;
  text-align: center;
  margin: 0.65rem 0 0;
}
.trip-aisle {
  width: 28px;
  height: 44px;
  flex-shrink: 0;
}
.trip-total {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0;
}
.trip-pay-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
.trip-pay-tabs button {
  font: inherit;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--green-dark, #0c5505);
  background: #fff;
  color: var(--green-dark, #0c5505);
  cursor: pointer;
}
.trip-pay-tabs button.is-active {
  background: var(--green-dark, #0c5505);
  color: #fff;
}
#tripPaypalButtons {
  min-height: 48px;
  margin: 0.75rem 0;
}
.trip-btn {
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 4px;
  background: var(--green-dark, #0c5505);
  color: #fff;
  cursor: pointer;
}
.trip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.trip-btn--secondary {
  background: #fff;
  color: var(--green-dark, #0c5505);
  border: 1px solid var(--green-dark, #0c5505);
}
.trip-error {
  color: #8a1f1f;
  background: #fde8e8;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  margin: 0.75rem 0;
}
.trip-step-hint {
  margin: 0.75rem 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff8e6;
  border: 1px solid #e8d4a0;
  color: #5c4a2e;
  font-size: 0.92rem;
  line-height: 1.35;
}
.trip-step-hint.stalla-blocked-hint--error {
  background: #fdecea;
  border-color: #e8b4b0;
  color: #7a2e28;
  font-weight: 700;
}
.trip-page .stalla-guest-missing-mark {
  outline: 2px solid #c0392b;
  outline-offset: 3px;
  border-radius: 8px;
}
.trip-page .stalla-guest-missing-inline {
  font-weight: 700;
}
.trip-ok {
  color: #0c5505;
  background: #e8f5e4;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.trip-bonifico-box {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
}
.trip-bonifico-instructions {
  margin: 0 0 1rem;
  line-height: 1.45;
}
.trip-docs-prep {
  margin-bottom: 1rem;
}
.trip-program-block {
  margin: 0 0 1rem;
}
.trip-program-block #tripProgram p,
.trip-motivo p {
  margin: 0.4rem 0;
}
.trip-motivo-link {
  margin-top: 0.35rem;
}
.trip-motivo-link a {
  font-weight: 600;
}
.trip-ticket-number {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.trip-ticket-place {
  margin: 0.35rem 0;
}
.trip-ticket-maps {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.92em;
  font-weight: 600;
  white-space: nowrap;
}
.trip-ticket-refunded-note {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d4b8b8;
  border-radius: 6px;
  background: #faf2f2;
}
.trip-ticket-refund-bollo-note {
  margin: 0.25rem 0 0;
  font-size: 0.92em;
  color: #555;
}
.trip-ticket-countdown[data-phase="return"] {
  background: #e8f1f7;
  border-color: #a8c0d4;
}
.trip-ticket-countdown[data-phase="done"] {
  background: #f3f3f0;
  border-color: #cfcfc8;
}
.trip-ticket-countdown__label {
  font-weight: 600;
}
.trip-ticket-countdown__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.trip-ticket-invite {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 2px solid #0c5505;
  border-radius: 8px;
  background: #e8f5e9;
}
.trip-ticket-invite__avail {
  margin: 0 0 0.4rem;
  color: #0c5505;
}
.trip-ticket-invite__cta {
  margin: 0 0 0.5rem;
}
.trip-ticket-invite__link {
  font-weight: 700;
  color: #0c5505;
}
.trip-ticket-invite__full {
  margin: 0.75rem 0;
  color: #445;
  font-size: 0.95em;
}
.travels-ticket-lookup {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 1rem 1.25rem;
  border: 1px solid #c5d8c0;
  border-radius: 8px;
  background: #f7faf6;
}
.travels-ticket-form label {
  display: block;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}
.travels-ticket-form input {
  display: block;
  width: 100%;
  max-width: 18rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  border: 1px solid #b7c9b3;
  border-radius: 4px;
}
.travels-ticket-hint {
  font-size: 0.9rem;
  color: #445;
  margin: 0.5rem 0;
}
.travels-ticket-form .trip-btn {
  margin-top: 0.35rem;
}

.travels-tickets-list {
  margin: 1rem 0 1.5rem;
}

.travels-tickets-ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.travels-tickets-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(12, 85, 5, 0.2);
}

.travels-tickets-item:last-child {
  border-bottom: 1px solid rgba(12, 85, 5, 0.2);
}

.travels-tickets-item__meta {
  flex: 1 1 14rem;
  line-height: 1.45;
}

.trip-success-note {
  font-size: 0.95em;
  color: #334;
}

.trip-bonifico-instructions__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark, #0c5505);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.trip-bonifico-instructions ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.25rem;
}
.trip-bonifico-instructions p {
  margin: 0.55rem 0;
}
.trip-bonifico-confirm-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #445;
}
.trip-altri-block {
  border: 1px dashed #b7c9b3;
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}
.trip-altro-row {
  position: relative;
  margin: 0 0 0.85rem;
  padding: 0.85rem 2.5rem 0.85rem 0.85rem;
  border: 1px solid #c5d6c1;
  border-radius: 8px;
  background: #fafcfa;
}
.trip-altro-row__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-dark, #0c5505);
}
.trip-altro-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid #8a3a36;
  border-radius: 50%;
  background: #fff;
  color: #8a3a36;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trip-altro-remove:hover,
.trip-altro-remove:focus-visible {
  background: #fdecea;
  border-color: #c0392b;
  color: #c0392b;
  outline: none;
}
.trip-altro-remove span {
  display: block;
  transform: translateY(-0.05em);
}
.trip-closed-banner {
  background: #fff3cd;
  border: 1px solid #ffda6a;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.trip-wizard-steps {
  margin: 1rem 0 1.5rem;
  padding: 0;
  max-width: none;
}
.trip-wizard-steps .stalla-checkin-step__title {
  cursor: default;
}
.trip-wizard-steps .stalla-checkin-step--done .stalla-checkin-step__title,
.trip-wizard-steps .stalla-checkin-step--done .stalla-checkin-step__num {
  cursor: pointer;
}
.trip-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #d5e5d0;
}
.trip-wizard-nav .trip-btn {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
}
.trip-account-gate {
  margin: 1rem 0 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #c5dcc5;
  border-radius: 10px;
  background: #f7fbf5;
}
.trip-account-gate__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--green-dark, #0c5505);
}
.trip-account-gate__lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.trip-account-gate__ok {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #e8f5e4;
  color: #0c5505;
  font-weight: 600;
  font-size: 0.92rem;
}
.trip-account-gate__msg {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #5a3a00;
}
.trip-cap-hint {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #fff8e6;
  border: 1px solid #e8d4a0;
  color: #5c4a2e;
  font-size: 0.82rem;
  line-height: 1.35;
}
.trip-iban-refund-note {
  margin: 0.45rem 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  background: #fff8e6;
  border: 1px solid #e8d4a0;
  color: #5c4a2e;
  font-size: 0.9rem;
  line-height: 1.4;
}
.trip-refund-alts {
  margin-top: 0.35rem;
}
.trip-refund-alts[hidden] {
  display: none !important;
}
.trip-refund-alt-lead {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.92rem;
  color: var(--green-dark, #0c5505);
  font-weight: 600;
}
.trip-refund-pct {
  color: #0c5505;
  font-weight: 700;
  white-space: nowrap;
}
.trip-page .stalla-comune-field {
  margin: 0;
}
.trip-page .stalla-comune-field .is-italy-comune {
  width: 100%;
  box-sizing: border-box;
}
.trip-account-gate__actions {
  border-top: none;
  padding-top: 0.35rem;
  margin-top: 0.5rem;
}
.trip-capogruppo-notes {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #223;
}
.trip-capogruppo-notes li {
  margin: 0.25rem 0;
}
.trip-legal-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-style: italic;
  color: #456;
}
.trip-legal-subh {
  margin: 1rem 0 0.45rem;
  font-size: 0.98rem;
  color: var(--green-dark, #0c5505);
}
.trip-wizard-step--optional[hidden] {
  display: none !important;
}
.trip-wizard-steps .trip-step-summary {
  white-space: normal;
  line-height: 1.35;
  font-size: 0.88rem;
}

.trip-page .stalla-checkin-step-confirm {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5dcc5;
  border-radius: 8px;
  background: #fafdf8;
  cursor: pointer;
  font-weight: 700;
  color: var(--green-dark, #0c5505);
}
.trip-page .stalla-checkin-step-confirm:has(input:checked),
.trip-page .stalla-checkin-step-confirm.is-selected {
  border-color: #7cb87c;
  background: #f0faf2;
}
.trip-page .stalla-checkin-step-confirm.is-disabled,
.trip-page .trip-check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.trip-page .stalla-checkin-step-confirm input[type="radio"],
.trip-page .stalla-checkin-step-confirm input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--green-dark, #0c5505);
}
.trip-date-field-host,
.trip-page .stalla-birthdate-field {
  margin: 0.65rem 0 0.35rem;
}
.trip-page .stalla-birthdate-field .stalla-field-label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
}
.trip-altro-nascita-host {
  margin-top: 0.5rem;
}
@media (max-width: 560px) {
  .trip-wizard-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  .trip-wizard-nav .trip-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .trip-page .stalla-checkin-step {
    padding: 12px;
  }
}

/* Locandina evento (step 1) + lightbox */
.trip-poster {
  margin: 0 0 1rem;
}
.trip-poster__open {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid #c5d8c0;
  border-radius: 8px;
  background: #f4f8f3;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(12, 85, 5, 0.08);
}
.trip-poster__open:focus-visible {
  outline: 2px solid #0c5505;
  outline-offset: 2px;
}
.trip-poster__thumb {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.trip-poster__cta {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0c5505;
  background: #e9e944;
}
.trip-poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 20, 10, 0.92);
  box-sizing: border-box;
}
.trip-poster-lightbox[hidden] {
  display: none !important;
}
.trip-poster-lightbox__img {
  max-width: min(96vw, 720px);
  max-height: calc(100vh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.trip-poster-lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #e9e944;
  color: #0c5505;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 10001;
}
.trip-poster-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
body.trip-poster-open {
  overflow: hidden;
}

