/* Variáveis já definidas no style.css, mas se precisarmos de exclusivas, colocamos aqui */
:root {
  --card-bg: var(--primary-dark);
  --card-border: var(--gold);
  --text-white: var(--pure-white);
}

[data-theme="dark"] {
  --card-bg: #0d1f12;
}

.frota-page {
  background-color: var(--bg-light);
}

.frota-main {
  padding: 0px 20px 80px;
}

/* Grid layout for cards */
.frota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Card */
.bus-card {
  background-color: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.bus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Images section inside card */
.bus-images {
  position: relative;
  width: 100%;
  height: 220px; /* Base height for main image */
  background: var(--bg-light);
  border-bottom: 2px solid var(--card-border);
}

.main-bus-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inset-pic-wrapper {
  position: absolute;
  right: -5px; /* Offset to break out of the box slightly like in image */
  bottom: -20px;
  width: 100px;
  height: 140px;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.inset-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8; /* Dimming to differentiate from main */
}

/* Content section */
.bus-content {
  padding: 30px 20px 20px;
  color: var(--text-white);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bus-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
}

/* Features Grid */
.bus-features {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 60px;
}

.feature-item i {
  color: var(--card-border);
  font-size: 1.5rem;
  margin-bottom: 8px;
  -webkit-text-stroke: 1px var(--bg-card);
}

.feature-item span {
  font-size: 0.65rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}

/* Description paragraph */
.bus-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  margin-bottom: 25px;
  flex: 1; /* Pushes button to bottom */
}

/* Details button */
.btn-detalhes {
  background: transparent;
  color: var(--card-border);
  border: 1px solid var(--card-border);
  padding: 10px 0;
  width: 100%;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-detalhes:hover {
  background: var(--card-border);
  color: var(--card-bg);
}

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

@media (max-width: 768px) {
  .frota-grid {
    grid-template-columns: 1fr;
  }
  .bus-features {
    flex-wrap: wrap;
  }
}
