:root {
    --ink: #17231f; --muted: #61706a; --green-950: #102e27; --green-900: #163f34;
    --green-700: #24624f; --green-100: #e7f0ec; --green-50: #f3f7f5; --sand: #f4f0e8;
    --surface: #fff; --line: #dbe2de; --danger: #a33636; --warning: #9a6714;
    --shadow: 0 18px 55px rgba(16, 46, 39, .09); --radius: 18px; --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; color: var(--ink); background: #fbfcfb; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body[data-authenticated="true"] { padding-bottom: 72px; }
a { color: var(--green-700); text-underline-offset: 3px; }
img { max-width: 100%; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 9999; transform: translateY(-150%); padding: .75rem 1rem; border-radius: 8px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.container { --bs-gutter-x: 2rem; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.surface-muted { background: var(--green-50); }
.eyebrow { margin-bottom: .6rem; color: var(--green-700); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.display-title { max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 7vw, 5.4rem); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.page-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.03; letter-spacing: -.03em; }
.section-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.1; }
.lead-copy { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.text-muted { color: var(--muted) !important; }
.site-header { position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid rgba(219, 226, 222, .8); background: rgba(251, 252, 251, .94); backdrop-filter: blur(14px); }
.site-header .navbar { min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand > span:last-child > span { color: var(--green-700); }
.brand small { font-size: .65em; font-weight: 700; }
.brand-mark { position: relative; display: inline-block; width: 30px; height: 30px; overflow: hidden; border-radius: 50% 50% 46% 54%; background: var(--green-900); transform: rotate(-8deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { position: absolute; content: ""; border-radius: 999px; background: #d9e7a9; }
.brand-mark::before { width: 17px; height: 4px; left: 7px; top: 9px; transform: rotate(18deg); }
.brand-mark::after { width: 13px; height: 4px; left: 9px; top: 17px; transform: rotate(-20deg); }
.nav-link { margin: 0 .1rem; border-radius: 9px; color: #34453f; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: var(--green-900); background: var(--green-100); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions form { margin: 0; }
.menu-button { width: 48px; height: 48px; border: 0; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--ink); }
.btn { min-height: 48px; padding: .68rem 1rem; border-radius: 11px; font-weight: 750; }
.btn-sm { min-height: 40px; padding: .46rem .72rem; }
.btn-primary { --bs-btn-bg: var(--green-900); --bs-btn-border-color: var(--green-900); --bs-btn-hover-bg: var(--green-950); --bs-btn-hover-border-color: var(--green-950); --bs-btn-active-bg: var(--green-950); --bs-btn-active-border-color: var(--green-950); }
.btn-outline-primary { --bs-btn-color: var(--green-900); --bs-btn-border-color: var(--green-900); --bs-btn-hover-bg: var(--green-900); --bs-btn-hover-border-color: var(--green-900); }
.btn-quiet { color: var(--green-900); background: transparent; }
.btn-quiet:hover { background: var(--green-100); color: var(--green-950); }
.form-control, .form-select { min-height: 50px; border-color: #ccd6d1; border-radius: 11px; color: var(--ink); }
textarea.form-control { min-height: 130px; }
.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus-visible, a:focus-visible { border-color: var(--green-700); box-shadow: 0 0 0 .23rem rgba(36, 98, 79, .2); outline: none; }
.form-label { color: #354740; font-size: .91rem; font-weight: 750; }
.form-hint { color: var(--muted); font-size: .84rem; }
.select2-container--bootstrap-5 .select2-selection { min-height: 50px; border-color: #ccd6d1; border-radius: 11px; }
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered { padding: .3rem .5rem; }
.select-logo { width: 24px; height: 24px; margin-right: .5rem; object-fit: contain; }
.vehicle-card-brand, .vehicle-detail-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; color: #43554e; font-size: .82rem; font-weight: 750; }
.vehicle-card-brand img { width: 28px; height: 28px; object-fit: contain; }
.vehicle-detail-brand img { width: 34px; height: 34px; object-fit: contain; }
.card-soft { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 1px rgba(16, 46, 39, .02); }
.panel { padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.flash-wrap { position: relative; z-index: 3; margin-top: 1rem; }
.alert { border: 0; border-radius: 12px; }
.empty-state { padding: clamp(2.5rem, 7vw, 5rem) 1.25rem; border: 1px dashed #b9c8c1; border-radius: var(--radius); background: white; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; background: var(--green-100); color: var(--green-900); font-size: 1.7rem; }
.badge-status { display: inline-flex; align-items: center; min-height: 28px; padding: .3rem .65rem; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: .78rem; font-weight: 800; }
.badge-status.warning { background: #fff2d6; color: var(--warning); }
.badge-status.danger { background: #fde8e8; color: var(--danger); }
.table-responsive { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.table { margin: 0; }
.table > :not(caption) > * > * { padding: 1rem; border-color: var(--line); vertical-align: middle; }
.hero { position: relative; overflow: hidden; padding: clamp(3.8rem, 8vw, 7.4rem) 0 4.3rem; background: var(--sand); }
.hero::before { position: absolute; content: ""; right: -10%; top: -45%; width: min(620px, 70vw); aspect-ratio: 1; border: 1px solid rgba(22, 63, 52, .13); border-radius: 50%; box-shadow: 0 0 0 80px rgba(22, 63, 52, .035), 0 0 0 160px rgba(22, 63, 52, .025); }
.hero-copy { position: relative; z-index: 1; }
.hero .lead-copy { margin: 1.3rem 0 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.2rem; color: #455851; font-size: .88rem; }
.hero-trust span::before { content: "✓"; margin-right: .4rem; color: var(--green-700); font-weight: 900; }
.search-stage { position: relative; z-index: 2; margin-top: -1.4rem; }
.search-box { padding: 1rem; border: 1px solid rgba(22, 63, 52, .14); border-radius: 22px; background: rgba(255, 255, 255, .98); box-shadow: var(--shadow); }
.search-grid { display: grid; gap: .75rem; }
.search-box .btn { width: 100%; }
.brand-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.brand-chip { display: flex; align-items: center; min-height: 64px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); font-weight: 750; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.brand-chip:hover { border-color: var(--green-700); color: var(--green-900); transform: translateY(-2px); }
.brand-chip img { width: 32px; height: 32px; margin-right: .65rem; object-fit: contain; }
.vehicle-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.vehicle-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, box-shadow .2s ease; }
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vehicle-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #e7edea, #f6f8f7); }
.vehicle-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card:hover .vehicle-card-media img { transform: scale(1.025); }
.vehicle-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #7d9088; font-weight: 750; }
.vehicle-card-body { padding: 1rem; }
.vehicle-card h3 { margin: 0 0 .25rem; font-size: 1.08rem; line-height: 1.3; }
.vehicle-card h3 a { color: var(--ink); text-decoration: none; }
.vehicle-card-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: .65rem 0; color: var(--muted); font-size: .86rem; }
.vehicle-card-price { font-size: 1.32rem; font-weight: 850; letter-spacing: -.025em; }
.vehicle-card-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.search-layout { display: grid; gap: 1.4rem; }
.filter-panel { padding: 1.15rem; }
.filter-grid { display: grid; gap: .9rem; }
.filter-section { padding: 1rem 0; border-top: 1px solid var(--line); }
.filter-section:first-child { padding-top: 0; border-top: 0; }
.search-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.filter-trigger { display: inline-flex; }
.active-filter-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: white; color: var(--green-900); font-size: .75rem; }
.mobile-filter-actions { position: sticky; bottom: 0; margin: 1rem -1rem -1rem; padding: 1rem; border-top: 1px solid var(--line); background: white; }
.pagination .page-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-color: var(--line); color: var(--green-900); }
.pagination .active .page-link { background: var(--green-900); border-color: var(--green-900); }
.detail-gallery { display: grid; gap: .65rem; }
.gallery-main, .gallery-thumb { overflow: hidden; border-radius: var(--radius); background: var(--green-50); }
.gallery-main { aspect-ratio: 16 / 10; }
.gallery-main img, .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.gallery-thumb { aspect-ratio: 4 / 3; border: 0; padding: 0; }
.detail-price { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 850; letter-spacing: -.04em; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.fact { padding: .85rem; border-radius: 12px; background: var(--green-50); }
.fact dt { color: var(--muted); font-size: .77rem; font-weight: 650; }
.fact dd { margin: .18rem 0 0; font-weight: 800; }
.sticky-contact { position: sticky; top: 96px; }
.equipment-list { columns: 1; padding-left: 1.2rem; }
.equipment-list li { margin-bottom: .45rem; break-inside: avoid; }
.contact-mobile { position: fixed; z-index: 1020; right: 0; bottom: 0; left: 0; display: flex; gap: .6rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; box-shadow: 0 -10px 35px rgba(16,46,39,.1); }
.contact-mobile .btn { flex: 1; }
.account-shell { display: grid; gap: 1.4rem; }
.account-nav { display: flex; gap: .4rem; overflow: auto; padding-bottom: .25rem; scrollbar-width: none; }
.account-nav a { flex: 0 0 auto; padding: .65rem .85rem; border-radius: 10px; color: #44564f; font-weight: 700; text-decoration: none; }
.account-nav a:hover, .account-nav a.active { background: var(--green-100); color: var(--green-900); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.metric { padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric strong { display: block; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.wizard-steps { display: flex; gap: .4rem; overflow: auto; margin-bottom: 1.2rem; padding-bottom: .5rem; }
.wizard-step { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-weight: 800; text-decoration: none; }
.wizard-step.active, .wizard-step.done { border-color: var(--green-900); background: var(--green-900); color: white; }
.upload-zone { padding: 2rem 1rem; border: 2px dashed #b3c3bc; border-radius: var(--radius); background: var(--green-50); text-align: center; }
.upload-zone.dragover { border-color: var(--green-700); background: var(--green-100); }
.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
.image-tile { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.image-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-tile-actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem; }
.message-list { display: grid; gap: .7rem; }
.message-bubble { max-width: min(78%, 650px); padding: .8rem 1rem; border-radius: 16px 16px 16px 4px; background: var(--green-100); }
.message-bubble.mine { margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--green-900); color: white; }
.message-bubble small { display: block; margin-top: .35rem; opacity: .72; }
.admin-nav { display: flex; gap: .5rem; overflow: auto; margin-bottom: 1.5rem; }
.site-footer { margin-top: 3rem; padding: 3.5rem 0 1.5rem; background: var(--green-950); color: #d6e2dd; }
.brand-light { color: white; }
.site-footer p { max-width: 300px; margin-top: 1rem; color: #aabdb5; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h2 { margin-bottom: .8rem; color: white; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; margin: .45rem 0; color: #c6d6cf; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #91a79e; font-size: .82rem; }
.site-footer .footer-bottom a { display: inline; margin: 0; color: #b9cbc4; text-decoration: underline; }
.mobile-tabbar { position: fixed; z-index: 1040; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 68px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -7px 25px rgba(16,46,39,.08); }
.mobile-tabbar a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .15rem; min-width: 0; color: var(--muted); font-size: .67rem; font-weight: 750; text-decoration: none; }
.mobile-tabbar a span { font-size: 1.25rem; line-height: 1; }
.mobile-tabbar a.active { color: var(--green-900); }
.mobile-tabbar .tabbar-primary span { display: grid; place-items: center; width: 38px; height: 38px; margin-top: -15px; border-radius: 50%; background: var(--green-900); color: white; box-shadow: 0 7px 18px rgba(16,46,39,.25); }
@media (min-width: 576px) { .brand-strip { grid-template-columns: repeat(3, 1fr); } .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .image-grid { grid-template-columns: repeat(3, 1fr); } .equipment-list { columns: 2; } }
@media (min-width: 768px) { .search-grid { grid-template-columns: 1.35fr 1.35fr .8fr .8fr auto; align-items: end; } .search-box .btn { width: auto; } .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .metric-grid { grid-template-columns: repeat(4, 1fr); } .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gallery-thumbs { grid-template-columns: repeat(5, 1fr); } .contact-mobile { display: none; } }
@media (min-width: 992px) { body[data-authenticated="true"] { padding-bottom: 0; } .offcanvas-body { display: flex; } .brand-strip { grid-template-columns: repeat(6, 1fr); } .vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .search-layout { grid-template-columns: 290px minmax(0, 1fr); align-items: start; } .filter-panel { position: sticky; top: 92px; } .filter-trigger, .mobile-filter-actions { display: none; } #filterSheet { position: static; visibility: visible !important; transform: none !important; width: auto; height: auto; border: 0; background: transparent; } #filterSheet .offcanvas-header { display: none; } #filterSheet .offcanvas-body { display: block; overflow: visible; padding: 0; } #filterSheet .filter-panel { display: block; } .detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 2rem; } .account-shell { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } .account-nav { position: sticky; top: 96px; display: grid; overflow: visible; } .mobile-tabbar { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
