/* Shared density and section-specific layouts. Keep photographs and type readable. */
:root { --ux-gap: 12px; --ux-control: 44px; }
.mobile-menu, .mobile-menu-panel, .mobile-menu::backdrop { transition: none; }
[hidden] { display: none !important; }
.money-input { position: relative; display: block; min-width: 0; width: 100%; }
.money-input input[type=text] {
  box-sizing: border-box; width: 100%; min-width: 0; height: 44px;
  padding: 9px 26px 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.money-currency { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-pair > .money-input { flex: 1; }
.catalog-price-values label > span:first-child { display: none; }
.catalog-price-values .money-input { position: relative; inset: auto; display: block; }
.catalog-price-values .money-currency { inset: 50% 10px auto auto; display: block; }
.price-unit-full { display: inline !important; }
.price-unit-short { display: none !important; }
.card-price { font-variant-numeric: tabular-nums; }
.favorite-button, .detail-favorite {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 11px; border-radius: 50%; line-height: 1;
}
.favorite-button svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-button.saved svg { fill: currentColor; }
/* The section title and its actions replace the repeated marketing heading. */
.search-page > .page-heading { display: none; }
.search-page > .catalog { padding-top: 20px; }
.section-line { gap: 12px; align-items: center; margin-bottom: 12px; padding-block: 10px; }
#catalog-title { margin: 0; font: 730 clamp(26px, 3vw, 36px)/1.15 var(--heading); }
#results-count { min-height: 18px; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.catalog-actions .button { min-height: 44px; padding: 9px 14px; font-size: 16px; font-weight: 700; }
.catalog-actions #save-search { width: auto; }
#mobile-filters { display: inline-flex; color: var(--burgundy); border-color: var(--burgundy); }
#share-search { font-size: 14px; }
.catalog-layout { display: block; }
.results-toolbar { justify-content: flex-end; margin: 8px 0; }
.market-section { display: flex; align-items: center; gap: 10px; padding-block: 12px 0; }
.market-heading { display: flex; flex: none; align-items: center; gap: 10px; margin: 0; }
.market-heading h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.market-grid { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.search-page .market-tile { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; min-height: 40px; padding: 7px 12px; border-radius: 8px; }
.search-page .market-tile .market-icon, .search-page .market-tile .market-copy small, .search-page .market-tile .market-meta { display: none; }
.search-page .market-tile .market-copy { padding: 0; }
.market-tile .market-copy strong { font-size: 15px; }
.market-tile .market-meta { padding: 0; display: block; }
.market-check { width: 18px; height: 18px; font-size: 13px; background: none; }
.fx-strip { padding-block: 5px; font-size: 12px; }
.fx-inner { min-height: 22px; gap: 12px; flex-wrap: nowrap; }
.fx-values { display: flex; gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
.fx-values::-webkit-scrollbar { display: none; }
html[data-view=favorites] .fx-strip,
html[data-view=compare] .fx-strip,
html[data-view=searches] .fx-strip { display: none; }
.search-page .filter-panel form { padding: 12px 14px; }
.search-page .filter-panel:not(.open) form > :not(.filter-primary) { display: none; }
.filter-heading { margin-bottom: 8px; }
.filter-heading h3 { font-size: 16px; margin: 0; }
.filter-primary { gap: 10px; }
.filter-primary label, .catalog-filter-row > label { gap: 5px; }
.filter-footer { margin-top: 10px; }
.filter-extra { margin-top: 10px; padding-top: 8px; }
.filter-extra > summary { min-height: 32px; font-weight: 650; }
.filter-extra-fields, .catalog-extra-fields { margin-top: 10px; gap: 12px; }
:is(.browse-filters,.filter-panel) .filter-group { margin: 0; padding: 10px; }
:is(.browse-filters,.filter-panel) .filter-group-fields { gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); }
:is(.browse-filters,.filter-panel) .filter-parameter { padding: 8px; gap: 5px; min-height: 0; }
:is(.browse-filters,.filter-panel) .body-filter { grid-column: auto; }
:is(.browse-filters,.filter-panel) .body-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
:is(.browse-filters,.filter-panel) .body-choice { min-height: 44px; padding: 4px; font-size: 13px; gap: 3px; }
:is(.browse-filters,.filter-panel) .body-choice svg { width: 32px; height: 18px; }
body.filters-open { overflow: hidden; }
.search-page .filter-panel.open {
  display: block; position: fixed; z-index: 1050; inset: 82px 20px 20px;
  width: min(960px,calc(100% - 40px)); max-width: none; margin-inline: auto;
  overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); box-shadow: 0 12px 80px #26222055;
  height: auto; max-height: calc(100dvh - 102px);
}
.search-page .filter-panel.open form { border: 0; padding: 18px; }
.filter-panel.open .filter-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.search-page .filter-panel.open form > :not(.filter-primary) { display: revert; }
.search-page .filter-panel.open .filter-heading { display: flex !important; align-items: center; gap: 10px; }
.filter-panel.open .filter-heading h3 { margin-right: auto; }
html[data-view=favorites] .filter-panel:not(.open) { display: none !important; }
html[data-view=compare] .catalog-layout { display: block; }
html[data-view=compare] .results-toolbar,
html[data-view=compare] #active-filters { display: none; }
.cards { gap: 16px; }
.card-content { padding: 12px; }
.card-title { font-size: 22px; line-height: 1.15; }
.card-subtitle { margin: 4px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.card .destination-estimate { margin: 6px 0; padding: 8px; }
.listing-price-label { font-size: 12px; line-height: 1.2; }
.card .card-price { font-size: 25px; line-height: 1.15; margin-block: 3px; }
.card-facts { gap: 4px; margin: 5px 0; }
.search-page .card-facts { min-height: 0; }
.card-facts span { padding: 2px 4px; font-size: 12px; line-height: 1.2; }
.card-engine { font-size: 13px; margin: 3px 0; line-height: 1.25; }
.card-bottom { margin-top: 6px; padding-top: 4px; gap: 6px; }
.card-date { font-size: 12px; }
.card-bottom .compare-button { min-height: 44px; padding: 4px 8px; font-size: 13px; }
.favorite-editor { margin-top: 6px; padding: 0; border: 0; display: block; }
.favorite-editor summary { cursor: pointer; min-height: 40px; padding-top: 8px; font-size: 14px; font-weight: 650; color: var(--burgundy); }
.favorite-editor label { display: grid; margin: 8px 0; gap: 4px; }
.favorite-editor:not([open]) > :not(summary) { display: none; }
.saved-search-list .saved-search-name { display: grid; gap: 5px; }
.saved-search-name > span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.saved-search-name .saved-search-count { font-weight: 650; color: var(--ink); }
.saved-search-list li { gap: 10px; padding: 12px 14px; }
.compare-mobile { display: none; }
.compare-table-wrap { width: 100%; }
.compare-table { min-width: 0; width: 100%; }
.compare-table th { width: 180px; }
.compare-table td { min-width: 0; overflow-wrap: anywhere; }
.compare-table thead td img { aspect-ratio: 3/2; object-fit: cover; }
.compare-mode { margin: 0 0 12px; min-height: 44px; }
.compare-mode label { font-size: 15px; }
.filter-market-picker > div { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-market-picker button { min-height: 44px; padding: 6px 12px; }
.filter-market-picker button[aria-pressed=true] { background: var(--accent); border-color: var(--mint-dark); }
.compare-dock { bottom: max(12px,env(safe-area-inset-bottom)); padding: 7px 10px; gap: 10px; }
body:has(.compare-dock:not([hidden])) { padding-bottom: 82px; }
/* Catalogue density retains the existing scenes, cars and transparent signs. */
.browse-heading { padding-block: 22px 16px; }
.browse-heading h1 { font-size: clamp(28px,3vw,40px); }
.catalog-guide { margin-bottom: 14px; }
.guide-launch { padding: 12px 14px; gap: 10px; }
.guide-launch strong { font-size: 22px; }
.catalog-filters { padding: 14px; }
.catalog-filter-row { gap: 12px; }
.catalog-mode-row { margin-top: 10px; gap: 10px; }
.catalog-popularity { min-width: 0; }
.catalog-popularity .segmented { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.catalog-popularity .segmented label { min-width: 0; }
.catalog-popularity .segmented span { width: 100%; text-align: center; box-sizing: border-box; }
#catalog-search { justify-content: center; font-size: 16px; font-weight: 750; }
.catalog-extra > summary { min-height: 36px; }
.catalog-extra-fields > .origin-filter { padding: 0; margin: 0; min-height: 32px; }
.catalog-countries { margin: 0; }
.catalog-country-buttons label { min-height: 40px; }
.taxonomy-copy { padding: 10px; }
.taxonomy-copy h3 { font-size: 20px; line-height: 1.15; margin-bottom: 4px; }
.taxonomy-copy p { font-size: 13px; line-height: 1.25; margin: 0 0 5px; font-variant-numeric: tabular-nums; }
.taxonomy-copy p span { display: block; font-size: 12px; }
.taxonomy-copy strong { white-space: normal; font-size: clamp(14px,5vw,20px); line-height: 1.2; }
.taxonomy-actions { display: flex; flex-wrap: nowrap; padding: 0 8px 8px; gap: 4px; align-items: center; }
.taxonomy-actions :is(button,a) { width: auto; min-height: 44px; padding: 6px; font-size: 14px; white-space: nowrap; justify-content: center; }
.taxonomy-actions > a { flex: 1; border-top: 0; }
.taxonomy-actions .model-toggle { flex: 1; margin: 0; }
.catalog-discover { display: none !important; }
.guide-stage { min-height: 0; }
.guide-actions { margin-top: 12px; padding-top: 12px; }
.guide-actions .guide-apply { white-space: normal; }
/* Home: a complete vehicle, equal-height facts, two explicit entrances. */
.home-hero { gap: 32px; padding-top: 30px; }
.home-hero h1 { font-size: clamp(36px,3.5vw,56px); line-height: 1.04; }
.home-intro { margin-top: 14px; }
.home-hero-art { aspect-ratio: 3/2; }
.home-hero-art img { width: 100%; height: 100%; object-fit: contain; }
.home-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; align-items: stretch; }
.home-actions .button { font-size: 15px; padding: 10px 12px; width: auto; text-align: left; height: 100%; box-sizing: border-box; }
.home-actions small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.home-search { padding: 14px; }
.home-search-fields { gap: 10px; }
.home-search .money-input input { background: var(--surface); }
.home-route ol { padding: 18px; border-radius: 14px; background: var(--accent); gap: 14px; }
.home-route > div > p { max-width: 48ch; color: var(--muted); }
.home-route .button { font-weight: 750; }
.home-models header { flex-wrap: wrap; gap: 10px; align-items: center; }
.home-models header h2 { margin-right: auto; }
.carousel-pause { font-size: 14px; min-height: 44px; }
/* Guide navigation is available before the long copy and again at the end. */
.ar-controls-top { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0; }
.ar-controls-top :is(a,button), .ar-controls :is(a,button) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 10px 14px; font-size: 16px; }
.ar-controls { align-items: stretch; }
.ar-controls .ar-final { max-width: none; }
.ar-controls .ar-final, .ar-controls-top .ar-final { min-height: 44px; padding: 10px 14px; font-size: 16px; }
.ar-controls:has(.ar-final) { flex-direction: row; align-items: stretch; }
.ar-controls .ar-final { width: auto; flex: 1; }
/* Footer identity and navigation have independent rows. */
.footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-block: 28px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand .wordmark { display: block; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; font-size: 16px; font-weight: 650; }
.prose { padding-top: 24px; }
.prose details { margin: 14px 0; }
.prose summary { cursor: pointer; min-height: 44px; font-weight: 650; }
.analytics-choice { max-width: min(440px,calc(100vw - 24px)); padding: 12px; font-size: 14px; }
.analytics-choice p { margin-bottom: 10px; }
.analytics-actions { flex-wrap: nowrap; gap: 8px; }
.analytics-actions button { flex: 1; min-height: 44px; padding: 8px 10px; font-weight: 700; line-height: 1.2; }
@media (max-width:760px) {
  .section-line { align-items: start; flex-direction: column; gap: 8px; }
  #catalog-title { font-size: 27px; }
  .catalog-actions { width: 100%; }
  .catalog-actions #save-search { flex: 1; }
  #share-search { width: 44px; height: 44px; overflow: hidden; font-size: 0; padding: 0; }
  #share-search::before { content: "↗"; font-size: 22px; }
  #mobile-filters { min-width: 110px; justify-content: center; }
  .search-page > .catalog { padding-top: 14px; }
  .market-section { gap: 6px; align-items: center; padding-block: 8px 0; }
  .market-heading h2 { display: none; }
  .market-heading #all-markets { font-size: 13px; min-height: 44px; }
  .search-page .market-tile { min-height: 44px; padding: 5px 8px; gap: 3px; }
  .market-tile .market-copy strong { font-size: 14px; }
  .market-grid { flex-wrap: nowrap; gap: 4px; }
  .market-check { display: none; }
  .market-tile[aria-pressed=true] { border-color: var(--mint-dark); background: var(--accent); }
  .fx-inner { gap: 8px; }
  .fx-source { font-size: 10px; white-space: nowrap; }
  .fx-values { gap: 10px; font-size: 11px; }
  .fx-info > summary { font-size: 0; width: 18px; }
  .fx-info > summary::after { content: "ⓘ"; font-size: 16px; }
  .cards { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .card .card-content { padding: 8px 10px; }
  .search-page .card-title { font-size: 20px; line-height: 1.1; }
  .card .destination-estimate { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 2px 8px; margin: 4px 0; }
  .card .listing-price-label { grid-column: 1; font-size: 11px; }
  .card .card-price { grid-column: 1; font-size: 24px; margin: 2px 0 0; }
  .card .estimate-details { grid-column: 2; grid-row: 1/3; margin: 0; align-self: center; }
  .card .estimate-details summary { min-height: 44px; display: flex; align-items: center; font-size: 12px; }
  .card .estimate-details[open] { grid-column: 1/-1; grid-row: 3; }
  .card .card-facts { margin: 4px 0; }
  .search-page .card-facts span { padding: 2px 4px; font-size: 12px; }
  .card .card-engine { margin: 0; font-size: 12px; line-height: 1.2; }
  .card .card-bottom { margin-top: 0; padding-top: 0; }
  .card-subtitle { display: none; }
  .card-date { font-size: 11px; }
  .compare-table { display: none; }
  .compare-mobile { display: block; }
  .compare-pair-picker, .comparison-head, .comparison-row > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .compare-pair-picker { margin-bottom: 12px; }
  .compare-pair-picker label { min-width: 0; font-size: 13px; }
  .compare-pair-picker select { width: 100%; min-height: 44px; min-width: 0; font-size: 16px; }
  .comparison-head > div { display: grid; align-content: start; gap: 6px; min-width: 0; }
  .comparison-head img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; }
  .comparison-head a { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
  .comparison-head strong { font-size: 19px; white-space: nowrap; }
  .comparison-head button { min-height: 44px; text-align: left; color: var(--muted); }
  .comparison-row { padding: 9px 0; border-top: 1px solid var(--line); }
  .comparison-row h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
  .comparison-row p { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
  .comparison-row:first-of-type { background: var(--accent); padding: 10px; margin-inline: -10px; border-radius: 8px; }
  .compare-dock { width: min(360px,calc(100% - 24px)); box-sizing: border-box; gap: 6px; }
  .compare-dock span { min-width: 0; font-size: 12px; }
  .compare-dock .button { min-height: 44px; padding: 8px 10px; }
  .search-page .filter-panel.open { inset: 72px 8px 8px; width: calc(100% - 16px); max-height: calc(100dvh - 80px); }
  .search-page .filter-panel.open form { padding: 12px; }
  .filter-primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :is(.browse-filters,.filter-panel) .filter-group-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :is(.browse-filters,.filter-panel) .body-filter { grid-column: 1/-1; }
  :is(.browse-filters,.filter-panel) .body-choice { flex-direction: row; }
  .catalog-filter-row { gap: 8px; }
  .catalog-mode-row { gap: 8px; }
  .catalog-mode-row .catalog-popularity { flex: 1 1 100%; width: 100%; }
  .catalog-popularity .segmented span { font-size: 14px; padding-inline: 6px; }
  .catalog-extra-fields { gap: 10px; }
  .catalog-filter-actions { margin-top: 8px; }
  .taxonomy-copy { padding: 8px; }
  .taxonomy-copy h3 { font-size: 18px; }
  .taxonomy-copy p { font-size: 13px; white-space: nowrap; }
  .taxonomy-copy p span { font-size: 11px; }
  .taxonomy-copy strong { font-size: 15px; }
  .taxonomy-actions { padding: 0 4px 4px; gap: 0; }
  .taxonomy-actions :is(button,a) { padding: 4px; font-size: 12px; }
  .taxonomy-media:has(.taxonomy-logo) { min-height: 132px; }
  .guide-launch { padding: 12px; gap: 8px; }
  .guide-launch strong { font-size: 20px; }
  .guide-launch small { font-size: 13px; }
  .guide-panel { padding: 14px 12px; }
  .guide-stage { gap: 8px; }
  .guide-preview { height: 100px; }
  .guide-cloud { gap: 8px; }
  .guide-tag { min-height: 44px; padding: 8px 10px; }
  .guide-actions { gap: 8px; }
  .guide-actions .guide-apply { width: 100%; justify-content: center; }
  .home-hero { padding-top: 24px; }
  .home-hero h1 { font-size: 37px; }
  .home-intro { font-size: 16px; }
  .home-actions .button { font-size: 14px; padding: 8px; }
  .home-actions small { font-size: 12px; line-height: 1.25; }
  .home-facts { gap: 8px; align-items: stretch; }
  .home-facts > div, .home-facts > div:first-child { display: flex; align-items: center; gap: 8px; min-height: 64px; box-sizing: border-box; padding: 10px 12px; }
  .home-facts > div strong { font-size: 24px; line-height: 1; margin: 0; }
  .home-facts > div p { font-size: 12px; line-height: 1.2; margin: 0; }
  .home-facts > div:not(:first-child) { min-height: 64px; }
  .home-route ol { padding: 14px; }
  .home-models header .home-catalog-link { display: none; }
  .home-models h2 { font-size: 27px; }
  .footer { display: grid; gap: 18px; padding-block: 24px; }
  .footer-brand { display: grid; }
  .footer-links { display: grid; gap: 6px; }
  .footer-links a, .footer-links button { min-height: 40px; font-size: 15px; }
  .saved-search-results { gap: 8px; }
  .saved-search-list li { padding: 10px 12px; }
  .analytics-choice { left: 12px; right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); width: auto; max-width: none; }
}
@media (max-width:360px) {
  .taxonomy-actions :is(button,a) { min-width: 0; flex: 1 1 0; font-size: 11px; padding: 2px; gap: 2px; }
  .taxonomy-actions a > span { display: none; }
  .comparison-head strong { font-size: 17px; }
  .catalog-popularity .segmented span { font-size: 13px; }
  .home-hero h1 { font-size: 33px; }
}
