:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-soft: #111821;
  --panel: rgba(19, 25, 34, 0.86);
  --panel-solid: #151d27;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f7f9;
  --muted: #9aa5b5;
  --muted-strong: #c4cad4;
  --accent: #6ee7c8;
  --accent-text: #9af5df;
  --accent-strong: #34d399;
  --detail-label: #d7dee9;
  --detail-surface: rgba(255, 255, 255, 0.075);
  --violet: #7c5cff;
  --coral: #ff7a59;
  --gold: #f6c85f;
  --blue: #59a8ff;
  --danger: #ff6b7a;
  --button-fill: #6ee7c8;
  --button-text: #071015;
  --shadow: 0 18px 0 rgba(0, 0, 0, 0.18);
  --gap-xs: 8px;
  --gap: 16px;
  --gap-lg: 24px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #edf1f7;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --line: rgba(13, 17, 23, 0.12);
  --text: #111827;
  --muted: #667085;
  --muted-strong: #475467;
  --accent-text: #0b5f59;
  --detail-label: #344054;
  --detail-surface: rgba(13, 17, 23, 0.045);
  --button-fill: #176b63;
  --button-text: #ffffff;
  --shadow: 0 18px 0 rgba(22, 34, 51, 0.08);
}

* {
  box-sizing: border-box;
  border-radius: 0;
}

*::before,
*::after {
  border-radius: 0;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: var(--gap);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap);
  padding: var(--gap-xs);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand,
.profile-pill,
.nav-tab,
.icon-button,
.primary-button,
.secondary-button,
.text-button,
.auth-tab {
  border: 0;
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--button-fill);
  color: var(--button-text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-tabs,
.auth-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab,
.auth-tab {
  min-height: 38px;
  padding: 0 15px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
}

.nav-tab.is-active,
.auth-tab.is-active {
  background: var(--text);
  color: var(--bg);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.15rem;
}

.profile-pill,
.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
}

.profile-pill,
.primary-button {
  background: var(--button-fill);
  color: var(--button-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent-text);
  font-weight: 800;
}

.full-width {
  width: 100%;
}

.eyebrow,
.mini-label {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.toolbar-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace {
  display: block;
  padding-top: var(--gap-lg);
}

.map-board,
.filter-bar,
.host-layout,
.saved-view,
.modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-heading,
.toolbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.field {
  display: grid;
  gap: var(--gap-xs);
  margin-top: var(--gap);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: 0;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 0 0 4px rgba(110, 231, 200, 0.12);
}

.file-input {
  min-height: 58px;
  padding: var(--gap-xs);
  text-align: center;
}

.file-input::file-selector-button {
  display: block;
  margin: 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #101828;
  font-weight: 900;
  cursor: pointer;
}

.file-input::-webkit-file-upload-button {
  display: block;
  margin: 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #101828;
  font-weight: 900;
  cursor: pointer;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-weight: 800;
}

.chip.is-active {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.type-chip.is-active:not(.type-all) {
  border-color: var(--type-color);
  background: var(--type-color);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.72),
    0 3px 8px rgba(13, 17, 23, 0.14);
}

.range-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted-strong);
  font-weight: 800;
}

.range {
  accent-color: var(--accent);
  padding: 0;
}

.host-layout p {
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  margin-bottom: var(--gap);
}

.toolbar h2,
.section-heading h2,
.host-layout h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: 0;
}

.map-board {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  margin-bottom: var(--gap);
  border-radius: 0;
  background: var(--panel-solid);
}

.map-hero {
  display: grid;
  gap: var(--gap);
}

.map-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: var(--gap-lg);
  align-items: end;
}

.map-hero-copy {
  min-width: 0;
}

.map-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--gap-xs);
  align-items: end;
  padding: var(--gap);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.city-field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-map {
  min-height: clamp(430px, 58vh, 640px);
  margin-bottom: 0;
  border-radius: 0;
}

.hero-map #realMap {
  border-radius: 0;
}

#realMap {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  z-index: 0;
}

#realMap .leaflet-control-attribution {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
}

#realMap .leaflet-control,
#realMap .leaflet-bar,
#realMap .leaflet-bar a,
#realMap .leaflet-popup-content-wrapper,
#realMap .leaflet-popup-tip {
  border-radius: 0 !important;
}

.map-fallback {
  display: grid;
  min-height: 310px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.vv-marker-shell {
  position: absolute;
  background: transparent;
  border: 0;
}

.vv-marker {
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  background: var(--pin-color);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(13, 17, 23, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.vv-marker-shell:hover .vv-marker,
.vv-marker-shell:focus .vv-marker {
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(13, 17, 23, 0.22);
  transform: scale(1.2);
}

.vv-marker.is-today {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--pin-color) 38%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

#realMap .leaflet-tooltip.vv-map-tooltip {
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--panel-solid);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

#realMap .leaflet-tooltip-top.vv-map-tooltip::before {
  border-top-color: var(--text);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  margin: var(--gap) 0;
  padding: var(--gap);
  border-radius: 0;
}

.filter-bar h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.filter-groups,
.filter-group {
  display: grid;
  gap: 9px;
}

.filter-groups {
  display: grid;
  gap: var(--gap);
}

.timing-filter-group {
  padding-top: var(--gap);
  border-top: 1px solid var(--line);
}

.timing-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
}

.timing-chip {
  justify-content: center;
  min-height: 46px;
  font-size: 0.9rem;
}

.timing-chip.is-active {
  background: var(--accent);
  color: #08110f;
}

.filter-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.adventure-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.adventure-card:hover {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.adventure-card:focus-visible,
.chip:focus-visible,
.nav-tab:focus-visible,
.brand:focus-visible,
.profile-pill:focus-visible,
.icon-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible,
.save-button:focus-visible,
.compact-button:focus-visible,
.listing-link-card:focus-visible,
.out-there-slide-button:focus-visible,
.out-there-slide-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-art {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  padding: var(--gap);
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
}

.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 7, 12, 0.2), rgba(3, 7, 12, 0.62));
}

.card-photo,
.detail-photo,
.photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-photo.is-broken,
.detail-photo.is-broken,
.out-there-slide.is-broken {
  opacity: 0;
}

.photo-fallback {
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, var(--card-a), var(--card-b));
  background-size: 34px 34px, 34px 34px, auto;
}

.photo-fallback::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 42%;
  height: 56%;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
}

.badge-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 0;
  background: rgba(5, 11, 16, 0.68);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 800;
}

.timing-badge {
  background: var(--accent);
  color: #08110f;
}

.card-body {
  padding: var(--gap);
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.card-body p {
  color: var(--muted);
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 850;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: var(--gap) 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.save-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.05rem;
}

.save-button.is-saved {
  background: var(--gold);
  color: #17110a;
}

.empty-state {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
}

.empty-state {
  color: var(--muted-strong);
  line-height: 1.45;
}

.stat-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xs);
  margin-top: var(--gap);
}

.stat-stack div {
  padding: var(--gap-xs);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
}

.stat-stack span,
.stat-stack strong {
  display: block;
}

.stat-stack span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-stack strong {
  margin-top: 5px;
  font-size: 1.45rem;
}

.saved-view,
.out-there-view,
.host-view {
  margin-top: 18px;
}

.saved-view {
  padding: var(--gap);
  border-radius: 0;
}

.out-there-view {
  --out-there-content-inset: clamp(16px, 3vw, 40px);
  padding-bottom: var(--gap-lg);
}

.out-there-header {
  max-width: 980px;
  padding: clamp(54px, 8vw, 112px) 0 clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.out-there-title {
  max-width: 13ch;
  margin: 10px 0 22px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.9;
}

.out-there-header p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.out-there-feature {
  position: relative;
  overflow: visible;
  min-height: clamp(460px, 68vh, 820px);
  margin: 0 0 72px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.out-there-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.out-there-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}

.out-there-slide.is-active {
  opacity: 1;
}

.out-there-slide-controls {
  position: absolute;
  z-index: 3;
  left: var(--out-there-content-inset);
  bottom: -56px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: auto;
  color: var(--text);
}

.out-there-slide-button {
  display: grid;
  width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  padding: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.out-there-slide-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.out-there-slide-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  background: transparent;
}

.out-there-slide-dot.is-active {
  width: 28px;
  background: var(--text);
  border-color: var(--text);
}

.editorial-map-window {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 3vw, 40px);
  bottom: 0;
  transform: translateY(50%);
  width: min(330px, calc(100% - 32px));
  margin: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.editorial-map-titlebar,
.editorial-map-footer {
  padding: 13px 14px;
}

.editorial-map-titlebar {
  border-bottom: 1px solid var(--line);
}

.editorial-map-titlebar span,
.editorial-map-titlebar strong {
  display: block;
}

.editorial-map-titlebar strong {
  margin-top: 4px;
  font-size: 1rem;
}

.editorial-map {
  height: 175px;
  background: var(--bg-soft);
}

.editorial-map .leaflet-tile-pane {
  filter: saturate(0.72) contrast(0.96);
}

.editorial-map-footer {
  border-top: 1px solid var(--line);
}

.editorial-map-footer p {
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.4;
}

.editorial-map-link {
  text-align: left;
}

.editorial-location-marker-shell {
  background: transparent;
}

.editorial-location-marker {
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  background: var(--coral);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(13, 17, 23, 0.45);
}

.out-there-blurb {
  width: min(760px, calc(100% - 380px));
  margin: 0 0 0 var(--out-there-content-inset);
  padding: 0 0 clamp(56px, 8vw, 104px);
  text-align: left;
}

.out-there-blurb h2 {
  max-width: 13ch;
  margin: 9px 0 22px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.out-there-blurb p {
  max-width: 680px;
  margin: 0 0 16px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.out-there-submit {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
}

.out-there-submit h2 {
  max-width: 12ch;
  margin: 9px 0 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
}

.out-there-submit-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.out-there-submit-copy p {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.65;
}

.out-there-submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-top: 8px;
  text-decoration: none;
}

.host-layout {
  display: grid;
  grid-template-columns: clamp(210px, 22vw, 250px) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
  padding: var(--gap-lg);
  border-radius: 0;
}

.host-layout > div:first-child {
  align-self: start;
  max-width: 250px;
  text-align: left;
}

.host-layout > div:first-child h2,
.host-layout > div:first-child p {
  text-align: left;
}

.host-layout > div:first-child p {
  max-width: 230px;
  margin-right: 0;
}

.host-form {
  display: grid;
  gap: 0;
}

.share-auth-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap);
  margin-bottom: var(--gap);
  padding: var(--gap);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 9%, var(--panel-solid));
}

.share-auth-prompt strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.share-auth-prompt p {
  max-width: 560px;
  margin: 5px 0 0;
  color: var(--muted-strong);
  line-height: 1.45;
}

.share-auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--gap-xs);
}

.timing-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.timing-fieldset > legend {
  margin-bottom: 9px;
  color: var(--muted-strong);
}

.listing-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-xs);
}

.listing-mode-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.listing-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.listing-mode-option > span {
  display: grid;
  min-height: 74px;
  align-content: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.listing-mode-option strong,
.listing-mode-option small {
  display: block;
}

.listing-mode-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.listing-mode-option:has(input:checked) > span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}

.listing-mode-option:has(input:focus-visible) > span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.schedule-panel {
  margin-top: 10px;
}

.anytime-note {
  margin: 10px 0 0;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  line-height: 1.45;
}

.host-form-actions {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: var(--gap-xs);
  margin-top: var(--gap);
}

#cancelEditButton[hidden] + #hostSubmitButton {
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.location-fields .field {
  min-width: 0;
}

.location-help,
.location-feedback {
  margin: 8px 0 0;
  line-height: 1.45;
}

.location-help {
  color: var(--muted);
  font-size: 0.8rem;
}

.location-feedback {
  min-height: 22px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.location-feedback.is-checking {
  color: var(--accent);
}

.location-feedback.is-success {
  color: var(--accent);
}

.location-feedback.is-approximate {
  color: var(--gold);
}

.location-feedback.is-error {
  color: var(--danger);
}

.location-accuracy {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.link-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.checklist-field {
  padding: 0;
  border: 0;
}

.checklist-field legend {
  margin-bottom: 8px;
  color: var(--muted-strong);
}

.checklist-field legend span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 850;
}

.check-pill input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--accent);
}

.modal {
  max-width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(3, 7, 12, 0.64);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: 100%;
  padding: var(--gap-lg);
  border-radius: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.modal-card h2 {
  margin-right: 48px;
  margin-bottom: 16px;
}

.profile-library {
  display: grid;
  gap: var(--gap);
  margin: var(--gap) 0;
}

.compact-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.compact-heading h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.profile-list {
  display: grid;
  gap: var(--gap-xs);
}

.profile-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--gap-xs);
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: var(--gap-xs);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
}

.profile-list-item strong,
.profile-list-item small {
  display: block;
}

.profile-list-item small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-list-item em {
  color: var(--muted-strong);
  font-style: normal;
  font-weight: 900;
}

.profile-owned-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--gap-xs);
  align-items: stretch;
}

.profile-owned-item .profile-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-item-actions,
.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.profile-item-actions {
  align-items: stretch;
}

.compact-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 850;
}

.danger-button {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: color-mix(in srgb, var(--danger) 82%, var(--text));
}

.danger-button:hover {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 20%, transparent);
}

.signup-only {
  display: none;
}

.modal-card.is-signup .signup-only {
  display: grid;
}

.form-message {
  min-height: 22px;
  margin: 10px 0;
  color: var(--danger);
  font-weight: 700;
}

.detail-card {
  max-width: 720px;
}

.detail-card p {
  color: var(--muted-strong);
}

.detail-card p strong {
  color: var(--detail-label);
}

.detail-close {
  width: auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(5, 11, 16, 0.82);
  color: #f8fafc;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  margin: 0 0 var(--gap);
  border-radius: 0;
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 12, 0.34));
}

.detail-location-label {
  display: inline-flex;
  max-width: calc(100% + 20px);
  margin-left: -10px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--panel-solid) 88%, var(--text) 8%);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-xs);
  margin: var(--gap) 0;
}

.detail-list div {
  padding: var(--gap-xs);
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  border-radius: 0;
  background: var(--detail-surface);
}

.detail-list span,
.detail-list strong {
  display: block;
}

.detail-list span {
  color: var(--detail-label);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.links-panel {
  display: grid;
  gap: var(--gap-xs);
  margin: var(--gap) 0;
}

.links-panel .mini-label {
  color: var(--detail-label);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-xs);
}

.link-list > .empty-state {
  grid-column: 1 / -1;
}

.listing-link-card {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: var(--gap-xs);
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  border-radius: 0;
  background: var(--detail-surface);
  color: var(--text);
  text-decoration: none;
}

.listing-link-card:hover {
  border-color: color-mix(in srgb, var(--accent-text) 55%, var(--line));
  background: color-mix(in srgb, var(--detail-surface) 82%, var(--text) 8%);
}

.listing-link-card span,
.listing-link-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-link-card span {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-link-card strong {
  color: var(--text);
  font-size: 0.96rem;
}

.owner-panel {
  display: grid;
  gap: var(--gap-xs);
  margin: var(--gap) 0;
  padding: var(--gap);
  border: 1px solid color-mix(in srgb, var(--accent-text) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--detail-surface));
}

.owner-panel p {
  margin: 0;
}

.confirm-card p {
  color: var(--muted-strong);
  line-height: 1.55;
}

.confirm-card p strong {
  color: var(--text);
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xs);
  margin-top: var(--gap-lg);
}

.toast {
  position: fixed;
  right: var(--gap);
  bottom: var(--gap);
  z-index: 20;
  max-width: min(420px, calc(100% - 36px));
  padding: var(--gap-xs) var(--gap);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    order: 3;
  }

  .map-hero-header,
  .host-layout {
    grid-template-columns: 1fr;
  }

  .hero-map {
    min-height: 340px;
  }

  .adventure-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .segmented {
    gap: 7px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    top: 8px;
    border-radius: 0;
  }

  .brand small {
    display: none;
  }

  .profile-pill {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-tab {
    flex: 1;
    padding: 0 8px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .hero-map {
    min-height: 220px;
  }

  .workspace {
    padding-top: 22px;
  }

  .hero-subtitle {
    line-height: 1.45;
  }

  .map-search-panel {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .panel-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .stat-stack,
  .detail-list,
  .link-list,
  .check-grid,
  .share-auth-prompt,
  .host-form-actions,
  .profile-owned-item,
  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .share-auth-actions {
    justify-content: stretch;
  }

  .share-auth-actions .primary-button,
  .share-auth-actions .secondary-button {
    flex: 1;
  }

  .listing-mode-options {
    grid-template-columns: 1fr;
  }

  .listing-mode-option > span {
    min-height: 58px;
  }

  .profile-item-actions .compact-button,
  .owner-actions .compact-button {
    flex: 1;
  }

  .chip {
    flex: 1 1 calc(50% - 8px);
  }

  .out-there-title {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .out-there-feature {
    min-height: 58vh;
    margin-bottom: 165px;
  }

  .out-there-slide-controls {
    top: auto;
    bottom: -56px;
    gap: 10px;
  }

  .out-there-blurb {
    width: calc(100% - var(--out-there-content-inset));
  }

  .editorial-map-window {
    right: 12px;
    bottom: 0;
    width: min(285px, calc(100% - 24px));
  }

  .editorial-map {
    height: 140px;
  }

  .out-there-blurb h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .out-there-submit {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .out-there-submit h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }
}
