:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f8f8f8;
  --text: #222222;
  --text-muted: #666666;
  --text-light: #aaaaaa;
  --border: #e8e8e8;
  --dark: #111111;
  --dark-2: #1b1b1b;
  --accent: #ff4d00;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

header {
  background: var(--dark);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background: var(--dark-2);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.hero p {
  margin: 0;
  color: #dddddd;
}

.hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 50px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 26px;
}

.card,
.section-card,
.main-panel,
.side-panel,
.empty,
.error,
.status-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.section-card {
  padding: 24px;
}

.status {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555555;
}

.status-box,
.empty,
.error {
  padding: 20px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 20px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.car-card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.car-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #dddddd;
}

.car-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.car-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.car-meta {
  color: #555555;
  font-size: 15px;
  margin: 0;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark);
  margin-top: 4px;
}

.btn-row,
.quick-actions,
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-row {
  margin-top: auto;
  padding-top: 8px;
}

.btn-group {
  margin-top: 22px;
  display: grid;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--dark);
  color: #fff;
}

.btn-light {
  background: #f1f1f1;
  color: var(--dark);
}

.btn:hover {
  opacity: 0.95;
}

.cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.cta a {
  margin-top: 15px;
  display: inline-block;
  background: #fff;
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.vehicle-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.main-panel,
.side-panel {
  overflow: hidden;
}

.side-panel {
  padding: 20px;
  position: sticky;
  top: 20px;
}

.side-panel h2 {
  margin-top: 0;
  font-size: 24px;
}

.main-image-wrap {
  background: #dddddd;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  padding: 15px;
  background: #fff;
}

.thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #eeeeee;
  padding: 0;
}

.thumb.active {
  border-color: var(--accent);
}

.thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.vehicle-summary {
  padding: 20px;
  border-top: 1px solid #eeeeee;
}

.vehicle-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
}

.summary-meta {
  color: #555555;
  font-size: 16px;
  margin: 0 0 6px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
}

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

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  font-weight: bold;
  text-align: right;
}

.description {
  line-height: 1.7;
  color: #444444;
  white-space: pre-line;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.feature-list li {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.info-row {
  margin-bottom: 18px;
}

.info-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

.info-value {
  font-size: 17px;
  line-height: 1.5;
}

.info-value a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

.map-wrap {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

footer {
  background: #222222;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .vehicle-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .main-image {
    height: 320px;
  }

  .vehicle-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 26px;
  }

  nav {
    gap: 10px;
  }

  .main-image {
    height: 260px;
  }

  .thumb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lang-toggle {
  background: #ffffff;
  color: #111111;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.lang-toggle:hover {
  opacity: 0.95;
}
