/* V33 — one booking component across Home and Vozidlá.
   This file is intentionally loaded last to neutralize legacy page-specific overrides. */

:root {
  --booking-navy: #0b1e2d;
  --booking-navy-soft: #10293b;
  --booking-line: #3a5060;
  --booking-bronze: #b08d57;
  --booking-bronze-hover: #9a7644;
  --booking-offwhite: #e8e6e1;
  --booking-field: #f4f4f1;
  --booking-field-border: #6f7f89;
}

/* Both pages use the exact same outer component geometry. */
body[data-page="home"] .booking-section,
body[data-page="vehicles"] .booking-section {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
  padding: 0 0 3rem;
  background: transparent;
  border-bottom: 0;
}

body[data-page="home"] .booking-section > .container,
body[data-page="vehicles"] .booking-section > .container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

body[data-page="home"] .booking-card,
body[data-page="vehicles"] .booking-card {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #314757 !important;
  border-top: 4px solid var(--booking-bronze) !important;
  background: var(--booking-navy) !important;
  color: var(--booking-offwhite);
  box-shadow: 0 18px 40px rgba(11, 30, 45, .18) !important;
}

body[data-page="home"] .booking-card__header,
body[data-page="vehicles"] .booking-card__header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 1rem !important;
  min-height: 5.6rem;
  padding: 1rem 1.05rem !important;
  border-bottom: 1px solid var(--booking-line) !important;
  background: var(--booking-navy) !important;
}

body[data-page="home"] .booking-card__header .eyebrow,
body[data-page="vehicles"] .booking-card__header .eyebrow {
  margin: 0 0 .28rem !important;
  color: #aeb8bd !important;
  font-size: .62rem !important;
  line-height: 1.2 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}

body[data-page="home"] .booking-card__header h2,
body[data-page="vehicles"] .booking-card__header h2 {
  margin: 0 !important;
  color: var(--booking-offwhite) !important;
  font-size: clamp(1.22rem, 4vw, 1.55rem) !important;
  line-height: 1 !important;
  letter-spacing: -.025em !important;
  text-transform: uppercase;
}

body[data-page="home"] .booking-card__days,
body[data-page="vehicles"] .booking-card__days {
  align-self: center;
  margin: 0;
  white-space: nowrap;
  color: #d6b77f !important;
  font-family: var(--font-data, ui-monospace, SFMono-Regular, Menlo, monospace) !important;
  font-size: 1rem !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body[data-page="home"] .booking-card__form,
body[data-page="vehicles"] .booking-card__form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1px !important;
  padding: 1px !important;
  background: var(--booking-line) !important;
}

body[data-page="home"] .booking-card__form > .form-field,
body[data-page="vehicles"] .booking-card__form > .form-field {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .82rem .9rem !important;
  border: 0 !important;
  background: var(--booking-navy) !important;
  color: var(--booking-offwhite) !important;
}

body[data-page="home"] .booking-card__form label,
body[data-page="vehicles"] .booking-card__form label {
  display: block !important;
  margin: 0 0 .42rem !important;
  color: #aeb8bd !important;
  font-size: .59rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .095em !important;
  text-align: left !important;
  text-transform: uppercase;
}

body[data-page="home"] .booking-card input,
body[data-page="home"] .booking-card select,
body[data-page="vehicles"] .booking-card input,
body[data-page="vehicles"] .booking-card select {
  box-sizing: border-box !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  block-size: 3.35rem !important;
  height: 3.35rem !important;
  min-height: 3.35rem !important;
  margin: 0 !important;
  padding: 0 .85rem !important;
  border: 1px solid var(--booking-field-border) !important;
  border-radius: 0 !important;
  background: var(--booking-field) !important;
  color: var(--booking-navy) !important;
  font-size: 1rem !important;
  line-height: normal !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  text-align-last: center !important;
  box-shadow: none !important;
}

body[data-page="home"] .booking-card input:focus,
body[data-page="home"] .booking-card select:focus,
body[data-page="vehicles"] .booking-card input:focus,
body[data-page="vehicles"] .booking-card select:focus {
  border-color: var(--booking-bronze) !important;
  outline: 2px solid rgba(176, 141, 87, .26) !important;
  outline-offset: 0 !important;
}

/* Safari/iOS date and time controls otherwise gain their own intrinsic width. */
body[data-page="home"] .booking-card input[type="date"],
body[data-page="home"] .booking-card input[type="time"],
body[data-page="vehicles"] .booking-card input[type="date"],
body[data-page="vehicles"] .booking-card input[type="time"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-min-logical-width: 0 !important;
  font-family: var(--font-data, ui-monospace, SFMono-Regular, Menlo, monospace) !important;
}

body[data-page="home"] .booking-card input[type="date"]::-webkit-date-and-time-value,
body[data-page="home"] .booking-card input[type="time"]::-webkit-date-and-time-value,
body[data-page="vehicles"] .booking-card input[type="date"]::-webkit-date-and-time-value,
body[data-page="vehicles"] .booking-card input[type="time"]::-webkit-date-and-time-value {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

body[data-page="home"] .booking-card input[type="date"]::-webkit-datetime-edit,
body[data-page="home"] .booking-card input[type="time"]::-webkit-datetime-edit,
body[data-page="vehicles"] .booking-card input[type="date"]::-webkit-datetime-edit,
body[data-page="vehicles"] .booking-card input[type="time"]::-webkit-datetime-edit {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0 !important;
}

body[data-page="home"] .booking-card__submit,
body[data-page="vehicles"] .booking-card__submit {
  position: static !important;
  grid-column: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 3.55rem !important;
  margin: .75rem .85rem .85rem !important;
  padding: .78rem .95rem !important;
  border-color: var(--booking-bronze) !important;
  background: var(--booking-bronze) !important;
  color: var(--booking-navy) !important;
  box-shadow: none !important;
  font-size: .68rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: .065em !important;
  text-align: center;
  text-transform: uppercase;
}

body[data-page="home"] .booking-card__submit:hover,
body[data-page="vehicles"] .booking-card__submit:hover {
  border-color: var(--booking-bronze-hover) !important;
  background: var(--booking-bronze-hover) !important;
  color: #fff !important;
}

body[data-page="home"] .booking-card > .status-message,
body[data-page="vehicles"] .booking-card > .status-message {
  margin: 0 !important;
  padding: .7rem .9rem .9rem !important;
  border-top: 1px solid var(--booking-line);
  background: var(--booking-navy) !important;
  color: #c8d0d4 !important;
  text-align: center !important;
  line-height: 1.45 !important;
}

/* Tablet: same component, same field rhythm. */
@media (min-width: 48rem) {
  body[data-page="home"] .booking-card__form,
  body[data-page="vehicles"] .booking-card__form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

/* Desktop: exact same five-cell trip-computer row on both pages. */
@media (min-width: 64rem) {
  body[data-page="home"] .booking-card__header,
  body[data-page="vehicles"] .booking-card__header {
    min-height: 5rem;
    padding: .85rem 1rem !important;
  }

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

  body[data-page="home"] .booking-card__form > .form-field,
  body[data-page="vehicles"] .booking-card__form > .form-field {
    padding: .68rem !important;
  }

  body[data-page="home"] .booking-card__submit,
  body[data-page="vehicles"] .booking-card__submit {
    grid-column: auto !important;
    margin: .68rem !important;
    padding-inline: 1rem !important;
  }
}

/* Very narrow phones: preserve readable text and tap targets without overflow. */
@media (max-width: 23.5rem) {
  body[data-page="home"] .booking-section > .container,
  body[data-page="vehicles"] .booking-section > .container {
    width: min(100% - 1rem, 70rem);
  }

  body[data-page="home"] .booking-card__header,
  body[data-page="vehicles"] .booking-card__header {
    padding: .85rem !important;
  }

  body[data-page="home"] .booking-card__header h2,
  body[data-page="vehicles"] .booking-card__header h2 {
    font-size: 1.15rem !important;
  }

  body[data-page="home"] .booking-card__days,
  body[data-page="vehicles"] .booking-card__days {
    font-size: .9rem !important;
  }
}
