/* Reset / Base */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f8f6;
  color: #333;
  line-height: 1.6;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0.5rem 0;
}

/* Gallery */
#car-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

#car-gallery img {
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Video */
#car-video {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

#car-video iframe {
  width: 100%;
  max-width: 640px;
  height: 360px;
  border-radius: 8px;
  border: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  #car-gallery {
    flex-direction: column;
    align-items: center;
  }

  #car-video iframe {
    height: 200px;
  }
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.car-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.car-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.car-card h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.view-button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.4rem 1rem;
  background-color: #333;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

.view-button:hover {
  background-color: #555;
}

#car-filters {
  margin-bottom: 1rem;
}

#car-filters select {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

button[type="submit"] {
  background-color: #333;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button[type="submit"]:hover {
  background-color: #555;
}

.scroll-strip {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.scroll-strip::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.scroll-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

/* === Navigation Header === */
header {
  background-color: #111;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #fff;
}

/* === Footer === */
.site-footer {
  background-color: #f5f5f5;
  color: #555;
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
}

.nav-links li a.active {
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

.back-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #e0e0e0;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #ccc;
}

.whatsapp-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #25d366;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.whatsapp-button:hover {
  background-color: #1ebe5d;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-buttons button {
  padding: 0.4rem 1rem;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-buttons button:hover {
  background-color: #ddd;
}

.filter-buttons button.active {
  background-color: #333;
  color: white;
}

.car-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin: 0.3rem 0;
  color: white;
}

.car-badge.rental {
  background-color: #007bff;
}

.car-badge.sale {
  background-color: #28a745;
}

.car-badge.both {
  background-color: #ff9800;
}

.hero-text {
  padding: 4rem 1rem;
  background-color: #f5f5f5;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 1rem;
}

.hero-text .intro {
  max-width: 600px;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #444;
}

.hero-button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.hero-button:hover {
  background-color: #555;
}

.renting-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.renting-steps {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  font-size: 0.97rem;
  text-align: left;
}

.renting-steps div {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.renting-section {
  padding: 1rem 1rem;
  margin-top: 1rem;
  background-color: #f9f9f9;
  text-align: left;
  max-width: 900px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.renting-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.renting-description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
}

.buying-section {
  padding: 1rem 1rem;
  background-color: #f9f9f9;
  text-align: left;
  max-width: 900px;
  margin: 3rem auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.buying-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.buying-description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
}

.buying-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.97rem;
}

.buying-steps div {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.whatsapp-switcher {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 2rem auto;
  text-align: left;
}

.intent-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.intent-buttons button {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
}

.intent-buttons button.active {
  background-color: #333;
  color: white;
}

.message-box {
  margin-top: 1rem;
  background: white;
  padding: 1rem;
  border-left: 4px solid #25d366;
  border-radius: 4px;
}

.whatsapp-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.whatsapp-car-contact {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: left;
}

.whatsapp-car-contact h3 {
  margin-bottom: 0.5rem;
}

.whatsapp-car-contact p {
  margin-bottom: 1rem;
}

.whatsapp-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
