/* Rentcarnation Custom Base & Smooth Effects */
@layer base {
  html {
    scroll-behavior: smooth;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #f25c05;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d94e04;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fleet-modal-layout {
  height: min(600px, calc(100vh - 3rem));
}

.vehicle-card {
  min-width: 0;
}

#vehicle-grid .vehicle-card[hidden] {
  display: none;
}

#vehicle-grid .vehicle-card {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#vehicle-grid .vehicle-card-terms {
  display: none;
}

.vehicle-card-image {
  display: flex;
  height: 12rem;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.vehicle-card-image img {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.vehicle-card-name {
  margin: 0;
  padding-right: 2.5rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 150ms ease;
}

.vehicle-card:hover .vehicle-card-name {
  color: #f25c05;
}

.vehicle-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  padding-right: 2.5rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.vehicle-card-terms {
  flex: 1;
  margin-top: 0;
  color: #475569;
  font-size: 0.6875rem;
  line-height: 1.55;
}

.vehicle-card-terms ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-card-terms li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 0.75rem;
}

.vehicle-card-terms li::before {
  position: absolute;
  top: 0.4rem;
  left: 0.1rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #f25c05;
  content: "";
}

.vehicle-card-terms strong {
  color: #0f172a;
  font-weight: 700;
}

.vehicle-card-terms a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}

.vehicle-card-terms p {
  margin-top: 0.7rem;
  color: #94a3b8;
  font-size: 0.625rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.vehicle-card-whatsapp {
  position: absolute;
  top: 13.2rem;
  right: 0;
  display: flex;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  margin: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f1f5f9;
  padding: 0;
  color: #334155;
  font-size: 0;
  box-shadow: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.vehicle-card-whatsapp::after {
  content: "\2192";
  font-size: 1rem;
  line-height: 1;
}

.vehicle-card-whatsapp svg {
  display: none;
}

.vehicle-card:hover .vehicle-card-whatsapp {
  background: #f25c05;
  color: #fff;
}

#mobile-menu.mobile-menu-open {
  max-height: 24rem;
  opacity: 1;
}

.rental-terms {
  margin-top: 0.75rem;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.625;
}

.rental-terms ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rental-terms li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.rental-terms li::before {
  position: absolute;
  top: 0.65rem;
  left: 0.15rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #f25c05;
  content: "";
}

.rental-terms strong {
  color: #0f172a;
  font-weight: 700;
}

.rental-terms a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}

.rental-terms p {
  margin-top: 0.75rem;
  color: #94a3b8;
  font-size: 0.6875rem;
  font-style: italic;
  line-height: 1.625;
}

@media (max-width: 767px) {
  .fleet-modal-layout {
    height: auto;
  }
}
