/* =================================================================
   RV DISCOVER CARS - FRONTEND STYLES - 6 ROW DESIGN
   ================================================================= */

/* Container and Tabs */
.rv-cars-container {
  max-width: 100%;
  background: #f5f5f5;
  padding: 30px 20px;
}

.rv-cars-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  background: #fff;
  border-bottom: 3px solid #e0e0e0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rv-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  transition: all 0.3s;
  white-space: nowrap;
  margin-bottom: -3px;
  border-radius: 0;
}

.rv-tab-btn:hover {
  color: #374151;
}

.rv-tab-btn.active {
  color: #5850ec;
  border-bottom-color: #5850ec;
  font-weight: 500;
  background-color: #dddddd;
}

.rv-tab-content {
  display: none;
}

.rv-tab-content.active {
  display: block;
}

/* Results Container */
.rv-discover-cars-results {
  margin-top: 20px;
}

.rv-cars-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rv-cars-row {
  display: contents;
}

/* Individual Car Item - Single Column Layout */
.rv-car-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rv-car-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #007acc;
}

.rv-car-item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Row Structure */
.rv-car-row {
  border-bottom: 1px solid #f5f5f5;
}

.rv-car-row:last-child {
  border-bottom: none;
}

/* Row 1: Online Check-in */
.rv-row-checkin {
  background-color: #f0f8ff;
  padding: 8px 16px;
}

.rv-checkin-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #007acc;
  font-weight: 500;
}

.rv-checkin-info .rv-icon {
  background: #007acc;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Row 2: Car Title */
.rv-car-item-inner {
  .rv-row-title {
    padding: 16px;
  }

  .rv-car-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
  }

  .rv-car-category {
    background-color: #007acc;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
  }
}
/* Row 3: Car Specifications */
.rv-row-specs {
  padding: 12px 16px;
}

.rv-car-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rv-feature {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.rv-feature .rv-icon {
  font-size: 14px;
}

/* Row 4: Image and Pricing - Two Columns */
.rv-row-image-price {
  display: flex;
  padding: 16px;
  gap: 16px;
}

.rv-image-column {
  flex: 1;
}

.rv-car-image {
  max-width: 100%;
  /* height: 120px; */
  object-fit: cover;
  border-radius: 6px;
}

.rv-price-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rv-price-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rv-currency {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.rv-price {
  font-size: 28px;
  font-weight: 700;
  color: #007acc;
  line-height: 1;
  margin: 4px 0;
}

.rv-price-period {
  font-size: 13px;
  color: #888;
}

/* Row 5: Rating Information */
.rv-row-rating {
  background-color: #f8f9fa;
  padding: 20px;
  margin: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.rv-rating-section {
  width: 100%;
}

.rv-vendor-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.rv-vendor-logo {
  height: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rv-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.rv-rating-score {
  font-weight: 600;
  color: #333;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.rv-rating-stars {
  color: #ffa500;
  font-size: 14px;
}

.rv-rating-text {
  color: #666;
  font-size: 12px;
}

.rv-rating-count {
  color: #888;
  font-size: 11px;
}

/* Row 6: Booking Button */
.rv-row-booking {
  background-color: #f8f9fa;
  padding: 16px 20px 20px;
  margin: 0 16px 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.rv-book-section {
  width: 100%;
}

.rv-book-btn {
  background: linear-gradient(135deg, #007acc 0%, #005c99 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
  letter-spacing: 0.5px;
}

.rv-book-btn:hover {
  background: linear-gradient(135deg, #005c99 0%, #004080 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.rv-book-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Row 7: Benefits */
.rv-row-benefits {
  background-color: #f8f9fa;
  padding: 12px 16px;
}

.rv-car-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rv-benefit {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Responsive Design */
/* Tablet: 2 columns */
@media (max-width: 1200px) {
  .rv-cars-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
  .rv-cars-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* .rv-row-image-price {
    flex-direction: column;
    gap: 12px;
  } */

  .rv-car-features {
    gap: 8px;
  }

  .rv-feature {
    font-size: 12px;
    padding: 3px 6px;
  }

  .rv-row-rating,
  .rv-row-booking {
    margin: 8px 12px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .rv-car-row {
    padding: 10px 12px;
  }

  .rv-car-title {
    font-size: 16px;
  }

  .rv-price {
    font-size: 24px;
  }

  .rv-cars-container {
    padding: 20px 10px;
  }

  .rv-tab-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
