/* Reservation + account pages — thème clair (v2) */
.page-reservation {
  --header-h: 108px;
  --res-accent: var(--yellow, #f5c518);
  --res-accent-text: var(--ink, #1a1a1a);
  --res-accent-soft: rgba(245, 197, 24, 0.15);
  --res-card: #ffffff;
  --res-surface: #f5f5f5;
  --res-page: #ffffff;
  --res-heading: #1a1a1a;
  --res-muted: #5c5c5c;
  --res-border: #e5e5e5;
  --res-radius-lg: 12px;
  background: var(--res-page);
  color: var(--res-heading);
}

.page-reservation .btn--primary {
  background: var(--res-accent);
  color: var(--res-accent-text, #0a0a0a);
  border: 2px solid var(--res-accent);
  font-weight: 700;
}

.page-reservation .btn--primary:hover {
  filter: brightness(1.08);
}

.page-reservation .btn--ghost {
  background: transparent;
  color: var(--res-heading);
  border: 2px solid var(--res-border);
}

.page-reservation .btn--ghost:hover {
  border-color: var(--res-accent);
  color: var(--res-accent);
}

.reservation-main {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  min-height: 100vh;
  background: var(--res-page);
}

.reservation-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.reservation-aside h1 {
  font-family: var(--font-display, var(--font));
  font-size: 1.55rem;
  color: var(--res-heading);
  margin-bottom: 0.75rem;
}

.reservation-aside__lead {
  color: var(--res-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}

.reservation-aside__urgent {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--res-muted);
  padding: 0.9rem 1rem;
  background: var(--res-accent-soft);
  border-radius: var(--radius, 12px);
  border: 1px solid var(--res-border);
}

.reservation-aside__urgent a {
  color: var(--res-accent);
  font-weight: 600;
}

.step-indicator {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.step-indicator li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--res-muted);
}

.step-indicator li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--res-surface);
  border: 2px solid var(--res-border);
}

.step-indicator li.is-active {
  color: var(--res-heading);
  font-weight: 600;
}

.step-indicator li.is-active span {
  background: var(--res-accent);
  border-color: var(--res-accent);
  color: var(--res-accent-text, #000);
}

.step-indicator li.is-done span {
  background: var(--res-heading);
  border-color: var(--res-heading);
  color: var(--res-page);
}

.step-indicator li.is-hidden,
.wizard-step.is-hidden {
  display: none !important;
}

#logged-in-banner.logged-banner {
  margin-bottom: 1.25rem;
}

.reservation-panel {
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-lg);
  padding: 1.75rem;
}

.wizard-step h2,
.account-login-title {
  font-family: var(--font-display, var(--font));
  font-size: 1.35rem;
  color: var(--res-heading);
  margin-bottom: 0.35rem;
}

.wizard-step__sub {
  color: var(--res-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.account-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.account-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--res-border);
  background: var(--res-surface);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--res-muted);
  cursor: pointer;
}

.account-tab.is-active {
  background: var(--res-accent);
  border-color: var(--res-accent);
  color: var(--res-accent-text, #000);
}

.account-pane__lead {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--res-border);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--res-muted);
  font-weight: 400;
}

.account-pane__lead strong {
  color: var(--res-text);
  font-weight: 700;
}

.account-panes {
  margin-top: 0.25rem;
}

.account-pane {
  padding: 1.25rem;
  border: 1px solid var(--res-border);
  border-radius: 10px;
  background: var(--res-surface);
}

.account-pane[hidden] {
  display: none !important;
}

.account-pane.is-active {
  border-color: var(--res-accent);
  box-shadow: 0 0 0 1px var(--res-accent);
}

.account-create {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--res-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
  color: var(--res-text);
  cursor: pointer;
}

.account-create input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.account-create-password {
  margin-top: -0.35rem;
}

.logged-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--res-accent-soft);
  border: 1px solid var(--res-border);
  border-radius: var(--radius, 12px);
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.is-hidden { display: none !important; }

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.wizard-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--res-heading);
}

.wizard-form input,
.wizard-form select,
.wizard-form textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--res-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--res-heading);
  background: var(--res-surface);
}

.wizard-form input:focus,
.wizard-form select:focus,
.wizard-form textarea:focus {
  outline: 2px solid var(--res-accent);
  border-color: var(--res-accent);
}

.vehicle-plate-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--res-heading);
  margin-bottom: 0.35rem;
}

.vehicle-plate-input {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border: 2px solid var(--res-border);
  border-radius: 8px;
  background: #fff;
  max-width: 280px;
}

.vehicle-plate-input:focus {
  outline: none;
  border-color: var(--res-accent);
  box-shadow: 0 0 0 3px var(--res-accent-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-hint { font-size: 0.8rem; color: var(--res-muted); font-weight: 400; }
.form-error { color: #f87171; font-size: 0.85rem; }

.media-upload {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.media-upload__label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--res-heading);
}

.media-upload__optional {
  font-weight: 500;
  color: var(--res-muted);
}

.media-upload__drop {
  display: block;
  cursor: pointer;
}

.media-upload__drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border: 2px dashed var(--res-border);
  border-radius: 12px;
  background: var(--res-surface);
  color: var(--res-muted);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.media-upload__drop:hover .media-upload__drop-inner,
.media-upload__drop:focus-within .media-upload__drop-inner {
  border-color: var(--res-accent);
  background: var(--res-accent-soft);
  color: var(--res-heading);
}

.media-upload__drop-inner strong {
  color: var(--res-heading);
  font-size: 0.92rem;
}

.media-upload__drop-inner small {
  font-size: 0.78rem;
}

.media-upload__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.media-upload__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--res-border);
  border-radius: 10px;
  background: #fff;
}

.media-upload__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.media-upload__thumb img,
.media-upload__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-upload__badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.media-upload__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.media-upload__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--res-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-upload__size {
  font-size: 0.78rem;
  color: var(--res-muted);
}

.media-upload__remove {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--res-surface);
  color: var(--res-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.media-upload__remove:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  font-weight: 500 !important;
}

.checkbox-label input { width: auto; }

.saved-vehicles { margin-bottom: 1rem; }
.saved-vehicles__title { font-size: 0.8rem; font-weight: 600; color: var(--res-muted); margin-bottom: 0.4rem; }
.saved-vehicles__list { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.saved-vehicle-card {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--res-border);
  border-radius: 8px;
  background: var(--res-surface);
  cursor: pointer;
  font-family: var(--font);
  color: var(--res-heading);
}

.saved-vehicle-card__plate {
  display: block;
  font-family: var(--font-display, var(--font));
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-heading);
}

.saved-vehicle-card__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--res-muted);
  line-height: 1.35;
}

.saved-vehicle-card.is-selected,
.saved-vehicle-card:hover {
  border-color: var(--res-accent);
  background: var(--res-accent-soft);
}

.services-checkboxes {
  border: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.services-checkboxes legend {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--res-heading);
  margin-bottom: 0.2rem;
}

.chip-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.35rem !important;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--res-border);
  border-radius: 999px;
  font-size: 0.8rem !important;
  cursor: pointer;
  color: var(--res-heading);
}

.chip-check:has(input:checked) {
  background: var(--res-accent-soft);
  border-color: var(--res-accent);
}

.chip-check input { width: auto; margin: 0; }

.slot-picker { border: none; padding: 0; display: grid; gap: 0.45rem; }
.slot-picker legend { font-size: 0.82rem; font-weight: 600; color: var(--res-heading); margin-bottom: 0.2rem; }

.slot-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem !important;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--res-border);
  border-radius: var(--radius, 12px);
  cursor: pointer;
  color: var(--res-heading);
}

.slot-option:has(input:checked) {
  border-color: var(--res-accent);
  background: var(--res-accent-soft);
}

.slot-option input { width: auto; }
.slot-option span { display: flex; flex-direction: column; }
.slot-option small { font-size: 0.75rem; color: var(--res-muted); font-weight: 400; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--res-border);
  gap: 1rem;
}

.summary { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }

.summary-group {
  padding: 0.85rem;
  background: var(--res-surface);
  border-radius: var(--radius, 12px);
  border: 1px solid var(--res-border);
}

.summary dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--res-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.summary dd { font-size: 0.9rem; color: var(--res-heading); margin: 0; }

.wizard-success { text-align: center; padding: 1.5rem 0.5rem; }

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--res-accent-soft);
  color: var(--res-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.wizard-success p { color: var(--res-muted); max-width: 40ch; margin-inline: auto; }
.success-ref { margin: 0.75rem 0 1.25rem; font-size: 0.88rem; }
.success-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }

.account-page { padding: calc(var(--header-h) + 2rem) 0 4rem; }

.account-login-panel {
  max-width: 460px;
  margin: 0 auto;
}

.account-view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guest-coords {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.guest-coords dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--res-muted);
  margin-bottom: 0.2rem;
}

.guest-coords dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.guest-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.account-card {
  background: var(--res-card);
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-lg);
  padding: 1.5rem;
}

.account-card h2 {
  font-family: var(--font-display, var(--font));
  font-size: 1.1rem;
  color: var(--res-heading);
  margin-bottom: 0.85rem;
}

.account-section-title {
  font-family: var(--font-display, var(--font));
  font-size: 1.5rem;
  color: var(--res-heading);
}

.account-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--res-accent);
  margin-bottom: 0.35rem;
}

.account-link { color: var(--res-accent); font-weight: 600; }

.vehicle-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--res-border);
  font-size: 0.88rem;
}

.vehicle-list-item:last-child { border-bottom: none; }

.vehicle-list-item__body {
  min-width: 0;
}

.vehicle-list-item__plate {
  margin: 0 0 0.2rem;
  font-family: var(--font-display, var(--font));
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-heading);
}

.vehicle-list-item__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--res-muted);
  line-height: 1.4;
}

.reservation-item {
  padding: 0.85rem;
  background: var(--res-surface);
  border-radius: var(--radius, 12px);
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.reservation-item__status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--res-accent-soft);
  color: var(--res-accent);
}

.account-empty { color: var(--res-muted); font-size: 0.88rem; }

@media (max-width: 900px) {
  .reservation-layout { grid-template-columns: 1fr; }
  .step-indicator { flex-direction: row; flex-wrap: wrap; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .reservation-panel { padding: 1.1rem; }
}
