/* =========================================================
   Description Card  (VehicleFeaturesComponent)
========================================================= */

.vd-description-card {
  padding: 28px 32px;
}

.vd-description-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.vd-description-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--clr-orange-light);
  color: var(--clr-orange-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vd-description-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0;
}

.vd-description-body {
  position: relative;
}

.vd-description-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--clr-text-body);
  margin: 0;
  white-space: pre-line;
}

.vd-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--clr-orange-icon);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--trans-fast);
}

.vd-description-toggle:hover {
  opacity: 0.75;
}

/* =========================================================
   Ratings Card  (VehicleRatingsComponent)
========================================================= */

.vd-ratings-card {
  padding: 28px 32px;
}

/* Header */
.vd-ratings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.vd-ratings-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vd-ratings-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--clr-star-bg);
  color: var(--clr-star);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vd-ratings-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin: 0;
}

.vd-ratings-total-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text-secondary);
  background: var(--clr-suggestion-sep);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ─── RatingsOverview (extracted component) ─── */
.ro-card {
  border: 1px solid var(--clr-star-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--clr-white);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.08);
}

.ro-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--clr-star), var(--clr-star-light), var(--clr-star-border));
}

.ro-body {
  display: flex;
  align-items: center;
  padding: 28px 32px;
}

.ro-left {
  min-width: 140px;
  display: flex;
  justify-content: center;
}

.ro-sep {
  width: 1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--clr-border-mid), transparent);
  margin: 0 28px;
  flex-shrink: 0;
}

.ro-right {
  flex: 1;
}

/* ─── RatingsSummary ─── */
.rs-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  gap: 6px;
}

.rs-score-block {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.rs-score-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--clr-star);
  letter-spacing: -2px;
  line-height: 1;
}

.rs-score-denom {
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-text-placeholder);
  margin-bottom: 4px;
}

.rs-stars {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.rs-count {
  font-size: 12px;
  color: var(--clr-text-placeholder);
  text-align: center;
}

.rs-label {
  background: var(--clr-rs-label-bg);
  color: var(--clr-rs-label-text);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* ─── RatingsBreakdown ─── */
.rb-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rb-row {
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  align-items: center;
  gap: 10px;
}

.rb-star-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text-body);
  white-space: nowrap;
}

.rb-bar-track {
  height: 7px;
  background: var(--clr-border-mid);
  border-radius: 50px;
  overflow: hidden;
}

.rb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-star), var(--clr-star-light));
  border-radius: 50px;
  transition: width 0.4s ease;
}

.rb-count {
  font-size: 12px;
  color: var(--clr-text-placeholder);
  text-align: right;
}

/* ─── Reviews list ─── */
.vd-reviews-list {
  border-top: 1px solid var(--clr-udf-divider);
  padding-top: 20px;
}

.vd-reviews-list-header {
  margin-bottom: 4px;
}

.vd-reviews-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text-base);
  margin: 0;
}

/* No reviews empty state */
.vd-no-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 0;
  color: var(--clr-text-placeholder);
  font-size: 14px;
}

/* ─── ReviewCard ─── */
.rc-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--clr-suggestion-sep);
}

.rc-card:last-child {
  border-bottom: none;
}

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rc-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rc-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text-heading);
}

.rc-stars {
  display: flex;
  gap: 2px;
}

.rc-date {
  font-size: 12px;
  color: var(--clr-text-placeholder);
  white-space: nowrap;
  padding-top: 2px;
}

.rc-body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--clr-text-body);
}

/* Avatar */
.review-avatar,
.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-avatar {
  object-fit: cover;
}

.avatar-placeholder {
  background: var(--clr-suggestion-sep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--clr-text-secondary);
}

/* Load more */
.vd-load-more {
  text-align: center;
  padding-top: 20px;
}

.vd-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--clr-border-mid);
  color: var(--clr-text-base);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: border-color var(--trans-fast), color var(--trans-fast);
}

.vd-load-more-btn:hover {
  border-color: var(--clr-orange-icon);
  color: var(--clr-orange-icon);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 576px) {
  .ro-body {
    flex-direction: column;
    padding: 20px;
  }

  .ro-sep {
    width: 100%;
    height: 1px;
    margin: 16px 0;
  }

  .ro-left {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .rs-summary {
    min-width: unset;
    flex-direction: row;
    gap: 16px;
  }

  .rb-row {
    grid-template-columns: 42px 1fr 24px;
  }

  .vd-description-card,
  .vd-ratings-card {
    padding: 20px;
  }
}
