:root {
    --ink: #1F2328;
    --muted: #686f76;
    --line: #dee2e0;
    --paper: #f7f8f6;
    --panel: #ffffff;
    --soft: #eef0ee;
    --lime: #9BC53D;
    --lime-dark: #7aa51d;
    --shadow: 0 24px 70px rgba(31,35,40,.10);
    --radius: 28px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter,Arial,sans-serif;
    background: linear-gradient(180deg,#fbfbfa 0,#f3f4f2 100%);
    color: var(--ink);
    min-height: 100vh
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    background-image: radial-gradient(#1f2328 .8px,transparent .8px);
    background-size: 18px 18px
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 18px auto 0;
    width: min(1180px,calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(222,226,224,.9);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(31,35,40,.06)
}

.brand img {
    width: 190px;
    height: auto
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.site-header nav a,.site-header nav button {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 600 14px Inter;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer
}

.site-header nav a:hover,.site-header nav button:hover {
    background: var(--soft)
}

.pill,.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink)!important;
    color: #fff!important;
    border-radius: 999px;
    padding: 12px 18px!important;
    font-weight: 800;
    border: 1px solid var(--ink);
    box-shadow: 0 10px 22px rgba(31,35,40,.12);
    cursor: pointer
}

.button:hover {
    transform: translateY(-1px)
}

.button.ghost {
    background: #fff!important;
    color: var(--ink)!important
}

.button.lime {
    background: var(--lime)!important;
    border-color: var(--lime);
    color: #18200b!important
}

.button.full {
    width: 100%
}

.button.small {
    padding: 8px 12px!important;
    font-size: 13px
}

main {
    width: min(1180px,calc(100% - 32px));
    margin: 26px auto 60px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--lime-dark);
    font-size: 12px;
    font-weight: 900
}

.eyebrow:before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--lime);
    border-radius: 4px
}

h1,h2,h3 {
    margin: 0;
    color: var(--ink)
}

h1 {
    font-family: 'DM Serif Display',Georgia,serif;
    font-size: clamp(48px,7vw,96px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .92
}

h2 {
    font-family: 'DM Serif Display',Georgia,serif;
    font-size: clamp(32px,4vw,54px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1
}

h3 {
    font-size: 22px;
    letter-spacing: -.02em
}

p {
    color: var(--muted);
    line-height: 1.65
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 28px;
    align-items: center;
    padding: 64px 0 28px
}

.hero-copy {
    background: linear-gradient(140deg,#fff,#f4f6f1);
    border: 1px solid var(--line);
    border-radius: 42px;
    padding: 56px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.hero-copy:after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid var(--lime);
    border-radius: 50%;
    right: -130px;
    top: -130px;
    opacity: .35
}

.hero-copy p {
    font-size: 18px;
    max-width: 650px
}

.hero-search,.valuation-form,.tool-card form {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(31,35,40,.06)
}

input,select,textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    color: var(--ink);
    font: 500 15px Inter;
    outline: none
}

textarea {
    resize: vertical
}

label {
    display: grid;
    gap: 8px;
    color: #41474d;
    font-size: 13px;
    font-weight: 800
}

input:focus,select:focus,textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 4px rgba(155,197,61,.16)
}

.hero-search input {
    border: 0
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px
}

.hero-visual {
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 42px;
    background: radial-gradient(circle at 50% 20%,#fff 0,#f1f3ef 65%);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow)
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block
}

.floating-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px 22px;
    box-shadow: 0 20px 50px rgba(31,35,40,.12)
}

.floating-card strong {
    display: block;
    font-size: 38px
}

.floating-card span {
    color: var(--muted);
    font-weight: 700
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin: 22px 0
}

.stats-row div,.tool-card,.admin-panel,.filters-panel,.form-card,.vehicle-card,.detail-panel,.credit-card,.compare-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 12px 40px rgba(31,35,40,.06);
    margin-bottom: 22px;
}

.stats-row strong {
    font-size: 34px
}

.stats-row span {
    display: block;
    color: var(--muted);
    font-weight: 700
}

.section-head,.dashboard-head,.results-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 58px 0 22px
}

.section-head a,.clear-link {
    font-weight: 900;
    color: var(--lime-dark)
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.vehicle-grid.tight {
    grid-template-columns: repeat(2,1fr)
}

.vehicle-card {
    padding: 0;
    overflow: hidden;
    position: relative
}

.vehicle-card .photo {
    height: 220px;
    background: #e9ece9;
    position: relative;
    overflow: hidden
}

.vehicle-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s
}

.vehicle-card:hover .photo img {
    transform: scale(1.04)
}

.badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.badge {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(222,226,224,.9);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: var(--ink)
}

.badge.lime {
    background: var(--lime);
    border-color: var(--lime);
    color: #172008
}

.vehicle-card .body {
    padding: 20px
}

.price {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.04em
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px
}

.compare-button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer
}

.compare-button.active {
    background: var(--lime);
    border-color: var(--lime);
    color: #172008
}

.split-panel,.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 64px 0
}

.split-panel>div {
    background: var(--ink);
    color: #fff;
    border-radius: 42px;
    padding: 42px
}

.split-panel>div:first-child {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line)
}

.split-panel p {
    color: #d7dbd4
}

.split-panel>div:first-child p {
    color: var(--muted)
}

.feature-list {
    display: grid!important;
    gap: 12px
}

.feature-list span {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    padding: 14px;
    font-weight: 800
}

.page-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 42px;
    padding: 46px;
    box-shadow: var(--shadow);
    margin-bottom: 24px
}

.page-hero.compact h1 {
    font-size: clamp(42px,5vw,76px)
}

.stock-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start
}

.filters-panel {
    position: sticky;
    top: 120px
}

.filters-panel form {
    display: grid;
    gap: 14px
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.three {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px
}

.gallery {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 12px;
    margin-bottom: 22px;
}

.gallery-main {
    height: 480px;
    border-radius: 26px;
    overflow: hidden;
    background: #e9ece9
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumb-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.thumb-row img {
    width: 92px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line)
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px
}

.spec-grid div {
    background: var(--soft);
    border-radius: 16px;
    padding: 14px
}

.spec-grid strong {
    display: block
}

.enquiry-card {
    background: var(--ink);
    color: #fff;
    border-radius: 34px;
    padding: 26px;
    position: sticky;
    top: 120px
}

.enquiry-card p {
    color: #d8ddd3
}

.enquiry-card input,.enquiry-card textarea {
    background: #fff
}

.dashboard-head {
    align-items: center
}

.admin-list {
    display: grid;
    gap: 12px
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: var(--soft);
    border-radius: 18px;
    padding: 14px
}

.admin-row span {
    display: block;
    color: var(--muted);
    font-weight: 700
}

.form-grid {
    display: grid;
    gap: 18px
}

.form-card h2 {
    margin-bottom: 18px
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0
}

.check.inline {
    display: flex;
    align-items: center;
    gap: 8px
}

.check input {
    width: auto
}

.credits-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px
}

.credit-packages {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.credit-card.featured {
    outline: 3px solid rgba(155,197,61,.35)
}

.credit-price {
    font-size: 34px;
    font-weight: 900
}

.ledger {
    display: grid;
    gap: 10px
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: var(--soft);
    font-weight: 700
}

.tool-grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.finance-output,.valuation-output {
    background: #172008;
    color: #fff;
    border-radius: 24px;
    padding: 22px;
    margin-top: 16px
}

.compare-table {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px
}

.compare-table table {
    width: 100%;
    border-collapse: collapse
}

.compare-table th,.compare-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top
}

.compare-table th {
    background: var(--soft);
    font-weight: 900
}

.site-footer {
    width: min(1180px,calc(100% - 32px));
    margin: 60px auto 24px;
    padding: 28px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.site-footer img {
    width: 170px
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center
}

.flash {
    width: min(1180px,calc(100% - 32px));
    margin: 18px auto;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 800
}

.flash.success {
    background: #eff7df;
    border: 1px solid #d5e9b1
}

.flash.error {
    background: #fff2f2;
    border: 1px solid #f2caca
}

.muted {
    color: var(--muted)
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0
}

.compare-tray {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 999px;
    padding: 10px 12px
}

.compare-tray button {
    border: 0;
    background: var(--soft);
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800
}

.brand-board {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 42px;
    padding: 30px;
    margin: 40px 0
}

.brand-board img {
    border-radius: 28px;
    width: 100%
}

@media(max-width: 900px) {
    .site-header,.site-footer {
        display:grid
    }

    .site-header nav {
        justify-content: flex-start
    }

    .hero,.stock-layout,.detail-layout,.credits-layout,.split-panel,.tools-grid {
        grid-template-columns: 1fr
    }

    .vehicle-grid,.vehicle-grid.tight,.credit-packages,.tool-grid-3,.stats-row {
        grid-template-columns: 1fr
    }

    .three,.two {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 34px
    }

    .hero-visual {
        min-height: 340px
    }

    .filters-panel,.enquiry-card {
        position: static
    }

    .site-footer {
        gap: 28px
    }
}

.auth-shell {
    min-height: 70vh;
    display: grid;
    place-items: center
}

.auth-card {
    width: min(560px,100%);
    display: grid;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 42px;
    padding: 42px;
    box-shadow: var(--shadow);
    margin-top: 44px;
}

.auth-shell.wide .auth-card {
    width: min(860px,100%)
}

.auth-card h1 {
    font-size: clamp(40px,5vw,68px)
}

.auth-card .check {
    display: flex;
    align-items: center;
    gap: 8px
}

.auth-card .check input {
    width: auto
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px
}

.hero-actions form {
    display: inline-flex
}

.hero-actions button {
    border: 0
}

.vehicle-card h3 {
    min-height: 54px
}

.stock-results .pagination {
    margin-top: 22px
}

.stock-results nav[role="navigation"] {
    margin-top: 24px
}

.stock-results nav[role="navigation"] svg {
    width: 18px
}

.stock-results nav[role="navigation"] a,.stock-results nav[role="navigation"] span {
    border-radius: 10px!important
}

.admin-row form {
    margin: 0
}

.credit-card form {
    margin-top: 16px
}

.tool-card .valuation-form,.tool-card form[data-finance-calc] {
    display: grid
}

.tool-card .valuation-form {
    grid-template-columns: repeat(2,1fr)
}

@media(max-width: 900px) {
    .tool-card .valuation-form {
        grid-template-columns:1fr
    }

    .auth-card {
        padding: 28px
    }
}

/* Motavo layout polish, wider bleed layout and fixed stock cards */
main {
    width: 100%;
    margin: 0 auto 70px
}

.site-header,.site-footer {
    width: min(1480px,calc(100% - 36px))
}

.hero,.stats-row,.tool-grid-3,.section-head,.vehicle-grid,.split-panel,.page-hero,.stock-layout,.detail-layout,.dashboard-head,.credits-layout,.tools-grid,.form-grid,.brand-board {
    width: min(1480px,calc(100% - 36px));
    margin-left: auto;
    margin-right: auto
}

.hero {
    padding: 34px 0 24px
}

.hero-bleed {
    width: min(1640px,calc(100% - 28px));
    grid-template-columns: 1.02fr .98fr
}

.hero-copy {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.page-hero {
    margin-top: 28px
}

.stock-hero {
    width: min(1480px,calc(100% - 36px));
    background: linear-gradient(135deg,#fff 0%,#f6f8f2 100%)
}

.stock-layout-wide {
    grid-template-columns: 330px minmax(0,1fr);
    gap: 26px
}

.stock-results {
    min-width: 0
}

.vehicle-grid.tight {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.vehicle-card .photo {
    display: block;
    height: 235px;
    background: #eef0ee;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line)
}

.vehicle-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    color: #7a827c;
    background: linear-gradient(140deg,#f7f8f6,#ecefeb)
}

.vehicle-placeholder svg {
    width: 48%;
    max-width: 210px;
    fill: none;
    stroke: #1f2328;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .22
}

.vehicle-placeholder span {
    font-weight: 800;
    font-size: 13px;
    margin-top: -38px
}

.vehicle-card h3 {
    min-height: auto;
    margin-bottom: 10px
}

.vehicle-card .body {
    padding: 22px
}

.monthly {
    margin: 6px 0 14px
}

.badge-row {
    max-width: calc(100% - 22px)
}

.badge {
    box-shadow: 0 8px 18px rgba(31,35,40,.08)
}

.results-top {
    align-items: center
}

.results-top p {
    margin: .25rem 0 0
}

.inline-tool,.quick-tools a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 15px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(31,35,40,.06)
}

.quick-tools {
    margin-top: 24px
}

.quick-tools span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--lime);
    color: #172008
}

.panel-head h3 {
    margin: 0
}

.filter-icon,.tool-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #eef6dc;
    color: #172008;
    font-weight: 900
}

.tool-icon {
    margin-bottom: 16px;
    font-size: 24px
}

.icon-tools .tool-card {
    min-height: 245px;
    transition: .2s
}

.icon-tools .tool-card:hover,.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(31,35,40,.10)
}

.full-bleed-card,.dealer-panel {
    width: min(1640px,calc(100% - 28px))
}

.dealer-panel>div:first-child {
    background: #fff;
    color: var(--ink)
}

.dealer-panel>div:first-child p {
    color: var(--muted)
}

.dealer-panel>div:last-child {
    background: var(--ink);
    color: #fff
}

.dealer-panel>div:last-child .feature-list span {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15)
}

.feature-list span {
    position: relative;
    padding-left: 46px
}

.feature-list span:before {
    content: '\2713';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lime);
    color: #172008;
    font-weight: 900
}

.site-footer {
    margin-top: 80px
}

.brand img {
    width: 205px
}

.site-header nav a,.site-header nav button {
    font-size: 14px
}

.credit-card,.tool-card,.filters-panel,.vehicle-card {
    box-shadow: 0 14px 42px rgba(31,35,40,.055)
}

@media(max-width: 1250px) {
    .vehicle-grid.tight {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

    .vehicle-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width: 900px) {
    main {
        margin-bottom:40px
    }

    .hero,.hero-bleed,.stock-layout-wide {
        width: min(100% - 24px,700px)
    }

    .hero-copy {
        min-height: auto
    }

    .vehicle-grid.tight,.vehicle-grid {
        grid-template-columns: 1fr
    }

    .site-header,.site-footer,.stats-row,.tool-grid-3,.section-head,.split-panel,.page-hero,.detail-layout,.dashboard-head,.credits-layout,.tools-grid,.form-grid,.brand-board {
        width: min(100% - 24px,700px)
    }

    .stock-layout,.hero {
        grid-template-columns: 1fr
    }

    .stock-layout {
        width: min(100% - 24px,700px)
    }

    .page-hero {
        padding: 32px
    }

    .site-header {
        position: relative
    }

    .hero-search {
        display: grid
    }

    .hero-search .button {
        width: 100%
    }
}

/* Motavo interactive marketplace update */
body {
    background: #f3f5f2
}

.site-header.site-header-bleed {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 12px clamp(18px,4vw,58px);
    background: linear-gradient(135deg,#171a1d,#23282d 68%,#1a2112);
    box-shadow: 0 18px 50px rgba(18,21,24,.18);
    backdrop-filter: none
}

.site-header.site-header-bleed .brand img {
    width: 260px;
    max-width: 42vw
}

.site-header.site-header-bleed nav a,.site-header.site-header-bleed nav button {
    color: #f7faf5
}

.site-header.site-header-bleed nav a:hover,.site-header.site-header-bleed nav button:hover {
    background: rgba(255,255,255,.1)
}

.site-header.site-header-bleed .pill {
    background: var(--lime)!important;
    border-color: var(--lime);
    color: #16210a!important;
    box-shadow: 0 10px 26px rgba(155,197,61,.22)
}

main {
    width: 100%;
    max-width: none;
    margin: 0 auto 60px
}

.hero-bleed,.page-hero,.stock-layout-wide,.detail-layout-wide,.dashboard-bleed,.dashboard-stats,.wide-panel,.tools-grid,.stats-row,.tool-grid-3,.section-head,.vehicle-grid,.split-panel,.form-grid,.credits-layout,.dashboard-head,.listing-form,.match-builder,.match-results-head,.match-grid {
    width: min(1540px,calc(100% - 56px));
    margin-left: auto;
    margin-right: auto
}

.hero-bleed {
    padding-top: 38px
}

.hero-copy {
    border-radius: 38px
}

.page-hero {
    margin-top: 34px
}

.stock-layout-wide {
    grid-template-columns: 360px minmax(0,1fr)
}

.vehicle-grid.tight {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.detail-layout-wide {
    grid-template-columns: minmax(0,1.25fr) 430px
}

.quick-tools a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900
}

.quick-tools span,.tool-icon,.spec-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lime);
    color: #172008;
    font-weight: 900
}

.match-preview {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: center;
    background: #182024;
    color: #fff;
    border-radius: 42px;
    padding: 42px;
    margin-top: 28px
}

.match-preview h2,.match-preview p {
    color: #fff
}

.match-mini {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px
}

.match-mini label,.match-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 14px;
    color: #fff;
    font-weight: 900;
    cursor: pointer
}

.match-mini input,.match-chip input {
    width: auto
}

.match-builder {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 42px;
    padding: 38px;
    margin-top: 24px
}

.match-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.match-chip {
    background: #f3f6ef;
    color: var(--ink);
    border-color: #dfe8d7
}

.match-chip.selected,.match-chip:has(input:checked) {
    background: #172008;
    color: #fff;
    border-color: #9BC53D;
    box-shadow: 0 16px 35px rgba(31,35,40,.12)
}

.match-chip span {
    pointer-events: none
}

.match-chip button,.match-options .button {
    align-self: center
}

.match-results-head {
    align-items: center
}

.mini-tags,.lifestyle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px
}

.mini-tags span,.lifestyle-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #eff6df;
    border: 1px solid #d9eab7;
    color: #24330f;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px
}

.lifestyle-tags span {
    font-size: 14px;
    padding: 10px 13px
}

.card-mini-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.similar-source-card {
    display: inline-grid;
    gap: 4px;
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 18px
}

.similar-source-card span {
    color: var(--muted);
    font-weight: 700
}

.trust-passport,.lifestyle-panel {
    margin-top: 18px
}

.trust-meter {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #eff6df;
    border: 1px solid #d9eab7;
    border-radius: 24px;
    padding: 18px;
    margin: 18px 0
}

.trust-meter strong {
    font-size: 42px;
    letter-spacing: -.06em
}

.trust-meter span {
    font-weight: 900;
    color: #4c583e
}

.trust-list {
    display: grid;
    gap: 10px
}

.trust-list span {
    position: relative;
    background: var(--soft);
    border: 1px solid #e1e6e0;
    border-radius: 16px;
    padding: 13px 14px 13px 42px;
    font-weight: 800
}

.trust-list span:before {
    content: '\2713';
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lime);
    color: #172008
}

.tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.tag-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f7ef;
    border: 1px solid #dfead5;
    border-radius: 999px;
    padding: 10px 12px;
    cursor: pointer
}

.tag-picker input {
    width: auto
}

.tag-picker label:has(input:checked) {
    background: #172008;
    color: #fff;
    border-color: #9BC53D
}

.advert-strength-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center
}

.strength-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 16px;
    background: conic-gradient(var(--lime) 70%,#e8ece7 0)
}

.strength-ring:before {
    content: '';
    grid-area: 1/1;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff
}

.strength-ring strong,.strength-ring span {
    grid-area: 1/1;
    z-index: 1;
    text-align: center
}

.strength-ring strong {
    font-size: 32px;
    align-self: center;
    margin-top: -18px
}

.strength-ring span {
    align-self: center;
    margin-top: 36px;
    color: var(--muted);
    font-weight: 900
}

.tool-card {
    position: relative;
    overflow: hidden
}

.tool-card:after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(155,197,61,.35);
    border-radius: 50%;
    right: -42px;
    top: -42px
}

.enquiry-card {
    background: linear-gradient(145deg,#1b1f23,#2a2f34);
    color: #fff
}

.enquiry-card h2,.enquiry-card .eyebrow {
    color: #fff
}

.enquiry-card .button.lime {
    margin-top: 14px
}

.check-panel .action-tools {
    margin-top: 22px
}

.spec-grid.styled-spec-grid div {
    border: 1px solid #dfe5df;
    background: #f6f8f5
}

.spec-icon {
    margin-bottom: 8px;
    font-size: 12px
}

.rich-footer {
    width: 100%;
    border-radius: 0;
    margin: 80px 0 0;
    padding: 54px clamp(22px,5vw,74px);
    background: linear-gradient(135deg,#171a1d,#23282d 70%,#202912);
    color: #fff;
    border: 0;
    display: grid;
    grid-template-columns: 1.6fr .8fr .8fr 1.2fr;
    align-items: start
}

.rich-footer p,.rich-footer a {
    color: #d8ddd3
}

.rich-footer h3 {
    color: #fff
}

.rich-footer img {
    filter: none;
    width: 220px
}

.footer-column,.footer-brand,.footer-launch {
    display: grid;
    gap: 10px
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.footer-badges span {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 8px 10px;
    color: #fff;
    font-weight: 800
}

.footer-launch {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    padding: 24px
}

.footer-launch strong {
    font-family: 'DM Serif Display',Georgia,serif;
    font-size: 32px;
    line-height: 1
}

.footer-launch .eyebrow {
    color: var(--lime)
}

.footer-launch .eyebrow:before {
    background: var(--lime)
}

@media(max-width: 1250px) {
    .vehicle-grid.tight {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

    .detail-layout-wide,.match-builder,.match-preview {
        grid-template-columns: 1fr
    }

    .rich-footer {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width: 900px) {
    .site-header.site-header-bleed {
        display:grid;
        gap: 14px
    }

    .site-header.site-header-bleed nav {
        justify-content: flex-start
    }

    .site-header.site-header-bleed .brand img {
        width: 220px
    }

    .hero-bleed,.page-hero,.stock-layout-wide,.detail-layout-wide,.dashboard-bleed,.dashboard-stats,.wide-panel,.tools-grid,.stats-row,.tool-grid-3,.section-head,.vehicle-grid,.split-panel,.form-grid,.credits-layout,.dashboard-head,.listing-form,.match-builder,.match-results-head,.match-grid {
        width: min(100% - 24px,720px)
    }

    .stock-layout-wide {
        grid-template-columns: 1fr
    }

    .vehicle-grid.tight {
        grid-template-columns: 1fr
    }

    .match-mini {
        grid-template-columns: 1fr
    }

    .advert-strength-card {
        grid-template-columns: 1fr
    }

    .rich-footer {
        grid-template-columns: 1fr;
        padding: 38px 24px
    }
}

/* Motavo layout refinement, centred content, full-width header/footer */
:root {
    --container: 1330px;
    --container-pad: 56px;
    --footer-ink: #f7faf5
}

html,body {
    overflow-x: hidden
}

main {
    width: 100%;
    max-width: none;
    margin: 0 auto 64px
}

.site-header.site-header-bleed {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 20px max(28px,calc((100vw - var(--container))/2));
    background: linear-gradient(135deg,#15191c 0%,#20262a 68%,#1b2411 100%);
    box-shadow: 0 18px 55px rgba(20,24,28,.18)
}

.site-header.site-header-bleed .brand {
    display: flex;
    align-items: center;
    min-width: 310px
}

.site-header.site-header-bleed .brand img {
    width: 220px;
    max-width: 36vw;
    height: auto
}

.site-header.site-header-bleed nav {
    gap: 14px
}

.site-header.site-header-bleed nav a,.site-header.site-header-bleed nav button {
    color: #fff;
    font-weight: 800;
    opacity: .94
}

.site-header.site-header-bleed nav a:hover,.site-header.site-header-bleed nav button:hover {
    background: rgba(255,255,255,.12);
    opacity: 1
}

.hero-bleed,.page-hero,.stock-layout-wide,.stock-layout,.detail-layout-wide,.detail-layout,.dashboard-bleed,.dashboard-stats,.wide-panel,.tools-grid,.stats-row,.tool-grid-3,.section-head,.vehicle-grid,.split-panel,.form-grid,.credits-layout,.dashboard-head,.listing-form,.match-builder,.match-preview,.match-results-head,.match-grid,.launch-strip,.brand-board {
    width: min(var(--container),calc(100% - var(--container-pad)))!important;
    margin-left: auto!important;
    margin-right: auto!important
}

.hero-bleed {
    padding-top: 58px;
    grid-template-columns: 1fr 1fr;
    gap: 38px
}

.hero-copy {
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 62px
}

.hero-visual {
    min-height: 470px
}

.hero-car-card {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 54px;
    background: linear-gradient(145deg,#edf4df,#f7faf3);
    border: 1px solid #dfe8d7;
    border-radius: 30px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(31,35,40,.12);
    transform: rotate(-1.5deg)
}

.hero-car-card img {
    width: 100%;
    max-height: 270px;
    object-fit: contain
}

.floating-card {
    display: none
}

.launch-strip {
    display: grid;
    grid-template-columns: 1.15fr 1fr auto;
    gap: 22px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 28px 32px;
    box-shadow: 0 14px 40px rgba(31,35,40,.06);
    margin-top: 34px!important
}

.launch-strip h2 {
    font-size: clamp(30px,3vw,46px)
}

.launch-strip p {
    margin: 0
}

.stats-row {
    margin-top: 22px!important
}

.match-preview {
    margin-top: 44px!important;
    margin-bottom: 44px;
}

.vehicle-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px
}

.section-head {
    margin-top: 74px!important
}

.split-panel {
    margin-top: 68px!important
}

.rich-footer {
    width: 100%!important;
    margin: 90px 0 0!important;
    border-radius: 0!important;
    padding: 62px max(28px,calc((100vw - var(--container))/2)) 76px!important;
    background: linear-gradient(135deg,#15191c 0%,#22282d 70%,#1a2410 100%)!important;
    color: var(--footer-ink)!important;
    display: grid;
    grid-template-columns: 1.5fr .75fr .75fr 1.15fr;
    gap: 42px
}

.rich-footer img {
    width: 270px;
    filter: none!important
}

.rich-footer p,.rich-footer a {
    color: #dce5d8!important
}

.footer-brand p {
    max-width: 430px
}

.footer-launch {
    background: rgba(255,255,255,.08)!important;
    border: 1px solid rgba(255,255,255,.18)!important
}

.footer-launch strong {
    color: #fff
}

.footer-column a:hover {
    color: var(--lime)!important
}

.detail-layout-wide {
    grid-template-columns: minmax(0,1fr) 410px;
    gap: 24px
}

.enquiry-card {
    background: linear-gradient(145deg,#161b1f,#252b30)!important;
    color: #fff!important
}

.enquiry-card h2,.enquiry-card h3,.enquiry-card .price {
    color: #fff!important
}

.enquiry-card p,.enquiry-card label {
    color: #dfe6dc!important
}

.enquiry-card form {
    display: grid;
    gap: 18px
}

.enquiry-card .enquiry-submit {
    margin-top: 12px
}

.check-panel .action-tools {
    margin-top: 28px!important
}

.detail-tool {
    min-height: 54px
}

.standout-section {
    margin-top: 30px;
    border-radius: 30px;
    background: linear-gradient(145deg,#f7faf3,#eef5df);
    border: 1px solid #dfead2;
    padding: 24px
}

.standout-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px
}

.standout-head h3 {
    font-family: 'DM Serif Display',Georgia,serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.035em
}

.standout-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px
}

.standout-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    background: #fff;
    border: 1px solid #dce8cb;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(31,35,40,.05)
}

.standout-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lime);
    color: #172008;
    font-weight: 900
}

.standout-item strong {
    font-size: 15px
}

.standout-item small {
    color: var(--muted);
    font-weight: 800
}

.designed-standout {
    background: #fff
}

.buyer-fit-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin-top: 18px
}

.buyer-fit-card {
    background: #172008;
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 4px;
    position: relative;
    overflow: hidden
}

.buyer-fit-card:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(155,197,61,.35);
    border-radius: 50%;
    right: -25px;
    top: -30px
}

.buyer-fit-card span {
    color: var(--lime);
    font-size: 18px
}

.buyer-fit-card small {
    color: #dfe8d7;
    font-weight: 700
}

.vehicle-overview .spec-grid.styled-spec-grid {
    margin-top: 20px
}

.spec-grid.styled-spec-grid div {
    display: grid;
    gap: 4px;
    border-radius: 20px;
    padding: 17px;
    background: linear-gradient(145deg,#fff,#f4f7f1);
    border: 1px solid #dfe8d7
}

.spec-icon {
    width: 38px!important;
    height: 38px!important;
    font-size: 12px!important;
    margin-bottom: 4px!important
}

.site-header .pill {
    white-space: nowrap
}

.page-hero {
    margin-top: 44px!important
}

.dashboard-head {
    padding-top: 56px
}

.dashboard-bleed {
    padding-top: 48px
}

@media(max-width: 1150px) {
    .hero-bleed,.detail-layout-wide,.match-preview,.launch-strip {
        grid-template-columns:1fr
    }

    .vehicle-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .rich-footer {
        grid-template-columns: 1fr 1fr
    }

    .site-header.site-header-bleed {
        display: grid;
        gap: 14px
    }

    .site-header.site-header-bleed nav {
        justify-content: flex-start
    }
}

@media(max-width: 760px) {
    :root {
        --container-pad:28px
    }

    .site-header.site-header-bleed .brand img {
        width: 230px;
        max-width: 80vw
    }

    .site-header.site-header-bleed nav {
        gap: 6px
    }

    .site-header.site-header-bleed nav a,.site-header.site-header-bleed nav button {
        font-size: 12px;
        padding: 8px 9px
    }

    .hero-copy,.page-hero {
        padding: 30px
    }

    .vehicle-grid,.tool-grid-3,.stats-row,.standout-grid,.buyer-fit-grid {
        grid-template-columns: 1fr
    }

    .rich-footer {
        grid-template-columns: 1fr;
        padding-left: 24px!important;
        padding-right: 24px!important
    }

    .launch-strip {
        padding: 24px
    }

    .hero-car-card {
        left: 22px;
        right: 22px;
        bottom: 22px
    }

    .hero-visual {
        min-height: 410px
    }
}

/* Final Motavo layout polish */
.compare-table {
    width: min(var(--container),calc(100% - var(--container-pad)))!important;
    margin: 16px auto 70px!important;
    box-shadow: 0 12px 40px rgba(31,35,40,.06)
}

.compare-table table {
    min-width: 780px
}

.stock-results .vehicle-grid.tight {
    grid-template-columns: repeat(2,minmax(320px,1fr))!important;
    gap: 24px
}

.stock-layout-wide {
    grid-template-columns: 330px minmax(0,1fr)!important;
    gap: 28px!important
}

.vehicle-card .photo {
    display: block;
    height: 250px
}

.vehicle-grid.tight .vehicle-card .photo {
    height: 270px
}

.card-actions {
    align-items: flex-end
}

.card-mini-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.vehicle-card .body {
    display: flex;
    flex-direction: column;
    min-height: 280px
}

.vehicle-card .card-actions {
    margin-top: auto;
    padding-top: 16px
}

.call-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #d7e5c9;
    background: #f1f8e5;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 900;
    color: #172008
}

.enquiry-phone {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 22px
}

.enquiry-phone .call-now-button {
    font-size: 16px;
    padding: 13px 16px;
    background: var(--lime);
    border-color: var(--lime);
    box-shadow: 0 12px 26px rgba(155,197,61,.24)
}

.range-pair {
    display: grid;
    gap: 10px;
    background: #f8faf5;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px
}

.range-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #41474d;
    font-weight: 900;
    font-size: 13px
}

.range-pair input[type=range] {
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--lime)
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800
}

.filters-panel .two.price-legacy {
    display: none
}

.footer-extra-link {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 800;
    display: inline-flex!important;
    width: max-content
}

.hero-showcase:before {
    content: '';
    position: absolute;
    inset: 36px 64px auto auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(155,197,61,.32);
    border-radius: 50%;
    transform: rotate(-18deg)
}

.hero-showcase:after {
    content: '';
    position: absolute;
    right: 93px;
    top: 70px;
    width: 175px;
    height: 120px;
    border: 2px solid rgba(31,35,40,.12);
    border-radius: 50%;
    transform: rotate(-18deg)
}

.logo-note {
    font-size: 0
}

@media(max-width: 1150px) {
    .stock-results .vehicle-grid.tight {
        grid-template-columns:repeat(2,minmax(260px,1fr))!important
    }

    .stock-layout-wide {
        grid-template-columns: 1fr!important
    }
}

@media(max-width: 760px) {
    .site-header.site-header-bleed .brand img {
        width:260px!important;
        max-width: 86vw!important
    }

    .stock-results .vehicle-grid.tight {
        grid-template-columns: 1fr!important
    }

    .vehicle-grid.tight .vehicle-card .photo {
        height: 220px
    }

    .hero-copy {
        padding: 34px
    }

    .hero-showcase:before,.hero-showcase:after {
        display: none
    }
}

/* Interactive dealer image manager and compact advert strength */
.image-manager-card { overflow: visible; }
.image-manager-head { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; margin-bottom:18px; }
.image-manager-head h2 { margin:4px 0 6px; }
.image-count { background:#172008; color:#fff; border-radius:999px; padding:10px 14px; white-space:nowrap; font-weight:800; }
.existing-image-grid,.new-image-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.new-image-grid { margin-top:14px; }
.image-tile { position:relative; min-height:170px; border:1px solid #dfe5df; border-radius:20px; background:#f6f8f5; overflow:hidden; cursor:grab; box-shadow:0 8px 24px rgba(21,25,28,.06); }
.image-tile.dragging { opacity:.45; transform:scale(.98); }
.image-tile img { width:100%; height:140px; object-fit:cover; display:block; }
.image-tile-actions { display:flex; gap:7px; padding:10px; }
.mini-action { border:1px solid #d8dfd4; background:#fff; border-radius:999px; padding:7px 10px; font-size:12px; font-weight:800; cursor:pointer; }
.mini-action:hover,.image-tile.is-primary .mini-action[data-set-primary] { background:var(--lime); color:#172008; border-color:var(--lime); }
.mini-action.danger:hover { background:#8f1d1d; color:#fff; border-color:#8f1d1d; }
.primary-badge { position:absolute; top:10px; left:10px; display:none; border-radius:999px; padding:7px 10px; background:var(--lime); color:#172008; font-size:11px; font-weight:900; box-shadow:0 5px 16px rgba(0,0,0,.14); }
.image-tile.is-primary .primary-badge { display:block; }
.image-dropzone { margin-top:16px; min-height:170px; border:2px dashed #bcc9b3; border-radius:24px; background:linear-gradient(135deg,#f7faf4,#eef5e8); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:26px; cursor:pointer; transition:.2s ease; }
.image-dropzone:hover,.image-dropzone.is-over { border-color:var(--lime); background:#f3f9e8; transform:translateY(-2px); }
.image-dropzone input { display:none; }
.image-dropzone strong { font-size:18px; margin-bottom:5px; }
.image-dropzone span { color:var(--muted); font-weight:700; }
.dropzone-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:#172008; color:var(--lime); font-size:28px; margin-bottom:12px; }
.compact-strength { grid-template-columns:minmax(220px,.9fr) 160px minmax(360px,1.6fr); min-height:0; padding:26px; }
.compact-strength .strength-summary h2 { margin:4px 0 8px; }
.strength-tips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.strength-tips span { min-height:58px; display:flex; align-items:center; }
.valuation-form-detailed { grid-template-columns:repeat(2,minmax(0,1fr)); }
.valuation-form-detailed .button { grid-column:1/-1; }
.valuation-result-card { min-height:420px; }
.valuation-output.enhanced > strong { display:block; font-family:'DM Serif Display',Georgia,serif; font-size:clamp(34px,4vw,58px); line-height:1; margin:8px 0 22px; color:var(--ink); }
.valuation-price-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:20px 0; }
.valuation-price-grid div { background:#f4f7ef; border:1px solid #dfe8d5; border-radius:18px; padding:15px; }
.valuation-price-grid span,.valuation-price-grid b { display:block; }
.valuation-price-grid span { color:var(--muted); font-size:12px; font-weight:800; margin-bottom:5px; }
.valuation-price-grid b { font-size:20px; }
.valuation-factors { display:grid; gap:8px; margin-top:18px; }
.valuation-factors small { color:var(--muted); margin-bottom:4px; }
.valuation-factors span { background:#20262a; color:#fff; border-radius:12px; padding:10px 12px; font-weight:750; }
@media(max-width:1000px){.existing-image-grid,.new-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-strength{grid-template-columns:1fr}.strength-tips{grid-template-columns:1fr}.valuation-price-grid{grid-template-columns:1fr}}
@media(max-width:640px){.existing-image-grid,.new-image-grid,.valuation-form-detailed{grid-template-columns:1fr}.image-manager-head{display:grid}.image-count{justify-self:start}}

/* Motavo interactive vehicle gallery */
.gallery-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    text-align: left;
}

.gallery-main:focus-visible,
.gallery-thumb:focus-visible,
.gallery-lightbox button:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

.gallery-expand,
.gallery-count {
    position: absolute;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(24, 27, 25, .86);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
}

.gallery-expand {
    left: 18px;
    padding: 10px 15px;
    font-weight: 700;
}

.gallery-count {
    right: 18px;
    padding: 9px 13px;
    font-size: .88rem;
}

.thumb-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 5px;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 100px;
    height: 74px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #e9ece9;
    cursor: pointer;
    opacity: .72;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    border-color: var(--lime);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 11px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 9, .94);
    backdrop-filter: blur(10px);
}

.gallery-lightbox-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(1500px, 100%);
    height: min(92vh, 980px);
}

.gallery-lightbox-stage > img {
    width: 100%;
    height: calc(100% - 58px);
    object-fit: contain;
    user-select: none;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: var(--lime);
    color: var(--ink);
}

.gallery-lightbox-close {
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    width: 54px;
    height: 72px;
    border-radius: 18px;
    transform: translateY(-50%);
    font-size: 3rem;
    line-height: 1;
}

.gallery-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-nav.is-prev { left: 0; }
.gallery-lightbox-nav.is-next { right: 0; }

.gallery-lightbox-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding-top: 18px;
    color: #fff;
}

body.gallery-is-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .gallery-main { height: 320px; }
    .gallery-expand { left: 12px; bottom: 12px; padding: 8px 11px; font-size: .82rem; }
    .gallery-count { right: 12px; bottom: 12px; }
    .gallery-thumb { flex-basis: 82px; height: 62px; }
    .gallery-lightbox { padding: 10px; }
    .gallery-lightbox-stage { height: 96vh; }
    .gallery-lightbox-nav { width: 44px; height: 58px; border-radius: 14px; font-size: 2.4rem; }
    .gallery-lightbox-footer { padding: 12px 4px 0; font-size: .86rem; }
}


/* Go-live homepage hero balance */
@media (min-width: 900px) {
    .hero.hero-bleed {
        align-items: stretch;
    }

    .hero.hero-bleed .hero-copy,
    .hero.hero-bleed .hero-visual {
        min-height: 520px;
        height: 100%;
    }
}


/* Admin control centre */
.admin-head {
    background: linear-gradient(135deg,#1f2328,#2b2f33);
    color: #fff;
}

.admin-head p,
.admin-head .eyebrow {
    color: rgba(255,255,255,.72);
}

.admin-nav {
    width: min(1480px,calc(100% - 36px));
    margin: 18px auto 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 14px 35px rgba(31,35,40,.06);
}

.admin-nav a {
    padding: 11px 16px;
    border-radius: 16px;
    color: var(--ink);
    font-weight: 800;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: var(--lime);
    color: #1f2328;
}

.admin-stats strong {
    font-size: clamp(30px,3vw,48px);
}

.admin-overview-grid {
    grid-template-columns: 1fr 1fr;
}

.admin-metric-list {
    display: grid;
    gap: 10px;
}

.admin-metric-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8f4;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 15px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.admin-table th {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 12px;
}

.admin-table td {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    vertical-align: middle;
}

.admin-table td:first-child {
    border-left: 1px solid var(--line);
    border-radius: 18px 0 0 18px;
}

.admin-table td:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 18px 18px 0;
}

.admin-table td span,
.admin-row span,
.admin-row small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(240px,1fr) auto auto;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-filter input,
.admin-filter select {
    background: #f8f9f5;
}

.status-pill {
    display: inline-flex!important;
    width: max-content;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef3df;
    color: #1f2328!important;
    font-weight: 900;
    font-size: 12px!important;
}

.row-actions,
.admin-actions-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.row-actions form {
    display: inline-flex;
}

.row-actions button,
.row-actions a,
.admin-actions-inline a {
    border: 1px solid var(--line);
    background: #f7f8f4;
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
}

.row-actions button.danger {
    background: #fff1f0;
    border-color: #ffd4d1;
    color: #9f1d16;
}

.admin-list.compact .admin-row {
    grid-template-columns: 1fr;
}

.enquiry-admin-list {
    display: grid;
    gap: 12px;
}

.enquiry-row p {
    margin: 10px 0 0;
    color: var(--ink);
}

@media(max-width: 900px) {
    .admin-overview-grid,
    .admin-filter {
        grid-template-columns: 1fr;
    }
}


/* Admin visual polish, aligned with Motavo website */
.admin-head.admin-hero {
    width: min(1480px,calc(100% - 36px));
    margin: 34px auto 22px;
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 28px;
    align-items: center;
    background:
        radial-gradient(circle at 90% 15%, rgba(155,197,61,.18), transparent 34%),
        linear-gradient(135deg,#1f2328 0%, #252a2f 58%, #101914 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 42px;
    padding: 56px 64px;
    box-shadow: 0 24px 80px rgba(31,35,40,.22);
    overflow: hidden;
    position: relative;
}

.admin-head.admin-hero:after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(155,197,61,.22);
    border-radius: 50%;
    right: -150px;
    top: -190px;
    transform: rotate(-12deg);
}

.admin-head.admin-hero > * {
    position: relative;
    z-index: 1;
}

.admin-head.admin-hero h1 {
    color: #fff;
    opacity: 1;
    font-size: clamp(58px,7vw,118px);
    line-height: .9;
    letter-spacing: -.055em;
    margin: 10px 0 22px;
    text-shadow: 0 2px 0 rgba(0,0,0,.06);
}

.admin-head.admin-hero p {
    max-width: 820px;
    color: rgba(255,255,255,.78);
    font-size: 18px;
    margin: 0;
}

.admin-head.admin-hero .eyebrow {
    color: var(--lime);
}

.button.ghost-light {
    background: #fff;
    color: #1f2328;
    border-color: rgba(255,255,255,.7);
}

.admin-head.admin-hero .hero-actions {
    margin-top: 0;
    justify-content: flex-end;
    min-width: 330px;
}

.admin-head.admin-hero .hero-actions .button {
    box-shadow: 0 16px 42px rgba(0,0,0,.18);
}

.admin-nav {
    width: min(1480px,calc(100% - 36px));
    margin: 0 auto 28px;
    border-radius: 999px;
    padding: 10px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(31,35,40,.08);
}

.admin-nav a {
    padding: 14px 22px;
}

.admin-nav a.active {
    box-shadow: inset 0 -2px 0 rgba(31,35,40,.12);
}

.admin-stats {
    margin-top: 0;
    margin-bottom: 44px;
}

.admin-stats div,
.admin-panel {
    background: linear-gradient(145deg,#fff,#fbfcf8);
    border: 1px solid var(--line);
    box-shadow: 0 18px 55px rgba(31,35,40,.07);
}

.admin-stats strong {
    color: #1f2328;
}

.admin-overview-grid {
    margin-top: 0;
    margin-bottom: 28px;
}

.admin-panel {
    border-radius: 34px;
    padding: 34px;
}

.admin-panel h2 {
    font-size: clamp(34px,3.4vw,62px);
    line-height: .94;
    margin: 0 0 22px;
}

.admin-metric-list div,
.admin-row,
.admin-table td {
    background: #f7f8f4;
    border-color: #e3e7dd;
}

.admin-row {
    border-radius: 20px;
    padding: 16px 18px;
}

.admin-table {
    border-spacing: 0 12px;
}

.admin-filter {
    background: #f7f8f4;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 10px;
}

.admin-filter input,
.admin-filter select {
    background: #fff;
    border-radius: 16px;
}

.status-pill {
    background: #eaf4d3;
}

@media(max-width: 980px) {
    .admin-head.admin-hero {
        grid-template-columns: 1fr;
        padding: 38px 28px;
        min-height: auto;
    }

    .admin-head.admin-hero .hero-actions {
        min-width: 0;
        justify-content: flex-start;
    }

    .admin-nav {
        border-radius: 24px;
    }
}
