:root {
  --font-display: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Public Sans", "Avenir Next", "Trebuchet MS", sans-serif;
  --panel-border: rgba(216, 190, 133, 0.2);
  --panel-bg: rgba(23, 33, 28, 0.3);
  --tone-warm-hi: #e6e2d8;
  --tone-warm-body: #d9d4c6;
  --tone-warm-muted: #b8b19f;
  --tone-border-soft: rgba(236, 225, 197, 0.08);
  --tone-focus: rgba(216, 190, 133, 0.56);
  --motion-fast: 160ms;
  --motion-panel: 260ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  margin: 24px;
  max-width: 960px;
  color: #1d1a16;
  background: #f8f4ec;
}

.app-shell-page {
  margin: 0;
  max-width: none;
}

.app-shell-root {
  min-height: 100vh;
}

.app-shell-root.is-route-pending main {
  opacity: 0.76;
  transition: opacity var(--motion-fast) var(--motion-ease);
}

.app-route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2147483500;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--motion-fast) var(--motion-ease);
}

.app-route-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, rgba(216, 190, 133, 0) 0%, rgba(216, 190, 133, 0.98) 48%, rgba(237, 225, 197, 0.98) 62%, rgba(216, 190, 133, 0) 100%);
  transform: translateX(-130%);
}

.app-route-progress.is-active {
  opacity: 1;
}

.app-route-progress.is-active::before {
  animation: app-route-progress-sweep 1.05s linear infinite;
}

.app-route-progress.is-complete {
  opacity: 0;
}

@keyframes app-route-progress-sweep {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(320%);
  }
}

a[data-app-link].is-route-loading {
  opacity: 0.74;
  pointer-events: none;
}

a[data-app-link].is-route-loading::after {
  content: "";
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-left: 0.36rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -0.08em;
  animation: app-route-link-spin 0.66s linear infinite;
}

@keyframes app-route-link-spin {
  100% {
    transform: rotate(360deg);
  }
}

.wayform-imprint {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: calc(22px + env(safe-area-inset-left, 0px));
  z-index: 2147483000;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--tone-warm-muted);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s var(--motion-ease);
}

header {
  margin-bottom: 18px;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

main :is(#trip-summary, #trip-details, #trip-route, #trip-days, #day-summary, #day-route, #day-snapshot, #day-legs, #activity-summary, #activity-route, #activity-snapshot, #activity-details, #activity-notes) {
  scroll-margin-top: 92px;
}

h1,
h2,
h3,
.title {
  font-family: var(--font-display);
  letter-spacing: 0.015em;
  font-weight: 600;
}

:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--tone-focus);
  outline-offset: 2px;
}

.trip {
  margin-bottom: 30px;
}

.trip-group {
  margin-bottom: 24px;
}

.trip-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.trip-overview-main {
  min-width: 0;
}

.trip-overview-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: #e6e2d8;
}

.trip-overview-sub {
  margin: 6px 0 0;
  opacity: 0.62;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.46;
}

.trip-overview-mobile-link {
  display: none;
  text-decoration: none;
}

.trip-overview-mobile-title {
  display: block;
}

.trip-overview-mobile-sub {
  display: block;
}

.trip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trip-stat {
  margin: 0;
  border: 1px solid rgba(218, 201, 162, 0.28);
  border-radius: 12px;
  background: rgba(250, 245, 234, 0.88);
  padding: 8px 10px;
  min-width: 128px;
}

.trip-stat-label {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.trip-stat-value {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.15;
  color: #2a261f;
  font-variant-numeric: tabular-nums;
}

.trip-dropdown {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.trip-summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trip-summary::-webkit-details-marker {
  display: none;
}

.trip-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trip-summary-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 700;
}

.trip-summary-sub {
  opacity: 0.72;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trip-summary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.trip-summary-chevron {
  display: inline-block;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.trip-dropdown[open] .trip-summary-chevron {
  transform: rotate(180deg);
}

.trip-dropdown .trip {
  margin-bottom: 0;
  padding: 0 8px 16px;
}

.trip-days-summary .trip-summary-title {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trip-days-summary .trip-summary-sub {
  font-size: 0.7rem;
}

.trip-route {
  margin: 12px 0 16px;
  border: 1px solid #ded3c2;
  border-radius: 14px;
  background: #fffaf1;
  position: relative;
  overflow: hidden;
}

.trip-route-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 8px;
}

.trip-route-head h2,
.trip-route-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trip-route-head .small {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trip-route-map {
  width: 100%;
  height: 240px;
  border-top: 1px solid #e8ddcb;
  background: #e8e1d3;
  touch-action: pan-y;
}

.map-interaction-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 620;
  border: 1px solid rgba(216, 190, 133, 0.55);
  border-radius: 999px;
  background: rgba(16, 23, 20, 0.84);
  color: #fff6df;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.trip-route-map.is-map-interactive + .map-interaction-toggle {
  background: rgba(48, 78, 64, 0.86);
}

@media (min-width: 1024px) {
  .map-interaction-toggle {
    right: 12px;
    bottom: 42px;
  }
}

.trip-route-map-lg {
  height: 320px;
}

.trip-route-empty {
  margin: 0;
  padding: 14px 12px 16px;
  opacity: 0.72;
  font-size: 0.88rem;
}

.trip-route-note {
  margin: 10px 0 14px;
}

.trip-route .leaflet-container {
  font-family: var(--font-display);
}

.trip-route .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75);
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid #d6d0c4;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fffdf8;
}

.card a {
  text-decoration: none;
  display: block;
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}

.meta {
  opacity: 0.75;
  font-size: 0.95rem;
}

.activity-description {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.86;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-card {
  padding: 0;
  overflow: hidden;
}

.day-combined-link {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.day-combined-link:hover,
.day-combined-link:focus-visible {
  background: rgba(0, 0, 0, 0.03);
}

.day-combined-link-text {
  margin: 8px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day-legs {
  margin: 0;
}

.day-legs-summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px 10px;
}

.day-legs-summary::-webkit-details-marker {
  display: none;
}

.day-legs-toggle-text {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.day-legs-chevron {
  display: inline-block;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.day-legs[open] .day-legs-chevron {
  transform: rotate(180deg);
}

.day-legs-list {
  list-style: none;
  margin: 0;
  padding: 0 14px 12px;
  display: grid;
  gap: 8px;
}

.day-legs-list li {
  margin: 0;
}

.day-legs-list a {
  border: 1px solid #ddd4c4;
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.7);
}

.day-leg-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
}

.day-leg-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  opacity: 0.72;
}

.day-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.day-notes-list li {
  margin: 0;
}

.day-note-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

.day-note-title a {
  text-decoration: underline;
}

.day-page-legs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.day-page-legs-list li {
  margin: 0;
}

.day-page-legs-list a {
  border: 1px solid #ddd4c4;
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.7);
  display: block;
  text-decoration: none;
}

.small {
  opacity: 0.7;
  font-size: 0.9rem;
}

.small code {
  font-size: 0.85rem;
}

.photos {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.photos img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.photo-caption {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 12px;
}

/* Home-only hero carousel */
.home-page {
  --adventure-bg-color: #4f5e58;
  --adventure-bg-image:
    radial-gradient(circle at 16% 20%, rgba(150, 174, 145, 0.03) 0, transparent 44%),
    radial-gradient(circle at 82% 12%, rgba(200, 169, 98, 0.03) 0, transparent 42%),
    radial-gradient(circle at 18% 86%, rgba(176, 147, 84, 0.02) 0, transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(122, 146, 122, 0.02) 0, transparent 44%),
    repeating-radial-gradient(circle at 18% 32%, rgba(240, 214, 153, 0.012) 0 1px, transparent 1px 24px),
    repeating-radial-gradient(circle at 78% 72%, rgba(136, 160, 130, 0.012) 0 1px, transparent 1px 26px),
    linear-gradient(140deg, #5f6d66 0%, #526159 50%, #44514b 100%);
  margin: 0;
  max-width: none;
  background-color: var(--adventure-bg-color);
  background-image: var(--adventure-bg-image);
  background-attachment: scroll;
  color: var(--tone-warm-body);
  font-family: var(--font-body);
}

.home-page .hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #334038;
}

.home-page .hero.hero-nav-only {
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.home-page .hero.hero-nav-only .hero-top-nav-wrap {
  position: relative;
  padding-bottom: 10px;
  background: none;
}

.home-page .hero-top-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0;
  background: transparent;
}

.home-page .hero-utility-bar {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: 1px solid #a6654c;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, #9a5840 0%, #834a37 100%);
  box-shadow: none;
}

.home-page .hero-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 16px;
}

.home-page .hero-utility-copy {
  margin: 0;
  min-width: 0;
  color: rgba(236, 216, 198, 0.84);
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 0.88vw, 0.67rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-page .hero-utility-copy a {
  color: #ecd8cb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page .hero-utility-copy a:hover,
.home-page .hero-utility-copy a:focus-visible {
  color: #f1e4da;
}

.home-page .hero-utility-next {
  margin-left: 0.28rem;
}

.home-page .hero-utility-logout {
  flex: 0 0 auto;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.55rem, 0.82vw, 0.67rem);
  color: rgba(237, 223, 206, 0.84);
  border-bottom: 1px solid rgba(237, 223, 206, 0.36);
  padding-bottom: 1px;
}

.home-page .hero-utility-logout:hover,
.home-page .hero-utility-logout:focus-visible {
  color: rgba(245, 235, 224, 0.92);
  border-bottom-color: rgba(245, 235, 224, 0.58);
}

.home-page .hero-top-nav {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4px 16px;
  border-radius: 0;
  border: 1px solid rgba(216, 188, 131, 0.34);
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(216, 188, 131, 0.16);
  background: #101813;
  box-shadow: 0 8px 14px rgba(5, 8, 6, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
}

.home-page .hero-mobile-top {
  display: none;
}

.home-page .hero-mobile-label {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(246, 237, 216, 0.95);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.home-page .hero-nav-label-mobile {
  display: none;
}

.home-page .hero-mobile-toggle {
  display: none;
}

.home-page .hero-mobile-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.home-page .hero-mobile-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(246, 237, 216, 0.95);
  transform-origin: center;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease);
}

.home-page .hero-top-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(0.62rem, 0.9vw, 0.76rem);
  color: rgba(227, 219, 199, 0.84);
  opacity: 0.92;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  transition:
    color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.home-page .hero-top-nav a.is-active {
  color: #e8deca;
  opacity: 1;
  border-bottom-color: rgba(218, 199, 157, 0.68);
}

.home-page .hero-top-nav a:hover,
.home-page .hero-top-nav a:focus-visible {
  color: #ece0c8;
  opacity: 0.98;
  border-bottom-color: rgba(218, 199, 157, 0.5);
}

.home-page .hero-top-nav a.hero-top-nav-link-curated {
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(0.94rem, 1.5vw, 1.16rem);
  font-weight: 500;
  color: #f2d699;
  border: 1px solid rgba(242, 214, 153, 0.5);
  border-bottom-color: rgba(242, 214, 153, 0.5);
  border-radius: 999px;
  padding: 1px 12px 3px;
  background: linear-gradient(180deg, rgba(242, 214, 153, 0.16) 0%, rgba(242, 214, 153, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(11, 16, 13, 0.12);
  line-height: 1.05;
}

.home-page .hero-top-nav a.hero-top-nav-link-curated:hover,
.home-page .hero-top-nav a.hero-top-nav-link-curated:focus-visible {
  color: #faeecf;
  border-color: rgba(255, 238, 198, 0.72);
  border-bottom-color: rgba(255, 238, 198, 0.72);
  background: linear-gradient(180deg, rgba(242, 214, 153, 0.22) 0%, rgba(242, 214, 153, 0.12) 100%);
}

.home-page .hero-top-nav a.hero-top-nav-mobile-only {
  display: none;
}

.home-page .hero-top-nav a.hero-top-nav-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .home-page .hero-utility-bar {
    display: none !important;
  }

  .wayform-imprint {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
    font-size: 13px;
    letter-spacing: 0.24em;
    opacity: 0.3;
    color: rgba(189, 183, 169, 0.82);
    pointer-events: none;
    cursor: default;
  }

  .home-page .hero-top-nav-wrap {
    border-bottom: 1px solid rgba(216, 188, 131, 0.16);
    background: linear-gradient(180deg, rgba(13, 19, 16, 0.9) 0%, rgba(13, 19, 16, 0.78) 100%);
  }

  .home-page .hero-top-nav {
    justify-content: flex-start;
    gap: clamp(10px, 1.15vw, 20px);
    flex-wrap: nowrap;
    padding: 8px clamp(16px, 2.5vw, 36px);
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
  }

  .home-page .hero-top-nav a {
    position: relative;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(230, 220, 197, 0.78);
    font-size: clamp(0.62rem, 0.72vw, 0.7rem);
    letter-spacing: 0.1em;
    line-height: 1.08;
    opacity: 0.94;
  }

  .home-page .hero-top-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: rgba(225, 202, 156, 0.7);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--motion-fast) var(--motion-ease);
  }

  .home-page .hero-top-nav a.is-active {
    color: rgba(243, 236, 220, 0.98);
    opacity: 1;
  }

  .home-page .hero-top-nav a:hover,
  .home-page .hero-top-nav a:focus-visible {
    color: rgba(243, 236, 220, 0.96);
    opacity: 1;
  }

  .home-page .hero-top-nav a.is-active::after,
  .home-page .hero-top-nav a:hover::after,
  .home-page .hero-top-nav a:focus-visible::after {
    transform: scaleX(1);
  }

  .home-page .hero-top-nav a.hero-top-nav-link-curated {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: clamp(0.62rem, 0.72vw, 0.7rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.08;
    color: rgba(230, 220, 197, 0.78);
    border: 0;
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .hero-top-nav a.hero-top-nav-link-curated:hover,
  .home-page .hero-top-nav a.hero-top-nav-link-curated:focus-visible {
    color: rgba(243, 236, 220, 0.96);
    opacity: 1;
  }

  .home-page .hero-top-nav a.hero-top-nav-desktop-only {
    display: inline-flex;
  }

  .home-page .hero-top-nav a.hero-top-nav-mobile-only {
    display: inline-flex;
  }

  .home-page .hero-top-nav a.hero-top-nav-brand {
    order: -1;
    margin: 0 clamp(14px, 1.8vw, 26px) 0 0;
    font-size: clamp(0.66rem, 0.78vw, 0.76rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(241, 231, 209, 0.86);
    opacity: 0.96;
  }

  .home-page .hero-top-nav a.hero-top-nav-brand::after {
    background: rgba(225, 202, 156, 0.5);
  }

  .home-page .hero-top-nav a.hero-nav-link-adventures {
    margin-left: auto;
  }

  .home-page .hero-top-nav a.hero-nav-link-notifications {
    margin-right: auto;
    color: rgba(238, 228, 205, 0.9);
  }

  .home-page .hero-top-nav a.hero-nav-link-notifications:hover,
  .home-page .hero-top-nav a.hero-nav-link-notifications:focus-visible {
    color: rgba(244, 235, 216, 0.98);
  }

  .home-page .hero-top-nav a.hero-nav-link-logout[href="/logout"] {
    margin-left: 0;
    font-size: clamp(0.54rem, 0.64vw, 0.6rem);
    letter-spacing: 0.1em;
    color: rgba(205, 193, 165, 0.58);
    opacity: 0.86;
  }

  .home-page .hero-top-nav a.hero-nav-link-logout[href="/logout"]::after {
    background: rgba(216, 188, 131, 0.36);
  }

  .home-page .hero-top-nav a.hero-nav-link-logout[href="/logout"]:hover,
  .home-page .hero-top-nav a.hero-nav-link-logout[href="/logout"]:focus-visible {
    color: rgba(225, 213, 186, 0.76);
    opacity: 0.96;
  }
}

.follow-journey-inline,
.follow-journey-sheet {
  display: none;
}

.home-page .hero-slides {
  position: absolute;
  inset: 0;
}

.home-page .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--motion-panel) var(--motion-ease);
  pointer-events: none;
}

.home-page .hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-page .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--motion-panel) var(--motion-ease);
}

.home-page .hero-slide.is-active img {
  transform: scale(1);
  will-change: transform;
}

.home-page .hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(16deg, rgba(24, 34, 29, 0.78) 0%, rgba(34, 45, 38, 0.16) 55%, rgba(30, 39, 33, 0.7) 100%);
}

.home-page .hero-slide-content {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  bottom: clamp(94px, 16vh, 148px);
  z-index: 5;
  max-width: 680px;
}

.home-page .hero-slide-content h2 {
  margin: 0.2rem 0;
  font-size: clamp(1.4rem, 2.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}

.home-page .hero-slide-content h2 a:not(.hero-day-title-link) {
  text-decoration: none;
  color: rgba(233, 226, 210, 0.92);
  border-bottom: 1px solid rgba(233, 226, 210, 0.28);
}

.home-page .hero-slide-content p {
  margin: 0.1rem 0;
  line-height: 1.42;
}

.home-page .hero-day-info {
  max-width: clamp(260px, 34vw, 520px);
}

.home-page .hero-day-title {
  margin: 0 0 0.2rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  max-width: 100%;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.02;
  color: rgba(236, 230, 212, 0.97);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.42);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(228, 219, 198, 0.22);
}

.home-page .hero-day-title-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .hero-day-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  transition: color var(--motion-fast) var(--motion-ease);
}

.home-page .hero-day-title-link:hover,
.home-page .hero-day-title-link:focus-visible {
  color: rgba(242, 236, 221, 0.98);
}

.home-page .hero-day-flags {
  font-size: 0.82em;
  letter-spacing: 0.03em;
  line-height: 1;
}

.home-page .hero-meta {
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.79rem;
  color: rgba(229, 220, 198, 0.78);
  opacity: 1;
}

.home-page .hero-context {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: rgba(228, 219, 198, 0.48);
  opacity: 1;
}

.home-page .home-hero-shell {
  max-width: 620px;
}

.home-page .hero-shell {
  position: relative;
  z-index: 6;
  padding: clamp(22px, 4vw, 52px);
  padding-top: clamp(82px, 11vw, 138px);
}

.home-page .hero-card {
  position: relative;
  width: fit-content;
  max-width: clamp(280px, 40vw, 520px);
  border-radius: 16px;
}

.home-page .hero-shell h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
  font-weight: 600;
  color: #e8e2d3;
}

.home-page .hero-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.76;
}

.trip-page .hero-inline-breadcrumbs,
.activity-page .hero-inline-breadcrumbs {
  margin: 0 0 0.42rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.46rem;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.14;
  text-transform: uppercase;
  color: rgba(246, 237, 216, 0.74);
}

.activity-page .hero-inline-breadcrumbs {
  min-height: clamp(36px, 3vw, 42px);
  align-content: center;
  gap: 0.16rem 0.4rem;
  margin-bottom: 0.36rem;
}

.trip-page .hero-inline-breadcrumb-item,
.activity-page .hero-inline-breadcrumb-item {
  min-width: 0;
}

.trip-page .hero-inline-breadcrumbs a,
.trip-page .hero-inline-breadcrumbs span,
.activity-page .hero-inline-breadcrumbs a,
.activity-page .hero-inline-breadcrumbs span {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-page .hero-inline-breadcrumbs a:hover,
.trip-page .hero-inline-breadcrumbs a:focus-visible,
.activity-page .hero-inline-breadcrumbs a:hover,
.activity-page .hero-inline-breadcrumbs a:focus-visible {
  color: rgba(251, 243, 223, 0.92);
  border-bottom-color: rgba(251, 243, 223, 0.52);
}

.trip-page .hero-inline-breadcrumb-sep,
.activity-page .hero-inline-breadcrumb-sep {
  color: rgba(246, 237, 216, 0.5);
}

.home-page .hero-intro {
  margin: 0;
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  max-width: 50ch;
  opacity: 0.8;
  line-height: 1.58;
}

.home-page .hero-jump {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(236, 225, 197, 0.28);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  background: rgba(11, 16, 14, 0.26);
  color: rgba(231, 223, 205, 0.82);
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.home-page .hero-actions .hero-jump {
  margin-top: 0;
}

.home-page .hero-jump.hero-jump-alt {
  background: rgba(198, 176, 128, 0.16);
}

.home-page .hero-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  border: 1px solid rgba(236, 225, 197, 0.3);
  color: #e6e2d8;
  background: rgba(10, 15, 13, 0.3);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.home-page .hero-arrow-left {
  left: clamp(24px, 3vw, 32px);
}

.home-page .hero-arrow-right {
  right: clamp(24px, 3vw, 32px);
}

.home-page .hero-controls {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.home-page .hero-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(10px, 2vw, 22px);
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(240px, calc(100% - 132px));
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(236, 225, 197, 0.2);
  background: rgba(10, 14, 12, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.home-page .hero-progress-track {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(232, 220, 193, 0.22);
  overflow: hidden;
}

.home-page .hero-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2c86a 0%, #fff4db 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--motion-panel) var(--motion-ease);
}

.home-page .hero-progress-count {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(232, 221, 197, 0.84);
}

.home-page .hero-pagination-dots {
  display: none;
}

.home-page .hero-pagination-dot {
  display: none;
}

.home-page .hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(10px, 2vw, 22px) + 46px + clamp(58px, 6.4vh, 76px));
  transform: translateX(-50%);
  z-index: 8;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(0.66rem, 0.95vw, 0.78rem);
  color: rgba(227, 219, 199, 0.58);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(8, 11, 10, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  white-space: nowrap;
  animation:
    hero-scroll-cue-fade 700ms ease 320ms forwards,
    hero-scroll-cue-float 3.2s ease-in-out 1.05s infinite;
}

.home-page .hero-scroll-cue:hover,
.home-page .hero-scroll-cue:focus-visible {
  color: rgba(235, 227, 208, 0.8);
  background: rgba(8, 11, 10, 0.26);
}

.home-page:not(.trip-page):not(.activity-page):not(.gallery-page):not(.selects-page) {
  --page-gutter: clamp(18px, 2.2vw, 24px);
  --header-total-height: clamp(62px, 8.2vh, 86px);
  --home-hero-caption-top: calc(var(--header-total-height) + clamp(34px, 4.5vh, 54px));
  --home-hero-control-bottom: clamp(10px, 2vw, 22px);
}

@media (min-width: 769px) {
  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info {
    top: var(--home-hero-caption-top);
    left: var(--page-gutter);
    right: auto;
    bottom: auto;
    width: fit-content;
    max-width: min(420px, calc(100% - (var(--page-gutter) * 2)));
    z-index: 20;
    padding: 14px 16px 13px;
    border-radius: 16px;
    border: 1px solid rgba(216, 190, 133, 0.22);
    background: linear-gradient(125deg, rgba(8, 12, 11, 0.62) 0%, rgba(8, 12, 11, 0.36) 100%);
    box-shadow: 0 8px 22px rgba(5, 8, 6, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info .hero-day-title-link {
    pointer-events: auto;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info::before {
    content: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info > * {
    position: static;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info .hero-context {
    margin-top: 0.02rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: rgba(228, 219, 198, 0.68);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info .hero-meta {
    margin-top: 0.1rem;
    max-width: 100%;
    font-size: 0.83rem;
    color: rgba(233, 224, 202, 0.86);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-controls {
    inset: 0;
    height: auto;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-arrow {
    top: 50%;
    transform: translateY(-50%);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-progress {
    bottom: var(--home-hero-control-bottom);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-scroll-cue {
    bottom: calc(var(--home-hero-control-bottom) + 46px + clamp(12px, 1.7vh, 18px));
  }

  .home-page:not(.trip-page):not(.activity-page):not(.gallery-page):not(.selects-page) .wayform-imprint {
    left: calc(var(--page-gutter) + env(safe-area-inset-left, 0px));
    bottom: calc(clamp(20px, 2.4vh, 28px) + env(safe-area-inset-bottom, 0px));
    opacity: 0.42;
  }
}

/* Motion and interaction micro-pass */
.home-page .hero-arrow {
  opacity: 0.36;
  transform: translateY(-50%) scale(0.98);
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease);
}

.home-page [data-app-carousel]:hover .hero-arrow,
.home-page [data-app-carousel]:focus-within .hero-arrow,
.home-page [data-app-carousel].is-interacting .hero-arrow,
.home-page .hero[data-carousel]:hover .hero-arrow,
.home-page .hero[data-carousel]:focus-within .hero-arrow,
.home-page .hero[data-carousel].is-interacting .hero-arrow {
  opacity: 0.84;
  transform: translateY(-50%) scale(1.02);
  filter: brightness(1.04);
}

.home-page .hero-arrow:active {
  transform: translateY(-50%) scale(0.99);
}

.home-page .hero-arrow.is-arrow-nudge {
  animation: hero-arrow-nudge 520ms var(--motion-ease) 1;
}

@keyframes hero-arrow-nudge {
  0% {
    opacity: 0.36;
    transform: translateY(-50%) translateX(0) scale(0.98);
  }
  46% {
    opacity: 0.9;
    transform: translateY(-50%) translateX(2px) scale(1.03);
  }
  100% {
    opacity: 0.36;
    transform: translateY(-50%) translateX(0) scale(0.98);
  }
}

.home-page .trip-dropdown .cards .card a[data-app-link],
.trip-page .trip-day-list .card a[data-app-link],
.gallery-page .gallery-card,
.gallery-page .gallery-filter,
.gallery-page .gallery-photo-button img,
.selects-page .selects-card,
.selects-page .selects-photo-image,
.trip-route-toggle,
.map-interaction-toggle,
.home-owner-tools-link,
.home-page .back-to-top,
.owner-admin-actions button,
.selects-page .selects-swipe-arrow,
.selects-page .selects-admin-delete,
.selects-page .gallery-lightbox-nav,
.selects-page .gallery-lightbox-close {
  transition-timing-function: var(--motion-ease);
}

.home-page .trip-dropdown .cards .card a[data-app-link],
.trip-page .trip-day-list .card a[data-app-link] {
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.home-page .trip-dropdown .cards .card a[data-app-link]:hover,
.trip-page .trip-day-list .card a[data-app-link]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(7, 10, 8, 0.12);
}

.home-page .trip-dropdown .cards .card a[data-app-link]:active,
.trip-page .trip-day-list .card a[data-app-link]:active {
  transform: translateY(0) scale(0.99);
}

.gallery-page .gallery-card {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.gallery-page .gallery-card:hover,
.gallery-page .gallery-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 12, 7, 0.1);
}

.gallery-page .gallery-card:hover .gallery-photo-button img,
.gallery-page .gallery-card:focus-within .gallery-photo-button img {
  filter: brightness(1.03) contrast(1.02);
}

.gallery-page .gallery-card .gallery-photo-button:active {
  transform: translateY(0) scale(0.99);
}

.gallery-page .gallery-filter {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.gallery-page .gallery-filter:hover,
.gallery-page .gallery-filter:focus-visible {
  transform: translateY(-1px);
}

.gallery-page .gallery-filter:active {
  transform: translateY(0) scale(0.99);
}

/* Limit repaint scope on long, scroll-heavy sections. */
.home-page .trip-group,
.trip-page .trip-flow-section,
.trip-page .trip-day-list .card,
.gallery-page .gallery-card {
  contain: paint;
}

.trip-overview-sub a,
.trip-page .trip-page-utility-links a,
.activity-page .detail-utility-bar a,
.gallery-page .gallery-card-trip a,
.gallery-page .gallery-card-activity a,
.gallery-page .gallery-lightbox-links a,
.selects-page .selects-swipe-links a,
.selects-page .gallery-lightbox-links a {
  transition:
    color var(--motion-fast) var(--motion-ease),
    border-bottom-color var(--motion-fast) var(--motion-ease),
    text-decoration-color var(--motion-fast) var(--motion-ease),
    text-decoration-thickness var(--motion-fast) var(--motion-ease);
}

.trip-overview-sub a:hover,
.trip-overview-sub a:focus-visible,
.trip-page .trip-page-utility-links a:hover,
.trip-page .trip-page-utility-links a:focus-visible,
.activity-page .detail-utility-bar a:hover,
.activity-page .detail-utility-bar a:focus-visible,
.gallery-page .gallery-card-trip a:hover,
.gallery-page .gallery-card-trip a:focus-visible,
.gallery-page .gallery-card-activity a:hover,
.gallery-page .gallery-card-activity a:focus-visible,
.gallery-page .gallery-lightbox-links a:hover,
.gallery-page .gallery-lightbox-links a:focus-visible,
.selects-page .selects-swipe-links a:hover,
.selects-page .selects-swipe-links a:focus-visible,
.selects-page .gallery-lightbox-links a:hover,
.selects-page .gallery-lightbox-links a:focus-visible {
  text-decoration-thickness: 1.5px;
}

.trip-route-toggle:hover,
.trip-route-toggle:focus-visible,
.map-interaction-toggle:hover,
.map-interaction-toggle:focus-visible,
.home-page .back-to-top:hover,
.home-page .back-to-top:focus-visible,
.owner-admin-actions button:hover,
.owner-admin-actions button:focus-visible,
.selects-page .selects-swipe-arrow:hover,
.selects-page .selects-swipe-arrow:focus-visible,
.selects-page .selects-admin-delete:hover,
.selects-page .selects-admin-delete:focus-visible {
  transform: translateY(-1px);
}

.trip-route-toggle:active,
.map-interaction-toggle:active,
.home-page .back-to-top:active,
.owner-admin-actions button:active,
.selects-page .selects-swipe-arrow:active,
.selects-page .selects-admin-delete:active {
  transform: translateY(0) scale(0.99);
}

.trip-summary {
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.trip-summary-chevron {
  transition: transform var(--motion-fast) var(--motion-ease);
}

.trip-dropdown > section.trip {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    grid-template-rows var(--motion-panel) var(--motion-ease),
    opacity var(--motion-panel) var(--motion-ease),
    transform var(--motion-panel) var(--motion-ease);
}

.trip-dropdown > section.trip > * {
  min-height: 0;
  overflow: hidden;
}

.trip-dropdown[open] > section.trip {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.trip-page .owner-trip-disclosure-body {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--motion-panel) var(--motion-ease),
    transform var(--motion-panel) var(--motion-ease);
}

.trip-page .owner-trip-disclosure-body.is-open {
  opacity: 1;
  transform: translateY(0);
}

.activity-page .owner-admin-disclosure-toggle,
.trip-page .owner-trip-disclosure-toggle {
  transition:
    color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.activity-page .owner-admin-disclosure-body {
  animation: details-fade-in var(--motion-panel) var(--motion-ease) both;
}

@keyframes details-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main :is(#trip-summary, #trip-details, #trip-route, #trip-days, #day-summary, #day-route, #day-snapshot, #day-legs, #activity-summary, #activity-route, #activity-snapshot, #activity-details, #activity-notes):target {
  animation: section-anchor-settle var(--motion-panel) var(--motion-ease) 1;
}

@keyframes section-anchor-settle {
  from {
    opacity: 0.88;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scroll-cue-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-scroll-cue-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(3px);
  }
}

@keyframes route-map-skeleton {
  0% {
    background-position: -220px 0, 0 0;
  }
  100% {
    background-position: 220px 0, 0 0;
  }
}

.home-page .hero.full-photo-carousel {
  background: #1f2b25;
}

.home-page .hero.full-photo-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 25%, rgba(0, 0, 0, 0) 55%);
}

.home-page .hero.full-photo-carousel .hero-slide {
  background: #111712;
}

.home-page .hero.full-photo-carousel .hero-slide img {
  object-fit: contain;
  transform: scale(1.016);
  background: #111712;
}

.home-page .hero.full-photo-carousel .hero-slide.is-active img {
  transform: scale(1);
}

.home-page .hero.full-photo-carousel .hero-slide .hero-slide-content h2,
.home-page .hero.full-photo-carousel .hero-slide .hero-meta,
.home-page .hero.full-photo-carousel .hero-slide .hero-context {
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity var(--motion-panel) var(--motion-ease),
    transform var(--motion-panel) var(--motion-ease);
}

.home-page .hero.full-photo-carousel .hero-slide.is-active .hero-slide-content h2,
.home-page .hero.full-photo-carousel .hero-slide.is-active .hero-meta,
.home-page .hero.full-photo-carousel .hero-slide.is-active .hero-context {
  opacity: 1;
  transform: translateY(0);
}

.home-page .hero.full-photo-carousel .hero-shade {
  background:
    linear-gradient(12deg, rgba(9, 12, 10, 0.44) 0%, rgba(9, 12, 10, 0.08) 52%, rgba(9, 12, 10, 0.36) 100%);
}

/* Keep the hero visible while the page content scrolls up and covers it. */
.home-page .hero.full-photo-carousel,
.trip-page .trip-hero,
.activity-page .activity-photo-carousel {
  position: sticky;
  top: 0;
  z-index: 1;
}

.home-page .hero + .home-main,
.trip-page .trip-hero + .trip-main,
.activity-page .activity-photo-carousel + .activity-main {
  position: relative;
  z-index: 12;
}

.home-page .hero + .home-main::before,
.trip-page .trip-hero + .trip-main::before,
.activity-page .activity-photo-carousel + .activity-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  background-color: var(--adventure-bg-color);
  background-image: var(--adventure-bg-image);
  background-attachment: scroll;
  pointer-events: none;
  z-index: -2;
}

.home-page .home-header,
.home-page .home-main {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  background: transparent;
  color: #f6efdf;
}

.home-page .home-header {
  padding-top: 34px;
  margin-bottom: 0;
}

.home-page .home-header h1 {
  margin: 0;
}

.home-page .home-main {
  padding-top: 18px;
  padding-bottom: 64px;
}

.home-page .home-main .card {
  color: #f4ecda;
  border: 0;
  border-top: 1px solid rgba(216, 190, 133, 0.2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 14px 0;
}

.home-page .cards > .card:first-child {
  border-top-color: rgba(216, 190, 133, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .trip-overview,
  .home-page .trip-route,
  .home-page .trip-dropdown,
  .home-page .home-main .card {
    transition:
      border-color var(--motion-fast) var(--motion-ease),
      color var(--motion-fast) var(--motion-ease),
      background var(--motion-fast) var(--motion-ease);
  }

  .home-page .trip-overview:hover,
  .home-page .trip-route:hover,
  .home-page .trip-dropdown:hover {
    transform: none;
    box-shadow: none;
  }

  .home-page .home-main .card:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
  }
}

.home-page .day-legs-list a {
  border-color: rgba(216, 190, 133, 0.24);
  background: rgba(18, 25, 21, 0.14);
}

.home-page .day-combined-link {
  border-bottom-color: rgba(216, 188, 131, 0.3);
}

.home-page .day-combined-link:hover,
.home-page .day-combined-link:focus-visible {
  background: rgba(216, 188, 131, 0.12);
}

.home-page .trip-group {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 2px 0 22px;
  box-shadow: none;
}

.home-page .trip-group + .trip-group {
  margin-top: 48px;
  padding-top: 40px;
}

.home-page .trip-group + .trip-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(224, 200, 145, 0) 0%,
      rgba(224, 200, 145, 0.24) 7%,
      rgba(224, 200, 145, 0.24) 93%,
      rgba(224, 200, 145, 0) 100%
    );
  box-shadow: none;
}

.home-page .trip-group.trip-group-empty {
  padding-top: clamp(24px, 4vh, 40px);
}

.home-page .trip-overview.trip-overview-empty {
  max-width: min(820px, 100%);
  border: 1px solid rgba(216, 190, 133, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 25, 21, 0.46) 0%, rgba(15, 22, 19, 0.32) 100%);
  box-shadow: 0 20px 42px rgba(5, 9, 7, 0.22);
  padding: clamp(18px, 3.2vh, 30px) clamp(18px, 3.6vw, 34px);
}

.home-page .trip-overview-sub a {
  color: rgba(243, 212, 140, 0.84);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.home-page .trip-overview-sub a::after {
  content: "↗";
  margin-left: 0.28em;
  opacity: 0.62;
  font-size: 0.84em;
}

.home-page .trip-overview-sub a:hover,
.home-page .trip-overview-sub a:focus-visible {
  color: #f7e6bd;
  border-bottom-color: rgba(247, 230, 189, 0.62);
}

.home-page .trip-dropdown {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(216, 190, 133, 0.2);
  border-bottom: 1px solid rgba(216, 190, 133, 0.2);
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .trip-summary {
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition:
    background var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.home-page .trip-summary-title {
  color: rgba(244, 236, 217, 0.92);
}

.home-page .trip-days-summary .trip-summary-title {
  letter-spacing: 0.095em;
  color: rgba(244, 236, 217, 0.96);
}

.home-page .trip-summary-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(242, 223, 181, 0.82);
  border: 1px solid rgba(216, 190, 133, 0.24);
  background: rgba(216, 190, 133, 0.09);
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
  text-decoration: none;
}

.home-page .trip-summary-action-label-open {
  display: none;
}

.home-page .trip-summary:hover,
.home-page .trip-summary:focus-visible {
  background: transparent;
}

.home-page .trip-summary:hover .trip-summary-action,
.home-page .trip-summary:focus-visible .trip-summary-action {
  border-color: rgba(216, 190, 133, 0.36);
  color: rgba(246, 228, 184, 0.9);
}

.home-page .trip-dropdown[open] .trip-summary {
  border-bottom-color: rgba(210, 184, 127, 0.3);
}

.home-page .trip-dropdown[open] .trip-summary-action-label-closed {
  display: none;
}

.home-page .trip-dropdown[open] .trip-summary-action-label-open {
  display: inline;
}

.home-page .trip-dropdown[open] .trip-summary-action {
  color: #f6e4b8;
  border-color: rgba(216, 190, 133, 0.42);
  background: rgba(216, 190, 133, 0.13);
}

.home-page .trip-dropdown .trip {
  padding: 12px 0 14px;
}

.home-page .trip-route {
  margin: 22px 0 18px;
  border-color: rgba(216, 190, 133, 0.18);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .trip-route-head h2,
.home-page .trip-route-head h3 {
  margin: 0;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 231, 204, 0.74);
}

.home-page .trip-route-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 0 8px;
  border-bottom: 0;
  background: transparent;
}

.home-page .trip-route-head .small {
  color: rgba(243, 231, 204, 0.64);
  margin-left: auto;
}

.home-page .trip-route-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: rgba(242, 223, 181, 0.78);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.home-page .trip-route-toggle:hover,
.home-page .trip-route-toggle:focus-visible {
  color: #f6e4b8;
  border-bottom-color: rgba(246, 228, 184, 0.62);
}

.home-page .trip-route-map-wrap {
  margin-top: 2px;
}

.home-page .trip-route.is-collapsed .trip-route-map-wrap {
  display: none;
}

.home-page .trip-route-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 190, 133, 0.14);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(248, 237, 212, 0.04);
}

.home-page .trip-route-map.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 640;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(244, 233, 205, 0.04) 0%, rgba(244, 233, 205, 0.16) 45%, rgba(244, 233, 205, 0.04) 100%),
    rgba(18, 25, 21, 0.24);
  animation: route-map-skeleton 1.05s linear infinite;
}

.home-page .trip-stats {
  width: 100%;
  margin-top: 4px;
  justify-content: flex-start;
  gap: 0;
  color: rgba(242, 227, 194, 0.68);
}

.home-page .trip-stat {
  border: 0;
  background: transparent;
  position: static;
  padding: 0;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
  box-shadow: none;
}

.home-page .trip-stat + .trip-stat::before {
  content: "•";
  margin: 0 0.56rem 0 0.44rem;
  color: rgba(242, 227, 194, 0.58);
}

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

.home-page .trip-stat-value {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 660;
  color: rgba(255, 246, 223, 0.94);
}

.home-page .trip-stat--elevation .trip-stat-value::after {
  content: " gain";
  font-size: 0.76em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(242, 227, 194, 0.74);
}

.home-page .trip-overview-sub,
.home-page .trip-summary-sub,
.home-page .trip-route-note {
  margin-top: 2px;
  color: rgba(246, 237, 216, 0.62);
}

.home-page .trip-overview {
  display: block;
  margin-bottom: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .trip-overview-title {
  font-size: clamp(1.22rem, 2.3vw, 1.56rem);
  font-weight: 700;
  color: #f9f1de;
}

.home-page .trip-route-map {
  height: 220px;
}

.home-page .cards {
  gap: 0;
}

.home-page .trip-dropdown .cards {
  gap: 14px;
}

.home-page .trip-dropdown .cards .card {
  border-top-color: rgba(216, 190, 133, 0.12);
}

.home-page .trip-dropdown .cards .card a[data-app-link] {
  position: relative;
  border-radius: 10px;
  padding: 8px 10px 10px 12px;
  background: rgba(216, 190, 133, 0.02);
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.home-page .trip-dropdown .cards .card a[data-app-link]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: rgba(216, 190, 133, 0);
  transition: background-color var(--motion-fast) var(--motion-ease);
}

.home-page .trip-dropdown .cards .card a[data-app-link]:hover {
  background: rgba(216, 190, 133, 0.08);
}

.home-page .trip-dropdown .cards .card a[data-app-link]:hover::before,
.home-page .trip-dropdown .cards .card a[data-app-link]:active::before,
.home-page .trip-dropdown .cards .card a[data-app-link].is-selected::before {
  background: rgba(216, 190, 133, 0.64);
}

.home-page .trip-dropdown .cards .card a[data-app-link]:active,
.home-page .trip-dropdown .cards .card a[data-app-link].is-selected {
  background: rgba(216, 190, 133, 0.13);
}

.home-page .trip-dropdown .cards .title {
  margin-bottom: 4px;
  color: rgba(249, 241, 222, 0.96);
}

.home-page .trip-dropdown .cards .meta {
  font-size: 0.84rem;
  line-height: 1.38;
  color: rgba(246, 237, 216, 0.62);
}

.home-page .trip-dropdown .cards .activity-description {
  margin-top: 6px;
  line-height: 1.58;
  color: rgba(246, 237, 216, 0.76);
}

.home-page .trip-dropdown .cards .card a[data-app-link]:focus-visible {
  outline: 2px solid rgba(242, 227, 194, 0.72);
  outline-offset: 2px;
  background: rgba(216, 190, 133, 0.1);
}

.home-owner-tools {
  margin: 0 0 10px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
}

.home-owner-tools-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  color: rgba(242, 223, 181, 0.68);
}

.home-owner-tools-link:hover,
.home-owner-tools-link:focus-visible {
  color: #f6e5bf;
  border-bottom-color: rgba(246, 229, 191, 0.62);
}

.home-page .back-to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 26px);
  bottom: clamp(16px, 2.8vh, 30px);
  z-index: 44;
  contain: paint;
  will-change: transform, opacity;
  appearance: none;
  border: 1px solid rgba(216, 190, 133, 0.2);
  border-radius: 999px;
  background: rgba(14, 20, 17, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(246, 237, 216, 0.7);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.home-page .back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-page .back-to-top:hover,
.home-page .back-to-top:focus-visible {
  border-color: rgba(242, 227, 194, 0.42);
  color: rgba(251, 243, 223, 0.92);
}

.section-nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(214, 189, 135, 0.22);
  border-radius: 12px;
  background: rgba(23, 33, 28, 0.44);
  backdrop-filter: blur(8px);
}

.section-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(228, 218, 195, 0.82);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(216, 188, 131, 0.18);
  background: rgba(18, 25, 21, 0.34);
  transition:
    color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.section-nav a:hover,
.section-nav a:focus-visible {
  background: rgba(231, 220, 194, 0.08);
  border-color: rgba(216, 188, 131, 0.32);
}

.section-nav a.is-active {
  color: #262016;
  border-color: rgba(228, 208, 168, 0.6);
  background: rgba(228, 208, 168, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 229, 0.18);
}

.trip-page .trip-page-header,
.activity-page .activity-page-header {
  margin-bottom: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel-bg);
  box-shadow: 0 8px 20px rgba(16, 12, 7, 0.14);
  backdrop-filter: blur(7px);
}

.trip-page .trip-hero {
  min-height: min(86vh, 760px);
}

.trip-page .trip-hero-shell {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: calc(var(--header-total-height, 76px) + clamp(20px, 3vh, 34px));
}

.trip-page .hero-slide-content {
  bottom: clamp(56px, 11vh, 96px);
}

.trip-page .trip-hero .hero-pagination-dots {
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  pointer-events: auto;
}

.trip-page .trip-hero .hero-pagination-dot {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 240, 227, 0.35);
  opacity: 1;
  transform: scale(1);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease);
}

.trip-page .trip-hero .hero-pagination-dot.is-active {
  width: 8px;
  background: rgba(249, 244, 233, 0.9);
  transform: scale(1.2);
}

@media (min-width: 769px) {
  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-progress,
  .trip-page .trip-hero .hero-progress,
  .activity-page .activity-photo-carousel .hero-progress {
    display: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-pagination-dots,
  .trip-page .trip-hero .hero-pagination-dots,
  .activity-page .activity-photo-carousel .hero-pagination-dots {
    position: absolute;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: auto;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-pagination-dot,
  .trip-page .trip-hero .hero-pagination-dot,
  .activity-page .activity-photo-carousel .hero-pagination-dot {
    display: block;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(246, 240, 227, 0.35);
    opacity: 1;
    transform: scale(1);
    transition:
      transform var(--motion-fast) var(--motion-ease),
      background-color var(--motion-fast) var(--motion-ease),
      opacity var(--motion-fast) var(--motion-ease);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-pagination-dot.is-active,
  .trip-page .trip-hero .hero-pagination-dot.is-active,
  .activity-page .activity-photo-carousel .hero-pagination-dot.is-active {
    width: 8px;
    background: rgba(249, 244, 233, 0.9);
    transform: scale(1.2);
  }
}

.trip-page .trip-hero-card {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 22px);
  border: 1px solid rgba(216, 190, 133, 0.24);
  background: linear-gradient(150deg, rgba(10, 15, 13, 0.52) 0%, rgba(10, 15, 13, 0.3) 100%);
  box-shadow: 0 10px 28px rgba(5, 8, 6, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: trip-hero-card-enter 190ms var(--motion-ease);
}

.trip-page .trip-hero-card h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.58rem, 3vw, 2.34rem);
  font-weight: 580;
  line-height: 1.08;
  color: rgba(237, 230, 212, 0.96);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.trip-page .trip-hero-jump {
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(223, 214, 191, 0.74);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration-line: underline;
  text-decoration-color: rgba(223, 214, 191, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color var(--motion-fast) var(--motion-ease),
    text-decoration-color var(--motion-fast) var(--motion-ease);
}

.trip-page .trip-hero-jump:hover,
.trip-page .trip-hero-jump:focus-visible {
  color: rgba(236, 228, 210, 0.88);
  text-decoration-color: rgba(236, 228, 210, 0.62);
}

.trip-page .trip-hero-meta {
  margin: 0;
  max-width: 100%;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(223, 214, 191, 0.74);
  text-wrap: balance;
}

.trip-page .trip-hero-stats {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  font-variant-numeric: tabular-nums;
}

.trip-page .trip-hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
}

.trip-page .trip-hero-stat-sep {
  color: rgba(230, 219, 193, 0.44);
  line-height: 1;
}

.trip-page .trip-hero-stat-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(221, 210, 185, 0.64);
}

.trip-page .trip-hero-stat-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(236, 228, 210, 0.92);
}

.trip-page .trip-hero-stats-inline {
  margin-top: 10px;
}

@keyframes trip-hero-card-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trip-page .trip-main {
  padding-top: 26px;
  padding-bottom: 74px;
}

.trip-page .trip-page-header {
  margin-bottom: 24px;
  border-color: rgba(216, 190, 133, 0.14);
  border-radius: 18px;
  padding: 9px 12px 10px;
  background: linear-gradient(155deg, rgba(26, 37, 31, 0.28) 0%, rgba(20, 29, 25, 0.2) 100%);
  box-shadow: 0 4px 12px rgba(11, 9, 6, 0.08);
}

.trip-page .trip-details-summary {
  scroll-margin-top: calc(var(--header-total-height, 76px) + 14px);
}

.trip-page .trip-page-breadcrumb {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem 0.5rem;
  color: rgba(226, 216, 194, 0.76);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.trip-page .trip-page-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 216, 194, 0.28);
  transition:
    color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.trip-page .trip-page-breadcrumb a:hover,
.trip-page .trip-page-breadcrumb a:focus-visible {
  color: rgba(236, 228, 210, 0.92);
  border-bottom-color: rgba(236, 228, 210, 0.52);
}

.trip-page .trip-page-breadcrumb-sep {
  color: rgba(226, 216, 194, 0.5);
}

.trip-page .trip-page-breadcrumb-current {
  color: rgba(236, 228, 210, 0.86);
}

.trip-page .trip-page-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.62rem, 3.2vw, 2.34rem);
  font-weight: 600;
  line-height: 1.08;
  color: #e8e2d2;
}

.trip-page .trip-page-header .small {
  color: rgba(226, 217, 196, 0.72);
}

.trip-page .trip-page-utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
}

.trip-page .trip-page-utility-links a {
  color: rgba(221, 203, 164, 0.76);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 540;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(221, 203, 164, 0.24);
  transition:
    color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.trip-page .trip-page-utility-links a:hover,
.trip-page .trip-page-utility-links a:focus-visible {
  color: rgba(232, 218, 186, 0.88);
  border-bottom-color: rgba(232, 218, 186, 0.46);
}

.trip-page .trip-page-meta {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.065em;
  color: rgba(221, 212, 190, 0.56);
  line-height: 1.55;
}

.trip-page .trip-page-summary {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 10px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 190, 133, 0.18);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(32, 45, 38, 0.34) 0%, rgba(24, 35, 29, 0.24) 100%);
  box-shadow: 0 3px 10px rgba(9, 8, 6, 0.07);
}

.trip-page .trip-summary-stat {
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: start;
}

.trip-page .trip-summary-stat-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(217, 206, 181, 0.64);
}

.trip-page .trip-summary-stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(234, 226, 207, 0.9);
  font-variant-numeric: tabular-nums;
}

.trip-page .trip-page-totals {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  color: rgba(225, 216, 194, 0.74);
}

.trip-page .trip-page-total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24rem;
  font-family: var(--font-body);
}

.trip-page .trip-page-total + .trip-page-total::before {
  content: "•";
  margin: 0 0.52rem;
  color: rgba(248, 239, 218, 0.52);
}

.trip-page .trip-page-total-value {
  font-size: 0.93rem;
  font-weight: 620;
  color: rgba(235, 227, 208, 0.9);
  font-variant-numeric: tabular-nums;
}

.trip-page .trip-page-total-unit {
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(217, 208, 186, 0.58);
}

.trip-page .trip-flow-section {
  margin: 0 0 34px;
}

.trip-page .trip-flow-section + .trip-flow-section {
  padding-top: 24px;
  border-top: 1px solid rgba(216, 190, 133, 0.12);
}

.trip-page .trip-flow-section > h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(221, 211, 188, 0.66);
}

.trip-page .trip-route.trip-flow-section {
  margin: 0 0 34px;
}

.trip-page .trip-route-empty .trip-route-note {
  margin: 0;
}

.trip-page .trip-stats-section .trip-page-totals {
  margin: 0;
}

.trip-page .trip-days-section .trip-day-list {
  margin: 0;
}

.trip-page .section-nav {
  margin-bottom: 24px;
  padding: 6px;
  border-color: rgba(214, 189, 135, 0.18);
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(19, 28, 24, 0.36) 0%, rgba(17, 24, 21, 0.26) 100%);
  box-shadow: 0 3px 10px rgba(9, 8, 6, 0.07);
}

.trip-page .section-nav a {
  color: rgba(242, 223, 181, 0.78);
  border-color: rgba(216, 188, 131, 0.2);
  background: rgba(18, 25, 21, 0.22);
}

.trip-page .section-nav a:hover,
.trip-page .section-nav a:focus-visible {
  color: rgba(246, 228, 184, 0.92);
  border-color: rgba(216, 188, 131, 0.44);
  background: rgba(219, 192, 132, 0.13);
}

.trip-page .section-nav a.is-active {
  color: #221a11;
  border-color: rgba(242, 227, 194, 0.82);
  background: rgba(242, 223, 181, 0.94);
}

.trip-page .section-nav a[data-default-section]:not(.is-active) {
  border-color: rgba(216, 188, 131, 0.3);
  color: rgba(246, 228, 184, 0.86);
}

.trip-page .trip-route-map-lg {
  height: 360px;
}

.trip-page .trip-route {
  margin: 0 0 34px;
  border-color: rgba(216, 190, 133, 0.12);
  border-radius: 18px;
  background: linear-gradient(162deg, rgba(22, 32, 27, 0.3) 0%, rgba(19, 28, 24, 0.21) 100%);
  box-shadow: 0 4px 12px rgba(9, 8, 6, 0.07);
}

.trip-page .trip-route-head {
  padding: 6px 9px 5px;
}

.trip-page .trip-route-head h2,
.trip-page .trip-route-head h3 {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(243, 231, 204, 0.76);
}

.trip-page .trip-route-head .small {
  color: rgba(243, 231, 204, 0.62);
}

.trip-page .trip-route-map {
  margin: 0;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(216, 190, 133, 0.1);
  border-radius: 0 0 18px 18px;
  box-shadow: none;
}

.trip-page .trip-day-list {
  gap: 16px;
}

.trip-page .trip-day-list .card {
  border: 0;
  border-top: 1px solid rgba(216, 190, 133, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.trip-page .trip-day-list .card a[data-app-link] {
  position: relative;
  border-radius: 10px;
  padding: 8px 10px 10px 12px;
  background: rgba(216, 190, 133, 0.02);
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.trip-page .trip-day-list .card a[data-app-link]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: rgba(216, 190, 133, 0);
  transition: background-color var(--motion-fast) var(--motion-ease);
}

.trip-page .trip-day-list .card a[data-app-link]:hover {
  background: rgba(216, 190, 133, 0.08);
}

.trip-page .trip-day-list .card a[data-app-link]:hover::before,
.trip-page .trip-day-list .card a[data-app-link]:active::before,
.trip-page .trip-day-list .card a[data-app-link].is-selected::before {
  background: rgba(216, 190, 133, 0.64);
}

.trip-page .trip-day-list .card a[data-app-link]:active,
.trip-page .trip-day-list .card a[data-app-link].is-selected {
  background: rgba(216, 190, 133, 0.13);
}

.trip-page .trip-day-list .card a[data-app-link]:focus-visible {
  outline: 2px solid rgba(216, 190, 133, 0.62);
  outline-offset: 2px;
  background: rgba(216, 190, 133, 0.1);
}

.trip-page .trip-day-list .title {
  margin-bottom: 4px;
  color: rgba(233, 225, 206, 0.9);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.trip-page .trip-day-list .meta {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(221, 211, 189, 0.58);
}

.trip-page .trip-day-list .activity-description {
  margin-top: 6px;
  line-height: 1.66;
  color: rgba(224, 215, 193, 0.68);
}

.trip-page .trip-day-list .day-combined-link {
  padding: 12px 14px;
  border-bottom-color: rgba(216, 188, 131, 0.3);
}

.trip-page .trip-day-list .day-combined-link:hover,
.trip-page .trip-day-list .day-combined-link:focus-visible {
  background: rgba(216, 188, 131, 0.12);
}

.trip-page .trip-day-list .day-legs-summary {
  padding: 9px 14px 10px;
}

.trip-page .trip-day-list .day-legs-list {
  padding: 0 14px 14px;
  gap: 10px;
}

.trip-page .trip-day-list .day-legs-list a {
  border-color: rgba(216, 190, 133, 0.24);
  background: rgba(18, 25, 21, 0.14);
}

.trip-page .owner-admin-panel.owner-trip-disclosure {
  margin: 0 0 14px;
  border-color: rgba(216, 190, 133, 0.24);
  background: rgba(20, 28, 24, 0.26);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.trip-page .owner-trip-disclosure-toggle {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 10px 12px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: rgba(226, 216, 193, 0.76);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.trip-page .owner-trip-disclosure-toggle:focus-visible {
  outline: 2px solid rgba(216, 190, 133, 0.52);
  outline-offset: -2px;
}

.trip-page .owner-trip-disclosure-label-open {
  display: none;
}

.trip-page .owner-trip-disclosure-toggle[aria-expanded="true"] .owner-trip-disclosure-label-open {
  display: inline;
}

.trip-page .owner-trip-disclosure-toggle[aria-expanded="true"] .owner-trip-disclosure-label-closed {
  display: none;
}

.trip-page .owner-trip-disclosure-body {
  padding: 2px 12px 12px;
  border-top: 1px solid rgba(216, 190, 133, 0.16);
}

@media (min-width: 769px) {
  .trip-page .trip-page-utility-links {
    display: none;
  }

  .trip-page .trip-main {
    padding-top: 34px;
    padding-bottom: 78px;
  }

  .trip-page .trip-details-summary {
    margin-bottom: 34px;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(216, 190, 133, 0.14);
  }

  .trip-page .trip-page-breadcrumb {
    color: rgba(226, 216, 194, 0.66);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .trip-page .trip-page-meta-row {
    margin: 8px 0 0;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    line-height: 1.55;
    color: rgba(222, 213, 191, 0.66);
    text-wrap: pretty;
  }

  .trip-page .trip-page-summary {
    margin-top: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 0;
  }

  .trip-page .trip-summary-stat {
    gap: 5px;
    padding: 0 18px;
  }

  .trip-page .trip-summary-stat:nth-child(3n + 1) {
    padding-left: 0;
  }

  .trip-page .trip-summary-stat:nth-child(3n) {
    padding-right: 0;
  }

  .trip-page .trip-summary-stat:nth-child(3n + 2),
  .trip-page .trip-summary-stat:nth-child(3n + 3) {
    border-left: 1px solid rgba(216, 190, 133, 0.12);
  }

  .trip-page .trip-summary-stat-label {
    font-size: 0.63rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(217, 206, 181, 0.64);
  }

  .trip-page .trip-summary-stat-value {
    font-size: 1.14rem;
    font-weight: 620;
    line-height: 1.24;
    color: rgba(236, 228, 210, 0.9);
  }

  .trip-page .trip-flow-section {
    margin: 0 0 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .trip-page .trip-flow-section + .trip-flow-section {
    padding-top: 28px;
    border-top: 1px solid rgba(216, 190, 133, 0.12);
  }

  .trip-page .trip-flow-section > h2 {
    margin: 0 0 12px;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    color: rgba(221, 211, 188, 0.64);
  }

  .trip-page .trip-route {
    margin: 0 0 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .trip-page .trip-route-head {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(216, 190, 133, 0.12);
  }

  .trip-page .trip-route-head h2,
  .trip-page .trip-route-head h3 {
    color: rgba(237, 228, 207, 0.72);
  }

  .trip-page .trip-route-head .small {
    color: rgba(237, 228, 207, 0.56);
  }

  .trip-page .trip-route-map {
    border: 1px solid rgba(216, 190, 133, 0.14);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(9, 8, 6, 0.06);
    overflow: hidden;
  }

  .trip-page .trip-route-map-lg {
    height: 380px;
  }

  .trip-page .trip-day-list {
    margin: 0;
    padding: 0;
    gap: 0;
    list-style: none;
    border-top: 1px solid rgba(216, 190, 133, 0.12);
  }

  .trip-page .trip-day-list .card {
    border: 0;
    border-bottom: 1px solid rgba(216, 190, 133, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .trip-page .trip-day-list .card a[data-app-link] {
    border-radius: 0;
    padding: 16px 4px 16px 0;
    background: transparent;
    box-shadow: none;
  }

  .trip-page .trip-day-list .card a[data-app-link]::before {
    display: none;
  }

  .trip-page .trip-day-list .card a[data-app-link]:hover {
    background: rgba(216, 190, 133, 0.06);
  }

  .trip-page .trip-day-list .card a[data-app-link]:active,
  .trip-page .trip-day-list .card a[data-app-link].is-selected {
    background: rgba(216, 190, 133, 0.1);
  }

  .trip-page .trip-day-list .title {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 600;
    letter-spacing: 0.012em;
    color: rgba(236, 228, 210, 0.92);
  }

  .trip-page .trip-day-list .meta {
    margin-top: 3px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    line-height: 1.52;
    color: rgba(221, 211, 189, 0.64);
  }

  .trip-page .trip-day-list .activity-description {
    margin-top: 7px;
    max-width: 74ch;
    font-size: 0.94rem;
    line-height: 1.68;
    color: rgba(224, 215, 193, 0.7);
  }
}

.activity-page .activity-photo-carousel {
  min-height: min(82vh, 760px);
  background: #1f2b25;
}

.activity-page .activity-photo-carousel .hero-slide img {
  object-fit: contain;
  transform: none;
  background: #111712;
}

.activity-page .activity-photo-carousel .hero-shade {
  background:
    linear-gradient(12deg, rgba(9, 12, 10, 0.44) 0%, rgba(9, 12, 10, 0.08) 52%, rgba(9, 12, 10, 0.36) 100%);
}

.activity-page .activity-hero-shell {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: calc(var(--header-total-height, 76px) + clamp(20px, 3vh, 34px));
}

.activity-page .activity-hero-card {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 22px);
  border: 1px solid rgba(216, 190, 133, 0.24);
  background: linear-gradient(150deg, rgba(10, 15, 13, 0.52) 0%, rgba(10, 15, 13, 0.3) 100%);
  box-shadow: 0 10px 28px rgba(5, 8, 6, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: trip-hero-card-enter 190ms var(--motion-ease);
}

.activity-page .activity-hero-card h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.58rem, 3vw, 2.34rem);
  font-weight: 580;
  line-height: 1.08;
  color: rgba(237, 230, 212, 0.96);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.activity-page .activity-hero-jump {
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(223, 214, 191, 0.74);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration-line: underline;
  text-decoration-color: rgba(223, 214, 191, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color var(--motion-fast) var(--motion-ease),
    text-decoration-color var(--motion-fast) var(--motion-ease);
}

.activity-page .activity-hero-jump:hover,
.activity-page .activity-hero-jump:focus-visible {
  color: rgba(236, 228, 210, 0.88);
  text-decoration-color: rgba(236, 228, 210, 0.62);
}

.activity-page .hero-slide-content {
  bottom: clamp(20px, 5vh, 44px);
}

.activity-page .hero-slide-content p {
  max-width: 48ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.activity-page .activity-main {
  padding-top: 26px;
  padding-bottom: 74px;
}

.activity-page .activity-page-header {
  margin-bottom: 18px;
}

.activity-page .activity-page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
  color: #e8e2d2;
}

.activity-page .activity-page-header .meta {
  color: rgba(225, 216, 194, 0.68);
  line-height: 1.55;
}

.activity-page .activity-back-to-trip {
  display: none;
}

.activity-page .activity-page-header .small {
  color: rgba(222, 213, 191, 0.7);
}

.activity-page .activity-page-header a {
  color: rgba(223, 204, 164, 0.86);
  font-weight: 600;
}

.activity-page .activity-panel {
  margin: 0 0 16px;
  border: 1px solid rgba(216, 190, 133, 0.2);
  border-radius: 14px;
  background: rgba(20, 29, 25, 0.34);
  box-shadow: 0 8px 20px rgba(16, 12, 7, 0.14);
  padding: 14px;
}

.activity-page .activity-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(223, 212, 188, 0.72);
}

.owner-admin-panel {
  margin: 0 0 16px;
  border: 1px solid rgba(216, 190, 133, 0.26);
  border-radius: 14px;
  border-color: rgba(216, 190, 133, 0.26);
  background: rgba(20, 28, 24, 0.34);
  box-shadow: 0 8px 20px rgba(16, 12, 7, 0.14);
  padding: 14px;
}

.owner-admin-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(223, 212, 188, 0.72);
}

.owner-admin-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.owner-admin-form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 236, 224, 0.86);
}

.owner-admin-form input,
.owner-admin-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(213, 191, 145, 0.35);
  border-radius: 10px;
  background: rgba(11, 17, 19, 0.72);
  color: #f5f1e3;
  font-size: 0.9rem;
  padding: 9px 11px;
}

.owner-admin-form textarea {
  resize: vertical;
}

.owner-admin-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.owner-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-admin-actions button {
  appearance: none;
  border: 1px solid rgba(213, 191, 145, 0.5);
  border-radius: 10px;
  background: rgba(13, 21, 24, 0.9);
  color: #f2dfb5;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.owner-admin-actions button:hover,
.owner-admin-actions button:focus-visible {
  background: rgba(33, 47, 53, 0.95);
  border-color: rgba(232, 208, 157, 0.8);
}

.owner-admin-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.owner-admin-actions .owner-admin-danger {
  border-color: rgba(212, 116, 108, 0.6);
  color: #f4b0ab;
}

.owner-admin-status {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.owner-admin-status-message {
  line-height: 1.35;
}

.owner-admin-status-progress {
  position: relative;
  width: min(320px, 100%);
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(240, 233, 216, 0.2);
}

.owner-admin-status-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9a455 0%, #efd9a1 100%);
  transition: width 220ms ease;
}

.owner-admin-status-progress[data-mode="indeterminate"] .owner-admin-status-progress-fill {
  width: 38%;
  animation: owner-status-indeterminate 1.15s ease-in-out infinite;
}

@keyframes owner-status-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(275%);
  }
}

.owner-admin-status[data-tone="pending"] {
  color: rgba(250, 227, 174, 0.9);
}

.owner-admin-status[data-tone="success"] {
  color: rgba(177, 231, 193, 0.92);
}

.owner-admin-status[data-tone="error"] {
  color: rgba(248, 166, 160, 0.95);
}

.owner-photo-manager {
  margin-top: 12px;
  border-top: 1px solid rgba(212, 191, 144, 0.25);
  padding-top: 12px;
}

.owner-photo-manager h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8dec8;
}

.owner-photo-upload-form {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.owner-photo-upload-form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 236, 224, 0.86);
}

.owner-photo-upload-form input[type="file"] {
  width: 100%;
}

.owner-photo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.owner-photo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(213, 191, 145, 0.24);
  border-radius: 10px;
  background: rgba(11, 17, 19, 0.5);
  padding: 8px 10px;
}

.owner-photo-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #f4edd9;
  overflow-wrap: anywhere;
}

.owner-photo-delete {
  flex-shrink: 0;
}

.owner-photo-empty {
  margin: 0;
}

.activity-page .activity-notes-text {
  margin: 0;
  white-space: pre-line;
  line-height: 1.55;
}

.activity-page .activity-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.activity-page .activity-metric {
  margin: 0;
  border: 1px solid rgba(216, 190, 133, 0.45);
  border-radius: 12px;
  background: rgba(16, 23, 20, 0.42);
  padding: 8px 10px 8px 12px;
  position: relative;
  overflow: hidden;
}

.activity-page .activity-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(242, 227, 194, 0.46);
}

.activity-page .activity-metric[data-metric="distance"]::before {
  background: #8daf8c;
}

.activity-page .activity-metric[data-metric="elevation"]::before {
  background: #f2c86a;
}

.activity-page .activity-metric[data-metric="time"]::before {
  background: #7ecb9a;
}

.activity-page .activity-metric-label {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 209, 187, 0.62);
}

.activity-page .activity-metric-value {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.15;
  color: rgba(232, 224, 205, 0.88);
  font-variant-numeric: tabular-nums;
}

.activity-page .activity-details-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
}

.activity-page .activity-details-list div {
  border-top: 1px solid rgba(216, 190, 133, 0.22);
  padding-top: 6px;
}

.activity-page .activity-details-list dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 208, 184, 0.66);
}

.activity-page .activity-details-list dd {
  margin: 3px 0 0;
  color: rgba(229, 220, 200, 0.86);
}

.activity-page .day-page-legs-list a {
  border-color: rgba(216, 190, 133, 0.45);
  background: rgba(16, 23, 20, 0.42);
  color: rgba(229, 220, 200, 0.86);
}

.activity-page .day-note-title {
  color: rgba(229, 220, 200, 0.88);
}

.activity-page .day-note-title a {
  color: rgba(223, 204, 164, 0.86);
}

/* Activity/day detail editorial refinements */
.activity-page .detail-utility-bar {
  margin: 0 0 10px;
  border: 1px solid rgba(198, 126, 94, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(144, 84, 62, 0.68) 0%, rgba(118, 68, 52, 0.64) 100%);
  box-shadow: 0 6px 14px rgba(8, 7, 5, 0.18);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.activity-page .detail-utility-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.activity-page .detail-utility-bar a {
  color: rgba(236, 222, 208, 0.84);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(236, 222, 208, 0.28);
  line-height: 1;
  padding-bottom: 1px;
  transition:
    color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}

.activity-page .detail-utility-bar a:hover,
.activity-page .detail-utility-bar a:focus-visible {
  color: rgba(244, 235, 224, 0.9);
  border-bottom-color: rgba(244, 235, 224, 0.5);
}

.activity-page .activity-page-header {
  margin-bottom: 14px;
  padding: 11px 14px 12px;
}

.activity-page .activity-page-header h1 {
  margin: 0 0 5px;
}

.activity-page .activity-page-header .meta {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: rgba(225, 216, 194, 0.62);
}

.activity-page .section-nav {
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  border-color: rgba(214, 189, 135, 0.34);
  background: rgba(18, 26, 22, 0.44);
}

.activity-page .section-nav a {
  color: rgba(242, 223, 181, 0.76);
  border-color: rgba(216, 188, 131, 0.2);
  background: rgba(18, 25, 21, 0.2);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.activity-page .section-nav a:hover,
.activity-page .section-nav a:focus-visible {
  color: rgba(232, 219, 190, 0.88);
  border-color: rgba(216, 188, 131, 0.3);
  background: rgba(231, 220, 194, 0.08);
}

.activity-page .section-nav a.is-active {
  color: #221a11;
  border-color: rgba(242, 227, 194, 0.82);
  background: rgba(242, 223, 181, 0.93);
}

.activity-page .activity-panel {
  margin: 0 0 18px;
  border-color: rgba(216, 190, 133, 0.28);
  background: rgba(20, 29, 25, 0.28);
  box-shadow: 0 6px 14px rgba(16, 12, 7, 0.12);
  padding: 15px;
}

.activity-page .activity-panel h2 {
  margin: 0 0 10px;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  color: rgba(221, 211, 188, 0.66);
}

.activity-page .activity-route .trip-route-head {
  padding: 8px 12px 7px;
}

.activity-page .activity-route .trip-route-head h2,
.activity-page .activity-route .trip-route-head h3 {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(221, 211, 188, 0.64);
}

.activity-page .activity-route .trip-route-head .small {
  color: rgba(218, 206, 182, 0.56);
}

.activity-page .activity-route .trip-route-map {
  margin: 0 10px 10px;
  width: auto;
  border: 1px solid rgba(216, 190, 133, 0.22);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(248, 237, 212, 0.05);
}

.activity-page .activity-metrics {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px 14px;
}

.activity-page .activity-metric {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.activity-page .activity-metric::before {
  display: none;
}

.activity-page .activity-metric-label {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(217, 205, 180, 0.56);
}

.activity-page .activity-metric-value {
  margin-top: 1px;
  font-size: 0.97rem;
  font-weight: 620;
  color: rgba(231, 223, 203, 0.88);
  font-variant-numeric: tabular-nums;
}

.activity-page .activity-metric[data-priority="secondary"] .activity-metric-value {
  font-size: 0.86rem;
  font-weight: 560;
  color: rgba(220, 209, 186, 0.7);
}

.activity-page .activity-details-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.activity-page .activity-details-list div {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 8px;
  position: relative;
}

.activity-page .activity-details-list div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 190, 133, 0.24), rgba(216, 190, 133, 0));
}

.activity-page .activity-details-list dt {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  color: rgba(217, 205, 180, 0.56);
}

.activity-page .activity-details-list dd {
  margin-top: 4px;
  font-size: 0.95rem;
  color: rgba(226, 217, 196, 0.84);
}

.activity-page .activity-notes-text {
  line-height: 1.68;
  color: rgba(224, 215, 195, 0.84);
  border-left: 2px solid rgba(216, 190, 133, 0.4);
  padding-left: 12px;
}

.activity-page .day-notes-list {
  gap: 14px;
}

.activity-page .day-notes-list li {
  padding-left: 10px;
  border-left: 1px solid rgba(216, 190, 133, 0.28);
}

.activity-page .day-note-title {
  margin-bottom: 5px;
  color: rgba(227, 218, 197, 0.84);
}

.activity-page .day-page-legs-list a {
  border-color: rgba(216, 190, 133, 0.28);
  border-radius: 12px;
  background: rgba(16, 23, 20, 0.28);
}

.activity-page .owner-admin-panel {
  margin: 0 0 14px;
  border-color: rgba(216, 190, 133, 0.24);
  background: rgba(20, 28, 24, 0.26);
  box-shadow: none;
  padding: 0;
}

.activity-page .owner-admin-disclosure {
  overflow: hidden;
}

.activity-page .owner-admin-disclosure-toggle {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 216, 193, 0.76);
  user-select: none;
}

.activity-page .owner-admin-disclosure-toggle::-webkit-details-marker {
  display: none;
}

.activity-page .owner-admin-disclosure-label-open {
  display: none;
}

.activity-page .owner-admin-disclosure[open] .owner-admin-disclosure-label-open {
  display: inline;
}

.activity-page .owner-admin-disclosure[open] .owner-admin-disclosure-label-closed {
  display: none;
}

.activity-page .owner-admin-disclosure-body {
  padding: 2px 12px 12px;
  border-top: 1px solid rgba(216, 190, 133, 0.16);
}

.activity-page .owner-admin-form {
  gap: 9px;
}

.activity-page .owner-admin-form input,
.activity-page .owner-admin-form textarea {
  border-color: rgba(213, 191, 145, 0.24);
  background: rgba(10, 16, 19, 0.56);
  padding: 8px 10px;
}

.activity-page .activity-flow-section {
  margin: 0;
}

.activity-page .activity-flow-section + .activity-flow-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(216, 190, 133, 0.16);
}

.activity-page .activity-panel.activity-flow-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.activity-page .activity-panel.activity-flow-section h2 {
  margin: 0 0 10px;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  color: rgba(243, 231, 204, 0.76);
}

.activity-page .trip-route.activity-flow-section {
  margin: 0;
  border-color: rgba(216, 190, 133, 0.16);
  border-radius: 14px;
  background: linear-gradient(162deg, rgba(22, 32, 27, 0.28) 0%, rgba(19, 28, 24, 0.2) 100%);
  box-shadow: 0 4px 12px rgba(9, 8, 6, 0.07);
}

.activity-page .activity-route-empty .trip-route-note {
  margin: 0;
}

@media (min-width: 769px) {
  .activity-page .activity-hero-shell {
    display: none;
  }

  .activity-page:not(.day-page) .activity-main {
    max-width: 980px;
    margin: 0 auto;
    padding-top: 34px;
  }

  .activity-page:not(.day-page) .activity-page-header {
    margin-bottom: 34px;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(216, 190, 133, 0.14);
  }

  .activity-page:not(.day-page) .activity-page-header h1 {
    margin: 0 0 6px;
    font-size: clamp(1.56rem, 3.1vw, 2.22rem);
    line-height: 1.08;
  }

  .activity-page:not(.day-page) .activity-page-header .meta {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    line-height: 1.55;
    color: rgba(222, 213, 191, 0.66);
  }

  .activity-page .section-nav {
    margin-bottom: 16px;
    padding: 6px;
  }

  .activity-page .section-nav a {
    min-height: 38px;
    padding: 5px 10px;
    font-size: 0.67rem;
  }

  .activity-page .activity-panel {
    margin: 0 0 24px;
    padding: 16px;
    border-radius: 14px;
  }

  .activity-page:not(.day-page) .activity-panel.activity-flow-section {
    margin: 0 0 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .activity-page:not(.day-page) .activity-flow-section + .activity-flow-section {
    margin-top: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(216, 190, 133, 0.12);
  }

  .activity-page:not(.day-page) .activity-panel.activity-flow-section h2 {
    margin: 0 0 12px;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    color: rgba(221, 211, 188, 0.64);
  }

  .activity-page:not(.day-page) .owner-admin-panel.owner-admin-disclosure {
    margin: 0 0 34px;
    border: 1px solid rgba(216, 190, 133, 0.24);
    border-radius: 16px;
    background: rgba(20, 28, 24, 0.26);
    box-shadow: none;
    padding: 0;
    overflow: hidden;
  }

  .activity-page:not(.day-page) .owner-admin-disclosure-toggle {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .activity-page:not(.day-page) .owner-admin-disclosure-body {
    padding: 2px 12px 12px;
    border-top: 1px solid rgba(216, 190, 133, 0.16);
  }

  .activity-page:not(.day-page) .activity-route {
    margin: 0 0 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .activity-page:not(.day-page) .activity-route.activity-flow-section {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .activity-page:not(.day-page) .activity-route .trip-route-head {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(216, 190, 133, 0.12);
  }

  .activity-page:not(.day-page) .activity-route .trip-route-head h2,
  .activity-page:not(.day-page) .activity-route .trip-route-head h3 {
    color: rgba(237, 228, 207, 0.72);
  }

  .activity-page:not(.day-page) .activity-route .trip-route-head .small {
    color: rgba(237, 228, 207, 0.56);
  }

  .activity-page:not(.day-page) .activity-route .trip-route-map {
    margin: 0;
    width: 100%;
    border: 1px solid rgba(216, 190, 133, 0.14);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(9, 8, 6, 0.06);
  }

  .activity-page:not(.day-page) .activity-route .trip-route-map-lg {
    height: 380px;
  }

  .activity-page .activity-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .activity-page .activity-metric {
    border: 1px solid rgba(216, 190, 133, 0.22);
    border-radius: 12px;
    background: rgba(16, 23, 20, 0.24);
    padding: 10px 12px 10px 13px;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
  }

  .activity-page .activity-metric::before {
    display: block;
    opacity: 0.42;
  }

  .activity-page .activity-metric-value {
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
  }

  .activity-page .activity-details-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .activity-page .activity-notes-text {
    max-width: 70ch;
    line-height: 1.72;
  }
}

.gallery-page .gallery-main {
  max-width: 1240px;
  padding-top: 38px;
  padding-bottom: 86px;
}

.gallery-page {
  --adventure-bg-color: #55645d;
  --adventure-bg-image:
    radial-gradient(circle at 18% 20%, rgba(205, 222, 188, 0.06) 0, transparent 46%),
    radial-gradient(circle at 82% 76%, rgba(131, 157, 134, 0.08) 0, transparent 52%),
    radial-gradient(circle at 1px 1px, rgba(244, 238, 221, 0.028) 0.7px, transparent 0.8px),
    linear-gradient(145deg, #5d6b64 0%, #52625b 52%, #47564f 100%);
  background-size: auto, auto, 3px 3px, auto;
}

.gallery-page .gallery-header {
  margin-bottom: 30px;
  padding: 8px 4px 6px;
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.gallery-page .gallery-header h1 {
  margin: 0;
  font-size: clamp(1.72rem, 3.1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.04;
  color: #e8e2d2;
}

.gallery-page .gallery-header .small {
  margin: 0;
  color: rgba(221, 212, 190, 0.64);
  line-height: 1.55;
}

.gallery-page .gallery-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-page .gallery-breadcrumbs a {
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}

.gallery-page .gallery-summary {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(220, 211, 189, 0.72);
}

.gallery-page .gallery-header a {
  color: rgba(222, 203, 162, 0.82);
  font-weight: 600;
}

.gallery-page .gallery-intro {
  margin-bottom: 0;
  opacity: 0.68;
}

.gallery-page .gallery-filters {
  position: sticky;
  top: calc(var(--app-header-offset, 64px) + 8px);
  z-index: 70;
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    backdrop-filter var(--motion-fast) var(--motion-ease);
}

.gallery-page .gallery-filters-toggle {
  display: none;
}

.gallery-page .gallery-filters-panel {
  display: contents;
}

.gallery-page .gallery-filters.is-stuck {
  background: rgba(14, 20, 17, 0.5);
  backdrop-filter: blur(7px);
  box-shadow:
    0 8px 18px rgba(6, 8, 7, 0.14),
    inset 0 -1px 0 rgba(216, 190, 133, 0.08);
}

.gallery-page .gallery-filters-sentinel {
  display: block;
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.gallery-page .gallery-filter {
  cursor: pointer;
  border: 1px solid rgba(216, 188, 131, 0.16);
  border-radius: 999px;
  background: rgba(18, 25, 21, 0.22);
  color: rgba(223, 213, 190, 0.82);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition:
    border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.gallery-page .gallery-filter span {
  font-size: 0.59rem;
  opacity: 0.48;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.gallery-page .gallery-filter span::before {
  content: "·";
  margin-right: 4px;
  opacity: 0.52;
}

.gallery-page .gallery-filter:hover,
.gallery-page .gallery-filter:focus-visible {
  background: rgba(231, 220, 194, 0.08);
  border-color: rgba(216, 188, 131, 0.28);
}

.gallery-page .gallery-filter:focus-visible {
  outline: 2px solid rgba(216, 190, 133, 0.52);
  outline-offset: 1px;
}

.gallery-page .gallery-filter.is-active {
  color: rgba(234, 224, 203, 0.9);
  border-color: rgba(216, 188, 131, 0.34);
  background: rgba(221, 203, 164, 0.12);
  box-shadow: 0 2px 7px rgba(12, 10, 7, 0.08);
}

.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px 20px;
}

.gallery-page .gallery-card {
  margin: 0;
  border: 1px solid rgba(216, 190, 133, 0.12);
  border-radius: 16px;
  background: rgba(20, 29, 25, 0.16);
  box-shadow: 0 8px 18px rgba(16, 12, 7, 0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.gallery-page .gallery-card:hover,
.gallery-page .gallery-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 12, 7, 0.1);
  filter: brightness(1.015);
}

.gallery-page .gallery-card[hidden] {
  display: none !important;
}

.gallery-page .gallery-photo-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: #111712;
  cursor: pointer;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.gallery-page .gallery-photo-button:focus-visible {
  outline: 2px solid rgba(216, 190, 133, 0.6);
  outline-offset: -2px;
}

.gallery-page .gallery-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page .gallery-card-meta {
  padding: 14px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.gallery-page .gallery-card-meta p {
  margin: 0;
}

.gallery-page .gallery-card-trip {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  color: rgba(232, 223, 202, 0.9);
}

.gallery-page .gallery-card-trip a,
.gallery-page .gallery-card-activity a {
  color: rgba(222, 203, 162, 0.84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.gallery-page .gallery-card-trip a:hover,
.gallery-page .gallery-card-trip a:focus-visible,
.gallery-page .gallery-card-activity a:hover,
.gallery-page .gallery-card-activity a:focus-visible {
  border-bottom-color: rgba(222, 203, 162, 0.44);
}

.gallery-page .gallery-card-activity {
  color: rgba(221, 212, 190, 0.54);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.48;
  text-transform: uppercase;
}

.gallery-page .gallery-card-caption {
  margin-top: auto;
  color: rgba(223, 213, 191, 0.68);
  font-size: 0.81rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-page .gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-page .gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(6, 9, 8, 0.9);
}

.gallery-page .gallery-lightbox-figure {
  margin: 0;
  width: min(1200px, 100%);
  max-height: calc(100vh - 32px);
  justify-self: center;
  display: grid;
  gap: 10px;
}

.gallery-page .gallery-lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gallery-page .gallery-lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #111712;
}

.gallery-page .gallery-lightbox-caption-wrap {
  border: 1px solid rgba(216, 190, 133, 0.2);
  border-radius: 12px;
  background: rgba(20, 29, 25, 0.66);
  padding: 10px 12px;
  color: #e8e2d2;
}

.gallery-page .gallery-lightbox-count {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 208, 184, 0.66);
}

.gallery-page .gallery-lightbox-meta {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.3;
}

.gallery-page .gallery-lightbox-caption {
  margin: 7px 0 0;
  line-height: 1.5;
}

.gallery-page .gallery-lightbox-links {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-page .gallery-lightbox-links a {
  color: #f3d48c;
  font-weight: 600;
}

.gallery-page .gallery-lightbox-nav,
.gallery-page .gallery-lightbox-close {
  border: 1px solid rgba(216, 190, 133, 0.28);
  border-radius: 999px;
  background: rgba(16, 23, 20, 0.82);
  color: #e6e2d8;
  width: 46px;
  height: 46px;
  font-size: 1.38rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-page .gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.gallery-page .gallery-lightbox-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.ui-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--motion-panel) var(--motion-ease),
    transform var(--motion-panel) var(--motion-ease);
}

.ui-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1024px) {
  .activity-page:not(.day-page) .activity-back-to-trip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(226, 215, 191, 0.82);
    text-decoration: none;
    line-height: 1.2;
  }

  .activity-page:not(.day-page) .activity-back-to-trip-prefix {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(221, 208, 182, 0.64);
  }

  .activity-page:not(.day-page) .activity-back-to-trip-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: rgba(236, 227, 206, 0.9);
    border-bottom: 1px solid rgba(216, 190, 133, 0.3);
  }

  .activity-page:not(.day-page) .activity-back-to-trip:hover .activity-back-to-trip-name,
  .activity-page:not(.day-page) .activity-back-to-trip:focus-visible .activity-back-to-trip-name {
    color: rgba(244, 235, 214, 0.96);
    border-bottom-color: rgba(216, 190, 133, 0.52);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 120ms;
    --motion-panel: 160ms;
  }

  .ui-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-page .hero-slide,
  .home-page .hero-slide img,
  .home-page .hero.full-photo-carousel .hero-slide .hero-slide-content h2,
  .home-page .hero.full-photo-carousel .hero-slide .hero-meta,
  .home-page .hero.full-photo-carousel .hero-slide .hero-context {
    transition: none;
  }

  .home-page .hero-scroll-cue {
    animation: none;
    opacity: 0.86;
    transform: translateX(-50%);
  }

  .home-page .hero-arrow.is-arrow-nudge,
  .activity-page .owner-admin-disclosure-body,
  main :is(#trip-summary, #trip-details, #trip-route, #trip-days, #day-summary, #day-route, #day-snapshot, #day-legs, #activity-summary, #activity-route, #activity-snapshot, #activity-details, #activity-notes):target {
    animation: none;
  }

  .home-page .trip-dropdown .cards .card a[data-app-link]:hover,
  .trip-page .trip-day-list .card a[data-app-link]:hover,
  .gallery-page .gallery-card:hover,
  .gallery-page .gallery-card:focus-within,
  .gallery-page .gallery-filter:hover,
  .gallery-page .gallery-filter:focus-visible,
  .trip-route-toggle:hover,
  .trip-route-toggle:focus-visible,
  .map-interaction-toggle:hover,
  .map-interaction-toggle:focus-visible,
  .home-page .back-to-top:hover,
  .home-page .back-to-top:focus-visible,
  .owner-admin-actions button:hover,
  .owner-admin-actions button:focus-visible,
  .selects-page .selects-card:hover,
  .selects-page .selects-card:hover .selects-photo-image,
  .selects-page .selects-swipe-arrow:hover,
  .selects-page .selects-swipe-arrow:focus-visible {
    transform: none;
    filter: none;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .home-page .hero-top-nav-wrap {
    padding: 0;
    background: transparent;
  }

  .home-page .hero-utility-bar {
    margin-bottom: 0;
    border-radius: 0;
  }

  .home-page .hero-utility-inner {
    padding: 5px 10px;
    gap: 10px;
  }

  .home-page .hero-utility-copy {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  .home-page .hero-utility-next {
    display: none;
  }

  .home-page .hero-utility-logout {
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }

  .home-page .hero-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: none;
    margin: 0;
    padding: 6px 10px;
    border-radius: 0;
    border: 1px solid rgba(216, 188, 131, 0.42);
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(216, 188, 131, 0.22);
    background: rgba(11, 16, 13, 0.78);
    box-shadow: 0 8px 14px rgba(5, 8, 6, 0.22);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .home-page .hero-mobile-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .home-page .hero-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(216, 188, 131, 0.45);
    background: rgba(24, 34, 29, 0.68);
    cursor: pointer;
    padding: 0;
  }

  .home-page .hero-top-nav {
    display: none;
    margin-top: 0;
    padding: 6px 8px;
    border-radius: 0;
    border: 1px solid rgba(216, 188, 131, 0.42);
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(216, 188, 131, 0.22);
    background: rgba(11, 16, 13, 0.88);
    box-shadow: 0 8px 14px rgba(5, 8, 6, 0.24);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .home-page .hero-top-nav-wrap.is-open .hero-top-nav {
    display: flex;
  }

  .home-page .hero-top-nav a {
    width: 100%;
    text-align: left;
    letter-spacing: 0.07em;
    font-size: 0.72rem;
    padding: 8px 10px;
    border: 1px solid rgba(216, 188, 131, 0.28);
    border-radius: 8px;
    background: rgba(24, 34, 29, 0.56);
    box-sizing: border-box;
  }

  .home-page .hero-top-nav a.hero-top-nav-mobile-follow {
    order: 98;
  }

  .home-page .hero-top-nav a.hero-top-nav-mobile-only[href="/logout"] {
    order: 99;
  }

  .home-page .hero-top-nav a.is-active {
    border-color: rgba(242, 227, 194, 0.62);
    background: rgba(31, 43, 37, 0.72);
  }

  .home-page .hero-top-nav a.hero-top-nav-link-curated {
    text-transform: none;
    font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 6px 10px 7px;
    border: 1px solid rgba(242, 214, 153, 0.45);
    border-bottom-color: rgba(242, 214, 153, 0.45);
    background: rgba(242, 214, 153, 0.15);
    line-height: 1.05;
  }

  .trip-page .hero-inline-breadcrumbs,
  .activity-page .hero-inline-breadcrumbs {
    margin-bottom: 0.42rem;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
  }

  .trip-page .hero-inline-breadcrumb-sep,
  .trip-page .hero-inline-breadcrumb-item:not(:first-of-type) {
    display: none;
  }

  .activity-page .hero-inline-breadcrumbs {
    max-width: min(100%, 28rem);
    gap: 0.1rem 0.32rem;
    line-height: 1.12;
  }

  .home-page .hero-top-nav-wrap.is-open .hero-mobile-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .home-page .hero-top-nav-wrap.is-open .hero-mobile-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .home-page .hero-top-nav-wrap.is-open .hero-mobile-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .follow-journey-inline {
    display: block;
    margin: 20px 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(216, 190, 133, 0.16);
    background: linear-gradient(155deg, rgba(24, 35, 29, 0.28) 0%, rgba(20, 30, 25, 0.2) 100%);
    box-shadow: 0 6px 14px rgba(8, 10, 8, 0.08);
    transform: translateY(0);
    opacity: 1;
    transition:
      opacity 150ms var(--motion-ease),
      transform 150ms var(--motion-ease);
  }

  .follow-journey-inline[hidden] {
    display: none !important;
  }

  .follow-journey-inline.is-hiding {
    opacity: 0;
    transform: translateY(8px);
  }

  .follow-journey-inline-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 560;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(236, 226, 204, 0.88);
  }

  .follow-journey-inline-body {
    margin: 6px 0 0;
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(228, 218, 196, 0.72);
  }

  .follow-journey-inline-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .follow-journey-inline-primary,
  .follow-journey-inline-secondary {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 14px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
      opacity var(--motion-fast) var(--motion-ease),
      transform var(--motion-fast) var(--motion-ease),
      border-color var(--motion-fast) var(--motion-ease);
  }

  .follow-journey-inline-primary {
    border: 1px solid rgba(216, 190, 133, 0.42);
    background: rgba(34, 49, 41, 0.6);
    color: rgba(241, 231, 206, 0.9);
  }

  .follow-journey-inline-secondary {
    border: 1px solid rgba(216, 190, 133, 0.22);
    background: transparent;
    color: rgba(227, 216, 191, 0.74);
  }

  .follow-journey-inline-primary:active,
  .follow-journey-inline-secondary:active {
    transform: translateY(1px);
    opacity: 0.92;
  }

  .follow-journey-sheet {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: block;
  }

  .follow-journey-sheet[hidden] {
    display: none !important;
  }

  .follow-journey-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(8, 11, 9, 0.42);
    opacity: 0;
    transition: opacity 160ms var(--motion-ease);
  }

  .follow-journey-sheet-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
    border: 1px solid rgba(216, 190, 133, 0.22);
    background: linear-gradient(160deg, rgba(16, 23, 20, 0.9) 0%, rgba(14, 20, 18, 0.88) 100%);
    box-shadow: 0 8px 24px rgba(6, 8, 7, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px;
    transform: translateY(10px);
    opacity: 0;
    transition:
      transform 170ms var(--motion-ease),
      opacity 170ms var(--motion-ease);
  }

  .follow-journey-sheet.is-open .follow-journey-sheet-backdrop {
    opacity: 1;
  }

  .follow-journey-sheet.is-open .follow-journey-sheet-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .follow-journey-sheet-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(231, 219, 191, 0.72);
    font-size: 1.05rem;
    line-height: 1;
  }

  .follow-journey-sheet h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 231, 207, 0.9);
  }

  .follow-journey-sheet p {
    margin: 7px 0 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(229, 218, 194, 0.74);
  }

  .follow-journey-sheet-actions {
    margin-top: 11px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .follow-journey-sheet-primary,
  .follow-journey-sheet-secondary {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 14px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .follow-journey-sheet-primary {
    border: 1px solid rgba(216, 190, 133, 0.44);
    background: rgba(34, 49, 41, 0.62);
    color: rgba(241, 231, 206, 0.9);
  }

  .follow-journey-sheet-secondary {
    border: 1px solid rgba(216, 190, 133, 0.22);
    background: transparent;
    color: rgba(227, 216, 191, 0.74);
  }

  .home-page .home-hero-shell {
    padding-top: clamp(72px, 18vw, 102px);
  }

  .home-page .home-header,
  .home-page .home-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-page .home-main {
    padding-top: 16px;
  }

  .home-page .hero-kicker,
  .home-page .hero-meta {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .home-page .hero-kicker {
    display: none;
  }

  .home-page .hero-intro {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .home-page .hero-shell h1,
  .trip-page .hero-shell h1,
  .activity-page .hero-shell h1 {
    font-size: clamp(1.32rem, 5.4vw, 1.72rem);
    line-height: 1.1;
  }

  .home-page .hero-slide-content h2,
  .trip-page .hero-slide-content h2,
  .activity-page .hero-slide-content h2 {
    font-size: clamp(1.08rem, 4.6vw, 1.34rem);
  }

  .home-page .hero-slide-content h2 + p,
  .trip-page .hero-slide-content h2 + p,
  .activity-page .hero-slide-content h2 + p {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .home-page .hero-jump,
  .trip-page .hero-jump,
  .activity-page .hero-jump {
    font-size: 0.76rem;
    padding: 0.42rem 0.65rem;
  }

  .home-page .hero-actions {
    gap: 8px;
  }

  .section-nav {
    top: 6px;
    gap: 6px;
    padding: 6px;
    margin-bottom: 12px;
  }

  .section-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    padding: 5px 8px;
  }

  .activity-page .detail-utility-bar {
    padding: 6px 8px;
    gap: 6px 10px;
  }

  .activity-page .detail-utility-group {
    width: 100%;
    justify-content: space-between;
  }

  .activity-page .detail-utility-bar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .trip-page .trip-page-utility-links {
    gap: 6px 10px;
    margin-bottom: 7px;
  }

  .trip-page .trip-page-utility-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    font-size: 0.66rem;
  }

  .trip-page .trip-page-meta {
    font-size: 0.74rem;
  }

  .trip-page .trip-page-total-value {
    font-size: 0.92rem;
  }

  .trip-page .trip-page-total-unit {
    font-size: 0.78rem;
  }

  .trip-page .section-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
  }

  .activity-page .section-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
  }

  .activity-page .section-nav {
    width: 100%;
  }

  .home-page .hero.full-photo-carousel {
    min-height: 58vh;
  }

  .home-page .trip-overview-sub,
  .home-page .trip-summary-sub,
  .home-page .small {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
  }

  .trip-overview-title {
    font-size: clamp(1.34rem, 6.2vw, 1.62rem);
  }

  .trip-days-summary .trip-summary-title {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .trip-days-summary .trip-summary-sub {
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: none;
  }

  .home-page .trip-summary-action {
    font-size: 0.66rem;
    padding: 4px 8px;
  }

  .cards .title {
    font-size: 1.28rem;
    margin-bottom: 6px;
  }

  .cards .meta {
    font-size: 1.03rem;
    line-height: 1.35;
  }

  .home-page .trip-dropdown .cards .title {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .home-page .trip-dropdown .cards .meta {
    font-size: 0.82rem;
    line-height: 1.36;
  }

  .day-legs-summary {
    padding: 13px 14px;
  }

  .day-combined-link {
    padding: 13px 14px;
  }

  .day-leg-title {
    font-size: 0.96rem;
  }

  .day-leg-meta {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .activity-description {
    font-size: 1rem;
    line-height: 1.5;
    -webkit-line-clamp: 4;
  }

  .home-page .hero-slide-content {
    bottom: 84px;
  }

  .home-page .hero-scroll-cue {
    bottom: calc(clamp(8px, 3vw, 14px) + 44px + clamp(56px, 8.2vh, 72px));
    font-size: 0.72rem;
  }

  .home-page .hero-arrow {
    width: 44px;
    height: 44px;
  }

  .home-page .hero-controls {
    inset: 0;
    height: auto;
    bottom: auto;
  }

  .home-page .hero-progress {
    bottom: clamp(8px, 3vw, 14px);
    width: min(200px, calc(100% - 112px));
    padding: 6px 8px;
  }

  .home-page .hero-progress-count {
    font-size: 0.66rem;
  }

  .trip-overview {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page .trip-group + .trip-group {
    margin-top: 40px;
    padding-top: 34px;
  }

  .home-page .trip-overview {
    margin-bottom: 12px;
  }

  .home-owner-tools {
    margin-bottom: 12px;
    padding: 0;
  }

  .home-owner-tools-link {
    font-size: 0.68rem;
  }

  .home-page .trip-stats {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
  }

  .home-page .trip-stat {
    min-width: 0;
    flex: 0 0 auto;
  }

  .home-page .trip-stat-label {
    font-size: 0.6rem;
  }

  .home-page .trip-stat-value {
    font-size: 0.9rem;
  }

  .home-page .trip-route-head .small {
    margin-left: 0;
  }

  .home-page .trip-route-toggle {
    display: none;
  }

  .trip-route-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .home-page .trip-route-map {
    height: 200px;
    border-radius: 10px;
  }

  .trip-route-map {
    height: 205px;
  }

  .trip-route-map-lg {
    height: 260px;
  }

  .trip-page .trip-hero {
    min-height: 58vh;
  }

  .trip-page .trip-main {
    padding-top: 20px;
  }

  .trip-page .trip-route-map-lg {
    height: 280px;
  }

  .trip-page .trip-route-map {
    margin: 0;
  }

  .trip-page .trip-day-list {
    gap: 14px;
  }

  .activity-page .activity-panel {
    padding: 13px;
  }

  .activity-page .activity-route .trip-route-map {
    margin: 0 8px 8px;
  }

  .activity-page .activity-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .activity-page .activity-details-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .activity-page .activity-photo-carousel {
    min-height: 58vh;
  }

  .activity-page .activity-main {
    padding-top: 20px;
  }

  .activity-page .activity-back-to-trip {
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
    min-height: 44px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(216, 190, 133, 0.22);
    background: rgba(20, 29, 25, 0.24);
    color: rgba(232, 222, 198, 0.84);
    text-decoration: none;
    line-height: 1.2;
    transition:
      opacity 120ms ease,
      color 120ms ease,
      border-color 120ms ease,
      transform 120ms ease;
  }

  .activity-page .activity-back-to-trip-prefix {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(224, 212, 184, 0.72);
  }

  .activity-page .activity-back-to-trip-name {
    font-family: var(--font-display);
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    color: rgba(236, 227, 206, 0.88);
  }

  .activity-page .activity-back-to-trip:hover,
  .activity-page .activity-back-to-trip:focus-visible {
    color: rgba(239, 232, 215, 0.92);
    border-color: rgba(216, 190, 133, 0.34);
  }

  .activity-page .activity-back-to-trip:active {
    opacity: 0.84;
    transform: translateY(1px);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-color: rgba(236, 227, 206, 0.44);
  }

  .activity-page .activity-metric-label {
    font-size: 0.68rem;
  }

  .activity-page .activity-metric-value {
    font-size: 0.99rem;
  }

  .activity-page .activity-details-list dt {
    font-size: 0.72rem;
  }

  .activity-page .activity-details-list dd {
    font-size: 0.98rem;
  }

  .home-page .back-to-top {
    right: 12px;
    bottom: 14px;
    font-size: 0.6rem;
    padding: 8px 10px;
  }

  .gallery-page .gallery-main {
    padding-top: 18px;
  }

  .gallery-page .gallery-filters {
    position: static;
    top: auto;
    gap: 8px;
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .gallery-page .gallery-filter {
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    padding: 5px 9px;
  }

  .gallery-page .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-page .gallery-lightbox {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .gallery-page .gallery-lightbox-figure {
    max-height: calc(100vh - 20px);
  }

  .gallery-page .gallery-lightbox-image {
    max-height: 68vh;
  }

  .gallery-page .gallery-lightbox-nav {
    position: absolute;
    bottom: 16px;
  }

  .gallery-page .gallery-lightbox-prev {
    left: 12px;
  }

  .gallery-page .gallery-lightbox-next {
    right: 12px;
  }
}

/* Curated Frames: white gallery theme */
.selects-page {
  --selects-text: #11110f;
  --selects-muted: #6b6962;
  --selects-border: #e4e1d8;
  --selects-paper: #f6f1e8;
  --selects-wash: #faf7f0;
  --selects-accent: #b6914a;
  margin: 0;
  max-width: none;
  min-height: 100vh;
  background: var(--selects-paper);
  color: var(--selects-text);
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
}

.selects-page * {
  box-sizing: border-box;
}

.selects-page a {
  color: var(--selects-text);
}

.selects-page .selects-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 28px 90px;
}

.selects-page .selects-header {
  margin: 0 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 24px;
  border-bottom: 1px solid rgba(182, 145, 74, 0.16);
  padding: 0 0 16px;
}

.selects-page .selects-header-main {
  min-width: 0;
  max-width: min(74ch, 100%);
}

.selects-page .selects-header-utility {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-end;
  display: flex;
  align-items: center;
}

.selects-page .selects-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.selects-page .selects-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #8d6d33;
}

.selects-page .selects-header-sub {
  margin: 8px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--selects-muted);
}

.selects-page .selects-intro {
  margin: 8px 0 0;
  font-size: 0.92rem;
  max-width: 58ch;
  line-height: 1.5;
  color: var(--selects-muted);
}

.selects-page .selects-header-count {
  margin: 10px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(102, 97, 86, 0.78);
}

.selects-page .selects-mobile-tap-note {
  display: none;
}

.selects-page .selects-admin-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.selects-page .selects-admin-panel-inline {
  width: auto;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.selects-page .selects-admin-panel > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 7px 14px;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 560;
  color: rgba(47, 43, 35, 0.84);
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(170, 147, 101, 0.38);
  background: transparent;
  width: fit-content;
  min-width: 0;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.selects-page .selects-admin-panel:not([open]) .selects-admin-form {
  display: none;
}

.selects-page .selects-admin-panel[open] > summary {
  border-color: rgba(170, 147, 101, 0.5);
  background: rgba(246, 241, 232, 0.56);
}

.selects-page .selects-admin-panel > summary:hover,
.selects-page .selects-admin-panel > summary:focus-visible {
  color: rgba(47, 43, 35, 0.95);
  border-color: rgba(170, 147, 101, 0.58);
  background: rgba(246, 241, 232, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(25, 22, 16, 0.08);
}

.selects-page .selects-admin-panel > summary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(25, 22, 16, 0.06);
}

.selects-page .selects-admin-panel > summary::-webkit-details-marker {
  display: none;
}

.selects-page .selects-admin-panel > summary::after {
  content: "";
}

.selects-page .selects-admin-panel[open] > summary::after {
  content: "";
}

.selects-page .selects-admin-form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(560px, calc(100vw - 64px));
  border: 1px solid rgba(167, 151, 116, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(25, 22, 16, 0.09);
  padding: 12px 14px 14px;
  display: grid;
  gap: 11px;
  z-index: 20;
}

.selects-page .selects-admin-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selects-page .selects-admin-grid label {
  display: grid;
  gap: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666155;
}

.selects-page .selects-admin-grid input,
.selects-page .selects-admin-grid textarea {
  width: 100%;
  border: 1px solid #d7d1c3;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fdfcf9;
  color: #1b1814;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.selects-page .selects-admin-grid textarea {
  resize: vertical;
  min-height: 74px;
}

.selects-page .selects-admin-field-wide {
  grid-column: 1 / -1;
}

.selects-page .selects-admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.selects-page .selects-admin-actions button {
  border: 1px solid #1d1a15;
  border-radius: 999px;
  background: #171512;
  color: #f8f5ee;
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.selects-page .selects-admin-actions button:disabled {
  opacity: 0.64;
  cursor: default;
}

.selects-page .selects-admin-actions [data-selects-upload-status] {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: #524f47;
}

.selects-page .selects-admin-actions [data-selects-upload-status][data-tone="pending"] {
  color: #5f5a4f;
}

.selects-page .selects-admin-actions [data-selects-upload-status][data-tone="success"] {
  color: #245b32;
}

.selects-page .selects-admin-actions [data-selects-upload-status][data-tone="error"] {
  color: #8c2a2a;
}

.admin-imports-page {
  min-height: 100vh;
  background:
    radial-gradient(130% 120% at 10% 5%, rgba(214, 180, 98, 0.12) 0%, rgba(214, 180, 98, 0) 58%),
    radial-gradient(100% 100% at 92% 92%, rgba(44, 78, 65, 0.2) 0%, rgba(44, 78, 65, 0) 68%),
    #0e1210;
  color: #ece8db;
}

.admin-imports-page .admin-imports-main {
  width: min(1120px, calc(100vw - 44px));
  margin: 28px auto 48px;
  display: grid;
  gap: 18px;
}

.admin-imports-page .admin-imports-header {
  border: 1px solid rgba(198, 159, 71, 0.45);
  border-radius: 16px;
  padding: 20px 22px;
  background: rgba(8, 12, 11, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.admin-imports-page .admin-imports-back {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-imports-page .admin-imports-back + .admin-imports-back {
  margin-top: 4px;
}

.admin-imports-page .admin-imports-back a {
  color: #d7ba79;
  text-decoration: none;
  border-bottom: 1px solid rgba(215, 186, 121, 0.5);
}

.admin-imports-page .admin-imports-kicker {
  margin: 14px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #c8b083;
}

.admin-imports-page .admin-imports-header h1 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: #f2e8d0;
}

.admin-imports-page .admin-imports-copy {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #d9d2c1;
  max-width: 72ch;
}

.admin-imports-page .admin-imports-copy-subtle {
  margin-top: 6px;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  color: #bfb59f;
}

.admin-imports-page .admin-imports-visibility {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(198, 159, 71, 0.22);
}

.admin-imports-page .admin-imports-visibility-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8b083;
}

.admin-imports-page .admin-imports-visibility-controls {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.admin-imports-page .admin-imports-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #efe5cd;
}

.admin-imports-page .admin-imports-visibility-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2a7a52;
}

.admin-imports-page .admin-imports-visibility-hint {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: #a89f8a;
  line-height: 1.45;
}

.admin-imports-page .admin-imports-visibility-status {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: #bfb59f;
}

.admin-imports-page .admin-imports-visibility-status[data-tone="pending"] {
  color: #d8c7a2;
}

.admin-imports-page .admin-imports-visibility-status[data-tone="success"] {
  color: #8ed0a4;
}

.admin-imports-page .admin-imports-visibility-status[data-tone="error"] {
  color: #f0a8a8;
}

.admin-imports-page .admin-imports-panel {
  border: 1px solid rgba(198, 159, 71, 0.38);
  border-radius: 16px;
  padding: 18px;
  background: rgba(10, 15, 14, 0.87);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.admin-imports-page .admin-imports-form {
  display: grid;
  gap: 14px;
}

.admin-imports-page .admin-imports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-imports-page .admin-imports-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c3b89f;
}

.admin-imports-page .admin-imports-grid label[hidden] {
  display: none !important;
}

.admin-imports-page .admin-imports-grid label small {
  font-size: 0.63rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #a89f8a;
}

.admin-imports-page .admin-imports-grid input,
.admin-imports-page .admin-imports-grid select,
.admin-imports-page .admin-imports-grid textarea {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  border: 1px solid rgba(202, 164, 79, 0.42);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(13, 19, 17, 0.86);
  color: #f3eedf;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.admin-imports-page .admin-imports-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(206, 184, 124, 0.92) 50%),
    linear-gradient(135deg, rgba(206, 184, 124, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% + 1px),
    calc(100% - 13px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.admin-imports-page .admin-imports-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.admin-imports-page .admin-imports-field-wide {
  grid-column: 1 / -1;
}

.admin-imports-page .admin-imports-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-imports-page .admin-imports-actions button {
  border: 1px solid rgba(204, 168, 88, 0.66);
  border-radius: 999px;
  background: linear-gradient(120deg, #163c30 0%, #20533a 100%);
  color: #f4eedf;
  padding: 9px 15px;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.admin-imports-page .admin-imports-actions button:disabled {
  opacity: 0.65;
  cursor: default;
}

.admin-imports-page .admin-imports-actions [data-manual-import-status] {
  margin: 0;
  min-width: min(460px, 100%);
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #c7bfaa;
}

.admin-imports-page .admin-imports-actions .manual-import-status-progress {
  position: relative;
  width: min(360px, 100%);
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(237, 224, 189, 0.22);
}

.admin-imports-page .admin-imports-actions .manual-import-status-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c8a455 0%, #ead49b 100%);
  transition: width 220ms ease;
}

.admin-imports-page .admin-imports-actions .manual-import-status-progress[data-mode="indeterminate"] .manual-import-status-progress-fill {
  width: 38%;
  animation: manual-import-status-indeterminate 1.15s ease-in-out infinite;
}

@keyframes manual-import-status-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(275%);
  }
}

.admin-imports-page .admin-imports-actions [data-manual-import-status][data-tone="pending"] {
  color: #d1c6ab;
}

.admin-imports-page .admin-imports-actions [data-manual-import-status][data-tone="success"] {
  color: #8ed0a4;
}

.admin-imports-page .admin-imports-actions [data-manual-import-status][data-tone="error"] {
  color: #f0a8a8;
}

.selects-page .selects-swipe-carousel {
  position: relative;
  margin-bottom: 30px;
  padding: 20px 20px 16px;
  border: 1px solid rgba(194, 181, 153, 0.52);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(250, 247, 240, 0.9) 100%);
  box-shadow: 0 16px 42px rgba(20, 17, 12, 0.05);
  min-height: 0;
}

.selects-page .selects-swipe-slides {
  position: relative;
}

.selects-page .selects-swipe-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-panel) var(--motion-ease);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
}

.selects-page .selects-swipe-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.selects-page .selects-swipe-backdrop {
  display: none;
}

.selects-page .selects-swipe-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 66vh, 760px);
  background: rgba(248, 244, 236, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(205, 197, 180, 0.58);
  padding: 14px;
}

.selects-page .selects-swipe-media img {
  width: 100%;
  height: clamp(380px, 62vh, 720px);
  object-fit: contain;
  border-radius: 10px;
  background: var(--selects-wash);
}

.selects-page .selects-swipe-copy {
  margin: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 62vh, 720px);
}

.selects-page .selects-swipe-kicker {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--selects-muted);
}

.selects-page .selects-swipe-copy h2 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--selects-accent);
}

.selects-page .selects-swipe-tech {
  margin: 8px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #6e695c;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selects-page .selects-swipe-tech span + span::before {
  content: "·";
  margin-right: 7px;
  color: #b8b2a2;
}

.selects-page .selects-swipe-meta {
  margin: 6px 0 0;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--selects-muted);
}

.selects-page .selects-swipe-caption {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #2f2d28;
}

.selects-page .selects-swipe-links {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.selects-page .selects-swipe-links a {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a1813;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 134, 108, 0.42);
  padding: 0 0 1px;
  transition:
    color var(--motion-fast) var(--motion-ease),
    border-bottom-color var(--motion-fast) var(--motion-ease),
    text-decoration-thickness var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.selects-page .selects-swipe-links a:hover,
.selects-page .selects-swipe-links a:focus-visible {
  border-bottom-color: rgba(147, 134, 108, 0.84);
}

.selects-page .selects-admin-delete {
  border: 1px solid #cdb9b9;
  border-radius: 999px;
  background: #fff6f6;
  color: #7c2c2c;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.selects-page .selects-admin-delete:hover,
.selects-page .selects-admin-delete:focus-visible {
  background: #ffe8e8;
  border-color: #bb8c8c;
  color: #622121;
}

.selects-page .selects-admin-delete:disabled {
  opacity: 0.55;
  cursor: default;
}

.selects-page .selects-swipe-arrow {
  position: static;
  transform: none;
  width: 52px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #322f29;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.selects-page .selects-swipe-arrow:hover,
.selects-page .selects-swipe-arrow:focus-visible {
  background: #ece8de;
  color: var(--selects-accent);
}

.selects-page .selects-swipe-arrow:focus-visible {
  outline: 2px solid var(--selects-accent);
  outline-offset: -2px;
}

.selects-page .selects-swipe-nav-row-mobile {
  display: none;
}

.selects-page .selects-swipe-nav-row {
  width: max-content;
  border: 1px solid rgba(196, 189, 173, 0.82);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 242, 232, 0.9) 100%);
  box-shadow: 0 6px 16px rgba(21, 18, 13, 0.07);
  overflow: hidden;
}

.selects-page .selects-swipe-nav-row .selects-swipe-arrow + .selects-swipe-arrow {
  border-left: 1px solid #d5d0c2;
}

.selects-page .selects-swipe-nav-row-desktop {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
}

.selects-page .selects-swipe-progress-ui {
  width: 360px;
  margin: 12px 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.selects-page .selects-swipe-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.selects-page .selects-swipe-progress-track {
  width: 128px;
  height: 4px;
  border-radius: 999px;
  background: #ddd8cc;
  overflow: hidden;
}

.selects-page .selects-swipe-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #8c723f 0%, #c59a4f 100%);
}

.selects-page .selects-swipe-dots {
  display: flex;
  gap: 5px;
}

.selects-page .selects-swipe-dot {
  width: 22px;
  height: 2px;
  border: 0;
  background: #c9c4b8;
  border-radius: 999px;
  cursor: pointer;
}

.selects-page .selects-swipe-dot.is-active {
  background: #1a1915;
}

.selects-page .selects-swipe-count {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6456;
}

.selects-page .selects-filters {
  position: static;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.selects-page .selects-filters .gallery-filter {
  border: 1px solid #cdc8bb;
  border-radius: 999px;
  background: #f8f4ea;
  color: #141310;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.selects-page .selects-filters .gallery-filter span {
  font-size: 0.68rem;
  opacity: 0.76;
}

.selects-page .selects-filters .gallery-filter.is-active {
  background: #151411;
  color: #efe8d7;
  border-color: #151411;
}

.selects-page .selects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.selects-page .selects-card {
  margin: 0;
  border: 1px solid rgba(199, 188, 163, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 245, 238, 0.82) 100%);
  box-shadow: 0 8px 22px rgba(17, 13, 9, 0.042);
  overflow: hidden;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.selects-page .selects-card:hover,
.selects-page .selects-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(181, 161, 121, 0.62);
  box-shadow: 0 12px 28px rgba(17, 13, 9, 0.065);
}

.selects-page .selects-photo-button {
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 0;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
}

.selects-page .selects-photo-button:focus-visible {
  outline: 2px solid rgba(181, 145, 74, 0.76);
  outline-offset: -2px;
}

.selects-page .selects-photo-backdrop {
  display: none;
}

.selects-page .selects-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.selects-page .selects-card:hover .selects-photo-image {
  transform: none;
  filter: brightness(1.03) contrast(1.02);
}

.selects-page .selects-card-meta {
  padding: 12px 13px 14px;
  display: grid;
  gap: 6px;
}

.selects-page .selects-card-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--selects-accent);
}

.selects-page .selects-card-sub {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--selects-muted);
}

.selects-page .selects-card-caption {
  margin: 1px 0 0;
  font-size: 0.89rem;
  line-height: 1.55;
  color: #2d2b26;
}

.selects-page .selects-card-tech,
.selects-page .selects-card-date,
.selects-page .selects-card-open {
  display: none;
}

.selects-page .selects-card-actions {
  margin: 4px 0 0;
}

.selects-page .selects-card-actions .selects-admin-delete {
  border-color: rgba(146, 131, 101, 0.32);
  background: rgba(255, 255, 255, 0.45);
  color: rgba(98, 83, 56, 0.82);
  opacity: 0.72;
}

.selects-page .selects-card:hover .selects-card-actions .selects-admin-delete,
.selects-page .selects-card:focus-within .selects-card-actions .selects-admin-delete {
  opacity: 1;
}

.selects-page .selects-empty {
  border: 1px solid var(--selects-border);
  border-radius: 14px;
  padding: 20px;
  background: #f8f4ea;
}

.selects-page .selects-empty h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
}

.selects-page .selects-empty p {
  margin: 0;
  color: #393731;
  line-height: 1.5;
}

.selects-page .gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(247, 246, 242, 0.97);
  backdrop-filter: blur(4px);
}

.selects-page .gallery-lightbox[hidden] {
  display: none;
}

.selects-page .gallery-lightbox-figure {
  margin: 0;
  width: min(1260px, 100%);
  max-height: calc(100vh - 28px);
  justify-self: center;
  display: grid;
  gap: 10px;
}

.selects-page .selects-lightbox-image-wrap {
  position: relative;
  min-height: min(76vh, 860px);
  border-radius: 14px;
  border: 1px solid var(--selects-border);
  background: var(--selects-wash);
  overflow: hidden;
}

.selects-page .selects-lightbox-backdrop {
  display: none;
}

.selects-page .selects-lightbox .gallery-lightbox-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(76vh, 860px);
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.selects-page .gallery-lightbox-caption-wrap {
  border: 1px solid var(--selects-border);
  border-radius: 12px;
  background: #f8f4ea;
  padding: 10px 12px;
  color: var(--selects-text);
}

.selects-page .gallery-lightbox-count {
  color: var(--selects-muted);
}

.selects-page .gallery-lightbox-meta {
  color: #2b2925;
}

.selects-page .selects-lightbox-title {
  color: var(--selects-accent);
}

.selects-page .gallery-lightbox-caption {
  color: #2f2c27;
}

.selects-page .gallery-lightbox-links a {
  color: #141310;
  border-bottom: 1px solid #bdb8ab;
  text-decoration: none;
}

.selects-page .gallery-lightbox-links a:hover,
.selects-page .gallery-lightbox-links a:focus-visible {
  border-bottom-color: #91866d;
}

.selects-page .gallery-lightbox-nav,
.selects-page .gallery-lightbox-close {
  border: 1px solid #191814;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #191814;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.selects-page .gallery-lightbox-nav:hover,
.selects-page .gallery-lightbox-nav:focus-visible,
.selects-page .gallery-lightbox-close:hover,
.selects-page .gallery-lightbox-close:focus-visible {
  border-color: rgba(174, 151, 104, 0.74);
}

.selects-page .gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.selects-page .gallery-lightbox-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 1080px) {
  .selects-page .selects-swipe-slide {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .selects-page .selects-swipe-media {
    min-height: clamp(320px, 54vh, 620px);
  }

  .selects-page .selects-swipe-media img {
    height: clamp(280px, 50vh, 560px);
  }

  .selects-page .selects-swipe-copy {
    min-height: 0;
  }

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

  .selects-page .selects-swipe-progress-ui {
    width: auto;
    margin-right: 2px;
  }
}

@media (max-width: 768px) {
  .selects-page .selects-main {
    padding: 18px 0 56px;
  }

  .selects-page .selects-header {
    padding: 0 12px;
    display: grid;
    gap: 12px;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .selects-page .selects-header-utility {
    margin-left: 0;
    align-items: flex-start;
  }

  .selects-page .selects-header h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .selects-page .selects-header-sub,
  .selects-page .selects-header-count {
    font-size: 0.72rem;
  }

  .selects-page .selects-header-actions {
    justify-content: flex-start;
  }

  .selects-page .selects-intro {
    font-size: 0.92rem;
  }

  .selects-page .selects-admin-panel {
    margin-top: 2px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    width: auto;
  }

  .selects-page .selects-admin-panel > summary {
    padding-left: 12px;
    padding-right: 12px;
    width: auto;
  }

  .selects-page .selects-admin-form {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-top: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .selects-page .selects-admin-grid {
    grid-template-columns: 1fr;
  }

  .selects-page .selects-swipe-carousel {
    margin-left: 0;
    margin-right: 0;
    padding: 8px 0 12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .selects-page .selects-swipe-media {
    min-height: 0;
    padding: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    display: block;
  }

  .selects-page .selects-swipe-media img {
    display: block;
    height: auto;
    max-height: 72vh;
    border-radius: 0;
  }

  .selects-page .selects-swipe-copy {
    padding: 2px 12px 0;
  }

  .selects-page .selects-swipe-copy h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .selects-page .selects-swipe-tech {
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .selects-page .selects-swipe-caption {
    font-size: 0.9rem;
  }

  .selects-page .selects-swipe-links a {
    font-size: 0.68rem;
  }

  .selects-page .selects-swipe-nav-row-mobile {
    display: flex;
    margin: 4px 12px 0 auto;
  }

  .selects-page .selects-swipe-nav-row-desktop {
    display: none;
  }

  .selects-page .selects-swipe-arrow {
    width: 46px;
    height: 36px;
    font-size: 1rem;
  }

  .selects-page .selects-swipe-progress-ui {
    width: auto;
    padding: 0 12px;
    margin-top: 10px;
  }

  .selects-page .selects-swipe-progress-track {
    width: 96px;
    height: 3px;
  }

  .selects-page .selects-swipe-count {
    font-size: 0.68rem;
  }

  .selects-page .selects-swipe-footer {
    gap: 8px;
  }

  .selects-page .selects-swipe-dot {
    width: 14px;
  }

  .selects-page .selects-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .selects-page .selects-card {
    margin: 0;
  }

  .selects-page .selects-photo-image {
    height: auto;
  }

  .selects-page .selects-lightbox-image-wrap {
    min-height: min(66vh, 560px);
  }

  .selects-page .selects-lightbox .gallery-lightbox-image {
    height: min(66vh, 560px);
  }

  .selects-page .gallery-lightbox {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .selects-page .gallery-lightbox-nav {
    position: absolute;
    bottom: 14px;
  }

  .selects-page .gallery-lightbox-prev {
    left: 10px;
  }

  .selects-page .gallery-lightbox-next {
    right: 10px;
  }

  .admin-imports-page .admin-imports-main {
    width: calc(100vw - 24px);
    margin: 12px auto 28px;
    gap: 12px;
  }

  .admin-imports-page .admin-imports-header,
  .admin-imports-page .admin-imports-panel {
    border-radius: 12px;
    padding: 14px 12px;
  }

  .admin-imports-page .admin-imports-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .admin-imports-page .admin-imports-copy {
    font-size: 0.9rem;
  }

  .admin-imports-page .admin-imports-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Mobile responsiveness pass (desktop untouched) */
@media (max-width: 1024px) {
  :root {
    --mobile-gutter: clamp(14px, 3.2vw, 22px);
  }

  .home-page .home-main,
  .trip-page .trip-main,
  .activity-page .activity-main,
  .gallery-page .gallery-main,
  .selects-page .selects-main {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .gallery-page .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .trip-page .trip-page-utility-links {
    display: none;
  }

  .home-page .hero-utility-bar {
    display: none !important;
  }

  .home-page .hero-mobile-top {
    min-height: 44px;
    padding: 6px 12px;
  }

  .home-page .hero-mobile-toggle {
    width: 44px;
    height: 44px;
  }

  .home-page .hero-top-nav .hero-nav-label-desktop {
    display: none !important;
  }

  .home-page .hero-top-nav .hero-nav-label-mobile {
    display: inline !important;
  }

  .home-page .hero-top-nav {
    padding: 7px 10px calc(9px + env(safe-area-inset-bottom, 0px));
    gap: 1px;
  }

  .home-page .hero-top-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
  }

  .home-page .hero-top-nav a.hero-nav-link-adventures {
    order: 1;
    color: rgba(237, 228, 206, 0.96);
    border-color: rgba(228, 205, 158, 0.46);
    background: rgba(34, 45, 38, 0.76);
    font-weight: 700;
  }

  .home-page .hero-top-nav a.hero-top-nav-link-curated.hero-nav-link-field-notes {
    order: 2 !important;
    color: rgba(229, 219, 198, 0.9) !important;
    font-family: var(--font-display) !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.18 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(216, 188, 131, 0.3) !important;
    border-bottom-color: rgba(216, 188, 131, 0.3) !important;
    background: rgba(26, 36, 31, 0.62) !important;
    box-shadow: none !important;
    padding: 7px 10px !important;
  }

  .home-page .hero-top-nav a.hero-nav-link-gallery {
    order: 3 !important;
    color: rgba(220, 210, 187, 0.74);
    border-color: rgba(216, 188, 131, 0.22);
    background: rgba(21, 31, 26, 0.46);
  }

  .home-page .hero-top-nav a.hero-nav-link-gallery.is-active {
    color: rgba(220, 210, 187, 0.74) !important;
    border-color: rgba(216, 188, 131, 0.22) !important;
    background: rgba(21, 31, 26, 0.46) !important;
  }

  .home-page .hero-top-nav a.hero-nav-link-notifications {
    order: 4 !important;
    color: rgba(225, 215, 192, 0.82);
    border-color: rgba(216, 188, 131, 0.2);
    background: rgba(17, 26, 22, 0.52);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .home-page .hero-top-nav a.hero-top-nav-mobile-only.hero-nav-link-logout[href="/logout"] {
    order: 5 !important;
    color: rgba(213, 172, 162, 0.76);
    border-color: rgba(178, 118, 105, 0.28);
    background: rgba(39, 22, 19, 0.32);
  }

  .home-page .hero-top-nav a.hero-nav-link-notifications:focus-visible,
  .home-page .hero-top-nav a.hero-nav-link-notifications:hover {
    color: rgba(238, 228, 204, 0.9);
    border-color: rgba(216, 188, 131, 0.34);
  }

  .home-page .hero-top-nav a.hero-top-nav-mobile-only.hero-nav-link-logout[href="/logout"]:focus-visible,
  .home-page .hero-top-nav a.hero-top-nav-mobile-only.hero-nav-link-logout[href="/logout"]:hover {
    color: rgba(230, 192, 183, 0.88);
    border-color: rgba(202, 140, 126, 0.4);
  }

  .home-page .hero-top-nav a.hero-top-nav-mobile-only {
    display: flex;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }

  /* Regression guard: keep landing day card visible on mobile hero slides. */
  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel {
    touch-action: pan-y;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info {
    top: calc(var(--header-total-height, 76px) + 12px);
    bottom: auto;
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: auto;
    width: fit-content;
    max-width: min(calc(100vw - 24px - env(safe-area-inset-left, 0px)), 360px);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(216, 190, 133, 0.22);
    background: linear-gradient(130deg, rgba(8, 12, 11, 0.62) 0%, rgba(8, 12, 11, 0.38) 100%);
    box-shadow: 0 6px 16px rgba(5, 8, 6, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 20;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info .hero-day-title-link {
    pointer-events: auto;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-title {
    font-size: clamp(1.5rem, 7.2vw, 2.1rem);
    padding-bottom: 5px;
    margin-bottom: 0.2rem;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-context {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: rgba(228, 219, 198, 0.7);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-meta {
    margin-top: 0.08rem;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    line-height: 1.38;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-progress {
    display: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-progress-count {
    display: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-scroll-cue {
    display: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-arrow {
    display: none;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-arrow-left {
    left: clamp(12px, 3vw, 20px);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-arrow-right {
    right: clamp(12px, 3vw, 20px);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-pagination-dots {
    position: absolute;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: auto;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-pagination-dot {
    display: block;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(246, 240, 227, 0.35);
    opacity: 1;
    transform: scale(1);
    transition:
      transform var(--motion-fast) var(--motion-ease),
      background-color var(--motion-fast) var(--motion-ease),
      opacity var(--motion-fast) var(--motion-ease);
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-pagination-dot.is-active {
    width: 8px;
    background: rgba(249, 244, 233, 0.9);
    transform: scale(1.2);
  }

  .trip-page .trip-hero,
  .activity-page .activity-photo-carousel {
    touch-action: pan-y;
  }

  .trip-page .trip-hero .hero-arrow,
  .activity-page .activity-photo-carousel .hero-arrow {
    display: none;
  }

  .trip-page .trip-hero .hero-progress,
  .activity-page .activity-photo-carousel .hero-progress {
    display: none;
  }

  .trip-page .trip-hero .hero-progress-count,
  .activity-page .activity-photo-carousel .hero-progress-count {
    display: none;
  }

  .trip-page .trip-hero .hero-pagination-dots,
  .activity-page .activity-photo-carousel .hero-pagination-dots {
    position: absolute;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: auto;
  }

  .trip-page .trip-hero .hero-pagination-dot,
  .activity-page .activity-photo-carousel .hero-pagination-dot {
    display: block;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(246, 240, 227, 0.35);
    opacity: 1;
    transform: scale(1);
    transition:
      transform var(--motion-fast) var(--motion-ease),
      background-color var(--motion-fast) var(--motion-ease),
      opacity var(--motion-fast) var(--motion-ease);
  }

  .trip-page .trip-hero .hero-pagination-dot.is-active,
  .activity-page .activity-photo-carousel .hero-pagination-dot.is-active {
    width: 8px;
    background: rgba(249, 244, 233, 0.9);
    transform: scale(1.2);
  }

  .home-page .trip-overview-main > .trip-overview-title,
  .home-page .trip-overview-main > .trip-overview-sub {
    display: none;
  }

  .home-page .trip-overview.trip-overview-empty .trip-overview-main > .trip-overview-title,
  .home-page .trip-overview.trip-overview-empty .trip-overview-main > .trip-overview-sub {
    display: block;
  }

  .home-page .trip-group {
    margin: 0;
    position: relative;
  }

  .home-page .trip-group + .trip-group {
    margin-top: 34px;
    padding-top: 0;
  }

  .home-page .trip-group-mobile-card {
    display: block;
    min-height: 44px;
    border-radius: 20px;
    border: 1px solid rgba(216, 190, 133, 0.14);
    background: linear-gradient(158deg, rgba(21, 31, 26, 0.22) 0%, rgba(19, 28, 24, 0.14) 100%);
    overflow: hidden;
    transition:
      transform 120ms ease,
      background-color 120ms ease,
      border-color 120ms ease;
    transform-origin: center;
  }

  .home-page .trip-group-mobile-card:active {
    transform: scale(0.985);
    background: linear-gradient(158deg, rgba(24, 35, 29, 0.28) 0%, rgba(20, 31, 26, 0.18) 100%);
    border-color: rgba(216, 190, 133, 0.2);
  }

  .home-page .trip-group-mobile-card:focus-visible {
    border-color: rgba(216, 190, 133, 0.34);
  }

  .home-page .trip-group-mobile-card .trip-overview {
    margin-bottom: 0;
    padding: 12px 14px 10px;
  }

  .home-page .trip-group-mobile-card .trip-overview::after {
    content: "";
    display: block;
    margin-top: 10px;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 190, 133, 0.08) 0%, rgba(216, 190, 133, 0.26) 50%, rgba(216, 190, 133, 0.08) 100%);
  }

  .home-page .trip-overview-mobile-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 0;
  }

  .home-page .trip-overview-mobile-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0.014em;
    color: rgba(245, 236, 214, 0.96);
  }

  .home-page .trip-overview-mobile-title::after {
    content: "→";
    margin-left: 0.38rem;
    opacity: 0.35;
    font-size: 0.88em;
  }

  .home-page .trip-overview-mobile-sub {
    font-size: 0.78rem;
    line-height: 1.46;
    letter-spacing: 0.045em;
    text-transform: none;
    color: rgba(241, 231, 206, 0.72);
  }

  .home-page .trip-overview-mobile-link:focus-visible {
    border-radius: 8px;
  }

  .home-page .trip-overview {
    margin-bottom: 10px;
  }

  .home-page .trip-stats {
    display: none;
  }

  .home-page .trip-route {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .trip-route-head {
    display: none;
  }

  .home-page .trip-route-map {
    margin: 0;
    border-radius: 10px;
    border: 0;
    box-shadow: none;
    opacity: 0.92;
    filter: saturate(0.94) contrast(0.95);
  }

  .home-page .trip-group-mobile-card .trip-route-map {
    border-radius: 0 0 20px 20px;
  }

  .home-page .trip-group-mobile-card .trip-route-note {
    margin: 0;
    padding: 0 14px 14px;
  }

  .trip-route {
    position: relative;
  }

  .map-interaction-toggle {
    inset: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(9, 13, 11, 0.16) 0%, rgba(9, 13, 11, 0.34) 100%);
    color: rgba(243, 232, 205, 0.86);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: none;
    opacity: 1;
  }

  .map-interaction-toggle.is-map-unlocked {
    inset: auto 10px 10px auto;
    width: auto;
    height: auto;
    border: 1px solid rgba(216, 190, 133, 0.42);
    border-radius: 999px;
    background: rgba(18, 25, 21, 0.82);
    padding: 6px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    opacity: 0.9;
  }

  .trip-page .trip-hero,
  .activity-page .activity-photo-carousel {
    min-height: 60vh;
  }

  .trip-page .trip-hero-shell,
  .activity-page .activity-hero-shell {
    padding-top: calc(var(--header-total-height, 76px) + 14px);
    gap: 8px;
  }

  .trip-page .trip-hero-card,
  .activity-page .activity-hero-card {
    max-width: min(88vw, 480px);
    padding: 14px 15px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(5, 8, 6, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .trip-page .trip-hero-card h1,
  .activity-page .activity-hero-card h1 {
    font-size: clamp(1.8rem, 7.2vw, 2.6rem);
  }

  .trip-page .trip-hero-jump,
  .activity-page .activity-hero-jump {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .trip-page .trip-details-summary {
    margin-bottom: 20px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid rgba(216, 190, 133, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .trip-page .trip-page-breadcrumb {
    font-size: 0.66rem;
  }

  .trip-page .trip-page-mobile-title {
    margin: 0;
    font-size: clamp(1.44rem, 6.4vw, 1.92rem);
    font-weight: 620;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: rgba(236, 228, 210, 0.94);
  }

  .trip-page .trip-page-meta-row {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.52;
    opacity: 0.8;
  }

  .trip-page .trip-page-header h1 {
    letter-spacing: 0.01em;
    font-weight: 620;
  }

  .trip-page .trip-page-summary {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .trip-page .trip-flow-section,
  .trip-page .trip-route.trip-flow-section {
    margin: 0 0 24px;
  }

  .trip-page .trip-flow-section + .trip-flow-section {
    padding-top: 20px;
  }

  .trip-page .trip-summary-stat {
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(216, 190, 133, 0.12);
  }

  .trip-page .trip-summary-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .trip-page .trip-summary-stat-label {
    font-size: 0.7rem;
  }

  .trip-page .trip-summary-stat-value {
    font-size: 1rem;
  }

  .trip-page .trip-day-list {
    gap: 34px;
  }

  .trip-page .trip-day-list .card {
    position: relative;
    border: 1px solid rgba(216, 190, 133, 0.16);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(24, 35, 29, 0.42) 0%, rgba(20, 30, 25, 0.28) 100%);
    box-shadow: 0 8px 18px rgba(7, 10, 8, 0.1);
    padding: 0;
    overflow: hidden;
  }

  .trip-page .trip-day-list .card + .card::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 190, 133, 0) 0%, rgba(216, 190, 133, 0.28) 52%, rgba(216, 190, 133, 0) 100%);
    pointer-events: none;
  }

  .trip-page .trip-day-list .card a[data-app-link] {
    padding: 14px 14px 16px;
    border-radius: inherit;
    background: transparent;
  }

  .trip-page .trip-day-list .card a[data-app-link]::before {
    content: none;
  }

  .trip-page .trip-day-list .title {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.2;
  }

  .trip-page .trip-day-list .meta {
    margin-top: 5px;
    font-size: 0.74rem;
    line-height: 1.52;
    letter-spacing: 0.045em;
    color: rgba(233, 224, 203, 0.7);
  }

  .trip-page .trip-day-list .meta::after {
    content: "";
    display: block;
    margin-top: 10px;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 190, 133, 0.08) 0%, rgba(216, 190, 133, 0.22) 48%, rgba(216, 190, 133, 0.08) 100%);
  }

  .trip-page .trip-day-list .activity-description {
    margin-top: 10px;
    font-size: 0.93rem;
    line-height: 1.66;
    color: rgba(236, 228, 210, 0.78);
  }

  .trip-page .trip-route-map-lg,
  .activity-page .activity-route .trip-route-map,
  .activity-page .activity-route .trip-route-map-lg {
    height: clamp(240px, 42vh, 320px);
    margin: 0;
    width: 100%;
  }

  .activity-page .section-nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px;
    padding: 6px 4px 8px;
  }

  .activity-page .section-nav::-webkit-scrollbar {
    display: none;
  }

  .activity-page .section-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 12px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .activity-page .activity-panel {
    margin: 0 0 16px;
    padding: 12px;
    box-shadow: none;
  }

  .activity-page .activity-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .activity-page .activity-metric {
    min-height: 72px;
  }

  .activity-page .activity-notes-text {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .activity-page .activity-page-header .meta {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .activity-page .owner-admin-disclosure-toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .gallery-page .gallery-filters {
    position: sticky;
    top: calc(var(--app-header-offset, 64px) + 2px);
    z-index: 71;
    margin: 0 0 16px;
    padding: 8px 0;
    background: rgba(15, 22, 18, 0.92);
    border-top: 1px solid rgba(216, 190, 133, 0.12);
    border-bottom: 1px solid rgba(216, 190, 133, 0.12);
    box-shadow: 0 6px 12px rgba(6, 8, 7, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .gallery-page .gallery-filters.is-collapsible {
    display: block;
    border-radius: 14px;
    padding: 8px 10px;
  }

  .gallery-page .gallery-filters.is-collapsible .gallery-filters-toggle {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(216, 190, 133, 0.18);
    border-radius: 12px;
    background: rgba(21, 30, 25, 0.66);
    color: rgba(226, 217, 196, 0.9);
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition:
      border-color var(--motion-fast) var(--motion-ease),
      background-color var(--motion-fast) var(--motion-ease);
  }

  .gallery-page .gallery-filters.is-collapsible .gallery-filters-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 190, 133, 0.25);
  }

  .gallery-page .gallery-filters-toggle-label {
    white-space: nowrap;
  }

  .gallery-page .gallery-filters-toggle-active {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(226, 217, 196, 0.68);
    font-size: 0.69rem;
    letter-spacing: 0.05em;
    text-transform: none;
  }

  .gallery-page .gallery-filters-toggle-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    opacity: 0.72;
    transition: transform 220ms var(--motion-ease), opacity 220ms var(--motion-ease);
  }

  .gallery-page .gallery-filters.is-collapsible .gallery-filters-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    overflow: hidden;
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    transition:
      max-height 220ms var(--motion-ease),
      opacity 220ms var(--motion-ease),
      transform 220ms var(--motion-ease);
  }

  .gallery-page .gallery-filters.is-collapsible.is-collapsed .gallery-filters-panel {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin-top: 0;
    pointer-events: none;
  }

  .gallery-page .gallery-filters.is-collapsible.is-collapsed .gallery-filters-toggle-chevron {
    transform: rotate(0deg);
  }

  .gallery-page .gallery-filters.is-collapsible:not(.is-collapsed) .gallery-filters-toggle-chevron {
    transform: rotate(180deg);
    opacity: 0.9;
  }

  .gallery-page .gallery-filters.is-stuck {
    background: rgba(15, 22, 18, 0.94);
    box-shadow: 0 6px 12px rgba(6, 8, 7, 0.12);
  }

  .gallery-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-page .gallery-card {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(16, 12, 7, 0.08);
  }

  .gallery-page .gallery-card-meta {
    padding: 11px 11px 12px;
    gap: 6px;
  }

  .gallery-page .gallery-card-trip {
    font-size: 0.86rem;
  }

  .gallery-page .gallery-card-activity {
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .gallery-page .gallery-filter {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .selects-page .selects-main {
    padding-top: 18px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 72px;
  }

  .selects-page .selects-header {
    margin-bottom: 16px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 10px;
    gap: 10px;
    align-items: flex-start;
  }

  .selects-page .selects-header-utility {
    margin-left: 0;
    align-self: flex-start;
    width: 100%;
  }

  .selects-page .selects-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .selects-page .selects-admin-panel-inline {
    width: auto !important;
    max-width: 100% !important;
  }

  .selects-page .selects-admin-panel > summary,
  .selects-page .selects-admin-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .selects-page .selects-swipe-carousel {
    display: none;
  }

  .selects-page .selects-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .selects-page .selects-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(186, 173, 146, 0.42);
    border-bottom: 1px solid rgba(186, 173, 146, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 245, 238, 0.9) 100%);
    box-shadow: none;
  }

  .selects-page .selects-photo-button {
    aspect-ratio: auto;
    border-radius: 0;
    background: rgba(245, 240, 230, 0.9);
  }

  .selects-page .selects-photo-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .selects-page .selects-card-meta {
    padding: 10px 12px 14px;
    gap: 5px;
  }

  .selects-page .selects-card-title {
    font-size: 1.82rem;
    line-height: 1.03;
  }

  .selects-page .selects-card-tech {
    display: grid;
    gap: 2px;
    margin: 4px 0 0;
    font-size: 0.73rem;
    line-height: 1.42;
    letter-spacing: 0.04em;
    color: rgba(97, 91, 79, 0.9);
  }

  .selects-page .selects-card-tech span {
    display: block;
  }

  .selects-page .selects-card-tech span + span::before {
    content: "";
    margin: 0;
    color: transparent;
  }

  .selects-page .selects-card-date {
    display: block;
    margin: 1px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(116, 108, 92, 0.9);
  }

  .selects-page .selects-card-open {
    display: none;
  }

  .selects-page .selects-mobile-tap-note {
    display: block;
    margin: 0 0 12px;
    padding: 0 12px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(102, 97, 86, 0.78);
    line-height: 1.4;
  }

  .selects-page .selects-card-sub,
  .selects-page .selects-card-caption {
    display: none;
  }

  .selects-page .selects-card-actions .selects-admin-delete {
    opacity: 1;
  }

  .selects-page .selects-admin-delete {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
  }

  .selects-page .selects-swipe-arrow {
    width: 44px;
    height: 44px;
  }

  .wayform-imprint {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-gutter: 12px;
  }

  .home-page .hero-mobile-label {
    font-size: 0.72rem;
  }

  .home-page:not(.trip-page):not(.activity-page) .hero.full-photo-carousel .hero-day-info {
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
  }

  .gallery-page .gallery-grid {
    gap: 10px;
  }

  .selects-page .selects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px), (pointer: coarse) {
  .home-page .hero-progress,
  .home-page .hero-scroll-cue,
  .trip-page .trip-hero-card,
  .activity-page .activity-hero-card,
  .trip-page .trip-page-header,
  .activity-page .activity-page-header,
  .section-nav,
  .home-page .back-to-top,
  .gallery-page .gallery-filters,
  .gallery-page .gallery-filters.is-stuck {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.home-page .hero-arrow:focus-visible,
.home-page .back-to-top:focus-visible,
.section-nav a:focus-visible,
.home-page .trip-dropdown .cards .card a[data-app-link]:focus-visible,
.trip-page .trip-day-list .card a[data-app-link]:focus-visible,
.gallery-page .gallery-filter:focus-visible,
.gallery-page .gallery-photo-button:focus-visible,
.trip-page .owner-trip-disclosure-toggle:focus-visible,
.activity-page .owner-admin-disclosure-toggle:focus-visible,
.selects-page .selects-swipe-arrow:focus-visible,
.selects-page .selects-photo-button:focus-visible,
.selects-page .gallery-lightbox-nav:focus-visible,
.selects-page .gallery-lightbox-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 190, 133, 0.25);
}
