/**
 * Motorcycles single layout
 * Matches the general look/feel of the Used Cars single:
 * - Centered content container
 * - Title + price row
 * - Owner Notes box
 * - Three-column "Basic info" grid
 * - Feature chips
 * - Video + gallery below
 */

.bw-moto {
  max-width: 1120px;
  margin: 0 auto 60px;
  padding: 32px 16px 60px;
  background-color: #ffffff;
}

.bw-moto__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.bw-moto__title {
  margin: 0 0 6px 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.bw-moto__price {
  font-size: 20px;
  font-weight: 700;
  color: #0c7a33; /* close to site accent used on prices */
}

.bw-moto__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f3f4f6;
}

.bw-moto__badge--sold {
  background: #fee2e2;
  color: #991b1b;
}

.bw-moto__badge--pending {
  background: #fef9c3;
  color: #92400e;
}

.bw-moto__badge--available {
  background: #dcfce7;
  color: #166534;
}

.bw-moto__section {
  margin-top: 24px;
}

.bw-moto__section h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

/* Owner Notes box – similar feel to car detail */
.bw-moto__notes {
  background: #f9fafb;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.6;
}

/* Basic info grid: 3 columns like the car layout */
.bw-moto__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .bw-moto__grid {
    grid-template-columns: 1fr;
  }
}

.bw-moto__card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
  background-color: #ffffff;
}

.bw-moto__card h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
}

/* Spec list inside each card: two-column rows like car layout */
.bw-moto__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.bw-moto__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid #f3f4f6;
}

.bw-moto__list li:first-child {
  border-top: none;
}

.bw-moto__k {
  opacity: 0.8;
}

.bw-moto__v {
  font-weight: 600;
  text-align: right;
}

/* Features → pill-style chips */
.bw-moto__chiplist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bw-moto__chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-size: 12px;
}

/* Video wrapper: responsive 16:9 */
.bw-moto__video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
}

.bw-moto__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Gallery grid similar density to the car photo grid */
.bw-moto__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .bw-moto__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bw-moto__gallery-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.bw-moto__gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Owner Notes expandable behavior */
.bw-moto__notes-body {
  max-height: none;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.bw-moto__notes[data-expanded="false"] .bw-moto__notes-body {
  /* JS sets max-height inline, overflow stays hidden here */
  overflow: hidden;
}

.bw-moto__notes-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c; /* brand-ish red accent */
  cursor: pointer;
}

.bw-moto__notes-toggle:hover,
.bw-moto__notes-toggle:focus {
  text-decoration: underline;
}