/* Styles of resources/views/collections/vehicle_pages/vehicle_page.antlers.html, moved out of the template so the browser
   caches them and the design token guards read them. Values come from the
   tokens in style.css :root. */

/* ── HERO ── */
.mp-hero {
    position: relative;
    height: 460px;
    margin-top: var(--r2e-space-16);
}
/* The photograph is a real img (.hero-photo, style.css) cropped on this focal point. */
.mp-hero > .hero-photo { object-position: center; }
.mp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(var(--bs-secondary-rgb), 0.88) 0%,
        rgba(var(--bs-secondary-rgb), 0.50) 55%,
        rgba(var(--bs-secondary-rgb), 0.18) 100%
    );
}
.mp-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}
.mp-breadcrumb .breadcrumb-item a { color:rgba(255,255,255,0.75); text-decoration:none; font-size:var(--r2e-text-sm); }
.mp-breadcrumb .breadcrumb-item.active { color:rgba(255,255,255,0.5); font-size:var(--r2e-text-sm); }
.mp-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color:rgba(255,255,255,0.35); }

/* Hero search bar */
.hero-search {
    background: white;
    border-radius: var(--r2e-radius-lg);
    padding: var(--r2e-space-4) var(--r2e-space-6);
    display: flex;
    align-items: center;
    gap: var(--r2e-space-3);
    flex-wrap: wrap;
    box-shadow: var(--r2e-shadow-lg);
    max-width: 620px;
}
.hero-search .hs-group { flex:1; min-width:140px; }
.hero-search label { font-size:var(--r2e-text-xs); font-weight:700; text-transform:uppercase; letter-spacing:var(--r2e-tracking-caps); color:var(--bs-secondary); display:block; margin-bottom:var(--r2e-space-1); }
.hero-search .form-control,
.hero-search .form-select { border:none; padding:var(--r2e-space-1) 0; font-size:var(--r2e-text-sm); font-weight:500; color:var(--bs-secondary); background:transparent; background-image:none; }
.hero-search .form-control:focus,
.hero-search .form-select:focus { box-shadow:none; outline:none; }
.hero-search .hs-divider { width:1px; height:34px; background:var(--bs-gray-200); flex-shrink:0; }

/* ── TRUST BAR ── */
.trust-bar { background:var(--bs-secondary); padding:var(--r2e-space-3) 0; }
.trust-item { display:flex; align-items:center; gap:var(--r2e-space-2); color:rgba(255,255,255,0.9); font-size:var(--r2e-text-xs); font-weight:500; }
.trust-item i { color:var(--bs-danger); }

/* ── INTRO SECTION ── */
.mp-intro { background:var(--bs-gray-100); border-bottom:1px solid var(--bs-gray-100); }
.mp-intro-stat { text-align:center; }
.mp-intro-stat .stat-num { font-size:var(--r2e-text-xl); font-weight:700; color:var(--bs-secondary); line-height:1; }
.mp-intro-stat .stat-lbl { font-size:var(--r2e-text-xs); color:var(--r2e-ink-muted); margin-top:var(--r2e-space-1); }

/* ── VEHICLE CARDS ── */
.card-img-wrap {
    position: relative;
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}
.position-sleep-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 50;
}

/* ── SEO CONTENT ── */
.mp-content { font-size:var(--r2e-text-base); line-height:var(--r2e-leading-body); color:var(--r2e-ink-muted); }
.mp-content h2 { font-size:var(--r2e-text-xl); font-weight:700; color:var(--bs-secondary); margin-top:var(--r2e-space-8); margin-bottom:var(--r2e-space-4); padding-bottom:var(--r2e-space-2); border-bottom:2px solid var(--bs-gray-100); }
.mp-content h2:first-child { margin-top:0; }
.mp-content h3 { font-size:var(--r2e-text-base); font-weight:600; color:var(--bs-secondary); margin-top:var(--r2e-space-6); margin-bottom:var(--r2e-space-2); }
.mp-content p { margin-bottom:var(--r2e-space-4); }
.mp-content ul, .mp-content ol { margin-bottom:var(--r2e-space-4); padding-left:var(--r2e-space-6); }
.mp-content li { margin-bottom:var(--r2e-space-1); }
.mp-content strong { color:var(--bs-secondary); font-weight:600; }
.mp-content a { color:var(--bs-primary); text-decoration:underline; text-underline-offset:3px; }

.mp-infobox { background:rgba(var(--bs-primary-rgb), 0.06); border-left:4px solid var(--bs-primary); border-radius:0 var(--r2e-radius) var(--r2e-radius) 0; padding:var(--r2e-space-4) var(--r2e-space-6); margin:var(--r2e-space-6) 0; }
.mp-infobox.warning { background:rgba(var(--bs-warning-rgb), 0.1); border-left-color:var(--bs-warning); }
.mp-infobox-title { font-size:var(--r2e-text-xs); font-weight:700; text-transform:uppercase; letter-spacing:var(--r2e-tracking-caps); color:var(--bs-secondary); margin-bottom:var(--r2e-space-1); display:flex; align-items:center; gap:var(--r2e-space-2); }

.mp-img { border-radius:var(--r2e-radius); width:100%; height:auto; margin:var(--r2e-space-6) 0 var(--r2e-space-1); display:block; }
.mp-img-caption { font-size:var(--r2e-text-xs); color:var(--r2e-ink-muted); font-style:italic; text-align:center; margin-bottom:var(--r2e-space-6); }

/* Camping kit comparison table */
.kit-table { width:100%; border-collapse:collapse; font-size:var(--r2e-text-sm); margin:var(--r2e-space-4) 0; }
.kit-table th { background:var(--bs-secondary); color:white; padding:var(--r2e-space-2) var(--r2e-space-4); text-align:left; font-weight:600; }
.kit-table td { padding:var(--r2e-space-2) var(--r2e-space-4); border-bottom:1px solid var(--bs-gray-100); color:var(--r2e-ink-muted); }
.kit-table tr:last-child td { border-bottom:none; }
.kit-table tr:nth-child(even) td { background:var(--bs-gray-100); }
.kit-table .check { color:var(--bs-primary); font-weight:700; }
.kit-table .dash { color:var(--bs-gray-300); }

/* ── SIDEBAR ── */

.mp-season-row { display:flex; align-items:center; padding:var(--r2e-space-2) var(--r2e-space-4); border-bottom:1px solid var(--bs-gray-200); font-size:var(--r2e-text-sm); }
.mp-season-row:last-child { border-bottom:none; }
.season-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; margin-right:var(--r2e-space-3); }
.season-name { flex:1; font-weight:500; color:var(--bs-secondary); }
.season-period { color:var(--r2e-ink-muted); font-size:var(--r2e-text-xs); }
.season-price { font-weight:600; color:var(--bs-secondary); margin-left:var(--r2e-space-2); font-size:var(--r2e-text-xs); }

.mp-stat-row { display:flex; justify-content:space-between; align-items:center; padding:var(--r2e-space-2) var(--r2e-space-4); border-bottom:1px solid var(--bs-gray-200); font-size:var(--r2e-text-sm); }
.mp-stat-row:last-child { border-bottom:none; }
.mp-stat-lbl { color:var(--r2e-ink-muted); }
.mp-stat-val { font-weight:600; color:var(--bs-secondary); }

.mp-blog-link { border-left:3px solid var(--bs-primary); padding:var(--r2e-space-3) var(--r2e-space-4); background:rgba(var(--bs-primary-rgb), 0.04); border-radius:0 var(--r2e-radius) var(--r2e-radius) 0; font-size:var(--r2e-text-sm); }
.mp-blog-link a { color:var(--bs-primary); font-weight:600; text-decoration:none; }
.mp-blog-link a:hover { color:var(--bs-secondary); }

/* ── FAQ details/summary natifs ── */
.mp-faq { display: flex; flex-direction: column; gap: var(--r2e-space-2); }
.mp-faq details { background: var(--bs-gray-100); border: 1px solid var(--bs-gray-100); border-radius: var(--r2e-radius); overflow: hidden; }
.mp-faq summary { list-style: none; cursor: pointer; padding: var(--r2e-space-4) var(--r2e-space-12) var(--r2e-space-4) var(--r2e-space-4); font-size: var(--r2e-text-sm); font-weight: 600; color: var(--bs-secondary); position: relative; user-select: none; }
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary::after { content: '\f078'; font-family: var(--r2e-icon-font); font-weight: 700; font-size: var(--r2e-text-xs); color: var(--bs-primary); position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); transition: transform 0.2s ease; }
.mp-faq details[open] summary { background: rgba(var(--bs-primary-rgb), 0.07); }
.mp-faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.mp-faq .mp-faq-body { font-size: var(--r2e-text-sm); color: var(--r2e-ink-muted); line-height: var(--r2e-leading-body); padding: var(--r2e-space-3) var(--r2e-space-4) var(--r2e-space-4); border-top: 1px solid var(--bs-gray-100); }

/* ── REVIEWS ── */
.review-card { background:white; border:1px solid var(--bs-gray-200); border-radius:var(--r2e-radius); padding:var(--r2e-space-4); }
.review-card .reviewer { font-weight:600; color:var(--bs-secondary); font-size:var(--r2e-text-sm); }
.review-card .review-date { font-size:var(--r2e-text-xs); color:var(--r2e-ink-muted); }
.review-card .review-text { font-size:var(--r2e-text-sm); color:var(--r2e-ink-muted); line-height:var(--r2e-leading-body); margin:0; }
.review-stars { color:var(--bs-warning); font-size:var(--r2e-text-xs); }

/* ── RELATED DEST CARDS ── */
.dest-card { border:none; border-radius:var(--r2e-radius); overflow:hidden; box-shadow:var(--r2e-shadow); transition:transform 0.2s; }
.dest-card:hover { transform:translateY(-3px); }
.dest-card .card-img-top { height:130px; object-fit:cover; }
.dest-card .card-title { font-size:var(--r2e-text-sm); font-weight:600; color:var(--bs-secondary); margin-bottom:var(--r2e-space-1); }
/* A guide's title is shown whole, wrapped on up to three lines, never cut in the template. */
.dest-card .dest-card-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; line-height:var(--r2e-leading-snug); }
.dest-card .card-text { font-size:var(--r2e-text-xs); color:var(--r2e-ink-muted); margin:0; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .trust-bar .row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start !important; scrollbar-width: none; padding-bottom: var(--r2e-space-1); }
    .trust-bar .row::-webkit-scrollbar { display: none; }
    .trust-bar .col-auto { flex-shrink: 0; }
}
@media (max-width: 575px) {
    .trust-bar { padding: var(--r2e-space-3) 0; }
    .trust-bar .row { flex-wrap: wrap; overflow-x: visible; justify-content: flex-start !important; }
    .trust-bar .col-auto { width: 50%; padding: var(--r2e-space-1) var(--r2e-space-4); border: none !important; }
}
@media (max-width: 767px) {
    .mp-hero { height: auto; min-height: 360px; }
}
@media (max-width: 575px) {
    .hero-search { flex-direction: column; align-items: stretch; gap: 0; padding: var(--r2e-space-4); }
    .hero-search .hs-group { min-width: 0; width: 100%; border-bottom: 1px solid var(--bs-gray-200); padding-bottom: var(--r2e-space-2); margin-bottom: var(--r2e-space-2); }
    .hero-search .hs-divider { display: none; }
    .hero-search > a.btn { width: 100%; padding-top: var(--r2e-space-3); padding-bottom: var(--r2e-space-3); text-align: center; margin-top: var(--r2e-space-2); }
}

/* style.css overrides .text-muted to rgba(white,0.75) for hero sections.
   Restore legible grey for page body sections. */
.text-muted { color: var(--r2e-ink-muted) !important; }

/* Logo, larger on mobile (style.css sets 30px for navbar-expand-xl mobile) */
@media (max-width: 1199.98px) {
    .navbar-expand-xl .navbar-brand .navbar-brand-item { height: 42px; }
}
