@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');

:root { --ink: #161619; --red: #bc1d27; --muted: #53535a; --line: #dedee1; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: white; font: 1rem/1.55 Inter, Arial, sans-serif; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
header { border-bottom: 1px solid var(--line); }
.masthead, nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.masthead { justify-content: space-between; padding-block: .75rem; }
.logo { position: relative; display: block; width: 176px; height: 76px; overflow: hidden; }
.logo img { width: 150.6%; position: absolute; left: -25.3%; top: -59%; }
nav { font-size: .92rem; font-weight: 700; }
main { padding-block: clamp(1.75rem, 4vw, 3.5rem); min-height: 60vh; }
h1, h2, .price { line-height: 1.1; margin: 0; }
h1 { font: 400 clamp(2.5rem, 6vw, 4.75rem)/1.04 Anton, Impact, sans-serif; overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; }
.intro { color: var(--muted); font-size: 1.12rem; margin: .6rem 0 0; }
.stock-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 1.25rem; list-style: none; padding: 0; margin-top: 1.8rem; }
.stock-card { display: block; height: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; }
.stock-card:hover h2 { text-decoration: underline; text-underline-offset: .18em; }
.stock-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.stock-card div { padding: 1rem; }
.stock-card h2 { font-size: 1.13rem; line-height: 1.35; }
.stock-card p { margin: .5rem 0; color: var(--muted); }
footer { padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .logo { width: 125px; height: 58px; }
  nav { gap: .65rem; font-size: .85rem; }
  .masthead { gap: .5rem; }
}

/* Individual adverts share the dealer colours, type and compact controls on the homepage. */
.vehicle-advert {
  --accent: #e3262e;
  --action: #c51e27;
  --soft: #f6f6f7;
  --edge: #e4e4e7;
  --shadow: 0 5px 18px rgba(20, 20, 26, .065);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dealer-strip { background: #f3f3f4; border-bottom: 1px solid var(--edge); color: #54545b; }
.dealer-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dealer-strip a { color: inherit; text-decoration: none; }
.dealer-strip a:hover { text-decoration: underline; }
.vehicle-advert .masthead { min-height: 90px; padding-block: .45rem; }
.dealer-menu { position: relative; z-index: 5; }
.dealer-menu summary { display: flex; align-items: center; gap: .55rem; padding: .55rem .85rem; min-height: 42px; font-size: .9rem; font-weight: 700; border: 1px solid var(--edge); border-radius: 9px; box-shadow: var(--shadow); }
.vehicle-advert summary { list-style: none; cursor: pointer; }
.vehicle-advert summary::-webkit-details-marker { display: none; }
.dealer-menu summary::before { content: ''; width: 15px; height: 12px; border-block: 2px solid; background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat; box-sizing: border-box; }
.dealer-menu[open] summary { border-color: var(--accent); }
.dealer-menu nav { position: absolute; right: 0; top: calc(100% + .45rem); display: grid; gap: 0; min-width: min(220px, 80vw); padding: .35rem .8rem; background: white; border: 1px solid var(--edge); border-radius: 10px; box-shadow: var(--shadow); }
.dealer-menu nav a { padding: .65rem .25rem; text-decoration: none; }
.dealer-menu nav a + a { border-top: 1px solid var(--edge); }
.dealer-menu nav a:hover { color: var(--action); }
.vehicle-advert main { padding-top: clamp(1.3rem, 3vw, 2.25rem); }
.back { display: inline-flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.back::before { content: ''; width: 1.75rem; height: 3px; background: var(--accent); }
.back:hover { color: var(--action); text-decoration: underline; }
.advert-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin: .9rem 0 1.4rem; }
.advert-heading > :first-child { flex: 1 1 260px; min-width: 0; }
.advert-heading h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -.025em; }
.derivative { margin: .4rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.25rem); }
.advert-price { border-left: 3px solid var(--accent); padding-left: .9rem; }
.advert-price > span, .spec-strip dt { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .085em; color: #606069; text-transform: uppercase; }
.price { margin: .2rem 0 0; font: 400 clamp(2rem, 3.5vw, 3rem)/1.12 Anton, Impact, sans-serif; }
.advert-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); align-items: start; gap: clamp(1rem, 2.4vw, 1.75rem); }
.advert-layout.no-photo { grid-template-columns: minmax(0, 680px); }
.gallery, .enquiry { min-width: 0; background: white; border: 1px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.gallery { overflow: hidden; }
.gallery > a { display: block; }
.hero-photo { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; background: var(--soft); }
.gallery summary, .equipment summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; font-size: .93rem; font-weight: 700; }
.gallery summary { border-top: 1px solid var(--edge); }
.gallery summary::after, .equipment summary::after { content: ''; width: 8px; height: 8px; flex: none; border: solid var(--action); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gallery details[open] summary::after, .equipment[open] summary::after { transform: rotate(225deg); }
.thumbnails { display: grid; grid-template-columns: repeat(auto-fill,minmax(92px,1fr)); gap: .45rem; padding: 0 .85rem .85rem; }
.thumbnails img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.gallery a:focus-visible, .gallery summary:focus-visible { outline-offset: -3px; }
.enquiry { border-bottom: 3px solid var(--accent); padding: clamp(1rem, 2.15vw, 1.65rem); }
.advert-topline { display: flex; align-items: center; justify-content: space-between; gap: .85rem; margin-bottom: 1.1rem; }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem; border-radius: 5px; font-size: .78rem; font-weight: 750; background: #eff0f2; color: #4e555c; }
.status::before { content: ''; width: .44rem; height: .44rem; border-radius: 50%; background: currentColor; }
.status--available { background: #eef5ef; color: #216036; }
.status--reserved { background: #fff1d6; color: #805000; }
.plate { display: inline-block; max-width: 65%; overflow-wrap: anywhere; padding: .2rem .57rem; border: 1px solid #aeafb3; border-radius: 4px; font: 900 1rem/1.25 Arial, sans-serif; letter-spacing: .055em; color: #131313; background: white; box-shadow: 0 1px 2px #0002, inset 0 0 0 1px #f1f1f1; }
.spec-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 0; padding: .7rem 0; border: 1px solid var(--edge); border-radius: 8px; background: var(--soft); margin: 0; }
.spec-strip > div { text-align: center; padding-inline: .2rem; }
.spec-strip > div + div { border-left: 1px solid var(--edge); }
.spec-strip dt { font-size: .625rem; letter-spacing: .035em; }
.spec-strip dd { margin: .22rem 0 0; font-weight: 750; line-height: 1.23; font-size: clamp(.77rem, 1.25vw, .9rem); overflow-wrap: anywhere; }
.secondary-facts { margin: .6rem 0 0; color: var(--muted); font-size: .85rem; }
.booking { margin-top: 1rem; padding-top: .95rem; border-top: 1px solid var(--edge); }
.booking p { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--muted); }
.booking strong { display: block; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .55rem; margin-top: .9rem; }
.button { display: inline-flex; flex: 1 0 auto; justify-content: center; align-items: center; gap: .35rem; min-height: 46px; padding: .65rem .5rem; white-space: nowrap; text-align: center; text-decoration: none; border: 1px solid var(--action); border-radius: 10px; font-size: .875rem; font-weight: 750; line-height: 1.35; }
.button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button.book { color: white; background: var(--action); box-shadow: 0 3px 9px #a621271c; }
.button.secondary { color: var(--ink); background: white; border-color: #28282e; }
.button.book:hover { background: #a91921; }
.button.secondary:hover { background: var(--soft); }
.text-link { display: inline-block; font-size: .92rem; font-weight: 650; margin-top: .85rem; }
.walkaround { margin: .3rem 0 0; }
.highlights, .about-car { margin-top: 2.35rem; }
.vehicle-advert main h2 { font: 400 clamp(1.6rem, 2.7vw, 2.15rem)/1.15 Anton, Impact, sans-serif; }
.highlights ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(215px,100%),1fr)); gap: .7rem; list-style: none; padding: 0; margin: .85rem 0 0; }
.highlights li { display: flex; align-items: baseline; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--edge); border-radius: 9px; background: #fafafa; line-height: 1.38; overflow-wrap: anywhere; }
.highlights li::before { content: '✓'; color: var(--action); font-weight: 800; }
.about-car, .equipment { max-width: 80ch; }
.description { white-space: pre-line; overflow-wrap: anywhere; color: #44454a; line-height: 1.7; }
.equipment { margin-top: 1.75rem; border-block: 1px solid var(--edge); }
.equipment summary { padding-inline: 0; }
.equipment ul { padding-left: 1.2rem; }
@media (max-width: 760px) {
  .vehicle-advert .masthead { min-height: 68px; }
  .advert-layout { grid-template-columns: minmax(0,1fr); }
  .advert-heading { gap: .7rem; margin: .6rem 0 1rem; }
  .advert-heading > :first-child { flex-basis: 180px; }
  .advert-price { padding-left: .65rem; }
  .dealer-strip .wrap { font-size: .65rem; min-height: 32px; }
  .highlights, .about-car { margin-top: 1.65rem; }
}
@media (max-width: 360px) {
  .spec-strip dt { font-size: .59rem; }
  .spec-strip dd { font-size: .75rem; }
}
