/* 新增車型預覽，不修改主欄寬度、換行門檻與既有charter.css。 */
.ct-vehicle-preview{display:flex;align-items:center;gap:18px;padding:16px;margin:0 0 22px;background:#fff;border:1px solid var(--ct-line,#dce7e1);border-radius:12px;min-width:0}
.ct-vehicle-preview[hidden],.ct-vehicle-photo[hidden],#ctVehiclePhotoStatus[hidden]{display:none}
.ct-vehicle-photo{display:block;flex:0 0 190px;max-width:42%;border-radius:8px;overflow:hidden;background:#f5f8f6}
.ct-vehicle-photo img{display:block;width:100%;height:118px;object-fit:contain}
.ct-vehicle-copy{min-width:0;flex:1}
.ct-vehicle-label{font-size:12px;color:#698072}
.ct-vehicle-copy h3{font-size:18px;margin:2px 0 6px;overflow-wrap:anywhere}
.ct-vehicle-copy p{font-size:13px;line-height:1.6;margin:4px 0;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:760px){
 .ct-vehicle-preview{gap:12px;padding:12px;margin-bottom:18px}
 .ct-vehicle-photo{flex-basis:104px}
 .ct-vehicle-photo img{height:78px}
 .ct-vehicle-copy h3{font-size:16px;margin-bottom:4px}
 .ct-vehicle-copy p{font-size:var(--ct-mobile-copy-size,13px)}
}
@media(max-width:420px){.ct-vehicle-photo{flex-basis:88px}.ct-vehicle-photo img{height:68px}}
.ct-vehicle-photo{cursor:zoom-in}
.ct-vehicle-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;overflow:auto;border:0;border-radius:14px;padding:20px;color:#30483b;background:#fff}
.ct-vehicle-dialog::backdrop{background:rgba(15,30,22,.72)}
.ct-vehicle-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.ct-vehicle-dialog-head h2{margin:0;font-size:20px}
.ct-vehicle-dialog-head button{flex-shrink:0;padding:8px 14px;border:1px solid #bacdc0;border-radius:6px;background:#f2f6f3;color:#30483b;cursor:pointer;font:inherit}
.ct-vehicle-dialog>img{display:block;width:100%;height:auto;max-height:62vh;object-fit:contain;background:#f6f8f6}
.ct-vehicle-dialog>img[hidden],.ct-vehicle-dialog [hidden]{display:none}
.ct-vehicle-dialog-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7;font-size:14px}
@media(max-width:760px){.ct-vehicle-dialog{padding:14px}.ct-vehicle-dialog-head h2{font-size:17px}.ct-vehicle-dialog-description{font-size:13px}}


@media (max-width:760px){
  body.ct-page .ct-route-grid,
  body.ct-page #ctRecommendations{
    display:flex !important;
    flex-flow:row nowrap !important;
    width:100%;
    max-width:100%;
    min-width:0;
    gap:12px;
    overflow-x:auto !important;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  body.ct-page .ct-route-grid > .ct-route-card,
  body.ct-page #ctRecommendations > .ct-route-card{
    display:flex;
    flex-direction:column;
    flex:0 0 86% !important;
    width:86%;
    max-width:86%;
    min-width:0;
    scroll-snap-align:start;
  }

  body.ct-page .ct-route-grid > .ct-empty,
  body.ct-page #ctRecommendations > p{
    flex:0 0 100%;
  }
}
