@charset "utf-8";
/* CSS Document */
/* Override main.css */
h1{font-size: calc(2.0rem + 0.1vw);}
h2{font-size: calc(1.7rem + 0.1vw);}
h3{margin: 10px 0 5px 0;}
ul{
  line-height: 1.7;
  padding: 5px 32px;
}
/* Override brandmodel-slidemenu.css */
#brandmodellist, #branModelList-Area{
  padding: 30px 5px;
}
#brandmodellistmenu, #brandModel-slideMenu{
  /*max-width: 90%;*/  
}
/* Style for car.dwt */
#container{
  margin: 30px 8%;
  padding: 0;
  box-sizing: border-box;
  /*position: relative;*/
}
#container:after{
  content: "";
  display: table;
  clear: both;
}
.carTopBanner {  
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.carYearBanner {
  width: fit-content;
  color: white;
  background-color: #cdac48;
  border-radius: 8px;
  padding: 5px 18px;
  font-size: calc(1rem+0.1vw);
  font-weight: 600;
  text-align: center;
}
#carTitleBanner{
  color: #81141b;
}

.rowContent {
  width: 100%;  
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  box-sizing: border-box;
}

.gridLayout{   
  display: flex;
  width: 100%;
  flex-direction: column;
  margin: 0; padding: 0;
  align-items: center; /* ให้กล่องบนอยู่กึ่งกลาง */
  overflow-x: hidden;
}
.carBox.left{ 
  max-width: 96%;
  /*min-width: 420px;*/
}
.carBox.right{   
  max-width: 100%;
}
.carBox.left, .carBox.right{ 
  width: 100%;
  padding: 0; margin: 0;
  box-sizing: border-box;
}

.car-detail {
  display: block;
  width: 100%; max-width: 600px;
  margin: 0 auto;
}
.car-detail h2 {
  font-size: calc(1.6rem+0.1vw);
  margin-bottom: 1rem;
  color: #111;
}

.price-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}
.price-box .price {
  width: 100%;
  font-size: calc(30px + 0.1vw);
  color: red; /*#d32f2f;*/
  font-weight: 600;
  border-bottom: none;
  padding: 15px 0 0 0;
}
.price-box .installment {
  width: 100%;
  color: #555;
  font-weight: 400;  
  font-size: calc(13px + 0.1vw);
  vertical-align: bottom; line-height: 1.5;
  padding: 0; 
}

.car-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.car-spec {
  display: flex;
  width: 100%;
  gap: 5rem;
  font-size: calc(1.1rem + 0.1vw);
  border-bottom: thin solid rgba(228,139,147,0.3); 
  padding-block: 0.8rem; /* ช่องว่างบน–ล่างเท่ากัน */
}
.car-spec .label {
  font-weight: 500;
  min-width: 85px;
}
.car-spec .value {
  color: #333;
  font-weight: 500;
}
.car-spec.spec-mile {
  border-top: thin solid rgba(228,139,147,0.3);
  margin-top: 0.6rem;
}

.descContent {  
  display: grid;
  column-gap: 20px; /* ระยะห่างระหว่างคอลัมน์ */
  width: 100%; 
}
/* แบบที่ 3: จอเล็กที่สุด */
.descContent {
  grid-template-columns: 1fr;
}
.line-hide {visibility: visible;}
/* แบบที่ 2: ขนาดกลาง */
@media (min-width: 600px) {
  .descContent {
    grid-template-columns: 1fr 1fr;
  }
  .descContent .descColumn:first-child {
    grid-column: span 2; /* ให้ box แรกเต็มแถว */
  }
  .line-hide { visibility: visible; }
}
/* แบบที่ 1: หน้าจอกว้าง */
@media (min-width: 900px) {
  .descContent {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));  
  }
  .descContent .descColumn:first-child {
    grid-column: auto; /* กลับคืนปกติ */
  }
  .line-hide { visibility: hidden; }
}

.descColumn {}

/* 📱 Responsive: จัดให้เป็น 1 คอลัมน์ในจอเล็ก */
@media (max-width: 480px) {
  .price-box {
    flex-direction: column;
    font-size: 1.1rem;
  }
}
/*--------------------------------------------------------*/
.line-hide, .line-dash {
  display: block;
  width: 100%;
  height: 4px;
  color: #e48b93; /* ✅ ใช้ currentColor ใน SVG */
  stroke: #703ac1;
  stroke-width: 2;
  stroke-dasharray: 20 2;
  margin: 20px 0;
}

/* Main content */
.main-content, .sidecontents {
  margin-left: 16%; /* Same as the width of the sidenav */
  padding-left: 20px;
  min-height:500px;
  height: auto;
}

#specDetail p { padding: 5px 0; }

.car-btn-contact {
  display: flex;  
  margin: 20px auto; 
  width: fit-content;
  align-content: center;
  flex-direction: row;
}
.btn_contact { 
  color: white; /* White text */
  padding: 5px 15px; /* Some padding */
  font-size: calc(14px + 0.1vw); /* Set a font size */
  cursor: pointer; /* Mouse pointer on hover */
  /*box-shadow: 0px 8px 10px 0px rgba(232,219,209,0.4);*/
  border: none;
  border-radius: 3px;
  vertical-align: middle;
  width: 120px; /*45%;*/
}
.btn_contact.phone{
  color: #173559;
  background-color: #77cdff; /* Blue background */
  border: thin solid #3096f1;
  padding: 6px 5px;
  margin-top: 5px;
  margin-right: 5px;
  text-align: left;
  width: 48%; min-width: 170px; max-width: 200px;
}
.btn_contact.line{
  background-color: #06c755;
  border: thin solid #05b34c;
  padding: 0 5px 0 0;
  margin: 6px auto 0 auto;
  text-align: left;
  width: 48%; min-width: 155px; max-width: 200px;
}
.fa.phone{
  margin-right: 20px;
  width: 28px;
}
.fa.line{
  margin-right: 0px;
}
/* Darker background on mouse-over */
.btn_contact:hover {
  background-color: #811b20;
}
.btn_contact.line:hover {
  background-color: #05b34c;
}
.btn_contact.phone:hover {
  background-color: #3096f1;
}

/* Some media queries for responsiveness */
/* 1 - มือถือจอเล็ก */
@media (max-width: 375px) {}

/* 2 - มือถือจอทั่วไป */
@media (max-width: 425px) {
  .carBox.left{ 
    width: fit-content;
    max-width: auto;
    min-width: auto;
  }
}

/* 3 - มือถือจอใหญ่/Plus */
@media (max-width: 425px) {}

/* 4 - แท็บเล็ตแนวตั้ง */
@media screen and (max-width: 768px) {
  @media (max-width: 619px) {
    ul{
      margin: 0;
      padding: 0;
    }
  }
}

/* 5 - แท็บเล็ตแนวนอน */
@media (max-width: 1024px) {
  @media only screen and (max-width: 890px) {    
    h1{font-size: calc(1.7rem + 0.1vw);}
    h2{font-size: calc(1.5rem + 0.1vw);}
  }
  #container{ margin: 30px 5%; }
  @media only screen and (min-width: 426px) {
    .carBox.left{ 
      max-width: 96%;
      min-width: 420px;
    }
  }
  .carBox.right{ 
    max-width: 100%;
  }
  .carBox.left, .carBox.right{ 
    padding: 0; margin: 0;    box-sizing: border-box;
  }
}

/* 6 - เดสก์ท็อปทั่วไป */
@media (max-width: 1439px) {}

/* 7 - เดสก์ท็อปใหญ่ */
@media screen and (min-width: 1025px) {
  #container{
    margin: 30px 8%;
  }
  .gridLayout{
    display: flex;
    flex-direction: row; 
    width: 100%;
    margin: 0; padding: 0;
    align-items: flex-start; /* ✅ ชิดบน */
    /*box-sizing: border-box;*/
  }
  .carBox.left{  
    max-width: 60%;
    min-width: 420px;
  }
  .carBox.right{
    max-width: 40%;
    min-width: 335px;
    padding: 0 0 0 3%;
    margin: 0 auto;
  }
  .car-btn-contact {
    display: flex;  
    margin: 20px 0; 
    width: fit-content;
    align-content: center;
    flex-direction: row;
  }
  @media only screen and (min-width: 1537px) {    
    #container{ margin: 30px 12.5%; }
  }
}