/* Turo-style Typography Enhancements */

/* Improved font loading and rendering */
@font-face {
  font-family: 'SF Pro Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('SF Pro Display'), local('SFProDisplay-Regular');
}

@font-face {
  font-family: 'SF Pro Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('SF Pro Display Medium'), local('SFProDisplay-Medium');
}

/* Enhanced typography for better readability */
body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  -webkit-font-variant-ligatures: common-ligatures;
  font-variant-ligatures: common-ligatures;
}

/* Turo-style heading improvements */
h1, h2, h3, h4, h5, h6 {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-variant-ligatures: common-ligatures;
  font-variant-ligatures: common-ligatures;
}

/* Improved paragraph readability */
p {
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Turo-style button typography */
.btn {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1;
}

/* Enhanced form typography */
.form--control {
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation typography improvements */
.nav-link {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1;
}

/* Card title typography */
.card-title, .product-card__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Price typography */
.product-info__price, .details-info-content__price {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-feature-settings: "kern" 1;
}

/* Section heading improvements */
.section-heading__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Footer typography */
.footer-item__title {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1;
}

/* Mobile typography optimizations */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
  }
  
  .btn {
    font-weight: 500;
    letter-spacing: 0;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ================================= Vehicle Rating Styles =========================== */
.vehicle-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.vehicle-rating .rating-list {
  margin: 0;
  padding: 0;
}

.rating-count {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
}

.no-rating {
  font-size: 12px;
  color: #9CA3AF;
  font-style: italic;
}

/* Vehicle card rating positioning */
.product-card__body .vehicle-rating {
  margin-top: -4px;
  margin-bottom: 12px;
}

/* General rating display styles */
.rating-display {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-number {
  font-weight: 600;
  color: #1F2937;
}

.rating-star {
  color: #8B5CF6;
  font-size: 14px;
}

.rating-count {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
}

/* Enhanced existing rating list styles */
.rating-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-list__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8B5CF6;
  font-size: 16px;
  transition: all 0.2s ease;
}

.rating-list__item.unselected {
  color: #E5E7EB;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .vehicle-rating {
    gap: 6px;
  }
  
  .rating-list__item {
    font-size: 14px;
  }
  
  .rating-count {
    font-size: 11px;
  }
}

/* Rating in vehicle details */
.vehicle-details-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
}

.vehicle-details-rating .rating-list {
  margin: 0;
}

.vehicle-details-rating .rating-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vehicle-details-rating .rating-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.vehicle-details-rating .rating-subtitle {
  font-size: 12px;
  color: #6B7280;
}

/* Rating in Hosted by section */
.vehicle-rating-hosted {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vehicle-rating-hosted .rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-rating-hosted .rating-number {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
}

.vehicle-rating-hosted .rating-star {
  font-size: 18px;
  color: #8B5CF6;
}

.vehicle-rating-hosted .rating-trips {
  font-size: 14px;
  color: #1F2937;
  font-weight: 400;
}

.vehicle-rating-hosted .rating-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vehicle-rating-hosted .rating-label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  text-align: right;
}

/* Mobile optimization for hosted rating */
@media (max-width: 768px) {
  .vehicle-rating-hosted {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  
  .vehicle-rating-hosted .rating-label {
    font-size: 11px;
  }
}

/* ================================= Vehicle Specification Badges =========================== */
.vehicle-search-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.vehicle-spec-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  min-height: 36px;
  transition: all 0.2s ease;
}
.vehicle-spec-badges {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0px 5px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    min-height: 36px;
    transition: all 0.2s ease;
}

.vehicle-spec-badge:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.vehicle-spec-badge i {
  font-size: 16px;
  color: #6B7280;
  width: 16px;
  text-align: center;
}

.vehicle-spec-badge span {
  font-weight: 500;
  color: #374151;
}

/* Vehicle card specification badges */
.product-card-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  min-height: 32px;
}

.product-card-list__item i {
  font-size: 14px;
  color: #6B7280;
  width: 14px;
  text-align: center;
}

.product-card-list__item span {
  font-weight: 500;
  color: #374151;
}

/* Mobile optimization for badges */
@media (max-width: 768px) {
  .vehicle-specs {
    gap: 6px;
  }
  
  .vehicle-spec-badge {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 32px;
  }
  
  .product-card-list__item {
    padding: 5px 8px;
    font-size: 12px;
    min-height: 28px;
  }
}

/* ================================= Product Info Layout =========================== */
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
}

.product-info__wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-info__content p {
  margin: 0;
  font-weight: 600;
  color: #1F2937;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 36px;
  box-sizing: border-box;
}

.rent-now-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  box-sizing: border-box;
}

/* Mobile optimization for product info */
@media (max-width: 768px) {
  .product-info {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .product-info__content p {
    font-size: 14px;
  }
  
  .rent-now-btn {
    width: 100%;
    text-align: center;
  }
} 