/* ------------------------------------------------------------ the deck
   One day trip at a time. A card is a photograph with the few facts that decide a day: where,
   how far, when you would leave and arrive, and why it was dealt to you. Three answers:
   not for me, save it, plan it. Everything else is behind the filters button. */

body.go-mode {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--sans);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.go-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; flex: none;
}
.go-wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.go-top-r { display: flex; align-items: center; gap: 6px; }
.go-pill {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 7px 12px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.go-pill:hover { border-color: var(--sienna); color: var(--sienna); }
.go-pill[aria-expanded="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.go-account .map-acct-link { font-size: 13px; padding: 7px 12px; }

.go-filters {
  margin: 0 16px 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--hairline);
  border-radius: 16px; display: grid; gap: 12px; max-width: 40rem; width: calc(100% - 32px); align-self: center;
}
.go-filters[hidden] { display: none; }
.go-f-lbl { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.go-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.go-cat {
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--paper2);
  border: 1px solid transparent; border-radius: 999px; padding: 6px 11px; cursor: pointer;
}
.go-cat[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.go-f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.go-select { font: inherit; font-size: 13.5px; padding: 8px 10px; width: 100%; border: 1px solid var(--hairline); border-radius: 10px; background: #fff; color: var(--ink); }
.go-f-from { margin: 0; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 520px) { .go-f-two { grid-template-columns: 1fr; } }

.go-stage { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 16px 18px; min-height: 0; }
.go-deck { position: relative; width: min(100%, 26rem); flex: 1; min-height: 34rem; max-height: 44rem; }

.go-card {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(20, 35, 60, 0.18), 0 2px 8px rgba(20, 35, 60, 0.08);
  transform-origin: 50% 110%; will-change: transform;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
  touch-action: pan-y; user-select: none;
}
.go-card.is-next { transform: scale(.95) translateY(14px); opacity: .9; pointer-events: none; }
.go-card.is-dragging { transition: none; cursor: grabbing; }
.go-card.is-gone-left { transform: translateX(-140%) rotate(-14deg); opacity: 0; }
.go-card.is-gone-right { transform: translateX(140%) rotate(14deg); opacity: 0; }
.go-card.is-gone-up { transform: translateY(-120%) scale(.96); opacity: 0; }

.go-img { position: relative; flex: 0 0 46%; background: var(--paper3); }
.go-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.go-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.go-img-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.go-kicker { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin: 0 0 4px; }
.go-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.go-region { margin: 4px 0 0; font-size: 13px; opacity: .92; }
.go-stamp {
  position: absolute; top: 18px; padding: 6px 12px; border: 3px solid currentColor; border-radius: 8px;
  font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: rotate(-12deg);
  transition: opacity .1s;
}
.go-stamp-no { left: 18px; color: #e2574c; }
.go-stamp-yes { right: 18px; color: #2e7d4f; transform: rotate(12deg); }

.go-body { flex: 1; display: flex; flex-direction: column; padding: 14px 18px 16px; min-height: 0; }
.go-text { flex: none; margin: 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.go-trip { flex: none; margin: 12px 0 0; padding: 10px 12px; background: var(--paper2); border-radius: 12px; font-size: 13px; line-height: 1.45; }
.go-trip b { font-weight: 650; }
.go-trip .go-trip-l { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.go-trip.is-live { border-left: 3px solid #2e7d4f; }
.go-trip.is-none { border-left: 3px solid var(--sienna); }
.go-trip-wait { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--hairline); border-top-color: var(--ink); border-radius: 50%; animation: go-spin .8s linear infinite; vertical-align: -1px; margin-right: 5px; }
@keyframes go-spin { to { transform: rotate(360deg); } }
.go-why { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.go-why span { font-size: 11.5px; color: var(--ink); background: var(--paper2); border-radius: 999px; padding: 3px 9px; }
.go-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.go-foot button { font: inherit; font-size: 12px; font-weight: 600; color: var(--sienna); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.go-credit { font-size: 10.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.go-credit a { color: inherit; }

.go-actions { display: grid; gap: 10px; margin-top: 14px; width: min(100%, 26rem); }
.go-answers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.go-answers-2 { grid-template-columns: 1fr 1fr; }
.go-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650;
  border: 1px solid var(--hairline); background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.go-act:active { transform: scale(.96); }
.go-act svg { width: 22px; height: 22px; }
.go-answers .go-act { height: 46px; border-radius: 999px; font-size: 13px; padding: 0 6px; gap: 6px; }
.go-answers .go-act svg { width: 17px; height: 17px; flex: none; }
.go-no { color: #c0392b; }
.go-no:hover { background: #e2574c; color: #fff; border-color: #e2574c; }
.go-been { color: #2e7d4f; }
.go-been:hover { background: #2e7d4f; color: #fff; border-color: #2e7d4f; }
.go-yes { color: var(--sienna); }
.go-yes:hover { background: var(--sienna); color: #fff; border-color: var(--sienna); }
.go-plan { width: 100%; height: 54px; border-radius: 999px; background: var(--ink); color: var(--cream); border-color: var(--ink); font-size: 15px; }
@media (max-width: 380px) { .go-answers .go-act span { font-size: 12px; } }
.go-plan:hover { background: #0f1a2e; }
.go-plan svg { width: 18px; height: 18px; }
.go-plan svg:first-child { color: #ff9b85; }
.go-hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-faint); text-align: center; }
@media (hover: none) { .go-hint { display: none; } }

.go-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: #fff; border-radius: 22px; border: 1px dashed var(--hairline); color: var(--ink-soft); font-size: 15px; line-height: 1.5;
}
.go-empty b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin-bottom: .5rem; }
.go-empty button { margin-top: 1rem; }

.go-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(20,35,60,.42); backdrop-filter: blur(2px); display: grid; place-items: end center; }
.go-sheet[hidden] { display: none; }
.go-sheet-card { position: relative; width: min(100%, 30rem); max-height: 86dvh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) { .go-sheet { place-items: center; } .go-sheet-card { border-radius: 22px; } }
.go-sheet-x { position: absolute; top: 10px; right: 12px; font: inherit; font-size: 24px; line-height: 1; border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; }
.go-sheet h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 4px; }
.go-sheet-sub { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.go-sheet-text { width: 100%; font: inherit; font-size: 14px; line-height: 1.45; padding: 10px 12px; margin: 8px 0 12px;
  border: 1px solid var(--hairline); border-radius: 12px; background: #fff; resize: vertical; }
.go-sheet-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.go-sheet-verdict .go-act { height: 52px; border-radius: 999px; font-size: 15px; }
.go-sheet-verdict .go-act svg { width: 20px; height: 20px; }
.go-v-up { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.go-v-up:hover { background: #256641; }
.go-v-down { background: #fff; color: var(--ink); }
.go-v-down:hover { background: var(--paper2); }
.go-sheet-out { margin: 10px 0 4px; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.go-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 70; }
.go-toast.is-on { opacity: 1; }
.go-toast a { color: inherit; font-weight: 700; pointer-events: auto; }

@media (max-height: 760px) { .go-deck { min-height: 30rem; } .go-img { flex-basis: 42%; } .go-text { -webkit-line-clamp: 2; } }
