:root {
  --adv-navy: #143d4a;
  --adv-navy-2: #0c2b35;
  --adv-coral: #df5d3d;
  --adv-gold: #f1bd4b;
  --adv-mint: #dff3ec;
  --adv-paper: #f7f6f2;
  --adv-line: #d9e1e3;
  --adv-ink: #14222c;
  --adv-muted: #62717a;
}

.history-adventure-page {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--adv-ink);
  background: #e9eef0;
}

.adventure-app {
  width: min(100%, 1120px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--adv-paper);
  box-shadow: 0 0 48px rgba(18, 40, 48, .12);
}

.adventure-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(14px, 3vw, 34px);
  border-bottom: 1px solid rgba(217, 225, 227, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.adventure-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--adv-ink);
  text-decoration: none;
}

.adventure-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.adventure-brand span {
  display: grid;
  min-width: 0;
}

.adventure-brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.adventure-brand small {
  margin-top: 2px;
  color: var(--adv-muted);
  font-size: 10px;
  font-weight: 700;
}

.adventure-review-link,
.adventure-button,
.adventure-text-button,
.adventure-tab,
.adventure-city-chip,
.adventure-place-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.adventure-review-link {
  padding: 9px 12px;
  color: var(--adv-navy);
  border: 1px solid #cbd8dc;
  background: #fff;
}

.adventure-review-link .ms {
  font-size: 19px;
}

.adventure-main {
  min-height: calc(100dvh - 156px);
}

.history-adventure-inline {
  margin: 18px 14px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid #d9e1e3;
  border-radius: 20px;
  background: var(--adv-paper);
  box-shadow: 0 18px 44px rgba(20, 61, 74, .12);
}

.history-adventure-inline[hidden] { display: none; }

.history-adventure-inline #historyAdventureInlineSwitch {
  padding: 14px 14px 0;
  background: #fff;
}

.history-adventure-inline #historyAdventureInlineSwitch .history-entry-switch {
  margin-bottom: 14px;
}

.history-adventure-inline .adventure-main,
.history-adventure-inline .adventure-auth-layout,
.history-adventure-inline .adventure-profile-screen {
  min-height: 0;
}

.history-adventure-inline .adventure-auth-layout,
.history-adventure-inline .adventure-city-grid {
  grid-template-columns: 1fr;
}

.history-adventure-inline .adventure-auth-panel {
  order: -1;
  padding: 28px 18px 32px;
}

.history-adventure-inline .adventure-auth-visual { min-height: 230px; }

.history-adventure-inline .adventure-member-hero {
  border-radius: 0;
}

.adventure-loading {
  display: grid;
  min-height: 54dvh;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--adv-muted);
  font-size: 13px;
  font-weight: 800;
}

.adventure-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dce5e7;
  border-top-color: var(--adv-coral);
  border-radius: 50%;
  animation: adventureSpin .8s linear infinite;
}

@keyframes adventureSpin { to { transform: rotate(360deg); } }

.adventure-auth-layout {
  display: grid;
  min-height: calc(100dvh - 156px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}

.adventure-auth-visual {
  position: relative;
  display: flex;
  min-height: 640px;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--adv-navy-2);
}

.adventure-auth-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.adventure-auth-visual::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(8, 30, 37, .12), rgba(8, 30, 37, .92));
}

.adventure-auth-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 64px);
}

.adventure-auth-kicker,
.adventure-hero-kicker,
.adventure-city-kicker {
  margin: 0 0 8px;
  color: var(--adv-gold);
  font-size: 12px;
  font-weight: 900;
}

.adventure-auth-copy h1 {
  margin: 0;
  font-size: clamp(31px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.adventure-auth-copy > p:last-of-type {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.75;
}

.adventure-city-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.adventure-city-preview span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 800;
}

.adventure-auth-panel {
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  background: #fff;
}

.adventure-auth-box {
  width: min(100%, 430px);
  margin: 0 auto;
}

.adventure-auth-box h2,
.adventure-profile-box h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.adventure-auth-box > p,
.adventure-profile-box > p {
  margin: 7px 0 20px;
  color: var(--adv-muted);
  font-size: 13px;
  line-height: 1.65;
}

.adventure-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--adv-line);
  border-radius: 8px;
  background: #eef3f4;
}

.adventure-tab {
  color: #667780;
  background: transparent;
}

.adventure-tab[aria-selected="true"] {
  color: #fff;
  background: var(--adv-navy);
}

.adventure-form {
  display: grid;
  gap: 13px;
}

.adventure-form-field {
  display: grid;
  gap: 6px;
}

.adventure-form-field span {
  color: #3e5059;
  font-size: 12px;
  font-weight: 900;
}

.adventure-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bdcbd0;
  border-radius: 8px;
  color: var(--adv-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.adventure-form input:focus {
  outline: 3px solid rgba(20, 61, 74, .13);
  border-color: var(--adv-navy);
}

.adventure-button {
  width: 100%;
  padding: 11px 15px;
  color: #fff;
  background: var(--adv-coral);
}

.adventure-button .ms {
  font-size: 19px;
}

.adventure-button[disabled],
.adventure-place-action[aria-disabled="true"] {
  color: #87959c;
  background: #e5ebed;
  cursor: default;
  pointer-events: none;
}

.adventure-privacy {
  display: flex;
  gap: 7px;
  margin: 2px 0 0;
  color: var(--adv-muted);
  font-size: 11px;
  line-height: 1.55;
}

.adventure-privacy .ms {
  flex: 0 0 auto;
  color: #397264;
  font-size: 17px;
}

.adventure-inline-action {
  min-height: 36px;
  justify-self: end;
  padding: 4px 0;
  border: 0;
  color: #48616b;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.adventure-inline-action[disabled] { color: #87959c; cursor: wait; }

.adventure-message {
  margin: 14px 0 0;
  padding: 10px 11px;
  border: 1px solid #b7dccf;
  border-radius: 8px;
  color: #17604c;
  background: #eefaf6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.adventure-message.is-error {
  border-color: #efc2bb;
  color: #a33c2e;
  background: #fff4f1;
}

.adventure-profile-screen {
  display: grid;
  min-height: calc(100dvh - 156px);
  place-items: center;
  padding: 34px 16px;
  background: linear-gradient(145deg, #e7f2ef, #f9f7f1 58%, #f8e9df);
}

.adventure-profile-box {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid var(--adv-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 45, 54, .12);
}

.adventure-profile-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--adv-navy);
}

.adventure-profile-icon .ms { font-size: 24px; }

.adventure-member-hero {
  position: relative;
  display: grid;
  min-height: 300px;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--adv-navy-2);
}

.adventure-member-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.adventure-member-hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(9, 35, 43, .94), rgba(9, 35, 43, .58) 65%, rgba(9, 35, 43, .2));
}

.adventure-member-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 740px);
  padding: clamp(28px, 5vw, 54px);
}

.adventure-member-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}

.adventure-member-hero p:not(.adventure-hero-kicker) {
  max-width: 600px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.7;
}

.adventure-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--adv-line);
  background: #fff;
}

.adventure-account-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.adventure-account-copy > .ms {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--adv-navy);
  background: var(--adv-mint);
  font-size: 21px;
}

.adventure-account-copy span:last-child {
  display: grid;
  min-width: 0;
}

.adventure-account-copy strong,
.adventure-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-account-copy strong { font-size: 13px; }
.adventure-account-copy small { margin-top: 2px; color: var(--adv-muted); font-size: 10px; }

.adventure-text-button {
  min-height: 38px;
  padding: 8px 10px;
  color: #52646d;
  border: 1px solid var(--adv-line);
  background: #fff;
}

.adventure-hub-content {
  padding: 28px clamp(16px, 4vw, 42px) 54px;
}

.adventure-subscription-band {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #365e68;
  border-radius: 8px;
  color: #fff;
  background: var(--adv-navy);
}

.adventure-subscription-band > .ms {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: var(--adv-navy);
  background: var(--adv-gold);
}

.adventure-subscription-copy { display: grid; }
.adventure-subscription-copy strong { font-size: 14px; }
.adventure-subscription-copy span { margin-top: 3px; color: #d9e7ea; font-size: 12px; }

.adventure-subscription-band .adventure-place-action {
  min-width: 128px;
  padding: 9px 13px;
  color: var(--adv-navy-2);
  background: var(--adv-gold);
}

.adventure-subscription-band.is-admin {
  border-color: #2d6d5d;
  background: #174f45;
}

.adventure-subscription-band.is-admin .adventure-place-action[aria-disabled="true"] {
  color: #173f38;
  background: var(--adv-gold);
}

.adventure-section-heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
}

.adventure-section-heading p {
  margin: 5px 0 0;
  color: var(--adv-muted);
  font-size: 13px;
  line-height: 1.6;
}

.adventure-city-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 17px 0 22px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.adventure-city-nav::-webkit-scrollbar { display: none; }

.adventure-city-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: #53656e;
  border: 1px solid var(--adv-line);
  background: #fff;
}

.adventure-city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}

.adventure-city-section {
  min-width: 0;
}

.adventure-city-cover {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(20, 61, 74, .14);
  border-radius: 8px;
  color: #fff;
  background: #173f49;
  box-shadow: 0 10px 25px rgba(20, 45, 54, .1);
}

.adventure-city-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adventure-city-cover::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(7, 25, 31, .05), rgba(7, 25, 31, .87));
}

.adventure-city-cover-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
}

.adventure-city-cover h3 {
  margin: 0;
  font-size: 24px;
}

.adventure-city-cover p:not(.adventure-city-kicker) {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.5;
}

.adventure-place-list {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.adventure-place-row {
  display: grid;
  min-height: 176px;
  grid-template-columns: 116px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--adv-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 45, 54, .07);
}

.adventure-place-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #dfe9e8;
}

.adventure-place-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adventure-place-media::after {
  position: absolute;
  inset: 45% 0 0;
  content: '';
  background: linear-gradient(180deg, transparent, rgba(4, 22, 29, .72));
}

.adventure-place-order {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 38, 47, .88);
  font-size: 10px;
  font-weight: 900;
}

.adventure-place-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 15px;
}

.adventure-place-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--adv-coral);
  font-size: 10px;
  font-weight: 900;
}

.adventure-place-label .ms { font-size: 15px; }

.adventure-place-copy h4 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.adventure-place-copy p {
  margin: 4px 0 0;
  color: var(--adv-muted);
  font-size: 12px;
  line-height: 1.5;
}

.adventure-place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.adventure-place-meta > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border: 1px solid #d6e3e5;
  border-radius: 999px;
  color: #3d5962;
  background: #f4f8f8;
  font-size: 10px;
  font-weight: 800;
}

.adventure-place-meta .ms { font-size: 14px; }

.adventure-place-action {
  display: inline-flex;
  min-width: 102px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 9px 12px;
  color: #fff;
  background: var(--adv-coral);
}

.adventure-place-action.is-purchase {
  color: #8c3b1e;
  border: 1px solid #edb079;
  background: #fff5e9;
}

.adventure-return-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid #9cd0bd;
  border-radius: 8px;
  color: #155d48;
  background: #edf9f4;
  font-size: 12px;
  font-weight: 800;
}

.adventure-return-banner a { color: inherit; font-weight: 900; }

.adventure-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 18px;
  color: #74828a;
  border-top: 1px solid var(--adv-line);
  background: #fff;
  font-size: 11px;
}

.adventure-noscript {
  padding: 20px;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 820px) {
  .adventure-auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .adventure-auth-panel {
    order: -1;
    padding: 32px 20px 36px;
  }

  .adventure-auth-box { width: min(100%, 520px); }
  .adventure-auth-visual { min-height: 280px; }
  .adventure-city-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .history-adventure-inline {
    margin: 18px 8px max(22px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .history-adventure-inline #historyAdventureInlineSwitch { padding: 10px 10px 0; }
  .adventure-app { box-shadow: none; }
  .adventure-topbar {
    min-height: 60px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  }

  .adventure-brand { gap: 8px; }
  .adventure-brand img { width: 34px; height: 34px; }
  .adventure-brand strong { font-size: 13px; }
  .adventure-brand small { font-size: 9px; }
  .adventure-review-link { min-width: 42px; min-height: 42px; padding: 8px 10px; }
  .adventure-review-link span:last-child { display: none; }
  .adventure-main { min-height: calc(100dvh - 142px); }
  .adventure-auth-panel { align-items: flex-start; padding: 24px 16px 28px; }
  .adventure-auth-box h2,
  .adventure-profile-box h1 { font-size: 22px; }
  .adventure-auth-box > p,
  .adventure-profile-box > p { margin-bottom: 16px; font-size: 12px; }
  .adventure-auth-tabs { margin-bottom: 16px; }
  .adventure-tab { min-height: 44px; }
  .adventure-form { gap: 12px; }
  .adventure-form input { min-height: 50px; font-size: 16px; }
  .adventure-button { min-height: 50px; }
  .adventure-auth-visual { min-height: 230px; }
  .adventure-auth-copy { padding: 22px 18px; }
  .adventure-auth-copy h1 { font-size: 28px; }
  .adventure-auth-copy > p:last-of-type { margin-top: 9px; font-size: 12px; line-height: 1.55; }
  .adventure-city-preview { gap: 5px; margin-top: 13px; }
  .adventure-city-preview span { padding: 5px 8px; font-size: 10px; }
  .adventure-profile-screen { min-height: calc(100dvh - 142px); padding: 22px 12px; }
  .adventure-profile-box { padding: 22px 18px; }
  .adventure-member-hero { min-height: 235px; }
  .adventure-member-hero::after { background: linear-gradient(180deg, rgba(9, 35, 43, .28), rgba(9, 35, 43, .92)); }
  .adventure-member-hero-inner { padding: 24px 16px; }
  .adventure-member-hero h1 { font-size: 28px; }
  .adventure-member-hero p:not(.adventure-hero-kicker) { margin-top: 8px; font-size: 12px; line-height: 1.55; }
  .adventure-account-bar { gap: 8px; padding: 10px 12px; }
  .adventure-account-copy { gap: 8px; }
  .adventure-account-copy > .ms { width: 34px; height: 34px; font-size: 19px; }
  .adventure-account-copy strong { font-size: 12px; }
  .adventure-account-copy small { font-size: 9.5px; }
  .adventure-account-bar .adventure-text-button { min-height: 40px; flex: 0 0 auto; }
  .adventure-hub-content { padding: 20px 12px max(42px, env(safe-area-inset-bottom)); }
  .adventure-subscription-band { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; margin-bottom: 22px; padding: 13px; }
  .adventure-subscription-band > .ms { width: 42px; height: 42px; }
  .adventure-subscription-band .adventure-place-action { grid-column: 1 / -1; width: 100%; }
  .adventure-section-heading h2 { font-size: 21px; }
  .adventure-section-heading p { font-size: 12px; }
  .adventure-city-nav { margin: 14px 0 18px; }
  .adventure-city-chip { min-height: 40px; }
  .adventure-city-grid { gap: 30px; }
  .adventure-city-cover { min-height: 175px; }
  .adventure-city-cover-copy { padding: 16px; }
  .adventure-city-cover h3 { font-size: 22px; }
  .adventure-place-list { gap: 14px; padding-top: 14px; }
  .adventure-place-row { min-height: 184px; grid-template-columns: 104px minmax(0, 1fr); }
  .adventure-place-body { padding: 14px; }
  .adventure-place-copy h4 { font-size: 17px; }
  .adventure-place-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .adventure-place-action { width: 100%; min-height: 48px; }
  .adventure-return-banner { display: grid; align-items: stretch; }
  .adventure-return-banner a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .adventure-footer {
    min-height: 78px;
    flex-direction: column;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (max-width: 350px) {
  .adventure-brand small { display: none; }
  .adventure-auth-panel { padding-inline: 12px; }
  .adventure-auth-copy { padding-inline: 14px; }
  .adventure-city-preview span { padding-inline: 8px; font-size: 11px; }
  .adventure-account-copy > .ms { display: none; }
  .adventure-place-row { grid-template-columns: 1fr; }
  .adventure-place-media { min-height: 118px; }
}
