/* ============================================================================================
   Summary page (Views/Summary.cshtml) - "the summary page when I continue from flight search
   results", ported from F:\CyprusParadise-NewDesigns\prototypes\flight-only\guests.html's own
   "Who's travelling?" passenger-details step, plus a few shared pieces from that prototype
   family's assets\ui\standalone-journey.css (.steps/.card/.field/.name-row/.grid-form/.tag/
   .page-continue/.summary/.kicker/.include) - adapted from the prototype's own --cp-* tokens to
   this site's real --home-* ones (Home-v2.css), .hp2-scoped like every other redesigned page.
   .aip-stepper/.aip-stepper__btn/.aip-stepper__value (AipSearchDropdowns.css, already linked on
   this page) are reused as-is for the luggage stepper rather than redefined - see Summary.cshtml's
   own comment on why that's the one piece of real, pre-existing functionality this restyle keeps
   unchanged underneath (wwwroot/js/search/summary.js's own Vue bindings). */

.hp2 .steps {
  background: var(--home-primary-dark);
}

.hp2 .steps ol {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hp2 .steps li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hp2 .steps a {
  color: inherit;
  text-decoration: none;
}

.hp2 .steps .is-done {
  color: #fff;
}

.hp2 .steps .is-active {
  color: var(--home-gold);
}

.hp2 .page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 24px 0 64px;
  align-items: start;
}

.hp2 .stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hp2 .hero-band {
  padding: 4px 0 8px;
}

.hp2 .hero-band h1 {
  margin: 0 0 8px;
  font-family: var(--home-font-display);
  font-size: 32px;
  color: var(--home-primary-deep);
}

.hp2 .hero-band p {
  margin: 0;
  color: var(--home-text-muted);
  max-width: 62ch;
}

.hp2 .card {
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 68, 67, 0.06);
}

.hp2 .card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--home-primary-deep);
}

.hp2 .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--home-primary-mist);
  color: var(--home-primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.hp2 .field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.hp2 .field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.hp2 .field input,
.hp2 .field select {
  min-height: 44px;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  color: var(--home-text);
}

.hp2 .field input:focus,
.hp2 .field select:focus {
  outline: none;
  border-color: var(--home-primary);
  box-shadow: 0 0 0 2px var(--home-primary-mist);
}

.hp2 .name-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

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

.hp2 .grid-form .field--wide {
  grid-column: 1 / -1;
}

.hp2 .card > .field:last-child,
.hp2 .grid-form .field:last-child {
  margin-bottom: 0;
}

/* ---- Luggage card (extras.html's own .meta/.extra-row/.stepper - .stepper itself swapped for
   the real .aip-stepper component already used elsewhere on the site, see Summary.cshtml's own
   comment) and the Airport transfer card's .xfer-hero image, both ported directly from
   extras.html rather than invented ---- */

.hp2 .meta {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.hp2 .extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--home-border);
}

.hp2 .extra-row strong {
  display: block;
  font-size: 14px;
  color: var(--home-ink);
}

/* Direct child, not "p" anywhere inside a .card - otherwise this also caught the transfer card's
   own figcaption > p.kicker (nested inside .xfer-hero), overriding .kicker's own font-size since
   a class+element selector beats a single class one regardless of where each rule sits in this
   file. */
/* .hp2 .card > p {
  margin: 0;
  font-size: 14px;
  color: var(--home-text);
} */

.hp2 .card .note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--home-text-muted);
}

.hp2 .card .note a {
  color: var(--home-primary-dark);
}

.hp2 .xfer-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 180px;
  margin: 0 0 14px;
}

.hp2 .xfer-hero img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hp2 .xfer-hero figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hp2 .xfer-hero h2 {
  margin: 0;
  color: #fff;
}

/* ---- Continue bar / summary aside ---- */

.hp2 .page-continue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0 24px;
}

/* Not one of Home-v2.css's own .btn-- variants (primary/gold/ghost/ghost-dark/search/block) -
   the prototype's own quiet "Back" button style, needed here specifically. */
.hp2 .btn--quiet {
  background: #fff;
  color: var(--home-primary-deep);
  box-shadow: inset 0 0 0 1px var(--home-border);
}

.hp2 .summary {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(16, 68, 67, 0.08);
}

.hp2 .summary h2 {
  margin: 16px 0 8px;
  font-size: 16px;
  color: var(--home-primary-deep);
}

.hp2 .summary__pp {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--home-text);
}

.hp2 .summary__pp small {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text-muted);
}

.hp2 .summary__total,
.hp2 .summary__stay {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--home-text-muted);
  font-weight: 700;
}

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

.hp2 .include li {
  font-size: 13px;
  font-weight: 700;
  color: var(--home-text);
}

.hp2 .summary .note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--home-text-muted);
}
.hp2 .kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-primary-dark);
}
@media (max-width: 860px) {
  .hp2 .page {
    grid-template-columns: 1fr;
  }

  .hp2 .summary {
    margin-top: 14px;
    position: static;
  }

  .hp2 .name-row {
    grid-template-columns: 1fr;
  }

  .hp2 .grid-form {
    grid-template-columns: 1fr;
  }

  .hp2 .page-continue {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
