/* ============================================================
   PLAN YOUR VISIT — International Typographic Style (Swiss)
   ------------------------------------------------------------
   Design rules this section follows:
     - One modular grid; everything aligns to it.
     - Flush left, ragged right. No centred body copy.
     - Hierarchy from size and weight only. No decoration.
     - Hairline rules as structure, not boxes-inside-boxes.
     - Square corners. Black, white, and one accent (#ff820d).
     - Type scale in rem/clamp. The old scale was in `vh`, so
       copy resized with window HEIGHT and broke its own rhythm.
   Class hooks used by PlanYourVisitPlayer.tsx and
   PlanVisitForm.tsx are preserved exactly; only their look changes.
   ============================================================ */

.section6 {
  --pyv-ink: #000;
  --pyv-paper: #fff;
  --pyv-accent: #ff820d;
  --pyv-rule: #d8d8d8;
  --pyv-rule-strong: #000;
  --pyv-muted: #5c5c5c;
  --pyv-sunk: #f4f4f4;

  /* One gutter value drives the whole section's margins. */
  --pyv-gutter: clamp(1.25rem, 5vw, 6rem);
  --pyv-max: 1440px;

  background: var(--pyv-paper);
  color: var(--pyv-ink);
  width: 100%;
  overflow: visible;
  z-index: auto;
  font-family: 'Sofia Pro', sans-serif;
}

/* The shared grid: 12 columns, consistent gutters. */
.pyv-grid {
  max-width: var(--pyv-max);
  margin: 0 auto;
  padding-inline: var(--pyv-gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
}

/* ============================================================
   Masthead
   ============================================================ */
.header-PYV {
  max-width: var(--pyv-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--pyv-gutter) 0;
  display: block;
  text-align: left;
}

/* Overline sits ABOVE the title: the small element establishes the
   left edge that the display type then aligns to. */
.PYV-Header-P {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(1rem, 2vw, 1.75rem);
  color: var(--pyv-accent);
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

/* Accent rule that reads as part of the label. */
.PYV-Header-P::before {
  content: "";
  width: clamp(2.5rem, 6vw, 5rem);
  height: 2px;
  background: var(--pyv-accent);
  flex: none;
}

.PYV-Header-H1 {
  margin: 0;
  color: var(--pyv-ink);
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: none;
}

/* Full-bleed hairline closing the masthead. */
.header-PYV::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--pyv-rule-strong);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* ============================================================
   Top band — video (8 cols) + service times (4 cols)
   Asymmetric split is deliberate; a 50/50 split reads static.
   ============================================================ */
.PYV-topgrid {
  max-width: var(--pyv-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pyv-gutter) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.PYV-TOP-VIDEO {
  grid-column: 1 / span 8;
  min-width: 0;
}

.PYV-Schedule {
  grid-column: 9 / span 4;
  min-width: 0;

  /* Was a thick rounded orange box. Swiss: a rule and alignment. */
  border: 0;
  border-top: 2px solid var(--pyv-ink);
  border-radius: 0;
  background: transparent;
  height: auto;
  padding: 1.25rem 0 0;
}

.sched-h2 {
  margin: 0 0 1.5rem;
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
}

.sched-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

/* Each service is a typographic row divided by a hairline. */
.sched-item {
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--pyv-ink);
  padding: 0.9rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pyv-rule);
}

.sched-item:first-child {
  padding-top: 0;
}

/* ============================================================
   Video shell — square, hairline, no glow
   (all player hooks below are load-bearing: see the component)
   ============================================================ */
.PYV-TOP-VIDEO .video-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
}

.PYV-TOP-VIDEO .video-shell iframe,
#player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-controls {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  transition: opacity .25s ease;
  width: 100%;
  box-sizing: border-box;
}

.video-controls .btn,
.video-controls .btn-select {
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  padding: 0.5rem 0.7rem;
  border-radius: 0;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

.video-controls .btn:hover,
.video-controls .btn-select:hover {
  background: var(--pyv-accent);
  border-color: var(--pyv-accent);
  color: #000;
}

.video-controls .btn i {
  font-size: 0.95rem;
  width: 1.05rem;
  text-align: center;
}

#progressBar {
  flex: 1;
  min-width: 80px;
  appearance: none;
  height: 3px;
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, .45);
}

#progressBar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--pyv-accent);
  border: 0;
  cursor: pointer;
}

#progressBar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--pyv-accent);
  border: 0;
  cursor: pointer;
}

.video-controls .time {
  color: #fff;
  font: 500 0.85rem/1 'Sofia Pro', system-ui;
  font-variant-numeric: tabular-nums;
  min-width: 3.4ch;
  text-align: center;
}

.video-unmute-cta {
  position: absolute;
  right: 1rem;
  bottom: 4.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--pyv-accent);
  color: #000;
  border: 0;
  border-radius: 0;
  padding: .55rem .9rem;
  font-family: 'Sofia Pro', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: filter .12s ease;
}

.video-unmute-cta:hover {
  filter: brightness(1.06);
}

.video-unmute-cta i {
  font-size: .95rem;
}

.volume-container {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.5rem;
}

#volumeSlider {
  width: 0;
  opacity: 0;
  height: 3px;
  border-radius: 0;
  appearance: none;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  outline: none;
}

.volume-container:hover #volumeSlider,
.volume-container:focus-within #volumeSlider {
  width: 72px;
  opacity: 1;
}

#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: var(--pyv-accent);
  border: 0;
  cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: var(--pyv-accent);
  border: 0;
  cursor: pointer;
}

.video-controls .btn:focus-visible,
.video-controls .btn-select:focus-visible,
#progressBar:focus-visible,
#volumeSlider:focus-visible,
.video-unmute-cta:focus-visible {
  outline: 2px solid var(--pyv-accent);
  outline-offset: 2px;
}

.video-shell.controls-hidden .video-controls {
  opacity: 0;
  pointer-events: none;
}

.video-shell.controls-sticky .video-controls,
.video-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}

/* Modal fullscreen (custom, replaces native) */
.PYV-TOP-VIDEO .video-shell.modal-fullscreen {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  height: 82vh;
  max-width: 1600px;
  aspect-ratio: auto;
  z-index: 20000;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.9);
  border-radius: 0;
  margin: 0;
  border: 0;
}

.hide-mobile {
  display: inline-flex;
}

/* ============================================================
   Visit notes — numbered editorial list
   Index column left, content right. The numerals replace the old
   icon chips: in this style the number IS the marker.
   ============================================================ */
.PYV-Visit {
  background: var(--pyv-paper);
  color: var(--pyv-ink);
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.PYV-Visit .visit-shell {
  max-width: var(--pyv-max);
  margin: 0 auto;
  padding-inline: var(--pyv-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.visit-block {
  display: grid;
  grid-template-columns: 5rem 1fr;
  column-gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border: 0;
  border-top: 1px solid var(--pyv-rule);
}

.visit-block:first-child {
  border-top: 2px solid var(--pyv-ink);
}

.visit-block:last-child {
  border-bottom: 1px solid var(--pyv-rule);
}

/* Index numeral */
.visit-num {
  grid-column: 1;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--pyv-accent);
  line-height: 1.5;
}

.visit-label {
  grid-column: 2;
  display: block;
  padding: 0;
  margin: 0 0 0.5rem;
  background: transparent;
  color: var(--pyv-ink);
  border: 0;
  border-radius: 0;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
}

.visit-h2 {
  grid-column: 2;
  margin: 0 0 0.75rem;
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.PYV-Visit p {
  grid-column: 2;
  margin: 0;
  max-width: 62ch;           /* Swiss measure: keeps lines readable */
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--pyv-ink);
}

.PYV-Visit p strong {
  font-weight: 600;
}

/* Learn-more links: typographic, not pills. */
.visit-links {
  grid-column: 2;
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.visit-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--pyv-ink);
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--pyv-ink);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}

.visit-link:hover {
  color: var(--pyv-accent);
  border-color: var(--pyv-accent);
  transform: none;
  background: transparent;
}

.visit-link:focus-visible {
  outline: 2px solid var(--pyv-accent);
  outline-offset: 3px;
}

/* Arrow drawn as type, so it inherits colour and weight. */
.visit-link::after {
  content: "\2197";
  font-size: 0.95em;
  line-height: 1;
}

.visit-link i {
  display: none;
}

/* ============================================================
   Form
   ============================================================ */
.PYV-Form {
  max-width: var(--pyv-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pyv-gutter) clamp(4rem, 8vw, 7rem);
}

.form-h2 {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.PYV-Form .visit-form {
  display: block;
  border-top: 2px solid var(--pyv-ink);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.PYV-Form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.PYV-Form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.PYV-Form .form-field label {
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pyv-muted);
}

.PYV-Form .form-field input,
.PYV-Form .form-field select {
  font-family: 'Sofia Pro', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--pyv-ink);
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--pyv-ink);
  border-radius: 0;
  outline: none;
  background: transparent;
  transition: border-color .15s ease;
}

.PYV-Form .form-field input::placeholder {
  color: #9a9a9a;
}

.PYV-Form .form-field input:focus,
.PYV-Form .form-field select:focus {
  border-bottom-color: var(--pyv-accent);
  border-bottom-width: 2px;
  padding-bottom: calc(0.75rem - 1px);
}

/* Multi-select toggle */
.PYV-Form .toggle-multi {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0.75rem;
}

.PYV-Form .toggle-multi__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pyv-muted);
  cursor: pointer;
}

.PYV-Form .toggle-multi__label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pyv-accent);
}

.PYV-Form #interestSelectWrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.PYV-Form #interestSelectWrap label {
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pyv-muted);
}

.PYV-Form #interestSelectWrap select {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--pyv-ink);
  background: transparent;
  color: var(--pyv-ink);
  padding: 0.75rem 0;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s ease;
  box-shadow: none;
}

.PYV-Form #interestSelectWrap select:focus {
  border-bottom-color: var(--pyv-accent);
  border-bottom-width: 2px;
  box-shadow: none;
}

/* The multi-select fieldset had NO styles before this file: the
   checkbox list rendered as raw browser default. */
.PYV-Form .form-fieldset,
.PYV-Form #interestFieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.PYV-Form .form-fieldset legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pyv-muted);
}

.PYV-Form .check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--pyv-rule);
  font-family: 'Sofia Pro', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.35;
  cursor: pointer;
}

.PYV-Form .check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex: none;
  accent-color: var(--pyv-accent);
  cursor: pointer;
}

.PYV-Form .form-actions {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.PYV-Form .btn-submit {
  /* Explicit resets: section5.css also targets .btn-submit and any property
     left undeclared here would still come from that file. */
  width: auto;
  margin-top: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  border: 0;
  border-radius: 0;
  background: var(--pyv-accent);
  color: #000;
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease;
}

.PYV-Form .btn-submit:hover {
  filter: brightness(1.06);
  transform: none;
}

.PYV-Form .btn-submit:focus-visible {
  outline: 2px solid var(--pyv-ink);
  outline-offset: 3px;
}

.PYV-Form .btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================================================
   Responsive — the grid collapses, the alignment never does
   ============================================================ */
@media (max-width: 1024px) {

  .PYV-TOP-VIDEO,
  .PYV-Schedule {
    grid-column: 1 / -1;
  }

  .PYV-Schedule {
    padding-top: 1.25rem;
  }
}

@media (max-width: 720px) {
  .visit-block {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }

  .visit-num,
  .visit-label,
  .visit-h2,
  .PYV-Visit p,
  .visit-links {
    grid-column: 1;
  }

  .visit-num {
    margin-bottom: 0.25rem;
  }

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

  .video-controls {
    gap: 0.5rem;
    padding: 0.55rem 0.6rem 0.7rem;
  }

  .video-controls .btn,
  .video-controls .btn-select {
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
  }

  .video-unmute-cta {
    right: 0.6rem;
    bottom: 3.6rem;
  }
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Volume UI is pointless without a hover pointer. */
@media (max-width: 1024px) {
  .volume-container {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .video-controls .btn,
  .video-controls .btn-select,
  .video-unmute-cta,
  .visit-link {
    transition: none;
  }
}

/* Scroll lock helper for the video modal */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
}
