/* V35: final shared UI contract for every deployed page. */

html {
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: 1.55;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-weight: inherit;
}

h1,
h2,
h3,
.brand,
.site-nav,
.admin-nav,
.admin-mobile-header,
.admin-bottom-nav {
  font-family: var(--font-heading);
}

h1,
h2,
h3 {
  font-weight: var(--font-weight-heading);
  line-height: 1.05;
}

strong,
b {
  font-weight: var(--font-weight-label);
}

.eyebrow,
.hero-kicker {
  font-family: var(--font-heading) !important;
  font-size: var(--font-size-label) !important;
  font-weight: var(--font-weight-label) !important;
  line-height: 1.25 !important;
  letter-spacing: .12em !important;
}

.status-message {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-body);
  line-height: 1.5;
}

/* Controls */
.button,
.booking-card__submit,
.availability-form__submit,
.fleet-filter {
  min-height: var(--control-height) !important;
  padding: .75rem 1.125rem !important;
  border-radius: 0 !important;
  font-family: var(--font-heading) !important;
  font-size: var(--font-size-button) !important;
  font-weight: var(--font-weight-heading) !important;
  line-height: 1.2 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
}

.button--primary,
.booking-card__submit,
.availability-form__submit {
  border-color: var(--color-accent) !important;
  background: var(--color-accent) !important;
  color: var(--color-navy) !important;
}

.button--primary:hover,
.booking-card__submit:hover,
.availability-form__submit:hover {
  border-color: var(--color-accent-hover) !important;
  background: var(--color-accent-hover) !important;
  color: #fff !important;
}

.button--danger {
  border-color: #b86d6d !important;
  background: #fff !important;
  color: var(--color-error) !important;
}

.button--danger:hover {
  border-color: var(--color-error) !important;
  background: #fff1f1 !important;
}

.icon-button,
.public-menu-button {
  width: var(--icon-control-size) !important;
  height: var(--icon-control-size) !important;
  min-width: var(--icon-control-size) !important;
  min-height: var(--icon-control-size) !important;
  flex-basis: var(--icon-control-size) !important;
  padding: 0 !important;
}

.fleet-filter,
.admin-nav__item {
  min-height: var(--control-height);
  font-family: var(--font-heading);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-heading);
  letter-spacing: .055em;
}

.admin-bottom-nav button {
  min-height: 4rem;
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-heading);
  letter-spacing: .035em;
}

/* Forms */
.form-field {
  gap: .5rem;
}

.form-field label,
.booking-card__form label,
.availability-form label {
  font-family: var(--font-heading) !important;
  font-size: var(--font-size-label) !important;
  font-weight: var(--font-weight-label) !important;
  line-height: 1.25 !important;
  letter-spacing: .075em !important;
}

body[data-page="home"] .booking-card__form label,
body[data-page="vehicles"] .booking-card--hero .booking-card__form--table label {
  font-size: var(--font-size-label) !important;
  font-weight: var(--font-weight-label) !important;
  line-height: 1.25 !important;
  letter-spacing: .075em !important;
}

.form-field input,
.form-field select,
.booking-card input,
.booking-card select,
.availability-card input,
.availability-card select,
body[data-page="home"] .booking-card input,
body[data-page="home"] .booking-card select,
body[data-page="vehicles"] .booking-card--hero input,
body[data-page="vehicles"] .booking-card--hero select {
  block-size: var(--control-height) !important;
  height: var(--control-height) !important;
  min-height: var(--control-height) !important;
  padding: 0 .875rem !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: var(--font-size-control) !important;
  font-weight: var(--font-weight-body) !important;
  line-height: 1.25 !important;
}

.form-field textarea {
  min-height: 7rem;
  padding: .875rem !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: var(--font-size-control) !important;
  font-weight: var(--font-weight-body) !important;
  line-height: 1.5 !important;
}

.booking-card input[type="date"],
.booking-card input[type="time"],
.availability-card input[type="date"],
.availability-card input[type="time"] {
  font-family: var(--font-body) !important;
  font-variant-numeric: tabular-nums;
}

/* Public page rhythm and typography */
.site-header {
  height: var(--header-height) !important;
}

.site-nav a {
  min-height: var(--control-height);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-heading);
  letter-spacing: .055em;
}

.rental-hero__copy h1,
body[data-page="vehicles"] .vehicles-hero__copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 6vw, 4.75rem) !important;
  font-weight: var(--font-weight-heading);
  line-height: .94 !important;
  letter-spacing: -.045em !important;
}

.section-title-row h2,
.fleet-toolbar h2 {
  font-size: clamp(2.25rem, 6vw, 3.25rem) !important;
  font-weight: var(--font-weight-heading);
  line-height: .98 !important;
}

.featured-car__header h3,
.catalogue-car__header h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-heading);
}

.featured-car__description,
.catalogue-car__description,
.vehicles-hero__lead,
.help-banner p,
.site-footer p,
.site-footer a {
  font-size: var(--font-size-small) !important;
  font-weight: var(--font-weight-body);
  line-height: 1.6;
}

.content-section,
.fleet-browser {
  padding-block: var(--section-padding);
}

.section-title-row,
.fleet-toolbar {
  gap: var(--layout-gap);
  margin-bottom: var(--space-5);
}

.featured-fleet,
.vehicle-catalogue {
  gap: var(--space-5);
}

.featured-car__body,
.catalogue-car__body {
  gap: var(--layout-gap);
  padding: var(--space-5);
}

.help-banner__inner,
.site-footer {
  padding-block: var(--space-7);
}

/* Booking is the same component on Home and Vehicles. */
body[data-page="home"] .booking-card__header,
body[data-page="vehicles"] .booking-card--hero .booking-card__header {
  min-height: 5.25rem !important;
  padding: var(--component-padding) !important;
  gap: var(--layout-gap) !important;
}

body[data-page="home"] .booking-card__header h2,
body[data-page="vehicles"] .booking-card--hero .booking-card__header h2 {
  font-size: 1.5rem !important;
  font-weight: var(--font-weight-heading) !important;
  line-height: 1.05 !important;
}

body[data-page="home"] .booking-card__days,
body[data-page="vehicles"] .booking-card--hero .booking-card__days {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-control) !important;
  font-weight: var(--font-weight-heading) !important;
}

body[data-page="home"] .booking-card__form,
body[data-page="vehicles"] .booking-card--hero .booking-card__form--table {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-page="home"] .booking-card__form > .form-field,
body[data-page="vehicles"] .booking-card--hero .booking-card__form--table > .form-field {
  min-height: auto !important;
  padding: .75rem !important;
}

body[data-page="home"] .booking-card__submit,
body[data-page="vehicles"] .booking-card--hero .booking-card__submit {
  grid-column: 1 !important;
  min-height: var(--control-height) !important;
  margin: .75rem !important;
  padding: .75rem 1.125rem !important;
  font-family: var(--font-heading) !important;
  font-size: var(--font-size-button) !important;
  font-weight: var(--font-weight-heading) !important;
  line-height: 1.2 !important;
  letter-spacing: .055em !important;
}

/* Admin uses the same component sizing while retaining its dense layout. */
.admin-mobile-header,
.admin-sidebar__brand {
  height: var(--header-height);
}

.admin-page-header {
  gap: var(--layout-gap);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
}

.admin-page-header h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: var(--font-weight-heading);
}

.auth-card__header,
.auth-card__body,
.panel__body,
.list-row {
  padding: var(--space-5);
}

.panel__header {
  min-height: var(--control-height);
  padding: .75rem var(--space-4);
}

.panel__header h2,
.panel__header h3,
.auth-card__header h1 {
  font-weight: var(--font-weight-heading);
}

.panel__header h2,
.panel__header h3 {
  font-size: var(--font-size-small);
}

.metric span,
.data-table th,
.admin-archive > summary {
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  letter-spacing: .05em;
}

.metric strong {
  font-size: 1.625rem;
  font-weight: var(--font-weight-heading);
}

.data-table th,
.data-table td {
  padding: .75rem;
  font-size: .8125rem;
}

.list-row__main strong,
.database-policy-list strong,
.database-policy-list span,
.database-maintenance-result span {
  font-size: .8125rem;
}

.dialog__header,
.dialog__footer,
.dialog__body {
  padding: var(--component-padding);
}

.dialog__header h2 {
  font-size: 1rem;
  font-weight: var(--font-weight-heading);
}

/* 404 and redirect fallbacks */
.system-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--gutter);
  background: var(--color-bg);
}

.system-card {
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--color-border-strong);
  border-top: 4px solid var(--color-accent);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.system-card h1 {
  margin-top: var(--space-2);
  font-size: clamp(2rem, 8vw, 3rem);
  overflow-wrap: anywhere;
}

.system-card p:not(.eyebrow) {
  margin: var(--space-4) 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--font-size-body);
  line-height: 1.6;
}

@media (min-width: 48rem) {
  body[data-page="home"] .booking-card__form,
  body[data-page="vehicles"] .booking-card--hero .booking-card__form--table {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page="home"] .booking-card__submit,
  body[data-page="vehicles"] .booking-card--hero .booking-card__submit {
    grid-column: 1 / -1 !important;
  }
}

@media (min-width: 64rem) {
  body[data-page="home"] .booking-card__form {
    grid-template-columns: 1fr 1fr .9fr 1fr minmax(12rem, auto) !important;
  }

  body[data-page="home"] .booking-card__submit {
    grid-column: auto !important;
  }
}

@media (max-width: 47.99rem) {
  :root {
    --mobile-edge: 1rem;
  }

  .site-header__inner {
    gap: .5rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__name {
    max-width: 7.5rem !important;
    font-size: .75rem !important;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: .35rem;
  }

  .rental-hero__copy h1,
  body[data-page="vehicles"] .vehicles-hero__copy h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.15rem) !important;
  }

  body[data-page="vehicles"] .vehicles-hero {
    display: block !important;
  }

  .system-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-card h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .content-section,
  .fleet-browser {
    padding-block: var(--space-7);
  }
}

/* Unified rental-period picker. Hidden values keep transport separate from presentation. */
.booking-period-field input[hidden] {
  display: none !important;
}

body[data-page="home"] .booking-card__form > .booking-period-field,
body[data-page="vehicles"] .booking-card--hero .booking-card__form--table > .booking-period-field {
  grid-column: 1 / -1 !important;
  padding: .75rem !important;
}

.booking-period-field__label {
  display: block;
  margin: 0 0 .42rem;
  color: #aeb8bd;
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-label);
  letter-spacing: .095em;
  line-height: 1.2;
  text-transform: uppercase;
}

.booking-period-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem minmax(0, 1fr);
  min-width: 0;
  border: 1px solid #6f7f89;
  background: #f4f4f1;
}

.booking-period-control__segment {
  min-width: 0;
  min-height: 4.45rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: .2rem .65rem;
  padding: .65rem .8rem;
  border: 0;
  background: transparent;
  color: var(--color-navy);
  text-align: left;
  transition: background var(--motion-fast), box-shadow var(--motion-fast);
}

.booking-period-control__segment:hover,
.booking-period-control__segment:focus-visible,
.booking-period-control__segment[aria-expanded="true"] {
  position: relative;
  z-index: 1;
  background: #fff;
  box-shadow: inset 0 -3px var(--color-accent);
}

.booking-period-control__label {
  grid-column: 1 / -1;
  color: #6b777e;
  font-size: .6rem;
  font-weight: var(--font-weight-heading);
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

.booking-period-control__segment strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-period-control__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  color: #52616a;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.booking-period-control__meta svg,
.booking-period-control__route svg,
.period-picker__direction svg,
.period-picker__calendar-toolbar svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.booking-period-control__route {
  display: grid;
  place-items: center;
  border-inline: 1px solid #c6cccf;
  color: #8b6a38;
}

.period-picker-layer {
  position: fixed;
  inset: 0;
  z-index: 1800;
}

.period-picker-layer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(7, 18, 27, .28);
  backdrop-filter: blur(2px);
  cursor: default;
}

.period-picker {
  position: fixed;
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c9d0d4;
  border-top: 4px solid var(--color-accent);
  border-radius: .65rem;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 28px 70px rgba(5, 17, 26, .26);
  animation: period-picker-enter var(--motion-normal) ease-out;
}

@keyframes period-picker-enter {
  from { opacity: 0; transform: translateY(-.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

.period-picker__header {
  min-height: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.25rem;
  border-bottom: 1px solid #e0e4e6;
  background: #fff;
  color: var(--color-text);
}

.period-picker__header p {
  margin-bottom: .2rem;
  color: #68757d;
  font-size: .6rem;
  font-weight: var(--font-weight-heading);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.period-picker__header h2 {
  font-size: 1.12rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.period-picker__close,
.period-picker__calendar-toolbar button {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid #d3d9dc;
  border-radius: .45rem;
  background: #eef1f3;
  color: inherit;
  font-size: 1.35rem;
}

.period-picker__close:hover,
.period-picker__close:focus-visible {
  border-color: var(--color-accent);
  background: #e5e9eb;
}

.period-picker__body {
  min-height: 0;
  overflow: auto;
  padding: 1.15rem 1.25rem 1.35rem;
}

.period-picker__endpoints {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: .8rem;
}

.period-picker__endpoint {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.75rem;
  border: 2px solid #aab6bd;
  border-radius: .4rem;
  background: #fff;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.period-picker__endpoint.is-active {
  position: relative;
  z-index: 1;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, .13);
}

.period-picker__date-choice {
  min-width: 0;
  display: grid;
  gap: .12rem;
  padding: .78rem .9rem;
  border: 0;
  border-right: 1px solid #d0d5d8;
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.period-picker__date-choice:hover,
.period-picker__date-choice:focus-visible {
  background: #f6f2ea;
}

.period-picker__date-choice span,
.period-picker__endpoint label > span {
  color: #6b777e;
  font-size: .56rem;
  font-weight: var(--font-weight-heading);
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.period-picker__date-choice strong {
  overflow: hidden;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-picker__date-choice small {
  color: #896938;
  font-size: .65rem;
  font-weight: 800;
}

.period-picker__endpoint label {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: .6rem;
}

.period-picker__endpoint select {
  width: 100%;
  height: 2.55rem;
  min-width: 0;
  padding: 0 .45rem;
  border: 1px solid #aab4ba;
  border-radius: .3rem;
  background: #f5f7f8;
  color: var(--color-text);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.period-picker__direction {
  display: grid;
  place-items: center;
  color: #8b6a38;
}

.period-picker__quick {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .8rem;
}

.period-picker__quick > span {
  flex: 0 0 auto;
  color: #68757d;
  font-size: .61rem;
  font-weight: var(--font-weight-heading);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.period-picker__quick > div {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.period-picker__quick > div::-webkit-scrollbar {
  display: none;
}

.period-picker__quick button {
  flex: 0 0 auto;
  min-height: 2.45rem;
  padding: 0 .85rem;
  border: 0;
  border-radius: .45rem;
  background: #e9eef1;
  color: #263640;
  font-size: .75rem;
  font-weight: var(--font-weight-heading);
}

.period-picker__quick button::before {
  content: "+";
  margin-right: .35rem;
  color: #68757d;
}

.period-picker__quick button:hover,
.period-picker__quick button:focus-visible,
.period-picker__quick button.is-active {
  background: #e7dcc8;
  color: #684c25;
}

.period-picker__calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  margin-bottom: .15rem;
  padding-block: .45rem;
}

.period-picker__calendar-toolbar p {
  color: #5e6b73;
  font-size: .62rem;
  font-weight: var(--font-weight-heading);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.period-picker__calendar-toolbar button {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: .45rem;
  background: #e9eef1;
  color: var(--color-text);
}

.period-picker__calendar-toolbar button:hover:not(:disabled),
.period-picker__calendar-toolbar button:focus-visible:not(:disabled) {
  background: #dfe5e8;
}

.period-picker__calendar-toolbar button:disabled {
  cursor: not-allowed;
  opacity: .3;
}

.period-picker__months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  padding-inline: .35rem;
}

.period-calendar {
  min-width: 0;
}

.period-calendar h3 {
  width: max-content;
  margin: 0 auto .8rem;
  padding: .45rem .85rem;
  border-radius: .45rem;
  background: #e9eef1;
  font-size: .82rem;
  letter-spacing: .02em;
  text-align: center;
  text-transform: capitalize;
}

.period-calendar__weekdays,
.period-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.period-calendar__weekdays span {
  padding-bottom: .55rem;
  color: #748087;
  font-size: .58rem;
  font-weight: var(--font-weight-heading);
  text-align: center;
  text-transform: uppercase;
}

.period-calendar__day,
.period-calendar__blank {
  min-width: 0;
  height: 3.05rem;
}

.period-calendar__day {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.period-calendar__day::before {
  content: "";
  position: absolute;
  inset-block: .2rem;
  inset-inline: 0;
  z-index: 0;
  background: transparent;
}

.period-calendar__day span {
  position: relative;
  z-index: 1;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: .35rem;
  display: grid;
  place-items: center;
}

.period-calendar__day:hover:not(:disabled) span,
.period-calendar__day:focus-visible span {
  outline: 2px solid var(--color-accent);
  background: #f1eadf;
}

.period-calendar__day.is-in-range::before {
  background: #e8dfcf;
}

.period-calendar__day.is-start::before {
  left: 50%;
  background: #e8dfcf;
}

.period-calendar__day.is-end::before {
  right: 50%;
  background: #e8dfcf;
}

.period-calendar__day.is-start span,
.period-calendar__day.is-end span {
  background: var(--color-navy);
  color: #fff;
}

.period-calendar__day.is-today span {
  box-shadow: inset 0 -2px var(--color-accent);
}

.period-calendar__day:disabled {
  cursor: not-allowed;
  color: #aeb6ba;
}

.period-picker__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.25rem;
  border-top: 1px solid #e0e4e6;
  background: #fff;
}

.period-picker__footer > div:first-child {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

.period-picker__footer strong {
  overflow: hidden;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-picker__footer span {
  color: #66737b;
  font-size: .67rem;
}

.period-picker__footer span.is-error {
  color: var(--color-error);
}

.period-picker__actions {
  display: flex;
  gap: .5rem;
}

.period-picker__actions .button {
  min-height: 3rem;
  padding-inline: 1.15rem;
  font-size: .67rem;
}

.site-nav__mobile-contact {
  display: none;
}

.site-footer {
  padding-block: 1.15rem !important;
}

.site-footer__bar {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: .85rem 1.5rem;
}

.site-footer__identity {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #263640;
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.site-footer__identity span {
  width: 2rem;
  height: 2rem;
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  background: var(--color-navy);
  color: #fff;
  font-size: .58rem;
  font-weight: var(--font-weight-heading);
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.site-footer__contact a {
  color: #46565f;
  font-size: .72rem;
  font-weight: var(--font-weight-label);
  line-height: 1.35;
}

.site-footer__bar > p {
  grid-column: 1 / -1;
  padding-top: .65rem;
  border-top: 1px solid #c2c9cd;
  color: #66737b;
  font-size: .68rem;
  line-height: 1.4;
}

@media (min-width: 48rem) {
  body[data-page="home"] .booking-card__form,
  body[data-page="vehicles"] .booking-card--hero .booking-card__form--table {
    grid-template-columns: minmax(0, 1.6fr) minmax(12rem, .7fr) !important;
  }

  body[data-page="vehicles"] .booking-card--hero .booking-card__submit {
    grid-column: auto !important;
    margin: .75rem !important;
  }
}

@media (min-width: 64rem) {
  body[data-page="home"] .booking-card__form {
    grid-template-columns: minmax(27rem, 2fr) minmax(12rem, .72fr) minmax(14rem, .9fr) !important;
  }

  body[data-page="home"] .booking-card__form > .booking-period-field {
    grid-column: auto !important;
  }

  .site-footer__bar {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .site-footer__bar > p {
    grid-column: auto;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }
}

@media (max-width: 47.99rem) {
  body.booking-period-open {
    overflow: hidden;
  }

  body[data-page="home"] .booking-card__form > .booking-period-field,
  body[data-page="vehicles"] .booking-card--hero .booking-card__form--table > .booking-period-field {
    min-height: auto !important;
    padding: .7rem !important;
  }

  .booking-period-control {
    grid-template-columns: minmax(0, 1fr) 1.65rem minmax(0, 1fr);
  }

  .booking-period-control__segment {
    min-height: 4.2rem;
    grid-template-columns: minmax(0, 1fr);
    gap: .18rem;
    padding: .55rem .6rem;
  }

  .booking-period-control__segment strong {
    font-size: .85rem;
  }

  .booking-period-control__meta {
    justify-content: flex-start;
    font-size: .75rem;
  }

  .booking-period-control__meta svg {
    display: none;
  }

  .period-picker-layer__backdrop {
    background: rgba(5, 15, 23, .62);
    backdrop-filter: blur(2px);
  }

  .period-picker {
    inset: auto 0 0 !important;
    width: 100%;
    max-height: min(94dvh, 48rem);
    border-inline: 0;
    border-bottom: 0;
    border-radius: .65rem .65rem 0 0;
    animation-name: period-picker-mobile-enter;
  }

  @keyframes period-picker-mobile-enter {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  .period-picker__header {
    min-height: 4.25rem;
    padding: .7rem var(--mobile-edge);
  }

  .period-picker__header h2 {
    font-size: 1rem;
  }

  .period-picker__close {
    width: 2.5rem;
    height: 2.5rem;
  }

  .period-picker__body {
    padding: .75rem var(--mobile-edge);
  }

  .period-picker__endpoints {
    grid-template-columns: minmax(0, 1fr) 1.35rem minmax(0, 1fr);
    margin-bottom: .75rem;
  }

  .period-picker__quick {
    display: block;
    margin-bottom: .55rem;
  }

  .period-picker__quick > div {
    margin-top: .4rem;
  }

  .period-picker__quick button {
    min-height: 2.3rem;
    padding-inline: .7rem;
    font-size: .7rem;
  }

  .period-picker__endpoint {
    grid-template-columns: minmax(0, 1fr);
  }

  .period-picker__date-choice {
    min-height: 4.05rem;
    padding: .55rem .6rem;
    border-right: 0;
    border-bottom: 1px solid #d0d5d8;
  }

  .period-picker__date-choice strong {
    font-size: .82rem;
  }

  .period-picker__date-choice small {
    display: none;
  }

  .period-picker__endpoint label {
    padding: .45rem;
  }

  .period-picker__endpoint select {
    height: 2.5rem;
    font-size: 16px;
  }

  .period-picker__direction svg {
    width: .85rem;
  }

  .period-picker__calendar-toolbar {
    margin-bottom: .55rem;
    padding-block: .4rem;
  }

  .period-picker__calendar-toolbar p {
    font-size: .58rem;
  }

  .period-picker__months {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .period-calendar__day,
  .period-calendar__blank {
    height: clamp(2.25rem, 10vw, 2.65rem);
  }

  .period-picker__footer {
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    padding: .65rem var(--mobile-edge) calc(.65rem + env(safe-area-inset-bottom));
  }

  .period-picker__footer strong {
    font-size: .72rem;
    white-space: normal;
  }

  .period-picker__actions {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
  }

  .period-picker__actions .button {
    width: 100%;
  }

  .site-footer {
    display: block !important;
    padding-block: 1rem !important;
    border-top: 1px solid #aeb8bd;
    background: #dfe4e6 !important;
  }

  .site-footer__bar {
    grid-template-columns: minmax(0, 1fr);
    gap: .7rem 1rem;
  }

  .site-footer__contact,
  .site-footer__bar > p {
    grid-column: 1 / -1;
  }

  .site-footer__contact {
    flex-wrap: wrap;
    gap: .35rem 1rem;
  }

  .site-footer__bar > p {
    padding-top: .55rem;
  }
}

@media (max-width: 63.99rem) {
  .site-nav.is-open {
    top: var(--site-nav-offset, var(--header-height));
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100dvh - var(--site-nav-viewport-top, var(--header-height)));
    max-height: calc(100dvh - var(--site-nav-viewport-top, var(--header-height)));
    align-content: start;
    padding: .75rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
    overflow: auto;
    border: 0;
    border-top: 3px solid var(--color-accent);
    background: var(--color-navy);
  }

  .site-nav.is-open > a {
    background: #fff;
  }

  .site-nav.is-open .site-nav__mobile-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: .75rem 0 0;
    border-top: 1px solid #c8d0d5;
    background: transparent;
  }

  .site-nav__mobile-contact > a {
    min-width: 0;
    min-height: 4rem;
    display: grid;
    align-content: center;
    gap: .2rem;
    padding: .7rem !important;
    border: 0 !important;
    background: #fff;
    text-transform: none;
  }

  .site-nav__mobile-contact span {
    color: #6a777f;
    font-size: .55rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .site-nav__mobile-contact strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--color-text);
    font-size: .78rem;
  }

  .site-nav__mobile-contact p {
    grid-column: 1 / -1;
    padding: .65rem .2rem 0;
    color: #a8b3b9;
    font-size: .67rem;
    line-height: 1.45;
  }
}

@media (max-width: 30rem) {
  .site-nav.is-open .site-nav__mobile-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav__mobile-contact p {
    grid-column: 1;
  }
}

.fleet-loading {
  grid-column: 1 / -1;
  min-width: 0;
}

.fleet-loading__grid {
  display: grid;
  gap: 1.2rem;
}

.fleet-loading__card {
  min-height: 43rem;
  display: grid;
  align-content: start;
  gap: .8rem;
  padding: 0 1rem 1rem;
  overflow: hidden;
  border: 1px solid #aab5bc;
  background: #fff;
}

.fleet-loading__media,
.fleet-loading__line {
  display: block;
  background: linear-gradient(100deg, #e1e6e9 20%, #f3f5f6 40%, #e1e6e9 60%);
  background-size: 220% 100%;
  animation: fleet-loading-pulse 1.3s ease-in-out infinite;
}

.fleet-loading__media {
  width: calc(100% + 2rem);
  aspect-ratio: 16 / 10;
  margin: 0 -1rem .25rem;
}

.fleet-loading__line {
  width: 100%;
  height: .7rem;
}

.fleet-loading__line--short {
  width: 32%;
  height: .55rem;
}

.fleet-loading__line--title {
  width: 62%;
  height: 1.4rem;
}

@keyframes fleet-loading-pulse {
  to { background-position-x: -220%; }
}

@media (min-width: 48rem) {
  .featured-fleet .fleet-loading__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vehicle-catalogue .fleet-loading__card {
  min-height: 52rem;
}

@media (min-width: 80rem) {
  .vehicle-catalogue .fleet-loading__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-loading__media,
  .fleet-loading__line {
    animation: none;
  }
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #a8b3ba;
  background: #edf1f3;
}

.language-switch__item {
  min-width: 2rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
  color: #53636d;
  font-family: var(--font-heading);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .07em;
}

.language-switch__item:hover,
.language-switch__item:focus-visible,
.language-switch__item.is-active {
  background: var(--color-navy);
  color: #fff;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .85rem;
}

.site-footer__legal a {
  color: #344750;
  font-size: .68rem;
  font-weight: var(--font-weight-label);
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.reservation-consent label {
  cursor: pointer;
}

.reservation-consent a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.legal-page {
  min-height: 60vh;
  background: #edf1f3;
}

.legal-hero {
  border-bottom: 4px solid var(--color-accent);
  background: var(--color-navy);
  color: #fff;
}

.legal-hero__inner {
  display: grid;
  gap: .85rem;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.legal-hero .text-link {
  width: fit-content;
  display: inline-flex;
  color: #b9ddef;
}

.legal-hero .eyebrow {
  color: #9bcde6;
}

.legal-hero h1 {
  max-width: 58rem;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.legal-hero__inner > p:not(.eyebrow, .legal-effective) {
  max-width: 50rem;
  color: #ced9df;
  line-height: 1.65;
}

.legal-effective {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  color: #dce7ec;
  font-size: .76rem;
}

.legal-document {
  max-width: 62rem;
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.5rem, 5vw, 4rem);
}

.legal-document section,
.legal-draft {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #acb7bd;
  background: #fff;
}

.legal-document h2 {
  margin-bottom: .9rem;
  color: #142a38;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  line-height: 1.15;
}

.legal-document h3 {
  margin: 1.2rem 0 .5rem;
  color: #2b3d47;
  font-size: 1rem;
}

.legal-document p,
.legal-document li {
  color: #4f5e67;
  font-size: .9rem;
  line-height: 1.72;
}

.legal-document p + p {
  margin-top: .75rem;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: .45rem;
  margin: .7rem 0 0 1.25rem;
}

.legal-document a {
  color: var(--color-accent);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.legal-identity {
  display: grid;
  gap: 1px;
  margin-top: 1rem;
  background: #c9d0d4;
}

.legal-identity > div {
  min-width: 0;
  display: grid;
  gap: .25rem;
  padding: .8rem;
  background: #f5f7f8;
}

.legal-identity dt {
  color: #66757d;
  font-family: var(--font-heading);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legal-identity dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #243741;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.5;
}

.legal-draft {
  border-color: #bc8128;
  background: #fff6df;
}

.legal-draft strong {
  color: #774b09;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.legal-draft p {
  margin-top: .4rem;
  color: #704f1e;
}

.legal-placeholder {
  overflow-wrap: anywhere;
  color: #9b2c2c !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

@media (min-width: 48rem) {
  .legal-identity > div {
    grid-template-columns: minmax(9rem, .4fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .site-footer__bar {
    grid-template-columns: auto auto auto minmax(0, 1fr);
  }
}

@media (max-width: 63.99rem) {
  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 30rem) {
  .brand__name {
    max-width: 7.4rem;
  }

  .header-actions {
    gap: .35rem;
  }

  .language-switch__item {
    min-width: 1.75rem;
  }
}
