/* Enhanced Car Detail Page Styles - Conservative Approach */
:root {
  --primary-color: #003B7E;
  --secondary-color: #F7F7F7;
  --accent-color: #E4002B;
  --text-color: #333333;
  --border-color: #E5E5E5;
  --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
.carlistings-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  display: grid;
  grid-template-columns: calc(70% - 15px) calc(30% - 15px);
  gap: 30px;
}

/* Left Column */
.vehicle-main {
  grid-column: 1;
}

/* Right Column */
.vehicle-sidebar {
  grid-column: 2;
  position: sticky;
  top: 20px;
  align-self: start;
}

/* Header Section */
.car-title {
  font-size: 32px;
  color: var(--primary-color);
  margin: 0 0 15px 0;
  font-weight: 700;
  line-height: 1.2;
}

.vehicle-subtitle {
  color: #666;
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 500;
}

/* Price Box */
.vehicle-price-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.price-label {
  font-size: 16px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}

.btw-info {
  font-size: 14px;
  opacity: 0.9;
  font-style: italic;
}

.lease-amount {
  font-size: 18px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
}

/* Featured Image - Larger and Better */
.car-featured-image {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.car-featured-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.car-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 450px;
  object-fit: cover;
  transition: var(--transition);
}

.car-featured-image:hover img {
  transform: scale(1.02);
}

/* Image Gallery - Improved */
.car-gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin: 20px 0 30px;
}

.car-gallery-images .item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
  cursor: pointer;
}

.car-gallery-images .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.car-gallery-images .item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.car-gallery-images .item:hover img {
  transform: scale(1.05);
}

/* Information Sections */
.car-information {
  background: #f8f9fa;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.car-information:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.car-information h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin: 0 0 20px 0;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

/* Contact Section */
.contact-section {
  border-left-color: var(--accent-color);
}

.contact-info p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 16px;
}

.contact-buttons {
  margin: 20px 0;
}

.contact-btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 12px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(228, 0, 43, 0.2);
}

.contact-btn:hover {
  background: #c5001f;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
}

.contact-btn.whatsapp-btn {
  background: #25D366;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.contact-btn.whatsapp-btn:hover {
  background: #128C7E;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.opening-hours {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid var(--border-color);
}

/* Accessories List */
.accessories-list {
  background: white;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
  border: 1px solid var(--border-color);
}

.accessories-list h5 {
  color: var(--primary-color);
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
}

.accessories-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  line-height: 1.7;
  columns: 2;
  column-gap: 30px;
  column-fill: balance;
}

.accessories-list li {
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 15px;
  break-inside: avoid;
  page-break-inside: avoid;
  position: relative;
  padding-left: 25px;
}

.accessories-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 16px;
  width: 20px;
  height: 20px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Lease Calculator */
.lease-calculator {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.calculator-field {
  margin-bottom: 20px;
}

.calculator-field label {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  transition: var(--transition);
  background: white;
}

.calculator-field input:focus,
.calculator-field select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,59,126,0.1);
}

.calculator-field input[readonly] {
  background-color: #f8f9fa;
  cursor: not-allowed;
  color: #6c757d;
}

.monthly-payment-result {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  border: 2px solid var(--border-color);
}

.monthly-payment-label {
  color: var(--text-color);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

#monthly-payment {
  font-size: 28px;
  color: var(--accent-color);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Technical Specifications */
.specs-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.spec-category {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.spec-category:empty,
.spec-category .car-info:empty {
  display: none;
}

.spec-category .car-info tr {
  display: table-row;
}

.spec-category h3 {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.spec-category h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.technical-specs .car-info {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.technical-specs .car-info tr {
  transition: var(--transition);
}

.technical-specs .car-info tr:hover {
  background: #f8f9fa;
}

.technical-specs .car-info td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.technical-specs .car-info tr:last-child td {
  border-bottom: none;
}

.technical-specs .car-info td:first-child {
  color: var(--primary-color);
  font-weight: 600;
  width: 60%;
  background: transparent;
}

.technical-specs .car-info td:last-child {
  font-weight: 500;
  text-align: right;
  width: 40%;
}

/* Remarks Content */
.remarks-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
  border: 1px solid var(--border-color);
}

.remarks-content p {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 15px;
}

.remarks-content p:last-child {
  margin-bottom: 0;
}

.remarks-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Button Styles */
.button-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #c5001f 100%);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(228, 0, 43, 0.2);
  text-transform: none;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
  background: linear-gradient(135deg, #c5001f 0%, var(--accent-color) 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carlistings-detail-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vehicle-main,
  .vehicle-sidebar {
    grid-column: 1;
  }

  .vehicle-sidebar {
    position: static;
  }
  
  .car-title {
    font-size: 28px;
  }
  
  .car-featured-image img {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .carlistings-detail-content {
    padding: 15px;
  }
  
  .car-title {
    font-size: 24px;
  }
  
  .car-featured-image img {
    min-height: 250px;
  }
  
  .car-gallery-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .car-gallery-images .item img {
    height: 100px;
  }
  
  .accessories-list ul {
    columns: 1;
  }
  
  .technical-specs .car-info td {
    display: block;
    width: 100%;
    padding: 10px 15px;
  }
  
  .technical-specs .car-info td:first-child {
    border-bottom: none;
    padding-bottom: 5px;
    background: transparent;
    font-weight: 600;
  }
  
  .technical-specs .car-info td:last-child {
    padding-top: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 480px) {
  .car-title {
    font-size: 20px;
  }
  
  .price-amount {
    font-size: 28px;
  }
  
  #monthly-payment {
    font-size: 24px;
  }
  
  .car-information {
    padding: 20px;
  }
  
  .contact-btn {
    padding: 12px;
    font-size: 15px;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.car-information {
  animation: fadeIn 0.6s ease-out;
}

.car-information:nth-child(2) { animation-delay: 0.1s; }
.car-information:nth-child(3) { animation-delay: 0.2s; }
.car-information:nth-child(4) { animation-delay: 0.3s; }

/* Print Styles */
@media print {
  .contact-buttons,
  .lease-calculator {
    display: none !important;
  }
  
  .carlistings-detail-content {
    grid-template-columns: 1fr;
  }
  
  .car-information {
    box-shadow: none;
    border: 1px solid var(--border-color);
    break-inside: avoid;
  }
}

/* ── Lightbox Styles ────────────────────────────────────────────────── */
/* Custom Lightbox Styles */
.custom-lightbox {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.custom-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  user-select: none;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
}

.lightbox-title {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 300px;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .lightbox-prev {
    left: -60px;
  }
  
  .lightbox-next {
    right: -60px;
  }
  
  .lightbox-close {
    top: -40px;
    right: -5px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

/* ── Additional Vehicle Detail Styles ───────────────────────────────── */
/* Breadcrumbs Styles */
.tatev-breadcrumbs {
  max-width: 100%;
  margin: 0 auto;
  padding: 15px 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  box-sizing: border-box;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '>';
  margin: 0 8px;
  color: #6c757d;
  font-weight: 600;
}

.breadcrumb-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #003B7E;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #E4002B;
  text-decoration: underline;
}

.breadcrumb-item a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Small mobile screens */
@media (min-width: 375px) {
  .tatev-breadcrumbs {
    padding: 18px 12px;
  }
  
  .breadcrumb {
    font-size: 15px;
  }
  
  .breadcrumb-item.active {
    max-width: 350px;
  }
}

/* Standard mobile screens */
@media (min-width: 480px) {
  .tatev-breadcrumbs {
    padding: 20px 15px;
  }
  
  .breadcrumb-item.active {
    max-width: 400px;
  }
}

/* Large mobile / Small tablet */
@media (min-width: 640px) {
  .tatev-breadcrumbs {
    padding: 22px 20px;
  }
  
  .breadcrumb-item.active {
    max-width: 500px;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .tatev-breadcrumbs {
    padding: 25px 30px;
  }
  
  .breadcrumb {
    font-size: 16px;
  }
  
  .breadcrumb-item.active {
    max-width: 600px;
  }
}

/* Large tablet */
@media (min-width: 1024px) {
  .tatev-breadcrumbs {
    padding: 30px 40px;
  }
  
  .breadcrumb-item.active {
    max-width: none;
    white-space: normal;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .tatev-breadcrumbs {
    max-width: 1600px;
    padding: 30px 50px;
  }
}

/* Mobile-first responsive styles - Extra small screens */
.title-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 15px 10px 8px 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  box-sizing: border-box;
}

.carlistings-detail-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 10px 30px 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  box-sizing: border-box;
}

/* Small mobile screens */
@media (min-width: 375px) {
  .title-section {
    padding: 18px 12px 10px 12px;
  }
  
  .carlistings-detail-content {
    padding: 10px 12px 35px 12px;
    gap: 18px;
  }
}

/* Standard mobile screens */
@media (min-width: 480px) {
  .title-section {
    padding: 20px 15px 10px 15px;
  }
  
  .carlistings-detail-content {
    padding: 10px 15px 40px 15px;
    gap: 20px;
  }
}

/* Large mobile / Small tablet */
@media (min-width: 640px) {
  .title-section {
    padding: 22px 20px 10px 20px;
  }
  
  .carlistings-detail-content {
    padding: 10px 20px 40px 20px;
    gap: 25px;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .title-section {
    padding: 25px 30px 10px 30px;
  }
  
  .carlistings-detail-content {
    padding: 10px 30px 40px 30px;
    gap: 30px;
  }
}

/* Large tablet */
@media (min-width: 1024px) {
  .title-section {
    padding: 30px 40px 10px 40px;
  }
  
  .carlistings-detail-content {
    padding: 10px 40px 40px 40px;
    grid-template-columns: calc(65% - 25px) calc(35% - 25px);
    gap: 40px;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .title-section {
    max-width: 1600px;
    padding: 30px 50px 10px 50px;
  }
  
  .carlistings-detail-content {
    max-width: 1600px;
    padding: 10px 50px 40px 50px;
    gap: 50px;
  }
}

/* Mobile-first typography and layout - Extra small screens */
.car-title {
  font-size: 20px;
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vehicle-subtitle {
  color: #64748b;
  margin-bottom: 15px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  word-wrap: break-word;
}

.car-featured-image {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  position: relative;
  transition: all 0.4s ease;
}

/* Small mobile screens */
@media (min-width: 375px) {
  .car-title {
    font-size: 22px;
    margin: 0 0 14px 0;
  }
  
  .vehicle-subtitle {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .car-featured-image {
    margin-bottom: 18px;
    border-radius: 10px;
  }
}

/* Standard mobile screens */
@media (min-width: 480px) {
  .car-title {
    font-size: 24px;
    margin: 0 0 15px 0;
  }
  
  .vehicle-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .car-featured-image {
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  }
}

/* Large mobile / Small tablet */
@media (min-width: 640px) {
  .car-title {
    font-size: 26px;
  }
  
  .vehicle-subtitle {
    font-size: 15px;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .car-title {
    font-size: 28px;
  }
  
  .vehicle-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .car-featured-image {
    margin-bottom: 25px;
    border-radius: 14px;
  }
}

/* Large tablet */
@media (min-width: 1024px) {
  .car-title {
    font-size: 32px;
  }
  
  .vehicle-subtitle {
    font-size: 17px;
  }
  
  .car-featured-image {
    margin-bottom: 28px;
    border-radius: 15px;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .car-title {
    font-size: 36px;
  }
  
  .vehicle-subtitle {
    font-size: 18px;
  }
  
  .car-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
}

.car-featured-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.car-featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 59, 126, 0.1) 0%, rgba(195, 29, 31, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.car-featured-image:hover::before {
  opacity: 1;
}

.car-featured-image picture,
.car-gallery-images .item picture {
  display: block;
  width: 100%;
}

.car-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Tablet styles */
@media (min-width: 768px) {
  .car-featured-image img {
    min-height: 300px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .car-featured-image img {
    min-height: 450px;
  }
}

.car-featured-image:hover img {
  transform: scale(1.02);
}

/* Mobile-first gallery - Extra small screens */
.car-gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 15px 0 25px;
}

/* Small mobile screens */
@media (min-width: 375px) {
  .car-gallery-images {
    gap: 10px;
    margin: 18px 0 28px;
  }
}

/* Standard mobile screens */
@media (min-width: 480px) {
  .car-gallery-images {
    margin: 20px 0 30px;
  }
}

/* Large mobile / Small tablet */
@media (min-width: 640px) {
  .car-gallery-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .car-gallery-images {
    gap: 15px;
    margin: 25px 0 35px;
  }
}

/* Large tablet */
@media (min-width: 1024px) {
  .car-gallery-images {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .car-gallery-images {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
  }
}

.car-gallery-images .item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.car-gallery-images .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 59, 126, 0.2) 0%, rgba(195, 29, 31, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.car-gallery-images .item:hover::before {
  opacity: 1;
}

.car-gallery-images .item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.car-gallery-images .item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Tablet styles */
@media (min-width: 768px) {
  .car-gallery-images .item img {
    height: 120px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .car-gallery-images .item img {
    height: 130px;
  }
}

/* Mobile-first car information sections */
.car-information {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 20px 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 59, 126, 0.1);
  box-shadow: 0 4px 16px rgba(0, 59, 126, 0.06);
  position: relative;
  overflow: hidden;
}

/* Tablet styles */
@media (min-width: 768px) {
  .car-information {
    padding: 25px 20px;
    margin-bottom: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 59, 126, 0.06);
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .car-information {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 59, 126, 0.06);
  }
}


/* Mobile-first heading styles */
.car-information h2 {
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  margin: 0 0 15px 0;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  word-wrap: break-word;
}

/* Small mobile screens */
@media (min-width: 375px) {
  .car-information h2 {
    font-size: 20px;
    margin: 0 0 18px 0;
  }
}

/* Standard mobile screens */
@media (min-width: 480px) {
  .car-information h2 {
    font-size: 22px;
    margin: 0 0 20px 0;
  }
}

/* Large mobile / Small tablet */
@media (min-width: 640px) {
  .car-information h2 {
    font-size: 24px;
    margin: 0 0 22px 0;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .car-information h2 {
    font-size: 25px;
    margin: 0 0 24px 0;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .car-information h2 {
    font-size: 26px;
    margin: 0 0 25px 0;
  }
}

.vehicle-price-box {
  background: linear-gradient(135deg, #c31d1f 0%, #e53e3e 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 6px 24px rgba(195, 29, 31, 0.25);
  position: relative;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.price-label {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.9;
}

.price-amount {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.btw-info {
  font-size: 20px;
  opacity: 0.85;
  font-weight: 500;
}

.lease-amount {
  font-size: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.25);
  opacity: 0.95;
  font-weight: 600;
}

.contact-buttons {
  margin: 20px 0;
}

.contact-btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 12px;
  background: #E4002B;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #c5001f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.3);
}

.contact-btn.whatsapp-btn {
  background: #25D366;
}

.contact-btn.whatsapp-btn:hover {
  background: #128C7E;
}

/* Enhanced Contact Section Styles */
.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 59, 126, 0.08);
}

.contact-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.contact-icon {
  margin-right: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  filter: brightness(0) invert(1);
}

.contact-title h2 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #003B7E;
  font-weight: 700;
}

.contact-subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.dealer-info {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.dealer-logo {
  margin-right: 15px;
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.dealer-details h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #003B7E;
  font-weight: 600;
}

.dealer-tagline {
  margin: 0 0 8px 0;
  color: #6c757d;
  font-size: 13px;
}

.dealer-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ffc107;
  font-size: 14px;
}

.rating-text {
  font-size: 12px;
  color: #6c757d;
}

.contact-methods {
  margin-bottom: 25px;
}

.contact-method {
  margin-bottom: 12px;
}

.contact-method.primary .contact-btn {
  background: linear-gradient(135deg, #E4002B 0%, #c5001f 100%);
  border: 2px solid #E4002B;
  box-shadow: 0 4px 15px rgba(228, 0, 43, 0.25);
}

.contact-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #003B7E;
}

.contact-method.primary .contact-btn {
  color: white;
}

.contact-method.primary .contact-btn:hover {
  background: linear-gradient(135deg, #c5001f 0%, #a8001a 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(228, 0, 43, 0.4);
}

.whatsapp-btn {
  border-color: #25D366 !important;
  background: #25D366 !important;
  color: white !important;
}

.whatsapp-btn:hover {
  background: #128C7E !important;
  border-color: #128C7E !important;
}

.btn-icon {
  margin-right: 15px;
  padding: 8px;
  background: rgba(0, 59, 126, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.contact-method.primary .btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-btn .btn-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.btn-content {
  flex: 1;
}

.btn-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.btn-value {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.quick-info {
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.info-icon {
  margin-right: 12px;
  padding: 8px;
  background: rgba(0, 59, 126, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.info-content strong {
  display: block;
  color: #003B7E;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.opening-hours {
  font-size: 13px;
  color: #6c757d;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.address {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

.address-link {
  color: #003B7E;
  text-decoration: none;
  font-weight: 500;
}

.address-link:hover {
  text-decoration: underline;
}

.contact-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.feature {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #495057;
}

.feature-icon {
  width: 20px;
  height: 20px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Main Contact Buttons - Horizontal Layout */
.main-contact-buttons {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.main-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #E4002B 0%, #c5001f 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s ease;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(228, 0, 43, 0.25);
  position: relative;
  overflow: hidden;
}

.main-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.main-contact-btn:hover::before {
  left: 100%;
}

.main-contact-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(228, 0, 43, 0.35);
}

.main-contact-btn.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.25);
}

.main-contact-btn.whatsapp-btn:hover {
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.35);
}

.main-contact-btn.email-btn {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 6px 24px rgba(108, 117, 125, 0.25);
}

.main-contact-btn.email-btn:hover {
  box-shadow: 0 12px 36px rgba(108, 117, 125, 0.35);
}

.main-contact-btn .btn-icon {
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .main-contact-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .contact-header {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .dealer-info {
    flex-direction: column;
    text-align: center;
  }
  
  .dealer-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .btn-content {
    text-align: left;
  }
  
  .hours-row {
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .carlistings-detail-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .car-title {
    font-size: 28px;
  }
}

/* Technical specifications responsive styles */
.technical-specs .specs-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Tablet and larger screens - side by side layout */
@media (min-width: 768px) {
  .technical-specs .specs-categories {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* Large screens - ensure proper spacing */
@media (min-width: 1024px) {
  .technical-specs .specs-categories {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }
}

/* Extra large screens */
@media (min-width: 1200px) {
  .technical-specs .specs-categories {
    gap: 30px;
  }
}

.spec-category h3 {
  font-size: 14px;
  margin: 0 0 10px 0;
  color: #003B7E;
  font-weight: 600;
  word-wrap: break-word;
}

.car-info {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  display: table !important;
}

.car-info tbody {
  display: table-row-group !important;
}

.car-info tr {
  display: table-row !important;
  width: 100%;
}

.car-info td {
  padding: 6px 8px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: table-cell !important;
  white-space: normal;
}

.car-info td:first-child {
  font-weight: 500;
  color: #6c757d;
  width: 45% !important;
  text-align: left;
  display: table-cell !important;
}

.car-info td:last-child {
  color: #333;
  width: 55% !important;
  text-align: left;
  display: table-cell !important;
}

/* Small mobile screens */
@media (min-width: 375px) {
  .spec-category h3 {
    font-size: 15px;
    margin: 0 0 12px 0;
  }
  
  .car-info {
    font-size: 13px;
  }
  
  .car-info td {
    padding: 8px 10px;
  }
}

/* Standard mobile screens */
@media (min-width: 480px) {
  .technical-specs .specs-categories {
    gap: 18px;
  }
  
  .spec-category h3 {
    font-size: 16px;
    margin: 0 0 14px 0;
  }
  
  .car-info {
    font-size: 14px;
  }
  
  .car-info td {
    padding: 10px 12px;
  }
}

/* Large mobile / Small tablet */
@media (min-width: 640px) {
  .technical-specs .specs-categories {
    gap: 20px;
  }
  
  .spec-category h3 {
    font-size: 17px;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .technical-specs .specs-categories {
    gap: 25px;
  }
  
  .spec-category h3 {
    font-size: 18px;
    margin: 0 0 16px 0;
  }
  
  .car-info td {
    padding: 12px 15px;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .technical-specs .specs-categories {
    gap: 30px;
  }
  
  .spec-category h3 {
    font-size: 19px;
    margin: 0 0 18px 0;
  }
}

/* Mobile/Desktop visibility classes */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }

  /* Keep sidebar anchored to top so Technische Specificaties
     appears directly below the lease calculator, not pushed
     down to match the height of the tall left column. */
  .vehicle-sidebar {
    align-self: start;
  }
}

/* Mobile button spacing fix */
.mobile-only .main-contact-buttons > div[style*="display: flex"] {
  gap: 20px !important;
}

.mobile-only .main-contact-buttons .whatsapp-btn {
  margin-right: 20px !important;
}

@media (max-width: 768px) {
  .carlistings-detail-content {
    padding: 15px;
  }
  
  .car-title {
    font-size: 24px;
  }
  
  .car-gallery-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Ensure mobile button spacing */
  .mobile-only .main-contact-buttons > div {
    gap: 20px !important;
  }
  
  /* Force WhatsApp button margin */
  .mobile-only .main-contact-buttons .whatsapp-btn {
    margin-right: 20px !important;
  }
}

/* FAQ Section Styles */
.faq-section {
  margin-top: 40px;
}

.faq-container {
  display: grid;
  gap: 15px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 59, 126, 0.05);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 59, 126, 0.1);
  border-color: #003B7E;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.faq-question h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #003B7E;
  line-height: 1.4;
  flex: 1;
  padding-right: 15px;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #003B7E;
  transition: transform 0.3s ease;
  min-width: 30px;
  text-align: center;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px 25px;
}

.faq-answer p {
  margin: 0;
  color: #495057;
  line-height: 1.6;
  font-size: 15px;
}

/* Mobile FAQ styles */
@media (max-width: 768px) {
  .faq-question {
    padding: 15px 20px;
  }
  
  .faq-question h3 {
    font-size: 15px;
    padding-right: 10px;
  }
  
  .faq-toggle {
    font-size: 20px;
    min-width: 25px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  .faq-answer p {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .faq-container {
    gap: 20px;
  }
  
  .faq-question {
    padding: 25px 30px;
  }
  
  .faq-question h3 {
    font-size: 17px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 30px 25px 30px;
  }
}

/* Production-ready price + CTA panel */
.vehicle-sidebar .vehicle-price-box,
.vehicle-main .vehicle-price-box.mobile-only {
  background: #ffffff !important;
  color: #0f172a !important;
  text-align: left !important;
  padding: 24px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0, 59, 126, 0.12) !important;
  border-top: 5px solid var(--primary-color) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
  margin-bottom: 14px !important;
  position: relative;
  overflow: hidden;
}

.vehicle-sidebar .vehicle-price-box::before,
.vehicle-main .vehicle-price-box.mobile-only::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 96px;
  background: linear-gradient(135deg, rgba(0, 59, 126, 0.08), rgba(228, 0, 43, 0.04));
  pointer-events: none;
}

.vehicle-sidebar .price-main,
.vehicle-main .vehicle-price-box.mobile-only .price-main {
  position: relative;
  display: grid;
  gap: 8px;
}

.vehicle-sidebar .price-label,
.vehicle-main .vehicle-price-box.mobile-only .price-label {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  opacity: 1 !important;
}

.vehicle-sidebar .price-amount,
.vehicle-main .vehicle-price-box.mobile-only .price-amount {
  color: var(--primary-color) !important;
  font-size: clamp(32px, 4vw, 42px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em !important;
  margin: 0 !important;
}

.vehicle-sidebar .btw-info,
.vehicle-main .vehicle-price-box.mobile-only .btw-info {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  opacity: 1 !important;
}

.vehicle-sidebar .lease-amount,
.vehicle-main .vehicle-price-box.mobile-only .lease-amount {
  position: relative;
  margin-top: 18px !important;
  padding: 14px 16px !important;
  border-top: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%) !important;
  color: #003B7E !important;
  border: 1px solid rgba(0, 59, 126, 0.14) !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}

.vehicle-sidebar .lease-amount::before,
.vehicle-main .vehicle-price-box.mobile-only .lease-amount::before {
  content: 'Financial lease';
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.vehicle-sidebar > .main-contact-buttons,
.vehicle-main > .main-contact-buttons.mobile-only {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10) !important;
  padding: 16px !important;
  margin: 0 0 18px 0 !important;
  gap: 10px !important;
  flex-direction: column !important;
}

.vehicle-sidebar > .main-contact-buttons::before,
.vehicle-main > .main-contact-buttons.mobile-only::before {
  content: 'Direct contact';
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.vehicle-sidebar > .main-contact-buttons > div,
.vehicle-main > .main-contact-buttons.mobile-only > div {
  display: flex !important;
  width: 100% !important;
  gap: 10px !important;
}

.vehicle-sidebar .main-contact-btn,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn {
  min-height: 48px !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  gap: 10px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
  border: 1px solid transparent !important;
}

.vehicle-sidebar .main-contact-btn:hover,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14) !important;
  color: #ffffff !important;
}

.vehicle-sidebar .main-contact-btn.phone-btn,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.phone-btn {
  background: linear-gradient(135deg, #E4002B 0%, #b80022 100%) !important;
  color: #ffffff !important;
}

.vehicle-sidebar .main-contact-btn.whatsapp-btn,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.whatsapp-btn {
  background: linear-gradient(135deg, #16a34a 0%, #128C7E 100%) !important;
  color: #ffffff !important;
}

.vehicle-sidebar .main-contact-btn.email-btn,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.email-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #dbe3ec !important;
}

.vehicle-sidebar .main-contact-btn.email-btn:hover,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.email-btn:hover {
  background: #0f172a !important;
  color: #ffffff !important;
}

.vehicle-sidebar .main-contact-btn.viewing-btn,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.viewing-btn {
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%) !important;
  color: #ffffff !important;
}

.vehicle-sidebar .main-contact-btn .btn-icon,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn .btn-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.vehicle-sidebar .main-contact-btn.email-btn .btn-icon,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.email-btn .btn-icon {
  background: #e2e8f0 !important;
}

.vehicle-sidebar .main-contact-btn.email-btn:hover .btn-icon,
.vehicle-main .main-contact-buttons.mobile-only .main-contact-btn.email-btn:hover .btn-icon {
  background: rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 480px) {
  .vehicle-main .vehicle-price-box.mobile-only {
    padding: 20px !important;
  }

  .vehicle-main .main-contact-buttons.mobile-only {
    padding: 14px !important;
  }

  .vehicle-main .main-contact-buttons.mobile-only > div {
    gap: 8px !important;
  }

  .vehicle-main .main-contact-buttons.mobile-only .main-contact-btn {
    font-size: 13px !important;
    padding: 11px 10px !important;
  }
}

/* Refined price module: clean professional card */
.vehicle-sidebar .vehicle-price-box,
.vehicle-main .vehicle-price-box.mobile-only {
  background: #ffffff !important;
  color: #111827 !important;
  padding: 22px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08) !important;
  overflow: hidden !important;
}

.vehicle-sidebar .vehicle-price-box::before,
.vehicle-main .vehicle-price-box.mobile-only::before {
  content: none !important;
}

.vehicle-sidebar .price-main,
.vehicle-main .vehicle-price-box.mobile-only .price-main {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 6px 10px !important;
  margin: 0 !important;
}

.vehicle-sidebar .price-label,
.vehicle-main .vehicle-price-box.mobile-only .price-label {
  flex: 0 0 100% !important;
  color: #6b7280 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.vehicle-sidebar .price-amount,
.vehicle-main .vehicle-price-box.mobile-only .price-amount {
  color: #111827 !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  text-shadow: none !important;
}

.vehicle-sidebar .btw-info,
.vehicle-main .vehicle-price-box.mobile-only .btw-info {
  align-self: center !important;
  color: #6b7280 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-style: normal !important;
}

.vehicle-sidebar .lease-amount,
.vehicle-main .vehicle-price-box.mobile-only .lease-amount {
  position: relative;
  margin-top: 18px !important;
  padding: 16px 18px !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%) !important;
  color: #1e3a8a !important;
  box-shadow: inset 4px 0 0 #003B7E !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.vehicle-sidebar .lease-amount::before,
.vehicle-main .vehicle-price-box.mobile-only .lease-amount::before {
  content: 'Financial lease' !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

/* Compact lease calculator spacing on vehicle detail pages */
.vehicle-sidebar .lease-calculator-section,
.vehicle-main .lease-calculator-section.mobile-only {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.vehicle-sidebar .lease-calculator-section h2,
.vehicle-main .lease-calculator-section.mobile-only h2 {
  margin-bottom: 14px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}

.vehicle-sidebar .lease-calculator,
.vehicle-main .lease-calculator-section.mobile-only .lease-calculator {
  padding: 14px !important;
  border-radius: 12px !important;
}

.vehicle-sidebar .calculator-field,
.vehicle-main .lease-calculator-section.mobile-only .calculator-field {
  margin-bottom: 12px !important;
}

.vehicle-sidebar .calculator-field label,
.vehicle-main .lease-calculator-section.mobile-only .calculator-field label {
  margin-bottom: 5px !important;
  font-size: 13px !important;
}

.vehicle-sidebar .calculator-field input,
.vehicle-sidebar .calculator-field select,
.vehicle-main .lease-calculator-section.mobile-only .calculator-field input,
.vehicle-main .lease-calculator-section.mobile-only .calculator-field select {
  padding: 9px 10px !important;
  font-size: 14px !important;
}

.vehicle-sidebar .monthly-payment-result,
.vehicle-main .lease-calculator-section.mobile-only .monthly-payment-result {
  margin-top: 12px !important;
  padding: 14px !important;
}

.vehicle-sidebar #monthly-payment,
.vehicle-main #monthly-payment-mobile {
  font-size: 24px !important;
}

/* Button-style financial lease link under the price */
#lease-calculator-desktop,
#lease-calculator-mobile {
  scroll-margin-top: 90px;
}

.vehicle-sidebar .lease-scroll-button,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 54px !important;
  margin-top: 16px !important;
  padding: 12px 42px 12px 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 59, 126, 0.22) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.vehicle-sidebar .lease-scroll-button::before,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button::before {
  content: 'Financial lease' !important;
  display: block !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  margin-bottom: 5px !important;
  text-transform: uppercase !important;
}

.vehicle-sidebar .lease-scroll-button::after,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button::after {
  content: '↓' !important;
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.vehicle-sidebar .lease-scroll-button:hover,
.vehicle-sidebar .lease-scroll-button:focus,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button:hover,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button:focus {
  background: linear-gradient(135deg, #0056b3 0%, #003B7E 100%) !important;
  box-shadow: 0 14px 30px rgba(0, 59, 126, 0.30) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* Final override: keep the clickable lease CTA fully visible and independent from the old .lease-amount card styles */
.vehicle-sidebar .lease-scroll-button,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 16px 0 0 0 !important;
  padding: 13px 14px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #003B7E 0%, #0056b3 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 59, 126, 0.22) !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.vehicle-sidebar .lease-scroll-button::before,
.vehicle-sidebar .lease-scroll-button::after,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button::before,
.vehicle-main .vehicle-price-box.mobile-only .lease-scroll-button::after {
  content: none !important;
  display: none !important;
}

.lease-scroll-button .lease-button-content {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.lease-scroll-button .lease-button-label {
  display: block !important;
  margin: 0 0 4px 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.lease-scroll-button .lease-button-text {
  display: block !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.lease-scroll-button .lease-button-icon {
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
