.car-detail-section { 
  margin-bottom: 80px; 
}

.car-detail-container { 
  display: flex; 
  gap: 40px; 
  align-items: flex-start; 
  justify-content: space-between; 
  flex-wrap: nowrap; 
  margin: 40px auto; 
  max-width: 1200px;
  padding: 0 20px;
}

.car-image-section { 
  flex: 0 0 55%; 
  position: relative; 
}

.car-info-section { 
  flex: 0 0 45%; 
}

.main-image { 
  width: 100%; 
  height: 400px; 
  position: relative; 
  border-radius: 8px; 
  overflow: hidden; 
  border: 5px solid #ddd; 
  background: #000; 
}

.slider-wrapper, .slider-track { 
  width: 100%; 
  height: 100%; 
}

.slider-wrapper { 
  overflow: hidden; 
  position: relative; 
}

.slider-track { 
  display: flex; 
  transition: transform 1s ease-in-out; 
}

.slider-track img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  flex-shrink: 0; 
}

.arrow { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(0, 0, 0, 0.5); 
  color: white; 
  font-size: 45px; 
  border: none; 
  cursor: pointer; 
  padding: 10px; 
  transition: 0.3s; 
  z-index: 5;
  border-radius: 4px;
}

.arrow:hover { 
  background: rgba(0, 0, 0, 0.8);
  color: #0099ff; 
  transform: translateY(-50%) scale(1.2); 
}

.arrow.left { 
  left: 15px; 
}

.arrow.right { 
  right: 15px; 
}

.thumb-gallery { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 6px; 
  margin-top: 12px; 
  flex-wrap: nowrap; 
  overflow-x: auto; 
  scrollbar-width: none;
  padding: 5px 0;
}

.thumb-gallery::-webkit-scrollbar { 
  display: none; 
}

.thumb-gallery img { 
  width: calc(20% - 6px); 
  aspect-ratio: 4 / 3; 
  object-fit: cover; 
  border-radius: 10px; 
  cursor: pointer; 
  transition: transform 0.25s ease, border 0.25s ease; 
  border: 3px solid #ddd;
  flex-shrink: 0;
}

.thumb-gallery img:hover { 
  transform: scale(1.05); 
}

.thumb-gallery img.active { 
  border: 3px solid #007a7a; 
}

.car-title { 
  font-size: 1.8em; 
  font-weight: 700; 
  color: #222; 
  margin-bottom: 15px; 
  border-left: 5px solid #0099ff; 
  padding-left: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding-right: 20px;
}

.car-desc { 
  font-size: 1em; 
  color: #555; 
  line-height: 1.6; 
  margin-bottom: 5px; 
}

.car-highlight { 
  color: #d94c2d; 
  font-weight: 600; 
  margin-bottom: 10px;
  font-size: 1em;
}

.car-info-table { 
  width: 100%; 
  border-collapse: collapse; 
  margin-bottom: 20px;
  font-size: 1em;
}

.car-info-table th, .car-info-table td { 
  padding: 10px 11px; 
  border: 1px solid #ddd; 
  text-align: left; 
  vertical-align: middle;
  line-height: 1.6;
}

.car-info-table th { 
  width: 25%; 
  background: #f5f5f5; 
  font-weight: bold;
  white-space: nowrap;
  color: #333;
}

.car-info-table td {
  word-break: break-word;
  color: #555;
}

.reserve-btn { 
  display: inline-block; 
  background: #0099ff; 
  color: #fff; 
  font-weight: 600; 
  padding: 14px 30px; 
  border-radius: 50px; 
  text-decoration: none; 
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.reserve-btn:hover { 
  background: #0077cc; 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

/* ÅÂºí¸´ (768px ~ 1023px) */
@media (max-width: 1023px) {
  .car-detail-container {
    gap: 30px;
    margin: 30px auto;
  }

  .car-image-section {
    flex: 0 0 50%;
  }

  .car-info-section {
    flex: 0 0 50%;
  }

  .main-image {
    height: 350px;
  }

  .car-title {
    font-size: 2em;
    padding-left: 20px;
    padding-right: 20px;
  }

  .car-desc {
    font-size: 1em;
  }

  .car-highlight {
    font-size: 0.95em;
  }

  .car-info-table {
    font-size: 1em;
  }

  .car-info-table th, .car-info-table td {
    padding: 14px 12px;
  }

  .arrow {
    font-size: 35px;
  }

  .thumb-gallery img {
    width: calc(20% - 5px);
  }

  .reserve-btn {
    padding: 12px 28px;
    font-size: 1em;
  }
}

/* ¸ð¹ÙÀÏ (768px ÀÌÇÏ) */
@media (max-width: 768px) {
  .car-detail-section {
    margin-bottom: 60px;
  }

  .car-detail-container {
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;
    padding: 0 15px;
  }

  .car-image-section {
    flex: 0 0 100%;
  }

  .car-info-section {
    padding: 0 5px;
	width:100%;
  }

  .main-image {
    height: 280px;
    border: 3px solid #ddd;
  }

  .arrow {
    font-size: 30px;
    padding: 8px;
  }

  .arrow.left {
    left: 10px;
  }

  .arrow.right {
    right: 10px;
  }

  .thumb-gallery {
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-gallery img {
    width: 80px;
    height: 60px;
    min-width: 80px;
    aspect-ratio: auto;
    border-radius: 4px;
    border: 2px solid #ddd;
  }

  .car-title {
    font-size: 1.5em;
    margin: 25px 0 15px 0;
    padding-left: 15px;
    padding-right: 15px;
    border-left: 4px solid #0099ff;
  }

  .car-title span {
    font-size: 0.75em;
    display: block;
    margin-top: 3px;
  }

  .car-desc {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .car-highlight {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .car-info-table {
    font-size: 1em;
    margin-bottom: 15px;
    width: 100%;
  }

  .car-info-table th {
    width: 30%;
    padding: 12px 10px;
    font-size: 1em;
    background: #f9f9f9;
  }

  .car-info-table td {
    padding: 12px 10px;
    font-size: 1em;
  }

  .reserve-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-size: 1em;
    width: 100%;
  }

  .reserve-btn:active {
    background: #0077cc;
  }
}

/* ¼ÒÇü ¸ð¹ÙÀÏ (480px ÀÌÇÏ) */
@media (max-width: 480px) {
  .car-detail-section {
    margin-bottom: 50px;
  }

  .car-detail-container {
    margin: 15px auto;
    padding: 0 10px;
  }

  .car-info-section {
    padding: 0;
  }

  .main-image {
    height: 240px;
    border: 2px solid #ddd;
    border-radius: 6px;
  }

  .arrow {
    font-size: 24px;
    padding: 6px;
  }

  .thumb-gallery {
    gap: 3px;
    margin-top: 8px;
  }

  .thumb-gallery img {
    width: 50px;
    height: 37px;
    min-width: 50px;
    border-radius: 3px;
    border: 2px solid #ddd;
  }

  .car-title {
    font-size: 1.3em;
    margin: 20px 0 12px 0;
    padding-left: 12px;
    padding-right: 12px;
    border-left: 3px solid #0099ff;
  }

  .car-title span {
    font-size: 0.7em;
  }

  .car-desc {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .car-highlight {
    font-size: 0.85em;
    margin-bottom: 12px;
  }

  .car-info-table {
    font-size: 0.85em;
    margin-bottom: 12px;
    width: 100%;
  }

  .car-info-table th {
    width: 35%;
    padding: 11px 8px;
    font-size: 0.85em;
  }

  .car-info-table td {
    padding: 11px 8px;
    font-size: 0.85em;
  }

  .reserve-btn {
    padding: 12px 16px;
    font-size: 0.95em;
  }
}
