/* ==========================================================================
   Car Fleet Section Styling
   ========================================================================== */

/* Container and Grid */
.st-fleet-section {
  padding: 80px 0;
  background-color: #fbfbfb;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

.st-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header */
.st-section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.st-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d4431;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.st-title {
  font-size: 40px;
  color: #1a1a1a;
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.st-desc {
  color: #717171;
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* Grid Layout */
.st-fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .st-fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .st-fleet-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Card (Default State) */
.st-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateY(0);
}

/* Rating Badge */
.st-card-rating {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.st-star {
  width: 16px;
  height: 16px;
  color: #3d4431;
  transition: color 0.3s ease;
}

/* Image */
.st-card-img-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.st-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Info Row (Title/Price + Meta) */
.st-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.st-car-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

.st-car-price {
  color: #3d4431;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.st-price-period {
  font-size: 13px;
  font-weight: 400;
  color: #888;
  transition: color 0.3s ease;
}

/* Meta Data (Luggage/Seats) */
.st-card-meta {
  text-align: right;
}

.st-meta-item {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.st-meta-item:last-child {
  margin-bottom: 0;
}

.st-meta-item svg {
  color: #3d4431;
  transition: color 0.3s ease;
}

/* Description text */
.st-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
  transition: color 0.3s ease;
}

/* Button */
.st-btn-book {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  background-color: #3d4431;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* ==========================================================================
   Hover State (Dynamic Color Swap)
   ========================================================================== */

.st-card:hover {
  background-color: #3d4431;
  border-color: #3d4431;
  box-shadow: 0 15px 35px rgba(61, 68, 49, 0.25);
  transform: translateY(-8px);
}

.st-card:hover .st-card-img {
  transform: scale(1.05);
}

/* Invert Text Colors on Hover */
.st-card:hover .st-card-rating,
.st-card:hover .st-star,
.st-card:hover .st-car-name,
.st-card:hover .st-car-price,
.st-card:hover .st-price-period,
.st-card:hover .st-meta-item,
.st-card:hover .st-meta-item svg,
.st-card:hover .st-card-desc {
  color: #ffffff;
}

/* Soften the inner border on Hover */
.st-card:hover .st-card-info-row {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Button on Hovered Card */
.st-card:hover .st-btn-book {
  background-color: #262a1e;
  color: #ffffff;
  border-color: #262a1e;
}

.st-card:hover .st-btn-book:hover {
  background-color: #1a1d15;
}
