
/* Four-column comparison table styles */
.page .container{
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page .container > section{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.compare-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.compare-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  background: #f8f9fa;
  /* border-bottom: 2px solid #e9ecef; */
  font-weight: 600;
  font-size: 14px;
}

.compare-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  /* border-bottom: 1px solid #e9ecef; */
  min-height: 48px;
  align-items: center;
}

.compare-label {
  padding: 12px 16px;
  font-weight: 500;
  font-size: 13px;
  color: #495057;
  background: #f8f9fa;
  border-right: 1px solid #e9ecef;
}

.compare-car {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  color: #212529;
  text-align: center;
  border-right: 1px solid #e9ecef;
}

.compare-value {
  padding: 12px 16px;
  font-weight: 500;
  font-size: 13px;
  color: #495057;
  text-align: center;
  border-right: 1px solid #e9ecef;
}

.compare-value:last-child,
.compare-car:last-child {
  border-right: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Keep all main sections centered within the container on mobile */
  .page .container{
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .page .container > *{ margin-left:auto; margin-right:auto; }

  /* Preserve desktop-style 4-car columns with horizontal scroll */
  .compare-spec-table{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .compare-header-row,
  .compare-spec-row{
    grid-template-columns: minmax(140px, 180px) repeat(4, minmax(160px, 1fr));
    gap: 12px;
    width: max-content;
    padding-bottom: 6px;
  }
  
  .compare-label,
  .compare-car,
  .compare-value {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
  }
  
  .compare-car { background:#f8f9fa; font-weight:600; }
}
/* Metrics-based hero pill */
/* spacing between each "Add a Vehicle" button */
.pill-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;            /* ← space between pills horizontally & vertically */
  justify-content: center; /* center the pills row */
  margin: 40px 0px 50px 0px;
}

/* if your buttons are wrapped in .dropdown */
.pill-row > .dropdown{ display:inline-flex; }  /* keeps pill size intact */

.pill--hero{
  /* your exact numbers */
  max-width: 205px;
  padding: 12px 21px;
  gap: 11px;                   /* space between + and label */
  border-radius: 5px;
  border: 1px solid #4E342E;
  box-shadow: 0px 24px 48px -12px #10182840;
  opacity: 1;
  transform: rotate(0deg);

  /* layout + theme */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--brand);
  font-weight: 500;
  font-size: 17px;
  line-height: 20px;
  cursor: pointer;
}

.pill--hero .pill__plus{
  font-size: 17px;
  line-height: 1;
  color: var(--brand);
}

/* optional: subtle hover without inverting */
.pill-row .pill.pill--hero:hover, .pill__plus:hover,
.pill.pill--hero:hover{
  border-color:#4E342E;                 /* keep brand border */
  background:var(--brand);
  color: #fff;               
  box-shadow:0 28px 56px -14px #10182840;
}

.pill-row .pill.pill--hero:active,
.pill.pill--hero:active{
  transform:translateY(0);
  box-shadow:0 18px 36px -18px #10182840;
}
/* wrapper */
.av{
  position: relative;
  display: inline-block;
  vertical-align: top;
}

/* make the pill full-width inside .av */
.av .pill--hero{
  display: block;
  width: 100%;
}

/* ensure the “＋” inherits current text color on hover/fill */
.pill--hero .pill--plus{ color: currentColor; }

/* dropdown panel — same width as the pill */
.av-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px -12px rgba(16,24,40,.25);
  overflow: hidden;        /* keep caret visible */
  display: none;            /* hidden by default */
  z-index: 50;
}

/* open state */
.av.open .av-panel{ display: block; }

/* rows inside panel */
.av-panel .av-field{
  all: unset;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* label on left */
  width: 100%;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--ink);
  box-sizing: border-box;
}
.av-panel .av-field + .av-field{ border-top: 1px solid var(--line); }
.av-panel .av-field:hover{ background: var(--chip); }

/* label + caret */
.av-field .av-label{ color: var(--muted); font-size: 14px; }
.av-panel .av-field > svg{
  margin-left: auto;   /* push caret to the right edge */
  flex: 0 0 auto;
  display: block;      /* avoid inline baseline gaps */
}

/* Sticky tabs */
/* Sticky tabs — same styling, only layout fixes */
.section-tabs{
  position: sticky; 
  top: 0;
  z-index: 10;
  background: #f5f5f5;              /* match new car detail */
  border: none;                      /* match new car detail (no outer border) */
  border-radius: 7px;
  padding: 12px 0;                   /* match new car detail */
  display: flex;
  align-items: center;
  gap: 0;                            /* keep items flush for dividers */
  flex-wrap: nowrap !important;
  overflow-x: auto;
  white-space: nowrap;
  margin: 19px 0 19px;
  -webkit-overflow-scrolling: touch;
}
.section-tabs::-webkit-scrollbar{ display:none; }

/* Tabs — keep your color, just lock icon+text on one line */
.section-tabs a,
.section-tabs a:link,
.section-tabs a:visited{
  text-decoration: none;
  color: #212121;                 /* match new car detail */
  font-size: 14px;
  font-weight: 500;               /* match new car detail */
  padding: 0 20px;                /* match new car detail */
  border-right: 1px solid #d4d4d4;/* divider like new car detail */
  border-radius: 0;               /* no pill rounding */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
.section-tabs a:last-child{ border-right: none; }

/* Hover keeps your background + color */
.section-tabs a:hover{ color: #000; }

/* Mobile: horizontal scrolling tabs when overflowing */
@media (max-width: 575.98px){
  .section-tabs{
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; /* nicer feel, optional */
  }
  .section-tabs a{
    flex: 0 0 auto;               /* prevent shrinking; enable horizontal flow */
    scroll-snap-align: start;     /* align labels when scrolling */
  }
  .section-tabs{ -ms-overflow-style: none; scrollbar-width: none; }
  .section-tabs::-webkit-scrollbar{ display: none; }
}

/* Override global svg reset only here */
.section-tabs a svg{
  display: inline-block;          /* override any svg {display:block} reset */
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* If you use <ion-icon> inside tabs too */
.section-tabs a ion-icon{
  display: inline-block;
  font-size: 18px;
}

/* Blocks */
.block{margin-bottom:26px}

.block-title{font-size:16px;margin:0 0 10px}
.block-head{
    display: flex;
  align-items: center;        /* NEW: tidy vertical alignment */
  gap: 10px;                  /* unchanged */
} 
.block-head svg{
  padding-bottom: 12px;
}



/* Basic info cards */
.car-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
/* Keep section tabs visible on all device widths */

/* Smooth scroll and anchor offset for sticky headers/tabs */
html{ scroll-behavior: smooth; }
.spec-anchor{ scroll-margin-top: 110px; }
@media (max-width: 1100px){
  .car-grid{grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 820px){
  .car-grid{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 560px){
  .car-grid{grid-template-columns: 1fr;}
}

.car-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 8px 18px -12px rgba(0,0,0,.25);
  overflow:hidden;
}
.car-card .media{
  aspect-ratio: 16/9;
  background:#ddd;
}
.car-card img{width:100%;height:100%;object-fit:cover}
.car-card .body{padding:12px}
.car-card h4{font-size:14px;margin:2px 0}
.car-card .meta{font-size:12px;margin-bottom:6px}
.mini-spec{list-style:none;padding:0;margin:0 0 6px}
.mini-spec li{font-size:12px;margin-bottom:2px}
.price{font-weight:600;margin:8px 0}
.row-like{display:flex;flex-wrap:wrap;gap:6px}
.chip{
  background:var(--chip);border-radius:999px;
  padding:4px 8px;font-size:11px;border:1px solid var(--line)
}
.rating-row{
  display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px
}
.stars{color:#ffb000}
/* --- Car card → row-like (SVG version) --- */

/* kill any old pseudo icons you had */
.car-card .row-like li::before{ content:none !important; }

/* layout + text */
.car-card .row-like ul{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.car-card .row-like li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  color:var(--muted);
  line-height:1.25;
}

/* the inline SVG badges on the left */
.car-card .row-like .icon{
  flex:0 0 28px;
  width:28px; height:28px;
  display:inline-block;
  color:var(--muted);               /* make SVG inherit this */
}

/* make strokes/fills follow the currentColor */
.car-card .row-like .icon [stroke] { stroke: currentColor; }
.car-card .row-like .icon text,
.car-card .row-like .icon [fill]:not([fill="none"]) { fill: currentColor; }

/* star row */
.car-card .row-like .stars{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.car-card .row-like .stars svg{ width:20px; height:20px; }
.car-card .row-like .stars svg path{
  fill:#FFC107;                    /* gold stars */
  stroke:#FFC107;
}

/* spacing for the numeric rating (uses your .muted) */
.car-card .row-like .muted{ margin-left:10px; }

/* FAQ */
.faq{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:8px;
  overflow:hidden;
}
.faq > summary{
  list-style:none;padding:12px 14px;cursor:pointer;font-weight:500;
}
.faq > summary::-webkit-details-marker{display:none}
.faq-body{padding:0 14px 12px;border-top:1px solid var(--line);color:var(--muted)}

/* === Compare page FAQ – match design === */
.faqs{ background:#f5f5f5; border-radius:8px; padding: 8px 8px 12px; }
.faqs .faq{
  background: transparent;      /* no card on the question row */
  border: none;                 /* remove card border at details root */ /* separator for each FAQ */
  border-radius: 6px;
  margin-bottom:12px;
  overflow: visible;
  padding-bottom: 10px;         /* space before the divider */
}
.faqs .faq > summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 20px;
  font-weight:400;              /* updated per request */
  font-size:15px;               /* updated per request */
  color:#212121;
  cursor:pointer;
  background: transparent;      /* no card background on question */
}
.faqs .faq > summary::-webkit-details-marker{ display:none; }
.faqs .faq > summary::before{
  content:'\203A'; /* single right-pointing angle quotation mark */
  display:inline-block;
  font-size:18px;
  color:#757575;
  line-height:1;
  transform-origin:center;
  transition:transform .2s ease;
}
.faqs .faq[open] > summary::before{ transform: rotate(90deg); }
.faqs .faq .faq-body{
  /* start collapsed */
  max-height: 0;               /* use max-height for CSS-only animation */
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  padding: 0 20px;             /* animate padding in */
  margin-top: 0;
  border: 1px solid transparent;   /* fade border in */
  border-radius:6px;
  color:#505050;
  font-size:15px;               /* updated per request */
  font-weight:400;              /* explicit weight */
  background:#ffffff;
  transition: max-height .32s ease, opacity .22s ease, transform .22s ease, padding .22s ease, margin-top .22s ease, border-color .22s ease;
  will-change: max-height, opacity, transform;
}
.faqs .faq[open] .faq-body{
  max-height: 600px;           /* large enough to reveal expected content */
  opacity: 1;
  transform: translateY(0);
  padding:14px 20px 16px;
  margin-top:8px;               /* gap between question and answer card */
  border-color: #e5e5e5;        /* show the card border */
}

/* Small helpers */
.s{font-size:12px}
/* ============= Popular Comparisons ============= */
.popular-comparisons{
  background:#fff;
  padding: 8px 0 32px;
}

.popular-comparisons .pc-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.popular-comparisons .pc-title{
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 6px 0 18px;
}

/* Grid */
.popular-comparisons .pc-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 900px){
  .popular-comparisons .pc-grid{
    grid-template-columns: 1fr 1fr; /* two cards side-by-side on desktop */
    gap: 22px;
  }
}

/* Card */
.popular-comparisons .pc-card{
  background: var(--neutral-light);
  border-radius: 14px;
  border: 1px solid #ececec;
  box-shadow: 0 10px 28px -14px rgba(0,0,0,.25);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.popular-comparisons .pc-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.3);
}

/* Media (split) */
.popular-comparisons .pc-media{
  position: relative;
  display: flex;
  overflow: hidden;
  background: #f5f5f5;
}

.popular-comparisons .pc-half{
  width: 50%;
  border-right: 1px solid #eee;
}
.popular-comparisons .pc-half:last-child{
  border-right: 0;
}

.popular-comparisons .pc-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;        /* keeps the panoramic band */
}

/* VS badge */
.popular-comparisons .pc-vs{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: var(--primary-color);
  color: var(--text-on-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Body */
.popular-comparisons .pc-body{
  padding: 14px 16px 16px;
}

.popular-comparisons .pc-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.popular-comparisons .pc-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.popular-comparisons .pc-price{
  font-size: 13px;
  color: var(--neutral-dark);
}

/* CTA */
.popular-comparisons .pc-btn{
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all .18s ease-in-out;
  background: transparent;
}

.popular-comparisons .pc-btn:hover{
  background: var(--primary-color);
  color: var(--text-on-primary);
}

