.dee-stock-shell .dr-nav {position:relative;z-index:5}
.dee-stock {
  width:min(100% - 2rem, 74rem);
  margin-inline:auto;
  padding-block:clamp(2rem,5vw,4rem);
}
.dee-stock *,.dee-home-stock * {box-sizing:border-box}
.dee-stock h1 {max-width:21ch}
.dee-stock .dee-page-heading {margin-bottom:1.4rem}
.dee-chooser {display:grid;gap:1.25rem;margin-bottom:1.4rem}
.dee-filter-group>h3 {font:700 1rem/1.4 system-ui,sans-serif!important;margin:0 0 .6rem!important}
.dee-chips,.dee-kinds,.dee-badges,.dee-pagination,.dee-unit-actions {display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.dee-chip,.dee-primary {
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.65rem;
  border-radius:1rem;padding:.5rem .8rem;border:1px solid #bcced0;background:#fff;color:#18444a!important;
  box-shadow:0 2px 0 #b7ced1;text-decoration:none!important;font:700 .9rem/1.3 system-ui,sans-serif;cursor:pointer
}
.dee-chip[aria-current],.dee-chip:hover {border-color:#16838b;background:#d9f3f1;color:#073c42!important}
.dee-primary {background:linear-gradient(110deg,#086673,#0c7280 55%,#076873);border-color:#0b6972;color:white!important;box-shadow:0 3px 0 #06434c;padding-inline:1rem}
.dee-primary:hover {background:#075963}
.dee-logo-chip {min-width:5.85rem;min-height:4.7rem;flex-direction:column;gap:.25rem}
.dee-logo-chip img {width:2.9rem;height:2rem;object-fit:contain}
.dee-segments {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,7.25rem),1fr));
  grid-auto-rows:1fr;
  align-items:stretch;
  gap:.65rem;
}
.dee-segments .dee-chip {
  min-width:0;
  min-height:3.65rem;
  padding:.65rem .55rem;
  border-radius:.85rem;
  text-align:center;
  overflow-wrap:anywhere;
}
.dee-segments .dee-chip[aria-current="true"] {
  border-color:#076873;
  background:linear-gradient(110deg,#075963,#087680);
  color:#fff!important;
  box-shadow:0 2px 0 #06434c;
}
.dee-segments .dee-chip:focus-visible {outline:2px solid #087680;outline-offset:2px}
.dee-search {display:flex!important;gap:.65rem!important;align-items:end}
.dee-search-field {flex:1;min-width:0;position:relative}
.dee-search label {margin:0}
.dee-search-results-label {display:none}
.dee-search input,.dee-status-filter select {min-height:2.7rem;font-size:1rem!important}
.dee-search button {flex:none}
.dee-results {border-top:1px solid #c5d5d7;margin-top:1.5rem;padding-top:1.4rem;scroll-margin-top:1rem}
.dee-results-toolbar {display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.35rem}
#dr-root .dee-results-toolbar h2 {margin:0;font-size:clamp(1.8rem,4vw,2.75rem)}
.dee-status-filter {display:flex!important;flex-wrap:wrap;gap:.5rem!important;align-items:end}
.dee-status-filter label,.dee-search label {font-size:.87rem}
.dee-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem}
.dee-card {display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #cbdadd;border-radius:1.1rem;overflow:hidden;box-shadow:0 .4rem 1.3rem #24343b0c}
.dee-card-photo {display:block}
.dee-cover {display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden;position:relative;background:linear-gradient(135deg,#eaf6f6,#c6dadd);font-weight:650;color:#31585d;text-align:center}
.dee-cover img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dee-cover img[hidden],.dee-gallery img[hidden] {display:none!important}
.dee-cover .dee-sold-stamp {
  position:absolute;top:36%;left:50%;transform:translateX(-50%) rotate(-12deg);padding:.12em .55em;
  border:.09em solid #fc507b;border-radius:.15em;background:#270513dc;color:#ff80a0;font:900 clamp(2.05rem,5vw,3.3rem)/1.15 system-ui,sans-serif;
  letter-spacing:.12em;text-shadow:0 0 .5em #ff3671;box-shadow:0 0 .65em #e72c596e;
}
.dee-card-body {display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:.9rem 1rem 1rem}
.dee-badge {border-radius:1rem;background:#e9f2f5;color:#144752;font-size:.78rem;font-weight:800;padding:.18rem .52rem}
.dee-open {background:#e1f4e4;color:#17522b}
.dee-booked {background:#fff2bf;color:#664600}
.dee-lou {background:#ffe3e5;color:#862128}
.dee-sold {background:#381024;color:#ffbcd3;text-shadow:0 0 .42em #ff4d88}
.dee-clearance {background:#f1e5fd;color:#66328c}
#dr-root .dee-card h3 {margin:.72rem 0 .32rem;font:800 1rem/1.35 system-ui,sans-serif;letter-spacing:0}
.dee-card h3 a {color:inherit!important;text-decoration:none}
.dee-card h3 a:hover,.dee-stock-code:hover {text-decoration:underline}
.dee-meta {color:#405a61;margin:0 0 .35rem;font-size:.91rem}
.dee-price {font-weight:800;font-size:1.23rem;margin:.26rem 0 .5rem;color:#164b52}
.dee-price small,.dee-price-contact {font-size:.92rem}
.dee-stock-code {margin-top:auto;padding-top:.4rem;font-size:.86rem;font-weight:750}
.dee-pagination {justify-content:center;margin-top:1.7rem}
.dee-detail .dee-badges {margin-bottom:1rem}
.dee-unit-number {color:#0b6873;font-weight:800;margin:1.2rem 0 .4rem}
.dee-detail-grid {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(1rem,4vw,2.5rem)}
.dee-detail-grid .dee-cover,.dee-unit-info {border-radius:1rem}
.dee-unit-info {background:white;padding:1.15rem;border:1px solid #cbdadd;align-self:start;overflow-wrap:anywhere}
#dr-root .dee-unit-info h2 {font-size:1.65rem;margin-top:1rem}
.dee-unit-info dl {display:grid;gap:.45rem}
.dee-unit-info dl div {display:flex;justify-content:space-between;gap:.6rem;border-bottom:1px solid #deeaeb}
.dee-unit-info dd {margin:0;text-align:right;font-weight:700}
.dee-gallery {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin-top:.7rem}
.dee-gallery img {display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.55rem}
@media(max-width:56rem) {.dee-cards {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:72rem) {
  .dee-brands {
    display:grid;
    grid-template-columns:repeat(11,minmax(0,1fr));
    grid-auto-rows:1fr;
    align-items:stretch;
  }
  .dee-brands .dee-chip {
    min-width:0;
    min-height:4.75rem;
    padding:.4rem .3rem;
    text-align:center;
    overflow-wrap:anywhere;
  }
  .dee-brands .dee-logo-chip:has(img[src$="/land-rover.webp"]) {grid-column:2}
}
@media(max-width:38rem) {
  .dee-stock {width:min(100% - 1.4rem, 74rem)}
  .dee-brands {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:1fr;
    align-items:stretch;
  }
  .dee-brands .dee-chip {
    min-width:0;
    min-height:4.75rem;
    padding:.4rem .25rem;
    border-radius:.75rem;
    font-size:.875rem;
    line-height:1.2;
    text-align:center;
    overflow-wrap:anywhere;
  }
  .dee-brands .dee-logo-chip img {width:2.65rem;height:1.8rem;flex:none}
  .dee-brands .dee-logo-chip span {display:grid;place-items:center;flex:1}
  .dee-brands .dee-chip[aria-current="true"] {
    border-color:#087680;
    background:#d9f3f1;
    box-shadow:0 2px 0 #087680,inset 0 0 0 1px #087680;
  }
  .dee-brands .dee-chip:focus-visible {outline:2px solid #087680;outline-offset:2px}
  .dee-segments {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:1fr;
  }
  .dee-segments .dee-chip {
    min-width:0;
    padding:.45rem .35rem;
    font-size:.875rem;
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  .dee-detail-grid,.dee-cards {grid-template-columns:minmax(0,1fr)}
  .dee-search {align-items:stretch}
  .dee-search-submit {padding-inline:.65rem;align-self:end}
}
[data-dee-enhanced] .dee-search-submit,
[data-dee-enhanced] .dee-status-filter button {display:none}
.dee-live-status {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0
}
[data-dee-catalogue]:not([data-dee-enhanced]) .dee-live-status:not(:empty) {
  position:static;width:auto;height:auto;margin:0 0 .8rem;clip-path:none;white-space:normal
}
.dee-home-stock .dee-results {margin-bottom:1.5rem}

/* Dedicated stock catalogue layout */
#dr-root.dee-stock-shell:has(.dee-stock-layout) {background:#fff}
.dee-stock:has(.dee-stock-layout) {width:min(100% - 3rem,90rem)}
.dee-stock-breadcrumb {display:flex;gap:.65rem;align-items:center;margin-bottom:1.1rem;font-size:.9rem;color:#496267}
#dr-root .dee-stock-breadcrumb a {color:#086b72;text-underline-offset:.2em}
#dr-root .dee-stock:has(.dee-stock-layout) .dee-page-heading h1 {font-size:clamp(2.25rem,4vw,4rem);margin-bottom:1.5rem}
.dee-stock-layout {display:grid;grid-template-columns:minmax(13.5rem,16rem) minmax(0,1fr);gap:clamp(1.5rem,3vw,3rem);align-items:start}
.dee-stock-layout .dee-results {margin:0;padding:0;border:0;min-width:0}
.dee-stock-layout .dee-results-toolbar {border-block:1px solid #dce9e8;padding:.75rem 0}
.dee-stock-layout .dee-results-toolbar h2 {font:700 1rem/1.4 system-ui,sans-serif}
.dee-stock-layout .dee-filter-panel {min-width:0;border:1px solid #dae8e7;border-radius:1rem;padding:1rem;background:#f6faf9}
.dee-stock-layout .dee-filter-panel summary {color:#075e64;font-weight:750;cursor:pointer}
.dee-stock-layout .dee-chooser {margin:.7rem 0 0}
.dee-stock-layout .dee-filter-group {border-bottom:1px solid #dce9e8;padding-bottom:1rem}
.dee-stock-layout .dee-brands,.dee-stock-layout .dee-segments {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:.45rem}
.dee-stock-layout .dee-brands .dee-chip,.dee-stock-layout .dee-segments .dee-chip {min-width:0;min-height:2.85rem;padding:.4rem .25rem;border-radius:.6rem;font-size:.83rem;line-height:1.2;text-align:center;overflow-wrap:anywhere;box-shadow:none;grid-column:auto}
.dee-stock-layout .dee-brands .dee-logo-chip {min-height:4rem}
.dee-stock-layout .dee-logo-chip img {width:2.5rem;height:1.5rem}
.dee-stock-layout .dee-search {display:grid!important}
.dee-stock-layout .dee-card {border-radius:.8rem;box-shadow:0 4px 14px #14343b0b}
@media(min-width:85rem){.dee-stock-layout .dee-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:58rem){
  .dee-stock:has(.dee-stock-layout){width:min(100% - 1.5rem,90rem)}
  .dee-stock-layout{grid-template-columns:minmax(0,1fr);gap:1rem}
  .dee-stock-layout .dee-brands,.dee-stock-layout .dee-segments{grid-template-columns:repeat(auto-fill,minmax(min(100%,6rem),1fr))}
}

.dee-stock-layout .dee-brands .dee-logo-chip:has(img[src$="/land-rover.webp"]) {grid-column:auto}

.dee-cover .dee-cover-preview {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .75rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    background: radial-gradient(ellipse at 50% 35%, #f6ffff 0%, #dfefef 53%, #bddbdc 100%);
    color: #244d51;
    font-size: .875rem;
}
.dee-cover .dee-cover-preview img {
    position: static;
    width: 38%;
    max-width: 8rem;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
}

.dee-cover-reference {
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    border-radius: .35rem;
    padding: .25rem .5rem;
    background: #13383e;
    color: #fff;
    font-size: .75rem;
    line-height: 1.3;
    text-decoration: none;
}
.dee-cover > img[hidden] + .dee-cover-reference { display: none; }
.dee-cover .dee-cover-preview span { text-decoration: none; }

/* Homepage stock results use the full page width below the finder. */
#dr-root .dee-home-results {
  width:100%;
  padding:clamp(1rem,3vw,3rem);
  background:#fff;
}
#dr-root .dee-home-results > .dee-results {
  width:min(100%,90rem);
  margin:0 auto;
  padding:0;
  border:0;
}
#dr-root .dee-home-results .dee-results-toolbar {
  padding-block-end:.8rem;
  border-bottom:1px solid #dce9e8;
}
#dr-root .dee-home-results .dee-cards {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,16rem),1fr));
}
#dr-root .dee-home-results[hidden] {display:none}
#dr-root .dee-home-stock .dee-search {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) fit-content(48%);
  align-items:end;
  gap:0!important;
}
#dr-root .dee-home-stock .dee-search-field input {
  display:block;width:100%;height:3rem;margin:0;
  border-start-end-radius:0;border-end-end-radius:0;
}
#dr-root .dee-home-stock .dee-search-submit {
  display:inline-flex;min-width:0;min-height:3rem;margin:0;padding:.35rem clamp(.45rem,2vw,.9rem);
  border-start-start-radius:0;border-end-start-radius:0;
  border-start-end-radius:.75rem;border-end-end-radius:.75rem;
  box-shadow:none;text-align:center;font-size:.85rem;line-height:1.2;
}
#dr-root .dee-home-stock .dee-search :is(input,button):focus-visible {
  position:relative;z-index:1;
}
#dr-root .dee-home-stock .dee-search-label {display:none}
#dr-root .dee-home-stock .dee-search-results-label {display:inline}
#dr-root .dee-results:target {scroll-margin-top:1rem}
