/* =====================================================================
   Tabela FIPE — estilos da página (carregado só na rota fipe).
   Paleta do projeto: vermelho #e60028, escuro #050B20.
   ===================================================================== */
.fipe-hero { background: #e60028; color: #fff; padding: 38px 0 30px; }
.fipe-hero .boxcar-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fipe-breadcrumb { font-size: 13px; color: #b9bdc9; margin-bottom: 14px; }
.fipe-breadcrumb a { color: #b9bdc9; text-decoration: none; }
.fipe-breadcrumb a:hover { color: #fff; }
.fipe-breadcrumb strong { color: #fff; }
.fipe-hero-title { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 8px; line-height: 1.15; }
.fipe-hero-subtitle { color: #d7dae2; font-size: 16px; margin: 0 0 22px; max-width: 760px; }
.fipe-hero-subtitle strong { color: #999999; }
.fipe-alert { background: #fff3cd; color: #664d03; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }

/* Form de busca */
.fipe-search { display: flex; flex-wrap: wrap; gap: 12px; background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.fipe-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fipe-field label { font-size: 12px; font-weight: 700; color: #050B20; text-transform: uppercase; }
.fipe-field select { height: 46px; border: 1px solid #ced4da; border-radius: 8px; padding: 0 12px; font-size: 14px; color: #050B20; background: #fff; width: 100%; }
.fipe-field select:disabled { background: #f1f1f3; color: #9aa0ab; }
.fipe-field-submit { flex: 0 0 auto; justify-content: flex-end; }
.fipe-btn { height: 46px; border: 0; border-radius: 8px; background: #212121; color: #fff; font-weight: 700; font-size: 14px; padding: 0 26px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.fipe-btn:hover { background: #c70022; color: #fff; }
.fipe-btn:disabled { background: #c9ccd3; cursor: not-allowed; }
.fipe-btn-outline { background: #fff; color: #e60028; border: 1px solid #e60028; margin-top: 14px; }
.fipe-btn-outline:hover { background: #e60028; color: #fff; }

/* Seções */
.fipe-section { padding: 34px 0; }
.fipe-section-alt { background: #f6f7f9; }
.fipe-section .boxcar-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fipe-section-title { font-size: 22px; font-weight: 800; color: #050B20; margin: 0 0 18px; }

/* Marcas populares */
.fipe-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fipe-brand-card { display: flex; flex-direction: column; gap: 6px; background: #f6f7f9; border: 1px solid #eee; border-radius: 10px; padding: 16px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.fipe-brand-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.10); transform: translateY(-2px); }
.fipe-brand-name { font-weight: 700; color: #050B20; font-size: 15px; }
.fipe-brand-cta { font-size: 13px; color: #e60028; font-weight: 600; }

/* Consultas recentes / SEO */
.fipe-recentes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.fipe-recentes li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.fipe-recentes strong { color: #e60028; white-space: nowrap; }
.fipe-seo-text p { color: #444; font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.fipe-seo-text a { color: #e60028; font-weight: 600; }

/* FAQ */
.fipe-faq-item { background: #fff; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; padding: 0 16px; }
.fipe-faq-item summary { cursor: pointer; font-weight: 700; color: #050B20; padding: 14px 0; font-size: 15px; list-style: none; }
.fipe-faq-item summary::-webkit-details-marker { display: none; }
.fipe-faq-item summary::after { content: "+"; float: right; color: #e60028; font-weight: 800; }
.fipe-faq-item[open] summary::after { content: "−"; }
.fipe-faq-answer { color: #555; font-size: 14px; line-height: 1.6; padding: 0 0 14px; }

/* Detalhe */
.fipe-detail { padding: 28px 0 40px; }
.fipe-detail .boxcar-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.fipe-detail-title { font-size: 26px; font-weight: 800; color: #050B20; margin: 6px 0 20px; }
.fipe-result-card { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; background: #000000; color: #fff; border-radius: 14px; padding: 26px; margin-bottom: 26px; }
.fipe-result-main { display: flex; flex-direction: column; gap: 4px; }
.fipe-result-label { font-size: 13px; color: #c7cad3; text-transform: uppercase; font-weight: 600; }
.fipe-result-price { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.fipe-result-ref { font-size: 13px; color: #c7cad3; margin-top: 4px; }
.fipe-result-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.fipe-result-meta div { display: flex; flex-direction: column; }
.fipe-result-meta span { font-size: 12px; color: #c7cad3; text-transform: uppercase; }
.fipe-result-meta strong { font-size: 16px; color: #fff; }

.fipe-block { margin-bottom: 30px; }
.fipe-block-title { font-size: 19px; font-weight: 800; color: #050B20; margin: 0 0 14px; }
.fipe-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.fipe-table th, .fipe-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #f1f1f1; font-size: 14px; color: #333; }
.fipe-table th { background: #f6f7f9; color: #050B20; font-weight: 700; width: 38%; }
.fipe-table tr:last-child td, .fipe-table tr:last-child th { border-bottom: 0; }
.fipe-muted { color: #777; font-size: 14px; }

/* Versões / anos */
.fipe-versions { display: flex; flex-wrap: wrap; gap: 8px; }
.fipe-version { display: inline-block; background: #fff; border: 1px solid #ddd; border-radius: 20px; padding: 8px 16px; font-size: 13px; color: #050B20; text-decoration: none; }
.fipe-version:hover { border-color: #e60028; color: #e60028; }
.fipe-version.is-current { background: #e60028; color: #fff; border-color: #e60028; }

/* Lista (modelos) */
.fipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.fipe-list-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; text-decoration: none; color: #050B20; font-size: 14px; }
.fipe-list-item:hover { border-color: #e60028; color: #e60028; }
.fipe-list-item i { color: #e60028; }

/* Ofertas (seminovos) */
.fipe-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fipe-offer { display: flex; flex-direction: column; background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; text-decoration: none; color: #050B20; transition: box-shadow .2s; }
.fipe-offer:hover { box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.fipe-offer img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.fipe-offer-title { font-weight: 700; font-size: 14px; padding: 10px 12px 0; }
.fipe-offer-info { font-size: 12px; color: #777; padding: 2px 12px; }
.fipe-offer-price { font-weight: 800; color: #e60028; padding: 4px 12px 12px; }

.fipe-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: #050B20; font-weight: 600; text-decoration: none; }
.fipe-back:hover { color: #e60028; }

@media (max-width: 768px) {
  .fipe-hero-title { font-size: 23px; }
  .fipe-result-price { font-size: 32px; }
  .fipe-field { flex: 1 1 100%; }
}
