:root {
  color-scheme: light;
  --cream: #f7f4ec;
  --cream-strong: #efe7d8;
  --surface: #ffffff;
  --surface-soft: #fbfaf6;
  --indigo: #234b6c;
  --indigo-deep: #16364f;
  --red: #d94a38;
  --red-deep: #b93628;
  --matcha: #6f8e57;
  --sun: #f28718;
  --sky: #3a94d7;
  --violet: #8b69cd;
  --charcoal: #2e2a28;
  --muted: #746b63;
  --line: rgba(35, 75, 108, 0.14);
  --line-strong: rgba(35, 75, 108, 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --tab-height: 82px;
  --shadow-soft: 0 16px 38px rgba(35, 75, 108, 0.12);
  --shadow-tight: 0 10px 24px rgba(35, 75, 108, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: #ffffff;
  color: var(--charcoal);
  font-family:
    Avenir Next,
    Avenir,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(217, 74, 56, 0.35);
  outline-offset: 3px;
}

.prototype-stage {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 26px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: min(860px, calc(100dvh - 52px));
  min-height: 640px;
  max-height: min(900px, calc(100dvh - 52px));
  overflow: hidden;
  border: 1px solid rgba(35, 75, 108, 0.16);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(35, 75, 108, 0.18);
}

.phone-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 10px 22px 6px;
  color: var(--indigo);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
}

.app-viewport {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.screen {
  display: none;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px calc(var(--tab-height) + 26px);
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  display: block;
}

.app-header,
.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.app-brand img {
  width: 178px;
  height: auto;
}

.avatar-button,
.round-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--indigo);
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(35, 75, 108, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.avatar-button:active,
.round-button:active,
.primary-action:active,
.text-button:active,
.search-card:active,
.tabbar button:active,
.trip-card:active,
.choice-button:active,
.guest-stepper button:active {
  transform: translateY(1px) scale(0.99);
}

.avatar-button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.round-button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.sub-header {
  align-items: flex-start;
}

.sub-header div {
  flex: 1;
  min-width: 0;
}

.sub-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--matcha);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sub-header h1,
.hero-panel h1,
.profile-card h1 {
  margin: 0;
  color: var(--indigo);
  font-size: clamp(2.15rem, 10vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 850;
  padding: 6px 14px 6px 8px;
}

.location-chip img {
  width: 26px;
  height: 26px;
}

.weather-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 75, 108, 0.12);
  border-radius: var(--radius);
  background: #f8faf7;
  padding: 24px;
  box-shadow: none;
}

.hero-panel::after {
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: rgba(124, 154, 93, 0.12);
  content: "";
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--matcha);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel p {
  max-width: 290px;
  margin: 14px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.search-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(35, 75, 108, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--indigo);
  font-weight: 850;
  padding: 0 18px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(35, 75, 108, 0.08);
}

.quick-section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2,
.booking-block h2,
.partner-card h2 {
  margin: 0;
  color: var(--indigo);
  font-size: 1.18rem;
  line-height: 1.18;
}

.text-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: rgba(217, 74, 56, 0.08);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 850;
  padding: 0 13px;
}

.mood-scroll,
.filter-scroll {
  display: flex;
  gap: 10px;
  margin-inline: -18px;
  overflow-x: auto;
  padding: 0 18px 6px;
  scrollbar-width: none;
}

.mood-scroll::-webkit-scrollbar,
.filter-scroll::-webkit-scrollbar {
  display: none;
}

.mood-button,
.filter-button {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--indigo);
  font-weight: 850;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.mood-button {
  grid-template-columns: 38px auto;
  min-height: 54px;
  padding: 7px 15px 7px 8px;
}

.filter-button {
  grid-template-columns: 26px auto;
  min-height: 42px;
  padding: 7px 14px 7px 8px;
}

.mood-button[aria-pressed="true"],
.filter-button[aria-pressed="true"] {
  border-color: rgba(217, 74, 56, 0.36);
  background: rgba(217, 74, 56, 0.08);
  color: var(--red-deep);
}

.mood-button img,
.filter-button img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: contain;
}

.spotlight-stack,
.result-list,
.saved-list {
  display: grid;
  gap: 12px;
}

.trip-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 128px;
  border: 1px solid var(--card-border, rgba(242, 135, 24, 0.22));
  border-radius: var(--radius-sm);
  background: var(--card-bg, #fffaf4);
  color: var(--charcoal);
  padding: 10px;
  text-align: left;
  box-shadow: none;
}

.trip-art {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.trip-art .scene {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
  object-position: right bottom;
  opacity: 0.82;
}

.trip-art .icon {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(35, 75, 108, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  object-fit: contain;
  padding: 2px;
}

.trip-body {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
  padding-block: 2px;
}

.trip-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  border-radius: 999px;
  background: var(--tag-bg, #f28718);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0 10px;
}

.save-button {
  display: grid;
  width: auto;
  min-width: 44px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(35, 75, 108, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 10px;
}

.save-button[aria-pressed="true"] {
  border-color: rgba(217, 74, 56, 0.28);
  background: rgba(217, 74, 56, 0.12);
  color: var(--red);
}

.trip-card h3 {
  margin: 0;
  color: var(--indigo-deep);
  font-size: 1.04rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.trip-card p {
  margin: 0;
  color: rgba(46, 42, 40, 0.72);
  font-size: 0.88rem;
  line-height: 1.42;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0 9px;
}

.guide-note,
.profile-card,
.partner-card,
.booking-summary,
.booking-block,
.confirmation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
}

.guide-note {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
}

.guide-note img {
  width: 72px;
}

.guide-note strong,
.confirmation-card strong {
  display: block;
  color: var(--indigo);
}

.guide-note span,
.confirmation-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--indigo);
  font-size: 0.82rem;
  font-weight: 900;
}

.input-shell {
  display: flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
}

.input-shell:focus-within {
  border-color: rgba(217, 74, 56, 0.5);
  box-shadow: 0 0 0 4px rgba(217, 74, 56, 0.08);
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 1rem;
}

.input-shell input::placeholder {
  color: rgba(116, 107, 99, 0.72);
}

.result-summary {
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 318px;
  border: 1px solid var(--card-border, rgba(242, 135, 24, 0.22));
  border-radius: var(--radius);
  background: var(--card-bg, #fffaf4);
  padding: 16px;
}

.detail-actions {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-hero .detail-scene {
  position: absolute;
  right: -24px;
  bottom: -12px;
  width: 88%;
  height: 54%;
  object-fit: cover;
  object-position: right bottom;
  opacity: 0.78;
}

.detail-copy {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 300px;
  gap: 14px;
  margin-top: 38px;
}

.detail-copy h1 {
  margin: 0;
  color: var(--indigo-deep);
  font-size: 2.42rem;
  line-height: 0.96;
}

.detail-copy p {
  margin: 0;
  color: rgba(46, 42, 40, 0.76);
  line-height: 1.55;
}

.host-strip {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px;
}

.host-strip img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: contain;
  background: #f8faf7;
}

.host-strip strong,
.host-strip span {
  display: block;
}

.host-strip strong {
  color: var(--indigo);
}

.host-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.info-tile {
  display: grid;
  gap: 5px;
  min-height: 82px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px;
}

.info-tile span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-tile strong {
  color: var(--indigo);
  line-height: 1.18;
}

.detail-section {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-section h2 {
  margin: 0;
  color: var(--indigo);
  font-size: 1.16rem;
}

.detail-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-section li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--charcoal);
  line-height: 1.45;
  padding: 12px;
}

.sticky-cta {
  position: sticky;
  bottom: calc(var(--tab-height) + 8px);
  z-index: 5;
  margin-top: 20px;
}

.primary-action {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: #fffaf1;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(217, 74, 56, 0.2);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.primary-action:hover {
  background: var(--red-deep);
}

.booking-summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.booking-summary img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--card-bg, #fffaf4);
}

.booking-summary h2 {
  margin: 0 0 5px;
  color: var(--indigo);
  font-size: 1.1rem;
}

.booking-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.booking-block {
  margin-top: 14px;
  padding: 16px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-button {
  display: grid;
  gap: 4px;
  min-height: 66px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--indigo);
  font-weight: 900;
}

.choice-button span {
  color: var(--muted);
  font-size: 0.72rem;
}

.choice-button[aria-pressed="true"] {
  border-color: rgba(217, 74, 56, 0.44);
  background: rgba(217, 74, 56, 0.08);
  color: var(--red-deep);
}

.guest-stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.guest-stepper button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--indigo);
  font-size: 1.25rem;
  font-weight: 900;
}

.guest-stepper strong {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--indigo);
  font-size: 1.2rem;
}

.confirmation-card {
  margin-top: 14px;
  padding: 14px 16px;
}

.profile-card {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 16px;
  align-items: center;
  background: #f8faf7;
  padding: 18px;
}

.profile-card img {
  width: 102px;
  filter: drop-shadow(0 12px 18px rgba(35, 75, 108, 0.12));
}

.profile-card span,
.partner-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--matcha);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 20px;
}

.empty-state strong {
  color: var(--indigo);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.partner-card {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  background: #ffffff;
}

.partner-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border-radius: 999px;
  background: var(--indigo);
  color: #fffaf1;
  font-weight: 900;
  padding: 0 16px;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: var(--tab-height);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  padding: 9px 12px 14px;
}

.tabbar button {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: 56px;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.tabbar button[aria-selected="true"] {
  background: rgba(217, 74, 56, 0.08);
  color: var(--red-deep);
}

.tabbar img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 520px) {
  .prototype-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .app-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-status {
    padding-top: max(10px, env(safe-area-inset-top));
  }
}

@media (max-width: 360px) {
  .screen {
    padding-inline: 14px;
  }

  .app-brand img {
    width: 154px;
  }

  .hero-panel,
  .booking-block,
  .partner-card {
    padding: 18px;
  }

  .trip-card {
    grid-template-columns: 88px 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}
