/* Shared TransferPrague layout. The brand stylesheet supplies the colour palette. */
:root {
  --tp-page-gutter: clamp(1rem, 3.4vw, 3rem);
  --tp-content-gap: clamp(1rem, 2vw, 1.75rem);
  --tp-control-radius: .75rem;
}
html body header.header.noir-masthead .frame.nav {
  box-sizing: border-box;
  position: relative;
  width: min(100% - 2 * var(--tp-page-gutter), 90rem) !important;
  margin-inline: auto !important;
  padding: 0 !important;
  align-items: center !important;
}
@media (min-width: 1001px) {
  html body header.header.noir-masthead .frame.nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: clamp(.75rem, 1.6vw, 1.5rem) !important;
    height: 4.75rem !important;
  }
  html body header.header.noir-masthead .wordmark {grid-column: 1; justify-self: start}
  html body header.header.noir-masthead #main-nav {
    display: flex !important; position: static !important;
    grid-column: 2; justify-self: center; justify-content: center !important;
    width: auto !important; margin: 0 !important; gap: clamp(.65rem, 1.5vw, 1.5rem) !important;
  }
  html body header.header.noir-masthead .nav-actions {grid-column: 3; justify-self: end; margin: 0 !important}
  html body header.header.noir-masthead .menu {display: none !important}
}
@media (max-width: 1000px) {
  html body header.header.noir-masthead {padding-block: 0 !important; min-height: 0 !important}
  html body header.header.noir-masthead .frame.nav {
    display: flex !important; justify-content: flex-start !important;
    height: 4.25rem !important; min-height: 4.25rem !important; gap: .5rem !important;
  }
  html body header.header.noir-masthead .wordmark {margin: 0 auto 0 0 !important; min-width: 0}
  html body header.header.noir-masthead .wordmark img {max-width: min(30vw, 9.5rem); height: auto}
  html body header.header.noir-masthead .nav-actions {margin: 0 !important; flex: 0 0 auto}
  html body header.header.noir-masthead .menu {display: inline-flex !important; flex: 0 0 auto; align-items:center; justify-content:center; margin: 0 !important}
  html body header.header.noir-masthead #main-nav {display: none !important}
  html body header.header.noir-masthead #main-nav:is(.is-open,.open) {
    position:absolute !important; display:flex !important; flex-direction:column; align-items:stretch;
    inset: 100% 0 auto !important; width:auto !important; margin:0 !important; z-index:12;
    padding:.5rem; gap:.25rem; border-radius:var(--tp-control-radius); background:#faf7f1; color:#24211b;
    box-shadow:0 .5rem 1.5rem #29231820;
  }
  html body header.header.noir-masthead #main-nav a {padding:.65rem 1rem; color:inherit}
}
html body main :is(.gold-button,.main-button,.button-primary,.discovery-book,.discovery-contact,.secondary-step,.btn.secondary,.inline-link):not([hidden]),
html body :is(.tp-account-card,.tp-ride-card) button[type=submit]:not([hidden]) {
  box-sizing:border-box; min-height:2.75rem; border-radius:var(--tp-control-radius) !important;
  padding:.65rem 1.125rem; line-height:1.35; text-align:center; text-decoration:none !important;
  white-space:normal; max-width:100%;
}
html body main :is(a.gold-button,a.discovery-book,a.discovery-contact,a.btn.secondary,a.inline-link):not([hidden]) {
  display:inline-flex; align-items:center; justify-content:center;
}
html body main :is(.discovery-faq,.discovery-detail,.corporate-header,.trip-detail) :is(h2,h3) {text-wrap:pretty}
html body main :is(.corporate-tags,.trip-meta) {gap:.625rem 1rem}
html body main :is(.trip-detail,.corporate,.discovery-faq) p {line-height:1.55}
html body #booking :is(label,.field-help,.payment-note,.eur-rounding-note,.vat-included,.booking-progress,small,.tp-fare-detail,.tp-payment-copy),
html body main .corporate :is(label,small,.field-help) {
  font-size:.875rem !important; line-height:1.45 !important;
}
html body #booking :is(.trip-tabs button,.tp-select-trigger) {font-size:.9375rem !important; line-height:1.35 !important}
html body #booking .trip-tabs button {white-space:normal; min-width:0; padding-inline:.35rem}
html body #booking .trip-tabs {min-width:0}
html body #booking :is(input,select,textarea):not([type=checkbox],[type=radio],[type=hidden]) {font-size:1rem !important}
html body #booking button:is(.main-button,.secondary-step),html body main button.corporate-submit {font-size:1rem !important}
html body :is(a,button,input,select,textarea,summary):focus-visible {outline:2px solid currentColor;outline-offset:3px}
@media (max-width:600px) {
  html body #booking .trip-tabs {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.375rem!important}
  html body #booking .trip-tabs button {min-height:2.75rem}
}
/* The booking template has two ID-scoped sets of compact legacy form rules. */
html[data-brand="transferprague"] body #onepage-booking-ui #booking :is(label,label .label-line,label .label-line span,.field-help,.payment-note,.eur-rounding-note,.vat-included,.booking-progress,small,.tp-fare-detail,.tp-payment-copy,p,.optional,.day-trip-label,#approvedTariffNote) {
  font-size:14px !important; line-height:1.45 !important;
}
html[data-brand="transferprague"] body #onepage-booking-ui #booking :is(.trip-tabs button,.trip-tabs button span,.tp-select-trigger) {font-size:15px !important;line-height:1.35 !important}
html[data-brand="transferprague"] body #onepage-booking-ui #booking :is(input,textarea,select):not([type=checkbox],[type=radio],[type=hidden]) {font-size:16px !important}
html[data-brand="transferprague"] body #onepage-booking-ui #booking :is(.main-button,.secondary-step),html[data-brand="transferprague"] body #corporate button.corporate-submit {font-size:16px !important}
/* Shared spacing for the content grid, trip cards, forms and customer actions. */
html body main:is(.trip-layout,.discovery-main),html body .corporate > .wrap {
  box-sizing:border-box; max-width:84rem; margin-inline:auto;
}
html body main :is(.trip-grid,.service-fleet-grid,.discovery-grid,.corporate-header) {gap:var(--tp-content-gap)}
html body main :is(.discovery-contact-links,.trip-title-row,.corporate-tags) {align-items:center;flex-wrap:wrap;gap:.625rem 1rem}
html body main :is(.trip-order,.discovery-faq,.tp-fixed-fares,.partner-faq) {scroll-margin-block-start:6rem}
html body main :is(.trip-order,.discovery-faq,.tp-fixed-fares) > :is(h2,h3) {margin-block-end:.875rem;line-height:1.25}
html body main :is(.trip-order,.trip-card-copy,.discovery-copy,.legal-content,.quote-title) > p {line-height:1.55}
html body :is(.tp-account-wrap,#review-form,.quote-form) :is(label,small) {font-size:14px; line-height:1.45}
html body :is(.tp-account-wrap,#review-form,.quote-form) :is(input,select,textarea):not([type=checkbox],[type=radio],[type=hidden]) {font-size:16px}
html body :is(.tp-account-wrap,#review-form,.trip-order,.payment-status) :is(button[type=submit],a.button) {min-height:44px;border-radius:var(--tp-control-radius);line-height:1.35}

html[data-brand="transferprague"] body #onepage-booking-ui #booking :is(.preview-specs,.preview-specs span,.booking-progress span,.pm-map-action) {
  font-size:14px !important; line-height:1.4 !important; white-space:normal; overflow-wrap:anywhere;
}
html[data-brand="transferprague"] body #onepage-booking-ui #booking .booking-progress span[hidden] {display:none !important}
html[data-brand="transferprague"] body #corporate :is(.corporate-header p,.quote-form label,.quote-form .tp-select-trigger) {font-size:15px !important;line-height:1.5 !important}
html[data-brand="transferprague"] body #corporate .corporate-tags span {font-size:14px !important;line-height:1.4 !important}
