/* ==========================================================================
   Plan Trip page — 4-step planner. Builds on css/base.css
   ========================================================================== */

/* Hero_Frame ------------------------------------------------------------- */
.hero--plan .hero__media img { object-position: 50% 22%; }
.hero--plan .hero__media::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35)); }
.hero--plan .hero__inner {
  justify-content: flex-end;
  gap: var(--s-60);
  padding: 117px var(--gutter) var(--s-60);
}
.hero--plan .hero__text { max-width: 900px; gap: var(--s-20); }
.hero--plan h1 { line-height: 1.12; }
.hero--plan .hero__text .t-body { max-width: 620px; margin: 0 auto; color: rgba(255, 255, 255, 0.9); }

/* "How it works" — a plain read-only sequence, deliberately not buttons */
.hero-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-10) 0;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.hero-steps li { display: flex; align-items: center; gap: 8px; }
.hero-steps li + li::before { content: ""; width: 36px; height: 1px; margin: 0 14px; background: rgba(255, 255, 255, 0.5); }
.hero-steps__num { font-family: var(--f-display); font-style: italic; font-size: 20px; line-height: 1; color: var(--c-white); }

/* Sticky progress -------------------------------------------------------- */
.progress {
  position: sticky;
  top: 80px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-20);
  padding: var(--s-10) var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49, 28, 24, 0.12);
}
.progress__list { display: flex; align-items: center; gap: var(--s-10); }
.progress__list li { display: flex; align-items: center; gap: var(--s-10); }
.progress__list li + li::before { content: ""; width: 28px; height: 1px; background: var(--c-brown-60); opacity: 0.5; }
.progress__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--r-round);
  font-size: var(--fs-small);
  color: var(--c-brown);
  transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.progress__step:not(:disabled):hover { background: var(--c-beige); }
.progress__step:disabled { opacity: 0.4; cursor: default; }
.progress__num {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--c-brown);
  border-radius: var(--r-round);
  font-size: 12px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.progress__step.is-current .progress__num { background: var(--c-brown); color: var(--c-white); }
.progress__step.is-current .progress__label { font-weight: 400; }
.progress__step.is-done .progress__num { background: var(--c-beige); }
.progress__summary { color: var(--c-brown-60); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Shared step layout ----------------------------------------------------- */
.step {
  gap: var(--s-30);
  padding-top: var(--s-60);
  padding-bottom: var(--s-30);
  scroll-margin-top: 140px;
  transition: opacity 0.9s var(--ease-zoom), transform 1s var(--ease-zoom);
}
.step[hidden] { display: none; }
.step.is-entering { opacity: 0; transform: translateY(24px); }
.step .section-head .t-display { line-height: 1.15; }
.step .section-head h2:focus { outline: none; }
.step__form { display: flex; flex-direction: column; gap: var(--s-20); }
.step__label { letter-spacing: 0.02em; }
.step__actions { display: flex; flex-direction: column; gap: var(--s-10); }
.step__actions--split { flex-direction: row; gap: var(--s-15); }
.step__actions--split > .btn { flex: 1 1 0; }
.step__note { text-align: center; }

/* Primary (filled) button, used for every "continue" action */
.btn--primary { --btn-hover-bg: var(--c-white); --btn-hover-fg: var(--c-brown); background: var(--c-brown); color: var(--c-white); }
.btn--primary.is-waiting { background: var(--c-white); color: var(--c-brown); border-style: dashed; }
.btn--primary.is-waiting:hover { background: var(--c-brown); color: var(--c-white); }

/* Equal-width option rows (budget) */
.choice-row { display: flex; gap: var(--s-10); width: 100%; }
.choice-row > .btn { flex: 1 1 0; min-width: 0; }

/* Step 1 — destination cards --------------------------------------------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-15); margin: 0; padding: 0; border: 0; min-width: 0; }
.dest-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--c-brown);
  border-radius: var(--r-5);
  background: var(--c-brown);
  color: var(--c-white);
  cursor: pointer;
  isolation: isolate;
  transition: box-shadow 0.25s var(--ease);
}
.dest-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dest-card > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--zoom-duration) var(--ease-zoom), filter var(--zoom-duration) var(--ease-zoom), opacity 0.3s var(--ease);
}
.dest-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(49, 28, 24, 0.85), rgba(49, 28, 24, 0.05) 65%); }
.dest-card__text { display: flex; flex-direction: column; gap: 6px; padding: var(--s-20); }
.dest-card__title { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.05; }
.dest-card__sub { font-size: 13px; color: var(--c-white-75); }
.dest-card:hover > img { transform: scale(var(--zoom-scale)); filter: var(--zoom-filter); }
.dest-card::after,
.style-card::after {
  content: "✓";
  position: absolute; top: var(--s-10); right: var(--s-10);
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--r-round);
  background: var(--c-white);
  color: var(--c-brown);
  font-size: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.dest-card:has(input:checked) { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-brown); }
.dest-card:has(input:checked)::after { opacity: 1; transform: none; }
.dest-card:has(input:focus-visible) { outline: 2px solid var(--c-brown); outline-offset: 6px; }
.dest-grid:has(input:checked) .dest-card:not(:has(input:checked)) > img { opacity: 0.75; }

/* Step 1 — form fields ---------------------------------------------------- */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-10); }
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-10);
  min-height: 84px;
  padding: var(--s-20);
  border: 1px solid var(--c-brown);
  border-radius: var(--r-5);
  font-size: var(--fs-small);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.field:hover,
.field:focus-within { background: var(--c-beige); }
.field__label { font-size: 12px; letter-spacing: 0.04em; color: var(--c-brown-60); }
.field__value { font-size: var(--fs-body); }
.field__control {
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: center;
  text-align-last: center;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: normal;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.field__control:focus { outline: none; }
.field:has(.field__control:focus-visible) { outline: 2px solid var(--c-brown); outline-offset: 3px; }
/* Date fields show a formatted label; the native input sits on top, invisible, to open the picker */
.field__date { position: absolute; inset: 0; opacity: 0; }
.field__date::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }

/* Photo strip — single row, slow marquee that never pauses ------------- */
.strip { overflow: hidden; margin-top: var(--s-60); }
.strip__track { display: flex; width: max-content; gap: var(--s-15); animation: strip-scroll 90s linear infinite; }
.strip__set { display: flex; gap: var(--s-15); }
.strip__set li { flex: 0 0 auto; width: clamp(220px, 27vw, 390px); aspect-ratio: 390 / 620; overflow: hidden; background: var(--c-beige); }
.strip__set img { width: 100%; height: 100%; object-fit: cover; }
@keyframes strip-scroll {
  to { transform: translateX(calc(-50% - var(--s-15) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip__track { animation: none; }
}

/* Step 2 — experience cards (labels always visible) ---------------------- */
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-15); }
.style-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--c-brown);
  border-radius: var(--r-5);
  background: var(--c-brown);
  color: var(--c-white);
  text-align: left;
  isolation: isolate;
  transition: box-shadow 0.25s var(--ease);
}
.style-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform var(--zoom-duration) var(--ease-zoom), filter var(--zoom-duration) var(--ease-zoom);
}
.style-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(49, 28, 24, 0.85), rgba(49, 28, 24, 0.1) 70%);
  transition: background-color 0.3s var(--ease);
}
.style-card__text { display: flex; flex-direction: column; gap: 6px; padding: var(--s-15) var(--s-20); }
.style-card__title { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 28px; line-height: 1.05; }
.style-card__sub { font-size: 13px; color: var(--c-white-75); }
.style-card:hover > img { transform: scale(var(--zoom-scale)); filter: var(--zoom-filter); }
.style-card.is-active { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-brown); }
.style-card.is-active::before { background-color: rgba(49, 28, 24, 0.25); }
.style-card.is-active::after { opacity: 1; transform: none; }

/* Step 3 — curator ------------------------------------------------------- */
.curator {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--s-30) var(--s-60);
  align-items: start;
  padding: var(--s-30);
  border-radius: var(--r-5);
  background: var(--c-beige);
}
.curator__avatar {
  position: relative;
  display: block;
  width: 220px; aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--c-brown);
  border-radius: var(--r-round);
  box-shadow: var(--shadow-card);
}
.curator__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 45%; transition: transform var(--zoom-duration) var(--ease-zoom), filter var(--zoom-duration) var(--ease-zoom); }
.curator__avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-card-inset); pointer-events: none; }
.curator__avatar:hover img { transform: scale(var(--zoom-scale)); filter: var(--zoom-filter); }
.curator__body { display: flex; flex-direction: column; gap: var(--s-20); }
.curator__name { font-size: var(--fs-sub); line-height: 1.1; }
.curator__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.curator__name a:hover { background-size: 100% 1px; }
.curator__stats { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--s-15) var(--s-30); }
.curator__quote { font-size: 24px; line-height: 1.25; padding-left: var(--s-20); border-left: 1px solid var(--c-brown); max-width: 640px; }
.curator__focus { display: flex; flex-direction: column; gap: var(--s-10); }
.curator__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: var(--r-round); background: var(--c-white); font-size: 13px; }

/* Step 4 — itinerary ----------------------------------------------------- */
.itinerary__meta { font-weight: 400; }
.days { display: flex; flex-direction: column; gap: var(--s-30); }
.day { display: flex; flex-direction: column; gap: var(--s-20); scroll-margin-top: 140px; }
/* Day header (Figma Day1_Header): beige bar 98px, numeral left, title centred */
.day__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: var(--s-10) 200px;
  border-radius: var(--r-5);
  background: var(--c-beige);
}
.day__title { font-size: var(--fs-section); line-height: 1.1; text-align: center; }
.day__theme { text-align: center; margin-top: calc(var(--s-10) * -1); }
/* "01 Day" numeral: photo seen through the Figma glyph outline (mask) */
.day__num {
  position: absolute;
  left: 30px; top: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask: var(--num-mask) 0 0 / 100% 100% no-repeat;
  mask: var(--num-mask) 0 0 / 100% 100% no-repeat;
}
.day__num--1 { --num-mask: url("../assets/icons/plan-trip/day1-header-image.svg"); width: 143.5px; height: 64.3px; margin-top: -32px; }
.day__num--2 { --num-mask: url("../assets/icons/plan-trip/day2-header-image.svg"); width: 156.2px; height: 74px; margin-top: -37px; }
.day__num--3 { --num-mask: url("../assets/icons/plan-trip/day3-header-image.svg"); width: 159px; height: 74px; margin-top: -37px; }

/* Stops: zig-zag — photo on one side, description on the other, alternating left / right */
.stops { display: flex; flex-direction: column; gap: var(--s-20); }
.stop {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  min-height: 320px;
  border-radius: var(--r-5);
  overflow: hidden;
  background: var(--c-beige);
}
.stop:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.stop:nth-child(even) .stop__media { order: 2; }
.stop__media { position: relative; margin: 0; overflow: hidden; min-height: 320px; }
.stop__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--zoom-duration) var(--ease-zoom), filter var(--zoom-duration) var(--ease-zoom); }
.stop:hover .stop__media img { transform: scale(var(--zoom-scale)); filter: var(--zoom-filter); }
.stop__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-10);
  padding: var(--s-30) var(--s-60);
}
.stop__time { letter-spacing: 0.06em; font-size: 12px; color: var(--c-brown-60); }
.stop__title { font-size: var(--fs-sub); line-height: 1.1; }
.stop__desc { line-height: 1.6; color: var(--c-brown-80); font-size: var(--fs-body); }
.stop__match { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: var(--r-round); background: var(--c-white); border: 0.75px solid var(--c-brown-60); font-size: 12px; }

/* Request block ---------------------------------------------------------- */
.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--s-30) var(--s-60);
  margin-top: var(--s-30);
  padding: var(--s-60);
  border-radius: var(--r-5);
  background: var(--c-brown);
  color: var(--c-white);
  scroll-margin-top: 140px;
}
.request .t-eyebrow { color: var(--c-white-75); }
.request__intro { display: flex; flex-direction: column; gap: var(--s-15); }
.request__lead { color: var(--c-white-75); line-height: 1.55; }
.request__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-15) var(--s-30); margin: 0; align-content: start; }
.request__summary div { padding-bottom: var(--s-10); border-bottom: 1px solid rgba(255, 255, 255, 0.2); min-width: 0; }
.request__summary dt { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-white-75); }
.request__summary dd { margin: 4px 0 0; font-size: var(--fs-body); }
.request__actions { grid-column: 1 / -1; display: flex; gap: var(--s-15); }
.request__actions > .btn { flex: 1 1 0; }
.request__done { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s-15); padding-top: var(--s-20); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.request__done[hidden], .request__actions[hidden] { display: none; }
.request__done:focus { outline: none; }
.request__done .t-small { color: var(--c-white-75); max-width: 640px; line-height: 1.55; }
.request__done .request__actions > .btn { flex: 0 1 260px; }
.btn--light-solid { --btn-fg: var(--c-brown); --btn-bd: var(--c-white); --btn-hover-bg: var(--c-beige); --btn-hover-fg: var(--c-brown); background: var(--c-white); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress__summary { display: none; }
  .progress { justify-content: center; }
  .day__num { transform: scale(0.75); transform-origin: left center; }
  .day__head { padding: var(--s-10) 140px; }
  .day__title { font-size: 44px; }
}

@media (max-width: 900px) {
  .progress { top: 72px; }
  .hero--plan .hero__inner { padding-top: 112px; gap: var(--s-30); }
  .choice-row { flex-wrap: wrap; }
  .choice-row > .btn { flex: 1 1 calc(50% - var(--s-10)); }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop__text { padding: var(--s-30); }
  .curator { grid-template-columns: 1fr; justify-items: start; }
  .curator__avatar { width: 160px; }
  .request { grid-template-columns: 1fr; padding: var(--s-30); }
}

@media (max-width: 600px) {
  .hero-steps { display: none; } /* the sticky progress bar shows the same four steps */
  .progress { padding-left: var(--s-10); padding-right: var(--s-10); }
  .progress__list { gap: 4px; }
  .progress__list li { gap: 4px; }
  .progress__list li + li::before { width: 8px; }
  .progress__step { padding-right: 6px; font-size: 12px; gap: 5px; }
  .progress__num { width: 24px; height: 24px; }
  /* phone: only the current step keeps its name, the others are just numbers — no more crowding */
  .progress__step:not(.is-current) .progress__label { display: none; }
  .progress__step:not(.is-current) { padding-right: 0; }
  .progress__list { gap: 8px; }
  .progress__list li { gap: 8px; }
  .progress__list li + li::before { width: 16px; }
  .dest-card { height: 170px; }
  .dest-card__title { font-size: 26px; }
  .dest-card__text { padding: var(--s-15); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:last-child { grid-column: 1 / -1; }
  .styles { gap: var(--s-10); }
  .style-card { height: 140px; }
  .style-card__title { font-size: 22px; }
  .style-card__text { padding: var(--s-10) var(--s-15); }
  .step__actions--split, .request__actions { flex-direction: column; }
  .curator { padding: var(--s-20); }
  .curator__stats { grid-template-columns: 1fr; }
  /* phone: role line on top, smaller photo on the left, name + key facts on the right, the rest full width */
  .curator { grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--s-15); row-gap: var(--s-15); align-items: center; justify-items: stretch; }
  .curator__body { display: contents; }
  .curator__body > .t-eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .curator__avatar { grid-column: 1; grid-row: 2 / span 2; width: 104px; align-self: start; }
  .curator__name { grid-column: 2; grid-row: 2; align-self: end; font-size: 28px; }
  .curator__stats { grid-column: 2; grid-row: 3; align-self: start; gap: 6px; font-size: 13px; }
  .curator__stats .icon { width: 16px; height: 16px; }
  .curator__body > .t-body,
  .curator__quote,
  .curator__focus { grid-column: 1 / -1; }
  .day__head { flex-direction: column; gap: var(--s-10); padding: var(--s-20) var(--s-15); }
  .day__num { position: static; transform: none; margin-top: 0; }
  .day__title { font-size: 32px; }
  .stop,
  .stop:nth-child(even) { grid-template-columns: 1fr; }
  .stop:nth-child(even) .stop__media { order: 0; }
  .stop__media { min-height: 220px; }
  .stop__text { padding: var(--s-20); }
  .request__summary { grid-template-columns: 1fr; }
}
