*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --navy: #1a2b48;
  --navy-light: #243a5e;
  --text: #1c1917;
  --text-muted: #78716c;
  --white: #ffffff;
  --hero-overlay: rgba(15, 10, 5, 0.55);
  --border: #e2e8f0;
  --surface: #f8fafc;
  --orange-light: #ffedd5;
}

html, body { height: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.1rem 0;
}

.site-flash {
  position: relative;
  z-index: 20;
}

.site-header:not(.site-header--solid) ~ .site-flash {
  position: fixed;
  top: 5.5rem;
  left: 0;
  right: 0;
}

.site-header:not(.site-header--solid) ~ .site-flash .alert {
  max-width: 40rem;
  margin: 0 auto 0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.logo span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.1rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--white);
}

.nav-main a.is-active {
  box-shadow: inset 0 -2px 0 var(--orange);
  padding-bottom: 0.15rem;
}

.nav-main a.nav-cta {
  box-shadow: none;
  padding: 0.55rem 1rem;
  color: var(--white);
}

.nav-main a.nav-cta:hover {
  color: var(--white);
  filter: brightness(1.05);
}

.nav-user {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.nav-account {
  position: relative;
}

.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.nav-account-toggle .nav-user {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.nav-account-caret {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 10.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  padding: 0.4rem;
  z-index: 30;
}

.nav-account-menu a,
.nav-account-menu .nav-text-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-account-menu a:hover,
.nav-account-menu .nav-text-button:hover {
  background: var(--surface);
  color: var(--navy);
}

.nav-account-menu .nav-logout {
  display: block;
  margin: 0;
}

.nav-account-menu .nav-text-button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header-row .lead {
  margin-bottom: 0;
}

.my-trip-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.my-trip-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .my-trip-card-actions {
    width: 100%;
  }
}

.my-trips-list {
  display: grid;
  gap: 1.25rem;
}

.my-trip {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.my-trip:hover {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--border));
  transform: translateY(-1px);
}

.my-trip-media {
  display: block;
  position: relative;
  min-height: 8rem;
  background: #dbe3ef;
}

.my-trip-media img,
.my-trip-media-fallback {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  display: block;
}

.my-trip-media-fallback {
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.35), transparent 55%),
    linear-gradient(180deg, #243a5e, #1a2b48);
}

.my-trip--pass {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--orange) 55%, var(--border));
  background: color-mix(in srgb, var(--orange-light) 40%, var(--white));
}

.my-trip--pass:hover {
  border-color: var(--orange);
}

.my-trip-media-fallback--pass {
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.55), transparent 50%),
    linear-gradient(180deg, #1a2b48, #0f172a);
}

.my-trip-body {
  padding: 0.95rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.my-trip-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.my-trip-top .journey-badges {
  flex: 1;
  min-width: 0;
}

.my-trip-edit {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--text-muted, #64748b);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.my-trip-edit:hover {
  color: var(--navy, #0f172a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.my-trip-body h2 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--navy, #0f172a);
}

.my-trip-body h2 a {
  color: inherit;
  text-decoration: none;
}

.my-trip-body h2 a:hover {
  color: var(--orange-dark, #c2410c);
}

.my-trip-blurb {
  margin: 0.15rem 0 0;
  color: var(--text-muted, #475569);
  font-size: 0.95rem;
  line-height: 1.45;
}

.my-trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.my-trip-post {
  flex: 1 1 100%;
  width: 100%;
  font-weight: 700;
  justify-content: center;
  text-align: center;
}

@media (max-width: 720px) {
  .my-trip {
    grid-template-columns: 1fr;
  }

  .my-trip-media,
  .my-trip-media img,
  .my-trip-media-fallback {
    min-height: 10rem;
    max-height: 12rem;
  }

  .my-trip-actions .btn:not(.my-trip-post) {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
  }
}

.nav-logout {
  display: inline;
  margin: 0;
}

.nav-text-button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.nav-text-button:hover {
  color: var(--white);
}

.site-header--solid {
  position: relative;
  background: var(--navy);
}

.page-light {
  background: #f4f6f9;
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
}

.form-page {
  padding: 2.5rem 0 4rem;
}

.form-container {
  width: min(30rem, 100% - 2rem);
  max-width: 30rem;
  margin-inline: auto;
}

.form-container--wide {
  width: min(48rem, 100% - 2.5rem);
  max-width: 48rem;
}

.form-container--trip {
  width: min(70rem, 100% - 2.5rem);
  max-width: 70rem;
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem 1.15rem 1.85rem;
  box-shadow:
    0 1px 2px rgba(26, 43, 72, 0.04),
    0 12px 32px rgba(26, 43, 72, 0.06);
}

.form-page .form-container:not(.form-container--wide):not(.form-container--trip) {
  background: var(--white);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow:
    0 1px 2px rgba(26, 43, 72, 0.04),
    0 12px 32px rgba(26, 43, 72, 0.06);
}

.explore-page {
  padding: 2.5rem 0 4rem;
}

.explore-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.explore-page .lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.35rem;
}

.explore-search {
  margin-bottom: 1.25rem;
}

.explore-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.45rem 0.45rem 0.45rem 0.95rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.explore-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.explore-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.55rem 0;
}

.explore-search-bar input[type="search"]:focus {
  outline: none;
}

.explore-search-bar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.explore-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.explore-filter:hover {
  color: var(--navy);
  border-color: color-mix(in srgb, var(--navy) 25%, var(--border));
}

.explore-filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.explore-results-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.explore-trip-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.explore-trip {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.explore-trip:hover {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--border));
  transform: translateY(-1px);
}

.explore-trip-media {
  min-height: 7.5rem;
  background: #dbe3ef;
}

.explore-trip-media img,
.explore-trip-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-trip-media-fallback {
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.35), transparent 55%),
    linear-gradient(180deg, #243a5e, #1a2b48);
}

.explore-trip-body {
  padding: 0.95rem 1.05rem 1.05rem 0;
  min-width: 0;
}

.explore-trip-body h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0.35rem 0 0.25rem;
}

.explore-trip-blurb {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

@media (max-width: 640px) {
  .explore-search-bar {
    flex-wrap: wrap;
    padding: 0.65rem;
  }

  .explore-search-bar input[type="search"] {
    width: 100%;
    flex: 1 1 100%;
    order: 2;
  }

  .explore-search-icon {
    order: 1;
  }

  .explore-search-bar .btn {
    order: 3;
    width: 100%;
  }

  .explore-trip {
    grid-template-columns: 1fr;
  }

  .explore-trip-media {
    min-height: 10rem;
  }

  .explore-trip-body {
    padding: 0 1rem 1rem;
  }
}

.empty-state {
  padding: 2.5rem 0;
}

.empty-state h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 32rem;
}

.trip-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

.trip-card h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.trip-route {
  color: var(--orange-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 43, 72, 0.35) 0%, var(--hero-overlay) 55%, rgba(26, 43, 72, 0.92) 100%),
    linear-gradient(90deg, rgba(26, 43, 72, 0.55), transparent 55%);
}

.hero-layout {
  position: relative;
  z-index: 1;
}

.hero-layout--phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  column-gap: 2.5rem;
  row-gap: 1.75rem;
}

.hero-copy {
  max-width: 38rem;
}

.hero-brand {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.hero-brand em {
  font-style: normal;
  color: var(--orange);
}

.hero-phone {
  width: 100%;
  max-width: 280px;
  justify-self: end;
  align-self: center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.phone-frame {
  background: #111;
  border-radius: 32px;
  padding: 10px;
  border: 3px solid #333;
}

.phone-screen {
  background: #e7e5e4;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  position: relative;
}

.phone-map,
.phone-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.phone-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-cover--empty {
  background:
    linear-gradient(180deg, #f97316 0%, #1a2b48 100%);
}

#hero-phone-map {
  width: 100%;
  height: 100%;
  background: #e7e5e4;
}

#hero-phone-map .leaflet-control-attribution {
  font-size: 0.45rem;
  line-height: 1.2;
  padding: 0 4px 2px;
  background: rgba(255, 255, 255, 0.82);
  max-width: 72%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-phone-pin {
  background: transparent;
  border: none;
}

.hero-phone-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.phone-map-fade {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.phone-card {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  padding: 0.7rem 0.75rem 0.75rem;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.phone-card-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}

.phone-card strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.phone-card p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.phone-card-actions {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.phone-card-actions .btn {
  width: 100%;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
}

.hero-copy h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-white:hover {
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: #cbd5e1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .hero-layout--phone {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    column-gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .hero {
    align-items: center;
    padding-top: 6rem;
  }

  .hero-layout--phone {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    justify-self: center;
    max-width: 220px;
  }
}

.page-home {
  background: #f4f6f9;
}

.page-home .site-footer {
  margin-top: 0;
}

.home-featured {
  padding: 3.25rem 0 2.25rem;
}

.home-other-trips {
  padding: 2.25rem 0 3.5rem;
}

.home-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.4rem;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.home-section-head h2,
.home-featured-body h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

.home-link-arrow {
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.home-link-arrow:hover {
  text-decoration: underline;
}

.home-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.home-featured-media {
  min-height: 16rem;
  background: #dbe3ef;
}

.home-featured-media img,
.home-featured-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-featured-media-fallback {
  min-height: 16rem;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.4), transparent 55%),
    linear-gradient(180deg, #243a5e, #1a2b48);
}

.home-featured-body {
  padding: 1.35rem 1.5rem 1.5rem 0.25rem;
}

.home-featured-body .journey-dates {
  margin-bottom: 0.75rem;
}

.home-featured-blurb {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.home-featured-update {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.home-featured-update span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.home-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-trip-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-trip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 43, 72, 0.08);
}

.home-trip-card-media {
  aspect-ratio: 16 / 10;
  background: #dbe3ef;
}

.home-trip-card-media img,
.home-trip-card-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-trip-card-fallback {
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.35), transparent 55%),
    linear-gradient(180deg, #243a5e, #1a2b48);
}

.home-trip-card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.home-trip-card-body .journey-badges {
  margin-bottom: 0.35rem;
}

.home-trip-card-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0;
}

.home-trip-card-body .trip-route {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.home-trip-card-body p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}

@media (max-width: 900px) {
  .home-featured-card,
  .home-trip-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-featured-card,
  .home-trip-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-body {
    padding: 0 1.15rem 1.25rem;
  }
}

.form-section {
  margin: 2rem 0 1rem;
  border: 0;
  padding: 0;
}

.form-section legend {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.section-hint {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 42rem;
}

.section-hint a {
  color: var(--navy);
  text-decoration: underline;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.cover-editor {
  margin-bottom: 1.75rem;
}

.cover-editor-empty {
  padding: 1.15rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.cover-editor-empty-copy {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cover-editor-frame {
  position: relative;
}

.cover-editor-actions {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cover-editor-remove-form {
  margin: 0;
}

.btn-cover-action {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 28, 48, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-cover-action:hover {
  background: rgba(18, 28, 48, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-cover-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn-cover-action--danger {
  background: rgba(120, 32, 32, 0.78);
}

.btn-cover-action--danger:hover {
  background: rgba(140, 36, 36, 0.92);
}

.cover-editor-picker {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.cover-editor-picker[hidden] {
  display: none !important;
}

.cover-suggestions-title {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 1rem 0 0.35rem;
}

.form-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-page .lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.trip-form .field {
  margin-bottom: 1rem;
}

.form-page .field {
  margin-bottom: 1rem;
}

.form-page .field > label,
.trip-form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-page .field > input,
.form-page .field > textarea,
.form-page .field > select,
.trip-form input,
.trip-form textarea,
.trip-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: var(--white);
  box-sizing: border-box;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trip-form .field-row {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-container--trip {
    padding: 2rem 2.25rem 2.5rem;
  }

  .form-container--trip .trip-form .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .form-container--trip .settings-group {
    margin-top: 1.25rem;
  }
}

.field-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.field-hint {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.field-hint a {
  color: var(--navy);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.field-inline input {
  flex: 1;
  min-width: 12rem;
}

.field-check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.field-check .check-label input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.field-check .field-hint {
  margin-top: 0.35rem;
  margin-left: 1.55rem;
}

.settings-group {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem 1.35rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--white)) 0%, var(--white) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 85%, transparent);
}

.settings-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.settings-group .section-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.settings-group .field-compact {
  margin: 0.15rem 0 0.25rem;
  max-width: 14rem;
}

.settings-group .field-compact label {
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-details {
  padding: 1rem 1.1rem 1.1rem;
  margin-top: 1.25rem;
}

.profile-details-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
}

.profile-details-form .field {
  margin-bottom: 0;
}

.profile-details-form .field > label {
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.profile-details-form .field > input,
.profile-details-form .field > select {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}

.profile-details-form .form-actions {
  margin-top: 0.35rem;
}

@media (max-width: 560px) {
  .profile-details-form .field-row {
    grid-template-columns: 1fr;
  }
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.check-row:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 40%, var(--border));
  background: color-mix(in srgb, var(--orange-light) 35%, var(--white));
}

.check-row:has(input[type="checkbox"]:focus-visible) {
  outline: 2px solid color-mix(in srgb, var(--orange) 55%, transparent);
  outline-offset: 2px;
}

.check-row:has(input[type="checkbox"]:checked) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 45%, var(--border));
  background: color-mix(in srgb, var(--orange-light) 55%, var(--white));
}

.trip-form .check-row input[type="checkbox"],
.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--navy) 28%, var(--border));
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.trip-form .check-row input[type="checkbox"]::before,
.check-row input[type="checkbox"]::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  transform: scale(0);
  transition: transform 0.12s ease;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
  background: var(--white);
}

.trip-form .check-row input[type="checkbox"]:checked,
.check-row input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.trip-form .check-row input[type="checkbox"]:checked::before,
.check-row input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.check-row-text {
  flex: 1;
  line-height: 1.35;
  padding-top: 0.05rem;
}

.optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9em;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.empty-state-cta {
  margin-top: 1rem;
}

.trip-card h2 a {
  color: inherit;
}

.trip-card h2 a:hover {
  color: var(--orange-dark);
}

.trip-card-cta {
  margin-top: 0.75rem;
  font-weight: 600;
}

.trip-card-cta a {
  color: var(--navy);
}

.trip-card-cta a:hover {
  color: var(--orange-dark);
}

.journey-page {
  padding-bottom: 4rem;
}

.journey-dash-hero {
  position: relative;
  min-height: clamp(18rem, 42vw, 28rem);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.journey-dash-hero--plain {
  min-height: 16rem;
}

.journey-dash-hero .journey-hero-media,
.journey-dash-hero .journey-hero-overlay {
  position: absolute;
  inset: 0;
}

.journey-dash-hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 23rem);
  gap: 1.5rem;
  align-items: end;
}

.journey-dash-back {
  grid-column: 1 / -1;
  margin: 0;
}

.journey-dash-back a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.92rem;
}

.journey-dash-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
}

.journey-page .journey-dash-title-row h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  margin: 0;
  color: var(--white);
  letter-spacing: -0.03em;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.45);
}

.journey-dash-hero .badge-status.badge-active {
  background: #166534;
  color: #dcfce7;
}

.journey-dash-byline,
.journey-dash-lede,
.journey-dash-route {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.55rem;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.4);
}

.journey-dash-lede {
  max-width: 36rem;
}

.journey-dash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.journey-dash-tags .badge {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.82);
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  font-weight: 600;
}

.journey-dash-statcard {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.15rem;
}

.journey-dash-statcard-km {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.journey-dash-statcard-km strong {
  display: inline;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: none;
  font-weight: 800;
}

.journey-dash-progress {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin: 0.9rem 0 0;
}

.journey-dash-progress span {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--orange);
}

.journey-dash-statcard-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-top: 0.95rem;
}

.journey-dash-statcard-rule {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.35);
}

.journey-dash-stat {
  margin: 0;
}

.journey-dash-stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

.journey-dash-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 1.2rem;
}

.dash-card h2 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.85rem;
}

.dash-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dash-card-head h2 {
  margin: 0;
}

.dash-card-head time,
.dash-card-head a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dash-map-card .journey-map {
  height: min(26rem, 56vh);
  border-radius: 12px;
}

.dash-latest-place {
  margin: 0 0 0.55rem;
  color: var(--orange-dark);
  font-weight: 700;
}

.dash-latest-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #dbe3ef;
}

.dash-latest-media img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.dash-latest-text {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.dash-latest-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.95rem;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 0.5rem;
  margin-bottom: 1.15rem;
  text-align: center;
}

.dash-metrics span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-metrics strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.dash-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.dash-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.dash-highlights li {
  display: grid;
  gap: 0.1rem;
  padding-left: 1.7rem;
  position: relative;
}

.dash-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--orange);
}

.dash-highlights strong {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dash-highlights span {
  color: var(--navy);
  font-weight: 700;
}

.dash-highlights small {
  color: var(--text-muted);
}

.dash-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 5.5rem;
}

.dash-person p {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 0.92rem;
}

.dash-muted {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.dash-empty {
  padding: 0.5rem 0 0;
}

.dash-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  background: #f4ece3;
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
}

.dash-cta h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.dash-cta-copy p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

.dash-cta-art {
  font-size: 2.8rem;
  text-align: center;
}

.dash-cta-facts {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.dash-cta-facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.dash-cta-facts dt {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.dash-cta-facts dd {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 960px) {
  .journey-dash-hero .journey-hero-overlay {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.48) 42%, rgba(15, 23, 42, 0.78) 100%);
  }

  .journey-dash-hero-inner,
  .dash-grid,
  .dash-social-grid,
  .dash-cta {
    grid-template-columns: 1fr;
  }

  .dash-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.journey-hero {
  position: relative;
  height: clamp(12rem, 32vw, 22rem);
  overflow: hidden;
}

.journey-hero-media,
.journey-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.journey-hero-media img {
  object-fit: cover;
  display: block;
}

.journey-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 43, 72, 0.15), rgba(26, 43, 72, 0.55));
}

.journey-dash-hero .journey-hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 42%, rgba(15, 23, 42, 0.18) 72%, rgba(15, 23, 42, 0.08) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.22) 38%, rgba(15, 23, 42, 0.72) 100%);
}

.journey-body {
  padding-top: 1.5rem;
}

.journey-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16.5rem, 0.75fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.journey-split-main {
  min-width: 0;
}

.journey-split-main .journey-live {
  margin-top: 0;
}

.journey-split-main .journey-map {
  height: min(28rem, 62vh);
}

.journey-split-aside {
  min-width: 0;
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding-bottom: 0.5rem;
}

.journey-split-aside .feed-post {
  margin-bottom: 0.75rem;
}

.journey-split-aside .feed-post-header {
  padding: 0.8rem 0.9rem 0.45rem;
}

.journey-split-aside .feed-post-body {
  padding: 0 0.9rem 0.85rem;
}

.journey-social-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: transparent;
}

.journey-social-empty p {
  margin: 0;
  color: var(--text-muted);
}

.feed-avatar--comment {
  background: #e0ecff;
  color: #1d4ed8;
}

.feed-comment {
  border-color: #dbe7f8;
}

@media (max-width: 860px) {
  .journey-split {
    grid-template-columns: 1fr;
  }

  .journey-split-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

.journey-kicker {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.journey-kicker a {
  color: var(--navy);
  font-weight: 600;
}

.journey-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--navy);
}

.badge-status.badge-active {
  background: #ffedd5;
  color: var(--orange-dark);
}

.badge-status.badge-completed {
  background: #dcfce7;
  color: #166534;
}

.badge-status.badge-planning {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-private {
  background: #fee2e2;
  color: #991b1b;
}

.journey-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.journey-route {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.journey-dates {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.journey-blurb {
  max-width: 40rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.journey-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.journey-tabs {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: #e8edf5;
  gap: 0.15rem;
}

.journey-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.journey-tab.is-active {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.journey-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.journey-public-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.journey-public-preview-banner p {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}

.journey-menu {
  position: relative;
}

.journey-menu-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.journey-menu-toggle:hover {
  border-color: color-mix(in srgb, var(--navy) 25%, var(--border));
  background: var(--surface);
}

.journey-menu-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 10.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  padding: 0.4rem;
  z-index: 30;
}

.journey-menu-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.journey-menu-panel a:hover {
  background: var(--surface);
}

.journey-notifications-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.journey-notifications-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.journey-notifications-badge[hidden] {
  display: none;
}

.journey-notifications-panel {
  min-width: min(22rem, calc(100vw - 2.5rem));
  max-height: min(24rem, 70vh);
  overflow: auto;
  padding: 0.55rem;
}

.journey-notifications-title {
  margin: 0 0 0.4rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journey-notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.journey-notifications-panel a.journey-notifications-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-weight: 500;
}

.journey-notifications-item.is-unread {
  background: #fff7ed;
}

.journey-notifications-icon {
  flex-shrink: 0;
  width: 1.6rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--navy);
}

.journey-notifications-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.journey-notifications-copy strong {
  font-size: 0.88rem;
}

.journey-notifications-copy span,
.journey-notifications-copy time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.journey-notifications-empty {
  margin: 0;
  padding: 0.65rem 0.55rem 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.journey-panel[hidden] {
  display: none;
}

.journey-map-edit {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.journey-map-edit a {
  color: var(--navy);
}

.journey-map-edit a:hover {
  color: var(--orange-dark);
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.bot-questions {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 55%);
  border: 1px solid #c7d7f5;
  border-radius: 16px;
}

.bot-questions-header {
  margin-bottom: 0.85rem;
}

.bot-questions-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy);
}

.bot-questions-lead {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.bot-questions-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}

.bot-questions-stats > div {
  background: var(--white);
  border: 1px solid #c7d7f5;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: var(--navy);
}

.bot-questions-unknown-stat {
  border-color: #fdba74;
  background: #fff7ed;
}

.bot-questions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.bot-questions-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
}

.bot-questions-item.is-unknown {
  border-color: #fdba74;
}

.bot-questions-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.bot-questions-text {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
}

.bot-questions-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bot-questions-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post-bot-question-hint {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.4;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.privacy-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-cheer--private {
  border-left-color: #64748b;
}

.journey-owner-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.journey-updates {
  margin-top: 0.35rem;
  padding-top: 0;
}

.journey-updates h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section-heading-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.post-prompt-card {
  margin: 0 0 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.post-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-prompt-row .btn {
  flex-shrink: 0;
}

.post-prompt-launcher {
  flex: 1;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.post-prompt-launcher:hover {
  border-color: color-mix(in srgb, var(--navy) 25%, var(--border));
  background: #eef2f7;
}

@media (max-width: 640px) {
  .post-prompt-row {
    flex-wrap: wrap;
  }

  .post-prompt-row .btn {
    width: 100%;
  }
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.post-modal-open,
html.post-modal-open body {
  overflow: hidden;
}

.post-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100vw - 1.5rem, 32rem);
  max-height: min(92vh, 40rem);
  height: fit-content;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: visible;
}

.post-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.post-modal-form {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 40rem);
}

.post-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem 3.25rem;
  border-bottom: 1px solid var(--border);
}

.post-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}

.post-modal-close {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.post-modal-close:hover {
  background: #e8edf5;
  color: var(--navy);
}

.post-modal-author {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem 0.35rem;
}

.post-modal-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.post-modal-author-name {
  color: var(--navy);
  font-size: 0.98rem;
}

.post-audience {
  position: relative;
}

.post-audience-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  background: #e8edf5;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem 0.28rem 0.45rem;
  cursor: pointer;
}

.post-audience-toggle:hover {
  background: #dce5f2;
}

.post-audience-icon {
  display: inline-flex;
}

.post-audience-caret {
  opacity: 0.7;
}

.post-audience-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 5;
  min-width: 15.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.post-audience-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}

.post-audience-option:hover,
.post-audience-option.is-selected {
  background: var(--surface);
}

.post-audience-option strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.post-audience-option small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.post-audience-option-icon {
  color: var(--navy);
  margin-top: 0.1rem;
}

.post-modal-alert {
  margin: 0.65rem 1.15rem 0;
}

.post-modal-body {
  padding: 0.35rem 1.15rem 0.75rem;
  overflow: auto;
}

.post-modal-textarea {
  width: 100%;
  border: none;
  resize: none;
  min-height: 7.5rem;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  background: transparent;
  padding: 0.35rem 0;
}

.post-modal-textarea:focus {
  outline: none;
}

.post-modal-textarea::placeholder {
  color: #9ca3af;
}

.post-modal-char {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.post-modal-media {
  margin-top: 0.75rem;
}

.post-modal-media:not(.has-files) {
  display: none;
}

.post-modal-location {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.post-modal-addons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1.15rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.post-modal-media-hint {
  margin: 0.45rem 1.15rem 0;
}

.post-modal-addons-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.post-modal-addon-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.post-modal-addon {
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.post-modal-addon[data-post-add-location] {
  color: #dc2626;
}

.post-modal-addon:hover,
.post-modal-addon[aria-pressed="true"] {
  background: var(--surface);
}

.post-modal-footer {
  padding: 0.9rem 1.15rem 1.15rem;
}

.post-modal-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .post-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .post-modal-form {
    max-height: 100vh;
  }

  .post-location-field {
    flex-wrap: wrap;
  }
}

.feed-post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 1rem;
  scroll-margin-top: 5.5rem;
}

.feed-post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.75rem;
}

.feed-post-author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.feed-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.feed-post-name {
  color: var(--navy);
  display: block;
}

.feed-post-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.feed-day-badge {
  font-weight: 700;
  color: var(--orange-dark);
}

.feed-post-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-muted {
  background: #e2e8f0;
  color: #475569;
}

.feed-delete {
  color: #b91c1c;
  font-size: 0.85rem;
}

.feed-post-visuals {
  background: var(--surface);
}

.feed-post-visuals--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-height: 14rem;
}

.feed-post-visuals--split .feed-post-media,
.feed-post-visuals--split .feed-post-map {
  min-height: 14rem;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  aspect-ratio: auto;
}

.feed-post-visuals--split .feed-post-media-item,
.feed-post-visuals--split .feed-post-media-item img,
.feed-post-visuals--split .feed-post-map-image,
.feed-post-visuals--split .feed-post-map-canvas {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 14rem;
  object-fit: cover;
}

.feed-post-visuals--split .feed-post-media--grid {
  height: 100%;
  gap: 2px;
}

.feed-post-visuals--split .feed-post-media--grid .feed-post-media-item img {
  max-height: none;
  aspect-ratio: auto;
  min-height: 0;
}

.feed-post-media {
  background: var(--surface);
}

.feed-post-media-item img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.feed-post-media--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.feed-post-media--grid .feed-post-media-item img {
  max-height: 200px;
  aspect-ratio: 1;
}

.feed-post-body {
  padding: 0.85rem 1.15rem 1.15rem;
}

.feed-post-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--orange-dark);
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.feed-post-location a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.feed-post-location a:hover {
  color: var(--navy);
}

.feed-post-map {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: #dbe3ef;
  aspect-ratio: 16 / 7;
  min-height: 11rem;
}

.feed-post-map:hover {
  outline: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  outline-offset: -1px;
}

.feed-post-map-image,
.feed-post-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feed-post-map-canvas {
  min-height: 11rem;
}

.feed-post-map-hit {
  position: absolute;
  inset: 0;
  z-index: 400;
}

.feed-post-map-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 28, 48, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.feed-map-pin {
  background: transparent;
  border: none;
}

.feed-map-pin-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin: 3px;
  border-radius: 999px;
  background: var(--orange);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

@media (max-width: 640px) {
  .feed-post-visuals--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feed-post-visuals--split .feed-post-media,
  .feed-post-visuals--split .feed-post-map,
  .feed-post-visuals--split .feed-post-media-item img,
  .feed-post-visuals--split .feed-post-map-image,
  .feed-post-visuals--split .feed-post-map-canvas {
    min-height: 12rem;
  }
}

.feed-post-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.feed-post-text {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.55;
}

.journey-updates-empty {
  padding: 1.5rem 0 0;
}

.journey-updates-empty h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.post-compose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
}

.post-compose-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}

.post-compose-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--navy);
}

.post-compose-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.post-media-error {
  color: #b91c1c;
  font-weight: 600;
}

.post-media-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.post-media-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.post-media-add,
.post-media-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  flex-shrink: 0;
}

.post-media-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 2px dashed var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.post-media-add:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-light);
}

.post-media-add svg {
  width: 22px;
  height: 22px;
}

.post-media-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-body-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.post-body-input {
  width: 100%;
  min-height: 120px;
  border: none;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  background: transparent;
}

.post-body-input:focus {
  outline: none;
}

.post-body-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0.75rem 0.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.post-char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.post-char-count.is-near-limit {
  color: var(--orange-dark);
}

.post-location-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  background: var(--white);
  flex-wrap: wrap;
}

.post-location-field svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.post-location-input {
  flex: 1;
  border: none;
  font: inherit;
  font-size: 0.92rem;
  min-width: 8rem;
  background: transparent;
}

.post-location-input:focus {
  outline: none;
}

.btn-danger-text {
  color: #b91c1c;
}

.post-visibility-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-visibility-option {
  cursor: pointer;
}

.post-visibility-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.post-visibility-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
}

.post-visibility-card strong {
  font-size: 0.92rem;
  color: var(--navy);
}

.post-visibility-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-visibility-option input:checked + .post-visibility-card {
  border-color: var(--orange);
  background: var(--orange-light);
}

.post-compose-actions {
  padding: 0.5rem 0 1rem;
}

.crew-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.crew-section h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.crew-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crew-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.crew-cancel-form {
  margin-left: auto;
}

.crew-invite-form {
  margin-top: 1rem;
}

.invite-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.invite-cover img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.invite-card-body {
  padding: 1.5rem 1.4rem 1.75rem;
}

.invite-note {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--orange);
  background: var(--orange-light);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.trip-cover-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.trip-cover-upload {
  display: block;
}

.trip-cover-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 220px;
  padding: 2rem 1.5rem;
  margin: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(26, 43, 72, 0.03) 0%, rgba(249, 115, 22, 0.05) 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(26, 43, 72, 0.025),
      rgba(26, 43, 72, 0.025) 10px,
      transparent 10px,
      transparent 20px
    );
  transition: background 0.15s, border-color 0.15s;
}

.trip-cover-empty[hidden],
.trip-cover-pending[hidden] {
  display: none !important;
}

.trip-cover-dropzone:hover,
.trip-cover-dropzone.is-dragover {
  background:
    linear-gradient(135deg, rgba(26, 43, 72, 0.05) 0%, rgba(249, 115, 22, 0.08) 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(26, 43, 72, 0.04),
      rgba(26, 43, 72, 0.04) 10px,
      transparent 10px,
      transparent 20px
    );
}

.trip-cover-dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(26, 43, 72, 0.08);
  margin-bottom: 0.35rem;
}

.trip-cover-dropzone-icon svg {
  width: 28px;
  height: 28px;
}

.trip-cover-dropzone-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.trip-cover-dropzone-hint,
.trip-cover-dropzone-meta {
  max-width: 36ch;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.trip-cover-dropzone-meta {
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.trip-cover-pending .trip-cover-footer {
  justify-content: space-between;
}

.trip-cover-pending .trip-cover-filename {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.trip-cover-filename {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

.trip-cover-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.trip-cover-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.trip-cover-remove-form {
  margin: 0;
}

/* ——— Cover picker (trip new) ——— */

.trip-cover-picker-section {
  margin-bottom: 0.5rem;
}

.cover-picker-preview {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cover-picker-selected-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.cover-picker-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
  align-items: center;
}

.cover-picker-preview-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cover-picker-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-picker-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 43, 72, 0.45) 0%, transparent 45%);
  pointer-events: none;
}

.cover-picker-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cover-picker-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cover-picker-tab:hover {
  color: var(--text);
}

.cover-picker-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(26, 43, 72, 0.08);
}

.cover-picker-panel {
  margin-top: 0.25rem;
}

.cover-picker-dropzone {
  display: flex;
}

.cover-picker-filename {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cover-picker-stock-hint,
.cover-picker-stock-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cover-picker-stock-credit {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.cover-picker-stock-hint a,
.cover-picker-stock-credit a {
  color: var(--orange-dark);
  font-weight: 600;
}

.cover-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.cover-stock-option {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cover-stock-option:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 43, 72, 0.08);
}

.cover-stock-option.is-suggested {
  border-color: rgba(249, 115, 22, 0.45);
}

.cover-stock-option.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
}

.cover-stock-option img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.cover-stock-label {
  display: block;
  padding: 0.45rem 0.55rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.cover-stock-option.is-suggested .cover-stock-label::after {
  content: ' · Suggested';
  color: var(--orange-dark);
  font-weight: 700;
}

.cover-search-wrap {
  margin-bottom: 1rem;
}

.cover-search-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.cover-search-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: var(--white);
}

.cover-search-field svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cover-search-input {
  flex: 1;
  border: none;
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
  background: transparent;
}

.cover-search-input:focus {
  outline: none;
}

.cover-search-status {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cover-search-status.is-error {
  color: #b45309;
}

.cover-search-results {
  margin-bottom: 1.15rem;
}

.cover-search-results-title,
.cover-suggestions-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.cover-suggestions-block {
  margin-top: 0.25rem;
}

.cover-search-unconfigured {
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.cover-search-unconfigured code {
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.cover-picker-credit {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cover-picker-credit a {
  color: var(--orange-dark);
  font-weight: 600;
}

.trip-cover-attribution {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.trip-cover-attribution a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trip-cover-attribution--on-hero {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  z-index: 2;
  max-width: min(100% - 1.5rem, 320px);
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: right;
}

.trip-cover-attribution--on-hero a {
  color: #fff;
}

.trip-cover-attribution--on-hero a:hover {
  color: #fde68a;
}


/* SaaS additions */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0 2.5rem;
  margin-top: 3rem;
  color: var(--text-muted, #475569);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: grid;
  gap: 0.75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-note {
  max-width: 42rem;
  opacity: 0.9;
  line-height: 1.45;
  margin: 0;
}

.journey-map,
.trip-map {
  height: 360px;
  width: 100%;
  border-radius: 12px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.journey-map-shell {
  position: relative;
  z-index: 1;
}

.trip-bot-launcher {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(26, 43, 72, 0.94);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.trip-bot-launcher:hover,
.trip-bot-launcher:focus-visible {
  transform: translateY(-1px);
  background: rgba(36, 58, 94, 0.98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.34);
  outline: none;
}

.trip-bot-launcher:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.trip-bot-launcher-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: var(--orange);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trip-bot-launcher-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.2;
}

.trip-bot-launcher-copy strong {
  font-size: 0.92rem;
  font-weight: 650;
}

.trip-bot-launcher-copy span {
  font-size: 0.75rem;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-bot-launcher.is-pulsing {
  animation: trip-bot-pulse 1.6s ease-in-out 2;
}

@keyframes trip-bot-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .trip-bot-launcher {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
  }

  .trip-bot-launcher-copy span {
    display: none;
  }
}

html.journey-modal-open,
html.journey-modal-open body,
html.trip-bot-modal-open,
html.trip-bot-modal-open body {
  overflow: hidden;
}

.journey-modal,
.trip-bot-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100vw - 1.5rem, 28rem);
  max-height: min(90vh, 42rem);
  height: fit-content;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.journey-modal::backdrop,
.trip-bot-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.journey-modal[open],
.trip-bot-modal[open] {
  display: flex;
  flex-direction: column;
  animation: journey-modal-in 0.22s ease-out;
}

@keyframes journey-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.journey-modal-form,
.trip-bot-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
  overflow: hidden;
}

.journey-modal-header,
.trip-bot-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 1rem 3.25rem;
  border-bottom: 1px solid var(--border);
}

.journey-modal-header h2,
.trip-bot-modal-header h2 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--navy);
}

.journey-modal-close,
.trip-bot-modal-close {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.journey-modal-close:hover,
.trip-bot-modal-close:hover {
  background: #e8edf5;
  color: var(--navy);
}

.journey-modal-body,
.trip-bot-modal-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.15rem 1.25rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.journey-modal-body .field-hint,
.trip-bot-modal-body .field-hint {
  margin: 0;
}

.journey-modal-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.journey-modal-footer .btn-block {
  width: 100%;
}

.cheer-detect-location {
  width: 100%;
  margin-top: 0.45rem;
}

.journey-modal .field-inline,
.cheer-form .field-inline {
  display: grid;
  grid-template-columns: 1fr;
}

.journey-modal .field-inline input,
.cheer-form .field-inline input {
  min-width: 0;
  width: 100%;
}

.journey-modal-body .cheer-form,
.journey-modal-body .comment-form,
.journey-modal-form.cheer-form,
.journey-modal-form.comment-form {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
}

@media (max-width: 640px) {
  .journey-modal,
  .trip-bot-modal {
    width: 100vw;
    max-height: min(92dvh, 42rem);
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .journey-modal[open],
  .trip-bot-modal[open] {
    animation: journey-sheet-in 0.24s ease-out;
  }
}

@keyframes journey-sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journey-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 1rem;
  color: var(--navy, #0f172a);
}

.journey-stats > div {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.journey-live,
.journey-cheers,
.journey-comments {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.journey-live {
  margin-top: 0.35rem;
}

.journey-live h2,
.journey-cheers h2,
.journey-comments h2 {
  color: var(--navy, #0f172a);
  margin: 0 0 0.85rem;
}

.cheer-form,
.comment-form,
.trip-bot-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.cheer-form .field,
.comment-form .field {
  margin: 0;
}

.cheer-form label:not(.check-label),
.comment-form label:not(.check-label) {
  display: block;
  font-weight: 600;
  color: var(--navy, #0f172a);
  margin-bottom: 0.35rem;
}

.cheer-form input,
.cheer-form textarea,
.comment-form input,
.comment-form textarea,
.trip-bot-form input,
.trip-bot-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: var(--white, #fff);
  color: var(--navy, #0f172a);
  box-sizing: border-box;
}

.cheer-form .field-inline input {
  width: auto;
}

.cheer-form .check-label input[type="checkbox"],
.cheer-form .check-label input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
}

.cheer-from {
  color: var(--text-muted, #78716c);
  font-size: 0.88rem;
}

.cheer-message {
  color: var(--navy, #0f172a);
}

.cheer-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cheer-visibility {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.cheer-visibility legend {
  font-weight: 600;
  color: var(--navy, #0f172a);
  margin-bottom: 0.15rem;
}

.cheer-visibility-options {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.cheer-visibility-or {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #78716c);
}

.cheer-visibility-option {
  position: relative;
  flex: 1;
  display: flex;
  margin: 0;
  cursor: pointer;
}

.cheer-visibility-option input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  appearance: none;
  pointer-events: none;
}

.cheer-visibility-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: var(--white);
  color: var(--navy, #0f172a);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.cheer-visibility-option:hover span {
  border-color: color-mix(in srgb, var(--orange) 40%, #cbd5e1);
}

.cheer-visibility-option input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--orange) 55%, transparent);
  outline-offset: 2px;
}

.cheer-visibility-option input:checked + span {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--navy, #0f172a);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.badge-crew {
  background: #e8edf5;
  color: var(--navy, #0f172a);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.cheer-form input:focus,
.cheer-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.trip-bot-form input:focus,
.trip-bot-form textarea:focus,
#map-geocode-form input:focus {
  outline: 2px solid rgba(249, 115, 22, 0.35);
  border-color: var(--orange, #f97316);
}

.trip-bot-form label {
  display: block;
  font-weight: 600;
  color: var(--navy, #0f172a);
}

.trip-bot-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.trip-bot-row input {
  flex: 1;
  min-width: 0;
}

.trip-bot-row .btn {
  flex-shrink: 0;
}

.trip-bot-answer {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--navy, #0f172a);
  line-height: 1.45;
}

.trip-bot-answer-link {
  color: var(--orange-dark, #ea580c);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.trip-bot-answer-link:hover {
  color: var(--orange, #f97316);
}

.feed-avatar--cheer {
  background: var(--orange-light, #ffedd5);
  color: var(--orange-dark, #ea580c);
}

.feed-cheer {
  border-left: 3px solid var(--orange, #f97316);
}

.feed-cheer-label {
  color: var(--orange-dark, #ea580c);
  font-weight: 600;
}

.feed-cheer-empty {
  color: var(--text-muted, #78716c);
  font-style: italic;
  margin: 0;
}

.post-reactions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border, #e2e8f0);
  display: grid;
  gap: 0.65rem;
}

.post-reactions-summary {
  display: grid;
  gap: 0.25rem;
}

.post-reactions-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
}

.post-reaction-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 650;
  color: var(--navy, #0f172a);
  font-size: 0.95rem;
}

.post-reactions-line {
  margin: 0;
  color: var(--text-muted, #78716c);
  font-size: 0.9rem;
}

.post-reactions-actions {
  position: relative;
}

.post-reactions-toggle {
  border: 1px solid var(--border, #e2e8f0);
  background: var(--white, #fff);
  color: var(--navy, #0f172a);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.post-reactions-toggle:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.post-reactions-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 20;
  min-width: min(100%, 18rem);
  width: max-content;
  max-width: 22rem;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
  display: grid;
  gap: 0.15rem;
}

.post-reactions-picker[hidden] {
  display: none;
}

.post-reactions-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
  color: var(--navy, #0f172a);
}

.post-reactions-option:hover:not(:disabled) {
  background: #f8fafc;
}

.post-reactions-option.is-locked,
.post-reactions-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.post-reactions-option-emoji {
  font-size: 1.25rem;
  line-height: 1.2;
}

.post-reactions-option-copy {
  display: grid;
  gap: 0.1rem;
}

.post-reactions-option-copy strong {
  font-size: 0.92rem;
  font-weight: 650;
}

.post-reactions-option-copy small {
  color: var(--text-muted, #78716c);
  font-size: 0.78rem;
}

.cheer-list,
.comment-list,
.stop-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.cheer-list li,
.comment-list li,
.stop-list li {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.cheer-list li {
  display: grid;
  gap: 0.2rem;
}

.cheer-list-empty,
.comment-list-empty {
  color: var(--text-muted, #78716c);
  background: transparent;
  border-style: dashed;
}

.comment-list li p {
  margin: 0.35rem 0 0;
  color: var(--text-muted, #475569);
  line-height: 1.45;
}

.trip-bot-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trip-bot-examples .btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
}

.trip-bot-form .field-hint {
  margin: -0.25rem 0 0;
}

.map-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.map-search {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.map-search input,
.map-search input[type="text"],
#map-geocode-form input,
#map-geocode-form input[type="text"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: var(--white, #fff);
  color: var(--navy, #0f172a);
  box-sizing: border-box;
  direction: ltr;
  text-align: left;
  unicode-bidi: normal;
}

.map-search-results {
  display: grid;
  gap: 0.35rem;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--white, #fff);
  padding: 0.35rem;
}

.map-search-results[hidden],
.map-preview-bar[hidden] {
  display: none !important;
}

.map-search-result {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
}

.map-search-result:hover,
.map-search-result:focus-visible {
  background: #fff7ed;
  outline: none;
}

.map-search-result strong {
  color: var(--navy, #0f172a);
}

.map-search-result span {
  color: var(--text-muted, #64748b);
  font-size: 0.85rem;
  line-height: 1.35;
}

.map-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--border));
  background: #fff7ed;
}

.map-preview-copy {
  flex: 1 1 12rem;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.map-preview-copy .section-hint {
  margin: 0;
}

.map-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--navy, #0f172a);
  cursor: pointer;
}

.map-toggle input {
  width: 1rem;
  height: 1rem;
}

#map-click-add-btn.is-active {
  background: #fff7ed;
  border-color: color-mix(in srgb, var(--orange) 45%, var(--border));
}

.map-stops-heading {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.1rem;
  color: var(--navy, #0f172a);
}

.map-pin-status-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .map-search {
    flex-wrap: wrap;
  }

  .map-search .btn,
  .map-preview-bar .btn {
    width: 100%;
    justify-content: center;
  }
}

.map-stops-panel {
  margin-top: 0.5rem;
}

.map-stops-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.map-stops-heading {
  margin: 0;
}

.map-stops-hint {
  margin: 0 0 0.75rem;
}

.map-view-mode {
  display: inline-flex;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white, #fff);
}

.map-view-mode-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

.map-view-mode-btn.is-active,
.map-view-mode-btn[aria-pressed="true"] {
  background: #fff7ed;
  color: var(--navy, #0f172a);
}

.map-stops-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.map-stops-empty {
  color: var(--text-muted, #64748b);
  padding: 0.75rem 0;
}

.map-stop-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--white, #fff);
}

.map-stop-item.is-selected {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--border));
  background: #fff7ed;
}

.map-stop-main {
  flex: 1 1 12rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  min-width: 0;
}

.map-stop-order {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: var(--navy, #0f172a);
  font-size: 0.8rem;
  font-weight: 700;
}

.map-stop-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.map-stop-copy strong {
  color: var(--navy, #0f172a);
}

.map-stop-copy span {
  color: var(--text-muted, #64748b);
  font-size: 0.82rem;
}

.map-stop-actions {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.map-stop-delete {
  color: #b91c1c;
}

.map-popup-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.map-popup-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.map-popup-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.owner-dash {
  padding: 2.5rem 0 4rem;
}

.owner-dash h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.owner-dash .lead {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 42rem;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.owner-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.owner-stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--navy);
}

.owner-stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.owner-dash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.owner-dash-links a:hover {
  color: var(--orange-dark);
}

.owner-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.3rem;
  margin-bottom: 1.25rem;
}

.owner-panel h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.owner-panel-head {
  margin-bottom: 0.85rem;
}

.owner-panel-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.owner-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.owner-list li {
  display: grid;
  gap: 0.15rem;
}

.owner-list p {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
}

.owner-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.owner-empty {
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.owner-trip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.owner-trip.is-featured {
  border-color: var(--orange);
  background: var(--orange-light);
}

.owner-trip-media {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #dbe3ef;
}

.owner-trip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.owner-trip-body {
  flex: 1 1 12rem;
  min-width: 0;
}

.owner-trip-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--navy);
}

.owner-trip-meta {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.owner-trip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.owner-trip-actions form {
  margin: 0;
}

@media (max-width: 900px) {
  .owner-stats,
  .owner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .owner-stats,
  .owner-grid {
    grid-template-columns: 1fr;
  }

  .owner-trip-actions {
    margin-left: 0;
    width: 100%;
  }

  .owner-trip-actions form,
  .owner-trip-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .map-stop-actions {
    width: 100%;
  }

  .map-stop-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

.offline-posts-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.offline-posts-banner[hidden] {
  display: none;
}

.offline-posts-banner p {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}

.feed-post--pending {
  border-style: dashed;
  background: #fffbeb;
}

.feed-pending-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
}

.feed-pending-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-pricing {
  background: #f4f6f9;
}

.page-pricing .site-footer {
  margin-top: 0;
  background: #111827;
  color: #cbd5e1;
  border-top: 0;
}

.page-pricing .site-footer a {
  color: #e2e8f0;
}

.pricing-hero,
.pricing-finale {
  position: relative;
  isolation: isolate;
  color: var(--white);
}

.pricing-hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4.5rem;
}

.pricing-hero-media,
.pricing-finale-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pricing-hero-media img,
.pricing-finale-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-hero-overlay,
.pricing-finale-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 36%, rgba(15, 23, 42, 0.22) 64%, rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.28) 40%, rgba(15, 23, 42, 0.82) 100%);
}

.pricing-hero-copy,
.pricing-finale-copy {
  max-width: 40rem;
}

.pricing-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.pricing-kicker--on-light {
  color: var(--orange-dark);
}

.pricing-hero h1,
.pricing-finale h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.pricing-hero-price {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.pricing-hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
}

.pricing-checks {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.pricing-checks li {
  position: relative;
  padding-left: 1.7rem;
}

.pricing-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #22c55e;
  font-weight: 800;
}

.pricing-checks--hero li {
  color: rgba(255, 255, 255, 0.92);
}

.pricing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pricing-play {
  font-size: 0.75rem;
}

.pricing-banner {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  max-width: 36rem;
}

.pricing-banner--success {
  background: rgba(34, 197, 94, 0.2);
}

.pricing-section {
  padding: 4.5rem 0;
}

.pricing-section h2,
.pricing-plan h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.pricing-section--muted {
  background: #eef2f6;
}

.pricing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.pricing-card,
.pricing-plan {
  background: var(--white);
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pricing-card h3,
.pricing-steps h3 {
  color: var(--navy);
  margin: 0.55rem 0 0.4rem;
}

.pricing-card p,
.pricing-steps p,
.pricing-plan p,
.pricing-fine {
  color: var(--text-muted);
}

.pricing-icon,
.pricing-step-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.pricing-icon--green { background: #dcfce7; color: #166534; }
.pricing-icon--orange { background: #ffedd5; color: #c2410c; }
.pricing-icon--blue { background: #dbeafe; color: #1d4ed8; }
.pricing-icon--purple { background: #ede9fe; color: #6d28d9; }
.pricing-icon--red { background: #fee2e2; color: #b91c1c; }
.pricing-icon--teal { background: #ccfbf1; color: #0f766e; }

.pricing-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-split,
.pricing-two-plans {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.pricing-callout-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 22rem;
}

.pricing-callout-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pricing-callout-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  max-width: 20rem;
  background: rgba(15, 23, 42, 0.82);
  color: var(--white);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.pricing-callout-card p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.pricing-plan--main {
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.14);
  border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--border));
}

.pricing-fine {
  font-size: 0.92rem;
}

.pricing-finale {
  min-height: 28rem;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  text-align: center;
}

.pricing-finale-copy {
  margin-inline: auto;
}

.pricing-finale-copy p {
  font-size: 1.15rem;
}

.pricing-finale h2 {
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.pricing-finale-note {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .pricing-feature-grid,
  .pricing-steps,
  .pricing-split,
  .pricing-two-plans {
    grid-template-columns: 1fr;
  }

  .nav-optional {
    display: none;
  }
}

.connect-embed {
  min-height: 24rem;
  margin: 1rem 0;
}

.connect-embed--banner {
  min-height: 0;
}

.gift-presets {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.gift-preset {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line, #d7dee8);
  border-radius: 0.75rem;
  cursor: pointer;
}

.gift-preset small {
  display: block;
  color: var(--muted, #5b6573);
}

@media (max-width: 720px) {
  .pricing-hero-overlay,
  .pricing-finale-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.52) 40%, rgba(15, 23, 42, 0.88) 100%);
  }

  .pricing-hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .nav-main {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
