/* Padel Tennis Holidays group planner. Mobile first. One content width, one radius scale, one accent. */
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans.woff2') format('woff2'); font-style: normal; font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'DM Sans Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 95%; descent-override: 30%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --ink: #1d3149;        /* logo navy: text, outlines, selected state */
  --muted: #4f5e6e;      /* secondary text */
  --accent: #b5412a;     /* deepened logo coral: the one primary action per state */
  --accent-dark: #973522;
  --tint: #eef3f7;       /* cool court-side neutral for separated regions */
  --selected: #dfe9f3;
  --line: #d2dae2;
  --field-line: #6f7f8f;
  --paper: #fff;
  --r-control: 6px;
  --r-surface: 12px;
  --gutter: 20px;
  font-family: 'DM Sans', 'DM Sans Fallback', Arial, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding: 16px 0 96px; } /* bottom: keeps focused controls clear of the shortlist tray */
body { margin: 0; }
h1, h2, h3, h4, p, ol, figure, pre { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1248px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-control); }
.skip:focus { top: 12px; }

/* Type scale. Mobile values sit inside the portfolio ranges: H1 28-34, H2 20-24, body 16-17, secondary 14-15. */
h1 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.help, .results-status, .price-note, .site-footer, .action-status, .venue-meta, .departure-meta { font-size: 15px; color: var(--muted); }
.help { margin-top: 6px; line-height: 1.5; }

/* Controls */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 1.5px solid var(--accent); border-radius: var(--r-control); background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: none; text-align: center; transition: background-color .15s, transform .1s; }
.button:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.outline { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.button.outline:hover:not(:disabled) { background: var(--selected); border-color: var(--ink); }
.button.outline[aria-pressed="true"] { background: var(--ink); color: #fff; }
.button.outline[aria-pressed="true"]:hover { background: #142438; }
.button:disabled { background: #e3e8ed; border-color: #e3e8ed; color: #566574; cursor: not-allowed; }
.link-button { min-height: 44px; padding: 8px 2px; border: 0; background: none; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { text-decoration-thickness: 2px; }
label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
input:not([type=radio]), select { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 1.5px solid var(--field-line); border-radius: var(--r-control); background: var(--paper); font-size: 16px; }
input[aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field { min-width: 0; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: auto; height: 44px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 550; }
.site-header nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { text-decoration: underline; }
.nav-text { display: none !important; }
#nav-count, .count { padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 650; white-space: nowrap; }

/* Hero: proposition, then the planner controls, then the photograph */
.hero { padding-top: 16px; }
.lede { margin-top: 14px; max-width: 60ch; font-size: 17px; color: var(--muted); }
/* The questions: one at a time, with the answers kept as editable choices afterwards */
.wizard { margin-top: 24px; padding: 20px 16px; border-radius: var(--r-surface); background: var(--tint); scroll-margin-top: 16px; }
.wizard-progress { font-size: 15px; font-weight: 600; color: var(--muted); }
.wizard-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.wizard-bar span { height: 4px; border-radius: 2px; background: #c3ced9; }
.wizard-bar span.is-reached { background: var(--ink); }
.step { margin-top: 20px; }
.step legend { padding: 0; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
.step legend:focus { outline: none; }
.step .help { margin-top: 8px; max-width: 58ch; }
.step-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 16px; max-width: 460px; }
.options { display: grid; gap: 10px; margin-top: 16px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 10px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-control); background: var(--paper); font-size: 16px; font-weight: 550; cursor: pointer; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); outline: none; }
.option-note { margin-left: auto; font-size: 15px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.wizard-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.wizard-nav .link-button { margin-left: 4px; }
#wizard-count { min-height: 23px; margin-top: 12px; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.answer { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-control); background: var(--paper); font-size: 16px; font-weight: 550; text-align: left; }
.answer:hover { border-color: var(--ink); background: var(--selected); }
.form-error { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-control); background: #fbe9e4; color: #7c2814; font-weight: 600; }
.hero-photo { margin-top: 20px; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-surface); background: var(--tint); object-fit: cover; object-position: 44% 30%; }
.hero-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Results: venue groups with comparison rows, not nested cards */
.results { padding-block: 40px 0; }
.results-head h2:focus { outline: none; }
.results-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 2px; }
.results-status .link-button { color: var(--ink); }
.notice:empty { margin: 0; padding: 0; } /* a live region must stay in the page while empty to be announced later */
.notice { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-control); background: var(--tint); font-weight: 550; }
.price-note { margin-top: 12px; max-width: 78ch; }
.price-note strong { color: var(--ink); font-weight: 650; }
#results { margin-top: 28px; display: grid; gap: 40px; }
.skeleton { height: 220px; border-radius: var(--r-surface); background: var(--tint); }
.venue { display: grid; gap: 18px; }
.venue-photo img, .venue-photo .photo-missing { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--r-surface); background: var(--tint); }
.venue-photo .photo-missing { display: grid; place-items: center; padding: 16px; color: var(--muted); font-size: 15px; text-align: center; }
.venue-meta { margin-top: 4px; }
.venue h3:focus-visible { outline-offset: 6px; }
.departures { margin-top: 10px; }
.departure { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.departure.is-selected { margin-inline: -12px; padding-inline: 12px; border-radius: var(--r-control); border-top-color: transparent; background: var(--selected); }
.departure.is-selected + .departure, .departure.is-selected + .more-dates { border-top-color: transparent; }
.departure-when { grid-column: 1 / -1; }
.departure-when h4 { font-size: 17px; line-height: 1.35; font-weight: 650; }
.departure-meta a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; font-weight: 550; color: var(--ink); }
.limited { font-size: 15px; font-weight: 650; }
.price-label { display: block; font-size: 14px; color: var(--muted); }
.price-value { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.price-value.unlisted { font-size: 15px; font-weight: 550; white-space: normal; color: var(--muted); }
.departure .button { grid-column: 1 / -1; min-height: 44px; padding-block: 9px; }
.more-dates { border-top: 1px solid var(--line); }
.more-dates summary { width: fit-content; min-height: 48px; padding: 12px 0; font-weight: 600; cursor: pointer; }
.empty { padding: 28px 20px; border-radius: var(--r-surface); background: var(--tint); }
.empty p { max-width: 60ch; }
.empty .button, .empty .link-button { margin-top: 16px; }
.empty .link-button { margin-left: 12px; }
#show-more { margin-top: 28px; }

/* Shortlist tray: follows the visitor through the results, then hands over to the brief */
.tray { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 28px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter); border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -10px 24px -18px rgba(29, 49, 73, .45); animation: tray-in .2s ease-out; }
.tray p { font-weight: 600; flex: 1 1 200px; }
.tray p span { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.tray .button { min-height: 44px; padding-block: 9px; }
@keyframes tray-in { from { transform: translateY(12px); opacity: 0; } }

/* Group brief: the signature experience */
.brief { margin-top: 48px; padding-block: 44px; background: var(--tint); scroll-margin-top: 0; }
.results:has(.tray:not([hidden])) + .brief { margin-top: 0; }
.brief h2:focus { outline: none; }
.section-lede { margin-top: 10px; max-width: 62ch; font-size: 17px; color: var(--muted); }
.brief-grid { display: grid; gap: 36px; margin-top: 28px; }
.shortlist h3, .brief-doc h3 { display: flex; align-items: center; gap: 10px; }
.count { background: var(--paper); }
#selected-list { margin-top: 12px; counter-reset: option; }
#selected-list li { counter-increment: option; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; padding: 16px 0; border-top: 1px solid #c3ced9; }
#selected-list li::before { content: 'Option ' counter(option); grid-column: 1 / -1; font-size: 14px; font-weight: 650; color: var(--muted); }
#selected-list h4 { font-size: 17px; line-height: 1.35; font-weight: 650; }
#selected-list p { font-size: 15px; color: var(--muted); }
#selected-list p.option-prices { color: var(--ink); }
#selected-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 550; }
#selected-list li.is-empty { display: block; color: var(--muted); }
#selected-list li.is-empty p { font-size: 16px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.brief-actions .button { flex: 1 1 auto; }
.brief-actions .button:first-child { flex-basis: 100%; }
.action-status { min-height: 24px; margin-top: 10px; font-weight: 600; color: var(--ink); }
#brief-preview { margin-top: 6px; padding: 20px; border-radius: var(--r-surface); background: var(--paper); font-family: inherit; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#copy-fallback { display: block; width: 100%; height: 220px; margin-top: 10px; padding: 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-control); background: var(--paper); font-size: 16px; }

/* Off-screen sections are not laid out or painted until they come near the viewport. This keeps revealing the
   results quick on slow phones; the remembered size stops the page jumping once a section has been seen. */
.venue, .brief, .how, .faq { content-visibility: auto; contain-intrinsic-block-size: auto 720px; }

/* How it works and questions */
.discovery, .organiser, .about { padding-block: 48px; border-top: 1px solid var(--line); }
.discovery .section-lede, .organiser .section-lede { margin-top: 14px; max-width: 70ch; }
.discovery-status { margin-top: 20px; }
.sample-grid { display: grid; gap: 32px; margin-top: 24px; }
.sample-departure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-surface); margin-bottom: 16px; }
.sample-departure h3 { margin-bottom: 6px; }
.sample-departure h3 a { display: inline-block; padding-block: 8px; }
.sample-departure > p { color: var(--muted); font-size: 15px; }
.sample-date { margin-top: 8px; }
.sample-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; margin: 16px 0 0; border-top: 1px solid var(--line); }
.sample-prices dt { font-size: 14px; color: var(--muted); }
.sample-prices dd { font-size: 20px; font-weight: 650; margin: 2px 0 0; }
.room-example { max-width: 75ch; padding-block: 24px; margin-top: 28px; border-top: 1px solid var(--line); }
.room-example p { margin-top: 8px; }
.discovery-action { display: inline-flex; align-items: center; margin-top: 16px; }
.organiser-list { display: grid; gap: 28px; margin-top: 28px; }
.organiser-list li { padding-top: 20px; border-top: 1px solid var(--line); }
.organiser-list p, .about p { margin-top: 10px; color: var(--muted); }
.about { display: grid; gap: 32px; }
.how { padding-block: 48px; }
.steps { display: grid; gap: 24px; margin-top: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps h3::before { content: counter(step) '. '; }
.steps p { margin-top: 6px; color: var(--muted); }
.faq { padding-block: 44px; background: var(--tint); }
.faq-list { margin-top: 18px; max-width: 800px; }
.faq details { border-top: 1px solid #c3ced9; }
.faq details:last-child { border-bottom: 1px solid #c3ced9; }
.faq summary { min-height: 56px; padding: 16px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq details p { padding-bottom: 20px; max-width: 70ch; }
.site-footer { display: grid; gap: 16px; padding-block: 28px 36px; }
.site-footer strong { color: var(--ink); }
.site-footer a { display: inline-block; padding-block: 10px; color: var(--ink); }
.no-script { padding: 16px 0 32px; font-weight: 600; }

@media (max-width: 359px) {
  h1 { font-size: 29px; }
  .step-fields { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
}

@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .site-header { min-height: 84px; }
  .brand img { height: 52px; }
  .nav-text { display: inline-flex !important; }
  .wizard { padding: 26px 28px; }
  .options { grid-template-columns: 1fr 1fr; }
  .hero-photo img { aspect-ratio: 16 / 8; }
  .departure { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .departure-when { grid-column: auto; }
  .departure .button { grid-column: 1 / -1; justify-self: start; }
  .brief-actions .button, .brief-actions .button:first-child { flex: 0 0 auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .organiser-list, .about { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer { grid-template-columns: 1fr 1.4fr; gap: 48px; }
  .empty { padding: 36px; }
}

@media (min-width: 1000px) {
  :root { --gutter: 48px; font-size: 17px; }
  h1 { font-size: clamp(42px, 3.7vw, 52px); line-height: 1.05; }
  h2 { font-size: 34px; }
  h3 { font-size: 22px; }
  .hero { padding-top: 28px; }
  .lede { margin-top: 18px; font-size: 19px; }
  .section-lede { font-size: 18px; }
  .wizard { margin-top: 32px; }
  .step legend { font-size: 28px; }
  .results { padding-top: 64px; }
  #results { gap: 56px; }
  .venue { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
  .venue-photo { position: sticky; top: 16px; }
  .departure { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .9fr) 176px; gap: 20px; }
  .departure .button { grid-column: auto; justify-self: stretch; padding-inline: 12px; }
  .departure-when h4, #selected-list h4 { font-size: 18px; }
  .price-value { font-size: 21px; }
  .brief { margin-top: 72px; padding-block: 72px; }
  .brief-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; margin-top: 40px; }
  #brief-preview { padding: 28px 32px; font-size: 16px; }
  .how { padding-block: 80px; }
  .discovery, .organiser, .about { padding-block: 72px; }
  .sample-grid, .organiser-list, .about { gap: 40px; }
  .steps { gap: 48px; margin-top: 36px; }
  .faq { padding-block: 72px; }
  .faq > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .faq-list { margin-top: 0; max-width: none; }
  .faq summary { font-size: 19px; }
}

/* Side by side only when the photograph column is wide enough to keep both players in the crop */
@media (min-width: 1150px) {
  .hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; }
  .hero-text, .wizard { grid-column: 1; }
  .wizard { align-self: start; }
  /* The photograph fills the column beside the text and questions, whatever their height */
  .hero-photo { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 440px; margin-top: 0; }
  .hero-photo img { position: absolute; inset: 0 0 30px; width: 100%; height: calc(100% - 30px); aspect-ratio: auto; }
  .hero-photo figcaption { position: absolute; inset: auto 0 0; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .hero, .results, .how, .faq, .site-footer, .brief-actions, .shortlist, .brief-doc .help, .action-status, .section-lede { display: none !important; }
  .brief { background: none; padding: 0; margin: 0; }
  #brief-preview { padding: 0; }
}
