/* Zookzy Go — app shell (no portal footer/SEO spine) */
:root {
  --go-bg: #0c1220;
  --go-surface: #141c2b;
  --go-fg: #f1f5f9;
  --go-muted: #94a3b8;
  --go-line: #243044;
  --go-accent: #0d9488;
  --go-accent-soft: #134e4a;
  --go-warn: #f59e0b;
  --go-tab-h: 3.6rem;
  --go-safe-b: env(safe-area-inset-bottom, 0px);
  --go-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--go-bg);
  color: var(--go-fg);
  font-family: var(--go-font);
}
body.go-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--go-tab-h) + var(--go-safe-b));
}

.go-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem .5rem;
  border-bottom: 1px solid var(--go-line);
  background: linear-gradient(180deg, #0f1a2e 0%, var(--go-bg) 100%);
}
.go-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: #5eead4;
  text-decoration: none;
}
.go-brand span { color: var(--go-fg); font-weight: 700; }
.go-top__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.go-chip {
  display: inline-flex;
  align-items: center;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--go-line);
  background: var(--go-surface);
  color: var(--go-fg);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.go-chip.is-active {
  border-color: var(--go-accent);
  background: var(--go-accent-soft);
  color: #ccfbf1;
}
.go-lang {
  position: relative;
}
.go-lang select {
  appearance: none;
  border: 1px solid var(--go-line);
  background: var(--go-surface);
  color: var(--go-fg);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .72rem;
  font-weight: 700;
}

.go-main {
  flex: 1;
  padding: .85rem 1rem 1.25rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.go-hero {
  margin: 0 0 1rem;
}
.go-hero h1 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.go-hero p {
  margin: 0;
  color: var(--go-muted);
  font-size: .9rem;
  line-height: 1.4;
}

.go-mode-row {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.go-mode {
  flex: 1 1 90px;
  text-align: center;
  padding: .65rem .5rem;
  border-radius: 14px;
  border: 1px solid var(--go-line);
  background: var(--go-surface);
  color: var(--go-fg);
  font-weight: 750;
  font-size: .85rem;
  cursor: pointer;
}
.go-mode.is-on {
  border-color: var(--go-accent);
  box-shadow: inset 0 0 0 1px var(--go-accent);
  background: linear-gradient(160deg, #134e4a, #141c2b);
}

.go-panel {
  border: 1px solid var(--go-line);
  border-radius: 16px;
  background: var(--go-surface);
  padding: 1rem;
  min-height: 12rem;
}
.go-panel h2 {
  margin: 0 0 .4rem;
  font-size: 1rem;
}
.go-panel p {
  margin: 0 0 .75rem;
  color: var(--go-muted);
  font-size: .88rem;
  line-height: 1.45;
}
.go-panel[hidden] { display: none !important; }

.go-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 0;
  background: var(--go-accent);
  color: #fff;
  font-weight: 750;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
}
.go-cta.sec {
  background: transparent;
  border: 1px solid var(--go-line);
  color: var(--go-fg);
}
.go-cta:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.go-map-stub {
  margin-top: .85rem;
  height: 11rem;
  border-radius: 14px;
  border: 1px dashed var(--go-line);
  background:
    radial-gradient(circle at 30% 40%, rgba(13,148,136,.25), transparent 45%),
    linear-gradient(145deg, #0b1220, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--go-muted);
  font-size: .82rem;
  text-align: center;
  padding: 1rem;
}

.go-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--go-tab-h) + var(--go-safe-b));
  padding-bottom: var(--go-safe-b);
  background: rgba(12, 18, 32, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--go-line);
}
.go-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  text-decoration: none;
  color: var(--go-muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.go-tab svg { width: 22px; height: 22px; opacity: .85; }
.go-tab.is-on { color: #5eead4; }
.go-tab.is-on svg { opacity: 1; }

.go-fab-guru {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--go-tab-h) + var(--go-safe-b) + .75rem);
  z-index: 35;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid #115e59;
  background: linear-gradient(145deg, #0f766e, #134e4a);
  color: #ecfeff;
  font-weight: 800;
  font-size: .72rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.go-disabled {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(13,148,136,.2), transparent 55%),
    var(--go-bg);
}
.go-disabled h1 { margin: 0 0 .5rem; }
.go-disabled p { color: var(--go-muted); max-width: 28rem; }

/* ── Transport: live /ride shell inside Go (mobile app layout) ── */
body.go-app.go-app--ride {
  --go-top-h: 3.05rem;
  --ride-header-gap: 0px;
  background: #0b1220;
  padding-bottom: 0;
  overflow: hidden;
}
body.go-app.go-app--ride .go-top--compact {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--go-top-h);
  padding: .45rem .75rem;
  background: rgba(12, 18, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--go-line);
}
body.go-app.go-app--ride .go-brand { font-size: 1.02rem; }
body.go-app.go-app--ride .go-chip--desk { display: none; }
@media (min-width: 720px) {
  body.go-app.go-app--ride .go-chip--desk { display: inline-flex; }
}

body.go-app.go-app--ride .go-main--ride {
  flex: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  height: calc(100dvh - var(--go-top-h) - var(--go-tab-h) - var(--go-safe-b));
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Kill portal/catalog wrappers that ride core still carries */
body.go-app.go-app--ride #rideApp.ride-page,
body.go-app.go-app--ride #rideApp.catalog-page-inner,
body.go-app.go-app--ride #rideApp.catalog-strip-stack-body {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

body.go-app.go-app--ride #rideShell.ride-shell {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  z-index: 30 !important;
}

/* Cover/peek: keep shell inside Go main — never let page/SEO scroll under/over form */
@media (max-width: 899px) {
  body.go-app.go-app--ride #rideShell.ride-shell.is-sheet-cover,
  body.go-app.go-app--ride #rideShell.ride-shell.is-map-full {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 30 !important;
    box-shadow: none !important;
  }
  body.go-app.go-app--ride .ride-panel {
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
  }
}

/* Go topbar already brands — hide duplicate H1 in sheet */
body.go-app.go-app--ride .ride-brand,
body.go-app.go-app--ride .ride-sub--desk {
  display: none !important;
}

body.go-app.go-app--ride .go-tabbar {
  z-index: 45;
}
body.go-app.go-app--ride .go-fab-guru--ride {
  bottom: calc(var(--go-tab-h) + var(--go-safe-b) + .55rem);
  width: 2.65rem;
  height: 2.65rem;
  opacity: .92;
  z-index: 42;
}

/* Sheet sits above map; leave clearance for Go tabbar */
body.go-app.go-app--ride .ride-panel {
  padding-bottom: calc(.75rem + var(--go-tab-h) + var(--go-safe-b)) !important;
  z-index: 30;
}
body.go-app.go-app--ride .ride-map {
  z-index: 1;
}

/* Theme toggle: tuck under Go top */
body.go-app.go-app--ride .ride-theme-toggle {
  top: .45rem !important;
  right: .55rem !important;
  z-index: 36;
}

/* Go Booking tab */
.go-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.go-panel__row h2 { margin: 0; font-size: 1.05rem; }
.go-cta--sm {
  padding: .4rem .75rem;
  font-size: .82rem;
  width: auto;
  display: inline-flex;
}
.go-book-list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1rem; }
.go-book-card {
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--go-line);
  background: var(--go-surface);
}
.go-book-card__title {
  color: var(--go-fg);
  font-weight: 650;
  text-decoration: none;
  display: block;
}
.go-book-card__meta {
  margin: .35rem 0 0;
  color: var(--go-muted);
  font-size: .82rem;
}
.go-book-card__actions { margin-top: .55rem; }
.go-chip-soft {
  display: inline-block;
  font-size: .78rem;
  color: var(--go-accent);
  border: 1px solid var(--go-accent-soft);
  border-radius: 999px;
  padding: .2rem .55rem;
}
.go-muted { color: var(--go-muted); font-size: .9rem; }

/* Go Catalog tab */
.go-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .85rem;
}
@media (min-width: 640px) {
  .go-cat-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.go-cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--go-fg);
  border: 1px solid var(--go-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--go-surface);
  min-height: 7.5rem;
}
.go-cat-card__img {
  display: block;
  height: 4.2rem;
  background-size: cover;
  background-position: center;
  background-color: #1e293b;
}
.go-cat-card__img--empty {
  background: linear-gradient(135deg, #134e4a 0%, #1e293b 100%);
}
.go-cat-card__body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .55rem .65rem .7rem;
}
.go-cat-card__body strong { font-size: .88rem; line-height: 1.25; }
.go-cat-card__desc {
  font-size: .72rem;
  color: var(--go-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.go-cat-card__meta {
  font-size: .7rem;
  color: var(--go-accent);
  margin-top: .15rem;
}

@media (min-width: 900px) {
  /* Desktop Go: order panel top, map with riders below */
  body.go-app.go-app--ride .go-main--ride {
    height: auto;
    min-height: calc(100dvh - var(--go-top-h) - var(--go-tab-h) - var(--go-safe-b));
    overflow: auto;
  }
  body.go-app.go-app--ride #rideShell.ride-shell {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body.go-app.go-app--ride .ride-panel {
    order: -1;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-height: none !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  body.go-app.go-app--ride .ride-map {
    order: 1;
    position: relative !important;
    inset: auto !important;
    height: min(55dvh, 520px) !important;
    min-height: 360px !important;
    width: 100% !important;
  }
  body.go-app.go-app--ride .ride-map-expand,
  body.go-app.go-app--ride .ride-sheet-handle {
    display: none !important;
  }
}
