/* Bike rental page (/rowery) */
.bike-rental-page {
  background: #fbf7ef;
  min-height: 100vh;
}

.bike-rental-hero {
  position: relative;
  min-height: clamp(580px, 70vh, 820px);
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 8vw, 96px);
  color: #fff;
  background: #16121c;
  overflow: visible;
}

.bike-rental-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.bike-rental-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 6, 12, 0.35) 0%, rgba(8, 6, 12, 0.5) 42%, rgba(8, 6, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 6, 12, 0.5) 0%, rgba(8, 6, 12, 0.15) 55%, rgba(8, 6, 12, 0.4) 100%);
  pointer-events: none;
}

.bike-rental-hero__layout {
  position: relative;
  z-index: 2;
}

.bike-rental-hero__upper {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 380px);
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}

.bike-rental-hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
}

.bike-rental-hero__copy h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5.5vw, 52px);
  max-width: none;
  color: #fff;
}

.bike-rental-hero__copy .section-lead {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 2vw, 18px);
}

.bike-rental-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.bike-rental-hero__aside .bike-gallery {
  max-width: none;
  margin-inline: 0;
}

.btn-more-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 10, 25, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-more-info--compact {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(109, 40, 217, 0.35);
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  backdrop-filter: none;
}

.btn-more-info--compact:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(109, 40, 217, 0.55);
  color: #4c1d95;
}

.btn-more-info:hover {
  background: rgba(124, 58, 237, 0.45);
  border-color: rgba(233, 213, 255, 0.8);
}

.bike-rental-panel__actions {
  margin-top: 14px;
}

.bike-rental-hero__step {
  position: relative;
  z-index: 3;
  margin-top: clamp(8px, 2vw, 16px);
  transform: translateY(clamp(8px, 2vw, 20px));
  margin-bottom: clamp(-32px, -4vw, -48px);
}

.bike-rental-panel--step1 {
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .bike-rental-hero {
    min-height: auto;
    padding-bottom: clamp(48px, 10vw, 72px);
  }

  .bike-rental-hero__upper {
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 28px);
  }

  .bike-rental-hero__copy .section-lead {
    max-width: none;
  }

  .bike-rental-hero__step {
    transform: none;
    margin-bottom: 0;
    margin-top: clamp(4px, 2vw, 10px);
  }

  .bike-rental-hero__aside {
    order: 0;
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
    margin-top: clamp(4px, 2vw, 8px);
  }

  .bike-rental-hero__aside .bike-gallery {
    max-width: 100%;
    margin-inline: 0;
  }
}

.bike-rental-panel {
  max-width: 640px;
  margin: 0 auto clamp(72px, 10vw, 110px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.15);
  box-shadow:
    0 24px 60px rgba(15, 10, 25, 0.18),
    0 0 0 1px rgba(183, 154, 91, 0.08);
}

.bike-rental-panel .eyebrow {
  color: #6d28d9;
}

.bike-rental-panel .eyebrow::after {
  background: #a78bfa;
}

.bike-rental-panel h2 {
  color: #1a1520;
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  font-family: 'Playfair Display', serif;
}

.bike-rental-panel p,
.bike-rental-panel label {
  color: #3d3548;
}

.bike-rental-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bike-rental-code-row input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bike-rental-code-row input:focus {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  border-color: #7c3aed;
}

.bike-rental-step {
  display: none;
}

.bike-rental-step.is-active {
  display: block;
}

.bike-rental-step--reserve {
  margin: 0 auto clamp(72px, 10vw, 110px);
}

.bike-rental-booking-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(183, 154, 91, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.bike-rental-booking-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}

.bike-rental-booking-card dt {
  color: #6b5f78;
  font-weight: 600;
}

.bike-rental-booking-card dd {
  margin: 0;
  color: #1a1520;
  font-weight: 600;
}

.bike-rental-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
}

.bike-rental-count {
  margin-top: 18px;
}

.bike-rental-count input {
  width: 100%;
  max-width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 16px;
}

.bike-rental-summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 700;
  color: #1a1520;
}

.bike-rental-summary strong {
  color: #6d28d9;
}

.bike-rental-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bike-rental-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.bike-rental-message--error {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.bike-rental-message--success {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.2);
}

.bike-rental-message--info {
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.bike-rental-message__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bike-rental-message__link:hover {
  color: #4c1d95;
}

.bike-rental-turnstile {
  margin-top: 16px;
}

.bike-rental-note {
  margin-top: 12px;
  font-size: 13px;
  color: #6b5f78;
  line-height: 1.5;
}

/* Public bike availability calendar */
.bike-calendar-section {
  padding: clamp(48px, 7vw, 72px) 0 clamp(40px, 6vw, 64px);
  scroll-margin-top: 96px;
}

.bike-calendar-section.is-hidden {
  display: none;
}

.bike-calendar-card {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.16);
  box-shadow: 0 20px 50px rgba(15, 10, 25, 0.12);
}

.bike-calendar-card__header h2 {
  margin: 8px 0 10px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  color: #1a1520;
}

.bike-calendar-card .eyebrow {
  color: #6d28d9;
}

.bike-calendar-card .eyebrow::after {
  background: #a78bfa;
}

.bike-calendar-card__lead {
  max-width: 62ch;
  color: #5b4f68;
  font-size: 15px;
}

.bike-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 14px;
}

.bike-calendar-month-label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1520;
  text-transform: capitalize;
}

.btn-gold--ghost {
  background: transparent;
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.35);
  min-width: 44px;
  padding: 10px 14px;
}

.btn-gold--ghost:hover {
  background: rgba(124, 58, 237, 0.08);
}

.bike-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #5b4f68;
}

.bike-legend {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
}

.bike-legend--free { background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); }
.bike-legend--partial { background: #a78bfa; border: 1px solid #7c3aed; }
.bike-legend--full { background: #5b21b6; border: 1px solid #4c1d95; }

.bike-calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bike-calendar-table th {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b5f78;
  text-align: center;
}

.bike-cal-cell {
  padding: 4px;
  vertical-align: top;
  height: 64px;
}

.bike-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bike-cal-day:hover,
.bike-cal-cell:focus-within .bike-cal-day {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(91, 33, 182, 0.12);
}

.bike-cal-day__num {
  font-size: 14px;
  font-weight: 700;
  color: #1a1520;
}

.bike-cal-day__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.bike-cal-cell--free .bike-cal-day {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.bike-cal-cell--free .bike-cal-day__badge {
  background: #f3f4f6;
  color: #374151;
}

.bike-cal-cell--partial .bike-cal-day {
  background: #c4b5fd;
  border-color: #8b5cf6;
}

.bike-cal-cell--partial .bike-cal-day__num {
  color: #fff;
}

.bike-cal-cell--partial .bike-cal-day__badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.bike-cal-cell--full .bike-cal-day {
  background: #5b21b6;
  border-color: #4c1d95;
}

.bike-cal-cell--full .bike-cal-day__num,
.bike-cal-cell--full .bike-cal-day__badge {
  color: #fff;
}

.bike-cal-cell--full .bike-cal-day__badge {
  background: rgba(255, 255, 255, 0.2);
}

.bike-cal-cell--yours .bike-cal-day {
  background: linear-gradient(145deg, rgba(183, 154, 91, 0.35), rgba(124, 58, 237, 0.28));
  border-color: #b79a5b;
  box-shadow: inset 0 0 0 1px rgba(183, 154, 91, 0.35);
}

.bike-cal-cell--yours .bike-cal-day__num,
.bike-cal-cell--yours .bike-cal-day__badge {
  color: #1a1520;
}

.bike-cal-cell--yours .bike-cal-day__badge {
  background: rgba(255, 255, 255, 0.55);
}

.bike-calendar-day-details {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.06);
  color: #5b21b6;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}

@media (max-width: 640px) {
  .bike-cal-cell {
    height: 52px;
  }

  .bike-cal-day {
    min-height: 46px;
  }

  .bike-cal-day__num {
    font-size: 12px;
  }

  .bike-cal-day__badge {
    font-size: 10px;
    padding: 1px 5px;
  }
}

/* Bike specifications */
.bike-specs-section {
  padding: 0 0 clamp(40px, 6vw, 56px);
  scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.bike-specs-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(72px, 10vw, 88px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 16px 40px rgba(15, 10, 25, 0.08);
}

.bike-specs-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.bike-specs-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bike-specs-card__media {
  margin: 0;
  position: relative;
  z-index: 1;
}

.bike-specs-card__photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: clamp(280px, 36vw, 420px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 16px 36px rgba(15, 10, 25, 0.14);
}

.bike-specs-card[data-active-bike="mono"] .bike-specs-card__photo {
  object-position: 78% center;
}

.bike-specs-card[data-active-bike="blade"] .bike-specs-card__photo {
  object-position: center center;
}

.bike-specs-card__logo {
  position: absolute;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 24px);
  z-index: 2;
  width: clamp(88px, 12vw, 120px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(15, 10, 25, 0.08));
}

@media (max-width: 900px) {
  .bike-specs-card__layout {
    grid-template-columns: 1fr;
  }

  .bike-specs-card__media {
    max-width: min(100%, 420px);
    margin-inline: auto;
    width: 100%;
  }

  .bike-specs-card__photo {
    min-height: clamp(240px, 55vw, 360px);
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 720px) {
  .bike-specs-card {
    padding-bottom: clamp(64px, 12vw, 80px);
  }
}

.bike-specs-card .eyebrow {
  color: #6d28d9;
}

.bike-specs-card .eyebrow::after {
  background: #a78bfa;
}

.bike-specs-card h2 {
  margin: 8px 0 16px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  color: #1a1520;
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.bike-specs-content {
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.bike-specs-card.is-switching h2,
.bike-specs-card.is-switching .bike-specs-content {
  opacity: 0;
  transform: translateY(8px);
}

.bike-specs-card.is-switching .bike-specs-card__photo {
  opacity: 0.2;
  transform: scale(1.02);
}

.bike-specs-intro {
  margin: 0 0 14px;
  color: #3d3548;
  line-height: 1.65;
  font-size: 15px;
}

.bike-specs-subtitle {
  margin: 20px 0 12px;
  font-size: 17px;
  color: #1a1520;
}

.bike-specs-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
  color: #3d3548;
  font-size: 15px;
  line-height: 1.55;
}

.bike-specs-list li::marker {
  color: #7c3aed;
}

.bike-specs-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(124, 58, 237, 0.2);
  font-size: 13px;
  color: #6b5f78;
  font-style: italic;
}

.bike-specs-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #6d28d9;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bike-specs-switch:hover {
  color: #4c1d95;
}

.bike-specs-switch:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .bike-specs-card__photo {
    transition: opacity 0.45s ease, transform 0.45s ease, object-position 0.55s ease;
  }
}

/* —— Mobile refinements —— */
@media (max-width: 720px) {
  .bike-rental-hero {
    padding: 36px 0 28px;
  }

  .bike-rental-hero__copy {
    gap: 10px;
  }

  .bike-rental-hero__copy h1 {
    font-size: clamp(28px, 7.5vw, 34px);
    margin-top: 6px;
  }

  .bike-rental-hero__copy .section-lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .bike-rental-hero__copy .eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .bike-rental-hero__step .bike-rental-panel {
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 10, 25, 0.12);
  }

  .bike-rental-hero__step .bike-rental-panel h2 {
    font-size: 19px;
    margin: 4px 0 6px;
  }

  .bike-rental-hero__step .bike-rental-panel p {
    font-size: 13px;
    line-height: 1.45;
  }

  .bike-rental-hero__step .bike-rental-panel .eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .bike-rental-code-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .bike-rental-code-row input {
    flex: none;
    width: 100%;
    min-height: 44px;
    max-height: 44px;
    padding: 0 11px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.025em;
    border-radius: 8px;
  }

  .bike-rental-code-row .btn-gold {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .bike-rental-panel__actions {
    margin-top: 8px;
  }

  .btn-more-info--compact {
    padding: 6px 12px;
    font-size: 12px;
  }

  .bike-rental-hero__aside {
    margin-top: 4px;
  }

  .bike-rental-hero__aside .bike-gallery__frame {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .bike-rental-hero__aside .bike-gallery__nav {
    width: 34px;
    height: 34px;
  }

  .bike-rental-panel.bike-rental-step--reserve {
    padding: 18px 16px;
    margin-bottom: 40px;
    border-radius: 14px;
  }

  .bike-rental-panel.bike-rental-step--reserve h2 {
    font-size: 22px;
  }

  .bike-rental-booking-card {
    padding: 12px;
    margin-top: 14px;
  }

  .bike-rental-booking-card dl {
    font-size: 13px;
    gap: 6px 12px;
  }

  .bike-rental-count input {
    max-width: 100%;
    min-height: 42px;
  }

  .bike-rental-actions .btn-gold {
    width: 100%;
    min-height: 44px;
  }

  .bike-rental-turnstile {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .bike-calendar-section {
    padding: 28px 0 24px;
  }

  .bike-calendar-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .bike-calendar-card__header h2 {
    font-size: 22px;
  }

  .bike-calendar-toolbar {
    margin: 14px 0 10px;
    gap: 8px;
  }

  .bike-calendar-month-label {
    font-size: 15px;
    text-align: center;
    flex: 1;
  }

  .btn-gold--ghost {
    min-width: 40px;
    padding: 8px 10px;
    flex-shrink: 0;
  }

  .bike-calendar-legend {
    gap: 6px 10px;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .bike-legend {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }

  .bike-calendar-day-details {
    font-size: 13px;
    padding: 10px 12px;
    min-height: auto;
  }

  .bike-specs-section {
    padding-bottom: 32px;
  }

  .bike-specs-card {
    padding: 16px 14px 52px;
    border-radius: 14px;
  }

  .bike-specs-card h2 {
    font-size: 21px;
    margin-bottom: 12px;
  }

  .bike-specs-intro,
  .bike-specs-list {
    font-size: 14px;
  }

  .bike-specs-subtitle {
    font-size: 15px;
    margin-top: 16px;
  }

  .bike-specs-switch {
    font-size: 14px;
    margin-top: 14px;
  }

  .bike-specs-note {
    font-size: 12px;
    margin-top: 16px;
    padding-top: 12px;
  }

  .bike-specs-card__logo {
    width: 72px;
    right: 12px;
    bottom: 12px;
  }

  .bike-specs-card[data-active-bike="mono"] .bike-specs-card__photo {
    object-position: 72% center;
  }
}

@media (max-width: 400px) {
  .bike-rental-code-row input {
    letter-spacing: 0.02em;
    padding: 0 10px;
  }

  .bike-cal-cell {
    height: 46px;
    padding: 2px;
  }

  .bike-cal-day {
    min-height: 42px;
    gap: 2px;
    border-radius: 8px;
  }

  .bike-cal-day__num {
    font-size: 11px;
  }

  .bike-cal-day__badge {
    font-size: 9px;
    padding: 1px 4px;
  }
}
