/* Mobile app shell on every viewport; Figma reference width: 360px. */
:root {
  --app-width: min(100vw, 390px);
  --bottom-height: calc(76px + env(safe-area-inset-bottom));
  --heading: #423d37;
  --canvas: #fdfdfc;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  background: #eceae5;
  overscroll-behavior: none;
}
.app-shell,
.app-shell.focus-mode {
  width: 100%;
  max-width: 390px;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: block;
  background: #fff;
  box-shadow: 0 0 40px #423d3712;
  overflow: hidden;
}
.sidebar,
.contextbar {
  display: none !important;
}
.workspace {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  padding-bottom: var(--bottom-height);
  background: #fff;
}
.topbar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  min-height: 64px;
  height: calc(64px + env(safe-area-inset-top));
  padding: 10px 24px;
  padding-top: calc(10px + env(safe-area-inset-top));
  border-color: #f1ede8;
  background: #fff;
}
.topbar-title {
  font-size: 16px;
}
.mobile-brand {
  display: flex;
}
.mobile-brand .brand-description {
  display: none;
}
.topbar:has(.mobile-brand) .topbar-title {
  display: none;
}
.mobile-brand .wordmark {
  font-size: 31px;
}
.topbar-actions {
  gap: 0;
}
.topbar-actions .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.topbar .badge.warm {
  font-size: 9px;
  padding: 3px 6px;
}
#main-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  scroll-padding-top: 16px;
}
#main-content::-webkit-scrollbar {
  display: none;
}
.page {
  padding: 24px;
  animation: none;
}
.page.compact {
  padding-top: 20px;
}
.intro {
  margin-bottom: 24px;
}
.intro h1 {
  font-size: 21px;
  line-height: 1.6;
}
.intro .eyebrow {
  display: none;
}
.intro p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 8px;
}
.section-heading h2 {
  font-size: 17px;
}
.stack {
  gap: 16px;
}
.feed {
  gap: 24px;
}
.post {
  border-radius: 20px;
  border-color: #e7ded5;
}
.post-media img {
  aspect-ratio: 1.18;
}
.post-header {
  padding: 14px;
}
.post-body {
  padding: 14px;
}
.post-body h3 {
  font-size: 15px;
}
.post-body .story {
  font-size: 12px;
  line-height: 1.9;
}
.meta-row {
  font-size: 10px;
  gap: 8px;
}
.post-header .btn.small {
  padding-inline: 10px;
  font-size: 11px;
}
.collection-cover {
  min-height: 156px;
  padding: 14px;
}
.collection-cover h3 {
  font-size: 14px;
}
.place-card img {
  height: 126px;
}
.place-card h3 {
  font-size: 13px;
}
.filter-selects {
  gap: 8px;
}
.filter-selects select {
  font-size: 11px;
  padding-inline: 9px;
}
.field input,
.field textarea {
  font-size: 16px;
}
.field select {
  font-size: 13px;
}
.field-grid {
  gap: 12px;
}
.field-grid .field label {
  font-size: 12px;
}
.btn.primary {
  color: #423d37;
}
.btn,
.field input,
.field select {
  min-height: 48px;
}
.panel {
  padding: 18px;
}
.facts {
  gap: 10px;
}
.facts dd {
  font-size: 12px;
}
.detail-cover {
  height: 280px;
}
.photo-gallery img {
  height: 280px;
}
.map-view {
  height: 330px;
}
.map-view.short {
  height: 210px;
}
.profile-stats {
  gap: 28px;
}
.destination-summary {
  padding: 14px;
  gap: 10px;
}
.destination-summary img {
  width: 74px;
  height: 80px;
}
.destination-summary h3 {
  font-size: 14px;
}
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  max-width: 390px;
  height: var(--bottom-height);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e7ded5;
  border-radius: 0;
  z-index: 40;
  box-shadow: 0 -4px 20px #423d3704;
}
.bottom-nav a {
  width: 20%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: #7f756b;
  border-radius: 12px;
}
.bottom-nav a.active {
  color: #1f6f68;
  font-weight: 700;
}
.bottom-nav a > .icon {
  width: 23px;
  height: 23px;
}
.bottom-nav .create .icon-circle {
  width: 46px;
  height: 34px;
  background: #ed7d4b;
  border-radius: 12px;
  color: #423d37;
  display: grid;
  place-items: center;
}
.bottom-nav .create .icon {
  width: 24px;
  height: 24px;
}
.form-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 24px;
  margin-inline: -24px;
  margin-top: 18px;
  background: #fffffff5;
  box-shadow: 0 -6px 16px #ffffffcc;
}
.toast {
  bottom: calc(var(--bottom-height) + 16px);
  max-width: 350px;
  inset-inline: 16px;
}
dialog {
  max-width: 350px;
  padding: 24px;
  border-radius: 20px;
}
.auth-layout .workspace {
  padding-bottom: 0;
}
.auth-layout #main-content {
  scroll-padding-top: 12px;
}
.auth-layout .topbar {
  display: none;
}
.auth-page {
  max-width: none;
  width: 100%;
  min-height: 100%;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
}
.auth-page h1 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #ed7d4b;
}
.auth-page .auth-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 54px;
}
.auth-page form {
  gap: 48px;
}
.auth-page .field label {
  font-size: 16px;
}
.auth-bottom {
  padding-top: 36px;
  margin-top: auto;
}
.auth-bottom .divider {
  margin-bottom: 20px;
}
.auth-bottom .btn {
  font-size: 14px;
  border-color: #b5aea7;
}
.demo-auth-note {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 14px;
  color: #92887e;
}
.interests-page {
  max-width: none;
  width: 100%;
  min-height: 100%;
  padding: 64px 24px 40px;
}
.interests-page h1 {
  font-size: 24px;
}
.interests-page .selection-grid {
  max-width: none;
  gap: 12px;
}
.interest-card {
  min-height: 96px;
}
.interest-card img {
  width: 54px;
  height: 54px;
}
.interests-bottom {
  padding-top: 48px !important;
}
/* Actual native horizontal scrolling, snap points and changing active-card height. */
.welcome-pwa {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 0 0 calc(40px + env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.welcome-carousel {
  display: flex;
  direction: ltr;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
  height: min(384px, 48dvh);
  margin-top: clamp(72px, 16dvh, 128px);
  padding: 0 24px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  position: relative;
  z-index: 1;
}
.welcome-carousel::-webkit-scrollbar {
  display: none;
}
.welcome-carousel:active {
  cursor: grabbing;
}
.welcome-slide {
  display: block;
  flex: 0 0 calc((var(--app-width) - 48px) * 0.822);
  height: 80.2%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 32px;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: height 0.28s ease;
  box-shadow: 0 4px 12px #838bb429;
  background: #e7ded5;
  touch-action: pan-x;
}
.welcome-slide.active {
  height: 100%;
}
.welcome-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.welcome-copy {
  padding: 28px 24px 0;
  min-height: 142px;
  text-align: right;
}
.welcome-copy h1 {
  font-size: 24px;
  line-height: 1.4;
  color: #564f49;
}
.welcome-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: #92887e;
  margin-top: 16px;
}
.welcome-controls {
  margin-top: auto;
  padding: 24px 24px 0;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.welcome-controls .btn {
  direction: rtl;
  min-height: 48px;
  border-radius: 16px;
}
.welcome-controls .btn.outline {
  border-color: #ed7d4b;
  color: #ac4111;
}
.welcome-controls .btn.primary {
  color: #423d37;
}
.slider-dots {
  display: flex;
  direction: ltr;
  gap: 8px;
}
.slider-dots button {
  padding: 0;
  height: 8px;
  width: 8px;
  border-radius: 100px;
  background: #e0d4c8;
  position: relative;
  min-height: 8px;
}
.slider-dots button:before {
  content: "";
  position: absolute;
  inset: -15px -4px;
}
.slider-dots button.active {
  width: 32px;
  background: #ed7d4b;
}
.slider-dots button.past {
  background: #ed7d4b;
}
.welcome-skip {
  text-align: center;
  font-size: 12px;
  color: #1f6f68;
  display: block;
  padding: 16px 24px 0;
  min-height: 44px;
}
.onboard-art {
  top: 0;
  height: 620px;
  z-index: 0;
}
.onboard-art > img {
  width: 774px;
  height: 518px;
  top: 26px;
  left: -314px;
  max-width: none;
}
.onboard-art > span {
  left: 73px;
  top: 47px;
}
.onboard-art[data-slide="1"] > img {
  width: 908px;
  height: 835px;
  left: -305px;
  top: -192px;
}
.onboard-art[data-slide="1"] > span {
  left: calc(75% + 13px);
  top: 60px;
}
.onboard-art[data-slide="2"] > img {
  width: 811px;
  height: 906px;
  left: -232px;
  top: -230px;
}
.onboard-art[data-slide="2"] > span {
  left: calc(75% + 32px);
  top: 60px;
}
@media (max-width: 359px) {
  .page {
    padding: 20px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .filter-selects {
    grid-template-columns: 1fr;
  }
  .form-actions {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .welcome-copy h1 {
    font-size: 22px;
  }
  .welcome-copy p {
    font-size: 14px;
  }
  .auth-page {
    padding-inline: 20px;
  }
  .interests-page {
    padding-inline: 20px;
  }
  .interest-card {
    min-height: 86px;
  }
}
@media (max-height: 690px) {
  .welcome-carousel {
    margin-top: 56px;
    height: 40dvh;
  }
  .welcome-copy {
    min-height: 128px;
    padding-top: 24px;
  }
  .welcome-copy h1 {
    font-size: 22px;
  }
  .welcome-copy p {
    font-size: 14px;
  }
  .welcome-pwa {
    padding-bottom: 20px;
  }
  .welcome-controls {
    padding-top: 16px;
  }
  .auth-page {
    padding-top: 48px;
  }
  .interests-page {
    padding-top: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-carousel {
    scroll-behavior: auto;
  }
  .welcome-slide {
    transition: none;
  }
}
/* Exported path SVGs are the original, clipped 360px assets. Preserve their intrinsic geometry. */
.onboard-art > img {
  width: 360px;
  height: 513px;
  max-width: none;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
}
.onboard-art[data-slide="1"] > img {
  width: 360px;
  height: 343px;
  left: 50%;
  top: 40px;
}
.onboard-art[data-slide="2"] > img {
  width: 360px;
  height: 495px;
  left: 50%;
  top: 32px;
}
