/* MolisTrade — editorial marketplace / quiet utility.
   One ground, one ink, one accent. Product photographs carry the visual weight.
   Interactive forms and work screens retain their necessary borders. */
:root {
  color-scheme: light;
  --ink: #183630;
  --heading: #183630;
  --muted: #536861;
  --subtle: #748880;
  --primary: #006d60;
  --primary-deep: #00564c;
  --primary-tint: #e6efeb;
  --blue: #006d60;
  --bg: #f9faf7;
  --surface: #ffffff;
  --wash: #edf1ec;
  --line: #dbe3dc;
  --line-strong: #b8cbc0;
  --shadow: none;
  --focus: #7cbbae;
  --radius: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1,h2,h3 { letter-spacing: -.045em; font-weight: 720; line-height: 1.1; color: var(--heading); overflow-wrap: break-word; }
p { line-height: 1.58; overflow-wrap: break-word; }
.wrap { width: min(1330px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--bg); position: relative; z-index: 40; }
.top-inner { min-height: 84px; display: flex; gap: 34px; align-items: center; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 1.56rem; font-weight: 780; letter-spacing: -.065em; white-space: nowrap; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand span:last-child span { color: var(--primary); }
.brand-mark { display: inline-flex; color: var(--primary); width: 30px; height: 30px; align-items: center; justify-content: center; }
.brand-mark svg { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px,2vw,32px); }
.top nav a { color: var(--ink); font-weight: 560; font-size: .91rem; min-height: 43px; display: inline-flex; align-items: center; padding: 7px 0; }
.top nav a:hover,.top nav a[aria-current="page"] { color: var(--primary); text-decoration: none; }
.top nav a[href="/jual"] { background: var(--ink); color: white; padding: 12px 20px; }
.top nav a[href="/jual"]:hover { background: var(--primary); color: #fff; }
.top nav a.nav-account { color: var(--primary); margin-left: 0; }
.mobile-menu-toggle { display: none; color: var(--ink); background: none; border: 0; margin-left: auto; padding: 9px; cursor: pointer; }
.mobile-menu-toggle svg { width: 24px; height: 24px; display: block; }
main { flex: 1; padding-block: 18px 116px; }
.footer { background: var(--ink); color: #d2e0d7; padding: 68px 0 50px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-wordmark { display: block; color: #f4faf4; font-size: clamp(3rem,8vw,8rem); font-weight: 760; line-height: 1; letter-spacing: -.08em; }
.footer-inner > span:last-child { font-size: .84rem; max-width: 740px; line-height: 1.7; }
.footer a { color: inherit; }
.eyebrow { display: none; } /* replace decorative all-caps labels with real headings */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { margin-block: 0 92px; }
.section > h1,.section h1 { font-size: clamp(2.35rem,4.6vw,4.55rem); margin: 24px 0 26px; }
.section h2 { font-size: clamp(1.8rem,2.9vw,2.8rem); }
.section h3 { font-size: 1.2rem; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.heading h1,.heading h2 { margin: 0; }
/* Home hero: one dominant photo, one useful idea, no cards or decorative badges. */
.hero { display: grid; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); gap: 0; margin: 14px 0 115px; background: #e4ece6; min-height: 570px; }
.hero-copy { padding: clamp(35px,6.1vw,92px) clamp(28px,5vw,74px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.hero h1 { font-size: clamp(3.5rem,5.8vw,6.5rem); line-height: .99; letter-spacing: -.078em; font-weight: 760; margin: 0 0 27px; max-width: 700px; text-wrap: balance; }
.hero p { color: #425b53; font-size: clamp(1.04rem,1.26vw,1.22rem); line-height: 1.57; max-width: 530px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn-outline { background: transparent; border: 0; color: var(--ink); padding-inline: 10px; }
.hero .btn-outline:hover { background: transparent; color: var(--primary); }
.hero-illustration { min-width: 0; min-height: 100%; position: relative; overflow: hidden; background: #d9e4db; }
.hero-photo-grid { height: 100%; }
.hero-photo { margin: 0; width: 100%; height: 100%; background: #dbe4dc; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% 57%; }
.hero-photo-credit { position: absolute; right: 18px; bottom: 15px; background: rgba(249,250,247,.94); color: #425a51; padding: 6px 9px; font-size: .7rem; line-height: 1.4; margin: 0; max-width: calc(100% - 32px); }
.hero-category { min-height: 0; padding: 0; display: block; margin-block: 14px 74px; background: transparent; }
.hero-category .hero-copy { max-width: 930px; padding: 38px 0 20px; }
.hero-category h1 { font-size: clamp(3rem,6vw,6rem); margin-bottom: 23px; }
.hero-category p { margin-bottom: 25px; }
.hero-no-visual .hero-illustration { display: none; }
/* Catalog: photos and specifications, not boxed feature cards. */
.catalog-head { margin-bottom: 32px; }
.catalog-head h2 { font-size: clamp(2.2rem,3.4vw,3.6rem); }
.catalog-search { width: 100%; max-width: none; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 0 18px; }
.catalog-search svg { width: 21px; color: var(--primary); flex: none; }
.catalog-search input { border: 0; background: transparent; box-shadow: none; padding: 16px 4px; margin: 0; min-height: 56px; outline: none; }
.catalog-search:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; }
.catalog-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.catalog-filters label { font-size: .82rem; font-weight: 560; color: var(--muted); margin: 0; }
.catalog-filters select { margin-top: 7px; width: 100%; background: #eef2ed; border-color: transparent; min-width: 0; min-height: 48px; }
#cards { margin-top: 27px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 23px; row-gap: 46px; }
.vehicle { background: transparent; min-width: 0; position: relative; color: var(--ink); }
.vehicle:hover,.vehicle:focus-within { z-index: 5; }
.vehicle-main { display: block; color: inherit; }
.vehicle-main:hover { text-decoration: none; color: inherit; }
.vehicle-image { aspect-ratio: 1.37; overflow: hidden; background: #e6ebe5; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vehicle-main:hover .vehicle-image img { transform: scale(1.025); }
.vehicle-copy { padding: 17px 0 13px; }
.listing-location { font-size: .82rem; color: var(--muted); }
.vehicle-copy h3 { margin: 8px 0 13px; font-size: clamp(1.12rem,1.4vw,1.36rem); letter-spacing: -.035em; }
.vehicle-copy strong { font-size: clamp(1.3rem,1.65vw,1.67rem); letter-spacing: -.04em; font-variant-numeric: tabular-nums; font-weight: 720; color: var(--heading); }
.listing-spec { font-size: .84rem; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.vehicle-seller { padding: 9px 0 0; }
.seller-info { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-width: 0; vertical-align: middle; }
.seller-trigger { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 590; font-size: .88rem; min-width: 0; }
.seller-trigger:hover { color: var(--primary); text-decoration: none; }
.seller-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-avatar { display: inline-grid; place-items: center; background: #dbe9df; color: var(--primary-deep); flex: none; width: 35px; height: 35px; border-radius: 50%; font-weight: 690; }
.seller-info-compact .seller-avatar { width: 29px; height: 29px; font-size: .77rem; }
.seller-info-compact .seller-trigger { font-size: .81rem; }
.seller-popover { position: absolute; left: 0; bottom: calc(100% + 12px); display: none; min-width: 235px; max-width: min(300px, 84vw); padding: 19px; background: white; box-shadow: 0 12px 32px rgba(15,35,30,.16); color: var(--ink); line-height: 1.5; font-size: .85rem; font-weight: 420; flex-direction: column; gap: 7px; pointer-events: none; z-index: 50; }
.seller-popover strong { font-size: .98rem; }
.seller-popover small { font-size: .78rem; color: var(--muted); margin-top: 9px; }
@media (hover:hover) { .seller-info:hover .seller-popover { display: flex; } }
.seller-info:focus-within .seller-popover { display: flex; }
.placeholder { height: 100%; min-height: 170px; display: grid; place-items: center; background: #e3ebe5; color: #57786d; font-size: 2rem; font-weight: 700; }
.placeholder.large { min-height: 400px; }
.empty-state { grid-column: 1 / -1; background: var(--wash); padding: 57px 35px; }
.empty-state h3 { margin-top: 0; }
.empty-state p { max-width: 530px; }
/* The editorial story replaces three interchangeable feature cards. */
.trust-story { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(35px,7vw,120px); align-items: end; margin: 144px 0 125px; }
.trust-story h2 { font-size: clamp(3rem,5.9vw,6.15rem); line-height: 1.04; letter-spacing: -.065em; margin: 0; max-width: 770px; }
.trust-story-copy { max-width: 460px; }
.trust-story p { font-size: 1.18rem; line-height: 1.65; color: var(--muted); margin: 0 0 30px; }
.trust-story a { font-weight: 680; font-size: 1.06rem; }
.tool-story { padding: clamp(38px,6vw,86px); background: var(--ink); color: #ecf4eb; display: flex; align-items: end; justify-content: space-between; gap: 35px; margin: 0 0 30px; }
.tool-story > div { max-width: 690px; }
.tool-story h2 { color: white; font-size: clamp(2.7rem,4.7vw,5.3rem); line-height: 1.04; letter-spacing: -.06em; margin: 0 0 20px; }
.tool-story p { font-size: 1.06rem; margin: 0; max-width: 550px; color: #d1e1d8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 23px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-size: .91rem; font-weight: 650; cursor: pointer; text-align: center; border-radius: 2px; transition: background .15s ease, color .15s ease; }
.btn:hover { color: #fff; background: var(--primary-deep); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--wash); color: var(--primary-deep); }
.btn-light { color: var(--ink); border-color: #f4f8ef; background: #f4f8ef; white-space: nowrap; }
.btn-light:hover { color: var(--ink); background: #dfece1; }
.btn-small { font-size: .81rem; min-height: 38px; padding: 8px 14px; }
.block { display: flex; width: 100%; margin: 12px 0; }
/* Work surfaces: dense, legible, functional, no decorative icon cards. */
.panel { background: white; padding: clamp(23px,3.25vw,42px); margin: 22px 0; border: 0; border-radius: 2px; }
.panel h1,.panel h2 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.notice { background: #e5eee7; color: #255b4d; padding: 15px 19px; line-height: 1.55; font-size: .92rem; }
.notice.warning { background: #fff0e6; color: #9a4f30; }
.auth-layout { max-width: 550px; margin: 38px auto 65px; }
.auth-layout .panel { padding: clamp(24px,4.5vw,56px); }
.auth-layout .panel h1 { font-size: clamp(2.3rem,4vw,3.5rem); margin-bottom: 17px; }
.auth-layout .panel>.muted { margin-top: 0; }
form label { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; margin: 20px 0; }
input,select,textarea { font: inherit; display: block; width: 100%; background: #f6f8f5; color: var(--ink); min-height: 47px; padding: 12px 14px; border: 1px solid #c7d6cc; border-radius: 2px; margin-top: 8px; }
input:focus,select:focus,textarea:focus { border-color: var(--primary); }
input::placeholder,textarea::placeholder { color: #81958b; }
textarea { resize: vertical; }
.text-button { border: 0; padding: 7px 0; cursor: pointer; background: none; color: var(--primary); font: inherit; font-weight: 610; }
.form-status { margin: 10px 0; }
.grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
.list-row,.admin-entry { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child,.admin-entry:last-child { border-bottom: 0; }
.admin-entry h3 { margin: 0 0 6px; }
.buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing-actions { justify-content: flex-end; }
.contact-action { display: grid; gap: 10px; margin-top: 24px; }
.contact-action .btn { justify-content: center; }
/* Vehicle detail: photograph first; the buying information is a readable sidebar. */
.detail-layout { display: grid; grid-template-columns: minmax(0,1.36fr) minmax(350px,.74fr); gap: clamp(26px,3.9vw,56px); align-items: start; margin-top: 28px; }
.detail-layout > article { min-width: 0; }
.detail-layout aside.panel { margin: 0; background: #eef3ed; padding: clamp(24px,3vw,43px); }
.detail-layout aside h1 { font-size: clamp(2rem,2.9vw,3.25rem); margin: 0 0 25px; }
.detail-layout .price { font-size: clamp(1.9rem,2.4vw,2.7rem); letter-spacing: -.055em; color: var(--ink); margin: 0 0 21px; }
.detail-seller { margin: 0 0 28px; }
.spec { border-top: 1px solid #cbdcd0; display: grid; grid-template-columns: 1fr auto; padding: 24px 0; gap: 18px; font-size: .91rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 650; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.gallery-item { display: block; padding: 0; border: 0; margin: 0; background: #e5ebe4; width: 100%; overflow: hidden; cursor: zoom-in; }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-item:first-child img { aspect-ratio: 16/10; }
.gallery-item:hover img { filter: brightness(.96); }
.description { white-space: pre-wrap; }
.seller-page-header { display: flex; gap: 24px; align-items: flex-start; margin-block: 36px 65px; background: #edf2ec; }
.seller-page-header h1 { margin: 2px 0 10px; }
.seller-page-header p { margin: 5px 0; }
.seller-page-avatar { display: grid; flex: none; place-items: center; height: 75px; width: 75px; font-size: 2rem; font-weight: 720; border-radius: 50%; background: #d9e7dc; color: var(--primary); }
.tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 30px; }
.tiles .panel { margin: 0; background: #edf1ec; color: var(--ink); transition: background .15s; }
.tiles .panel:hover { background: #dfebe1; text-decoration: none; }
.tiles .panel h2 { margin-bottom: 14px; }
.tiles .panel p { margin: 0; color: var(--muted); }
.tile-visual { display: none; }
.tool { max-width: 700px; }
.tool .notice { margin-top: 20px; }
.loading { min-height: 120px; padding: 25px; color: var(--muted); }
.dashboard-view { display: grid; grid-template-columns: minmax(280px,.77fr) minmax(0,1.55fr); column-gap: 21px; align-items: start; }
.dashboard-view > .heading { grid-column: 1 / -1; padding: 19px 0 14px; }
.dashboard-view > .panel { margin: 0; }
.dashboard-view > #admin-shortcut { grid-column: 1 / -1; }
.admin-view>.heading { margin-bottom: 25px; }
/* Full-resolution gallery lightbox is intentionally floating. */
.photo-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(7,18,15,.96); padding: clamp(8px,2vw,24px); }
.photo-viewer-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 14px; width: min(1450px,100%); height: min(95dvh,1100px); color: #fff; min-height: 0; }
.photo-viewer-bar { display: flex; gap: 18px; align-items: center; justify-content: flex-end; min-height: 40px; }
.photo-viewer-count { margin-right: auto; font-size: .92rem; font-variant-numeric: tabular-nums; }
.photo-viewer-original { color: #dae9e0; font-size: .85rem; }
.photo-viewer-close,.photo-viewer-prev,.photo-viewer-next { display: grid; place-items: center; border: 1px solid #5b786d; background: #163c32; color: #fff; cursor: pointer; border-radius: 2px; }
.photo-viewer-close { width: 40px; height: 40px; font-size: 1.5rem; }
.photo-viewer-prev,.photo-viewer-next { width: 44px; height: 55px; font-size: 2rem; }
.photo-viewer button:hover { background: #286754; }
.photo-viewer-stage { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 13px; min-width: 0; min-height: 0; }
.photo-viewer-image { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.photo-viewer-strip { display: flex; overflow-x: auto; gap: 8px; justify-content: center; padding: 4px 6px 10px; min-height: 66px; }
.photo-viewer-thumb { width: 78px; height: 57px; flex: 0 0 78px; padding: 2px; border: 2px solid transparent; background: none; cursor: pointer; }
.photo-viewer-thumb[aria-current="true"] { border-color: #d4e9db; }
.photo-viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width:1100px) {
  .top-inner { gap: 18px; }
  .top nav { gap: 16px; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: clamp(3rem,5.7vw,4.5rem); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout { grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr); gap: 24px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 42px); }
  .top-inner { min-height: 70px; }
  .mobile-menu-toggle { display: inline-flex; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); padding: 16px 21px 25px; flex-direction: column; align-items: stretch; gap: 3px; box-shadow: 0 15px 25px rgba(15,35,27,.09); }
  .top nav.is-open { display: flex; }
  .top nav a { display: flex; min-height: 45px; padding: 11px 9px; }
  .top nav a[href="/jual"] { justify-content: center; margin-top: 8px; }
  .top nav a.nav-account { justify-content: center; }
  .hero { grid-template-columns: 1fr; margin-bottom: 75px; }
  .hero-copy { padding: 47px 37px 48px; }
  .hero h1 { font-size: clamp(3.25rem,9vw,5rem); }
  .hero-illustration { min-height: 390px; }
  .hero-category .hero-copy { padding: 25px 0; }
  .hero-category { margin-bottom: 38px; }
  .trust-story { grid-template-columns: 1fr; gap: 22px; margin-block: 95px; }
  .tool-story { flex-direction: column; align-items: flex-start; }
  .detail-layout { grid-template-columns: 1fr; }
  .dashboard-view { grid-template-columns: 1fr; }
  .dashboard-view > .heading,.dashboard-view > #admin-shortcut { grid-column: 1; }
  .catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark svg { width: 26px; height: 26px; }
  main { padding-top: 6px; padding-bottom: 74px; }
  .hero { margin: 8px 0 72px; }
  .hero-copy { padding: 36px 26px 38px; }
  .hero h1 { font-size: clamp(3rem,12vw,4rem); line-height: 1.01; margin-bottom: 22px; }
  .hero p { font-size: 1rem; }
  .hero-actions { align-items: stretch; gap: 12px; }
  .hero-actions .btn { min-width: 0; padding-inline: 15px; font-size: .86rem; }
  .hero-illustration { min-height: 280px; }
  .hero-photo-credit { font-size: .66rem; }
  .hero-category { margin: 8px 0 37px; }
  .hero-category .hero-copy { padding: 19px 0 8px; }
  .hero-category h1 { font-size: clamp(2.6rem,11vw,3.8rem); }
  .cards,.tiles,.grid-two { grid-template-columns: 1fr; }
  .cards { row-gap: 38px; }
  .vehicle-image { aspect-ratio: 1.45; }
  .catalog-head h2 { font-size: 2.2rem; }
  .catalog-filters { gap: 9px; }
  .catalog-filters label { font-size: .76rem; }
  .catalog-filters select { padding: 10px 7px; font-size: .81rem; }
  .trust-story { margin: 96px 0; }
  .trust-story h2 { font-size: 2.85rem; }
  .trust-story p { font-size: 1.02rem; }
  .tool-story { padding: 38px 27px; margin-bottom: 0; }
  .tool-story h2 { font-size: 2.65rem; }
  .heading { align-items: flex-start; }
  .section { margin-bottom: 64px; }
  .panel { padding: 22px; }
  .list-row,.admin-entry { flex-direction: column; align-items: flex-start; }
  .listing-actions { justify-content: flex-start; }
  .seller-page-header { gap: 15px; }
  .seller-page-avatar { width: 53px; height: 53px; font-size: 1.55rem; }
  .gallery { gap: 5px; }
  .gallery-item:first-child img { aspect-ratio: 4/3; }
  .photo-viewer { padding: 8px; }
  .photo-viewer-shell { height: 97dvh; gap: 8px; }
  .photo-viewer-stage { grid-template-columns: 31px minmax(0,1fr) 31px; gap: 3px; }
  .photo-viewer-prev,.photo-viewer-next { width: 31px; height: 46px; font-size: 1.5rem; }
  .photo-viewer-thumb { flex-basis: 58px; width: 58px; height: 45px; }
  .photo-viewer-original { font-size: .72rem; }
  .footer { padding: 48px 0 35px; }
}
@media (hover: none) { html { scrollbar-gutter: auto; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
