:root {
  color-scheme: light;
  --ink: #10252a;
  --muted: #627278;
  --paper: #f4f3ee;
  --card: #fff;
  --line: #d8dedb;
  --accent: #db5b36;
  --accent-dark: #b84020;
  --forest: #163b36;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: center; padding: 12px clamp(20px, 5vw, 76px); border-bottom: 1px solid rgba(255,255,255,.13); background: linear-gradient(105deg,#071a1b 0%,#102d2c 48%,#183f39 100%); position: sticky; top: 0; z-index: 5; box-shadow: 0 8px 24px rgba(7,26,27,.18); }
.header-left { display: flex; align-items: center; gap: clamp(22px,3vw,46px); }
.brand { display: flex; align-items: center; overflow: hidden; padding: 3px 0; }
.brand img { display: block; width: min(220px, 32vw); height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.brand span span { color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--forest); color: white; border-radius: 50% 50% 45% 55%; font-family: Georgia, serif; }
.main-nav { display: flex; align-items: center; gap: 3px; padding: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; position: relative; border: 0; border-radius: 9px; padding: 10px 12px; color: rgba(255,255,255,.78); background: transparent; font-size: .86rem; font-weight: 800; transition: color .18s ease, background .18s ease; }
.nav-link span { color: rgba(255,255,255,.62); font-size: 1rem; }
.nav-link::after { content: ""; position: absolute; height: 2px; left: 12px; right: 12px; bottom: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .18s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.12); }
.nav-link.active { color: white; background: rgba(255,255,255,.18); }
.nav-link.active span { color: #ffb096; }
.nav-link.active::after { transform: scaleX(1); }
main { width: min(1180px, calc(100% - 40px)); margin: auto; padding-bottom: 64px; }
.intro { min-height: 550px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; margin: clamp(34px, 6vw, 72px) 0 28px; border-radius: 28px; background: var(--forest); color: white; box-shadow: 0 28px 70px rgba(16,37,42,.18); }
.intro-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 70px); position: relative; z-index: 1; }
.intro-content::after { content: ""; position: absolute; width: 320px; height: 320px; left: -160px; bottom: -210px; border: 55px solid rgba(219,91,54,.14); border-radius: 50%; pointer-events: none; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.intro .eyebrow { color: #ff9778; }
h1 { margin: 0; font: 700 clamp(2.65rem, 5.4vw, 5rem)/.96 Georgia, serif; letter-spacing: -.045em; }
h1 em { color: #ff8b68; font-weight: 400; }
.intro-copy { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.65; max-width: 51ch; margin: 25px 0 0; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.hero-button { display: inline-flex; align-items: center; gap: 22px; padding: 14px 17px; border-radius: 11px; color: var(--forest); background: white; text-decoration: none; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.hero-button:hover { transform: translateY(-2px); background: #fff5f1; }
.hero-button span { color: var(--accent); font-size: 1.2rem; }
.fresh-note { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 700; }
.fresh-note i { width: 8px; height: 8px; background: #68d391; border-radius: 50%; box-shadow: 0 0 0 5px rgba(104,211,145,.12); }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 26px 0 0; margin: 34px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.trust-list li { display: grid; gap: 5px; }
.trust-list strong { font-size: .84rem; }
.trust-list span { color: rgba(255,255,255,.56); font-size: .73rem; line-height: 1.4; }
.intro-showcase { min-height: 100%; position: relative; display: block; overflow: hidden; color: white; text-decoration: none; }
.intro-showcase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest) 0%, rgba(22,59,54,.12) 38%, rgba(10,23,22,.04) 100%); }
.intro-showcase img { width: 100%; height: 100%; object-fit: cover; }
.showcase-label { position: absolute; right: 24px; bottom: 24px; z-index: 1; display: grid; gap: 4px; min-width: 190px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.26); border-radius: 12px; background: rgba(10,27,26,.78); backdrop-filter: blur(9px); }
.showcase-label span { color: #ff9a7d; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.showcase-label strong { font: 700 1.12rem Georgia, serif; }
.toolbar { scroll-margin-top: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.toolbar p { color: var(--muted); white-space: nowrap; }
.toolbar strong { color: var(--ink); }
.search-wrap { width: min(540px, 100%); display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.search-wrap:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,59,54,.12); }
.search-wrap input { width: 100%; border: 0; outline: 0; padding: 14px 0; background: transparent; font-size: 1rem; }
.car-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 0 22px; }
.car-filters label { display: grid; gap: 5px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.car-filters input, .car-filters select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); background: white; }
.car-filters input:focus, .car-filters select:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,59,54,.12); }
.filter-reset { align-self: end; min-height: 42px; padding: 9px 12px; white-space: nowrap; }
.catalog-loading { margin: 10px 0 22px; color: var(--muted); font-weight: 700; }
.price-lei { margin: 4px 0 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.car-card { border: 1px solid var(--line); background: var(--card); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.clickable-card { cursor: pointer; }
.clickable-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(16,37,42,.12); }
.car-visual { height: 190px; display: grid; place-items: center; overflow: hidden; position: relative; background: linear-gradient(145deg, #214a43, #0c2626); }
.car-visual img { width: 100%; height: 100%; object-fit: cover; }
.car-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.car-visual .placeholder { font: italic 700 2rem Georgia, serif; color: rgba(255,255,255,.88); letter-spacing: -.04em; }
.year-chip { position: absolute; left: 14px; top: 14px; color: var(--forest); background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.card-body { padding: 20px; }
.card-body h2 { margin: 0 0 10px; font: 700 1.35rem/1.15 Georgia, serif; }
.price { margin: 0; color: var(--accent-dark); font-size: 1.4rem; font-weight: 800; }
.commission-note { margin: 4px 0 0; color: var(--muted); font-size: .7rem; font-weight: 700; }
.expires-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 650; }
.car-final-price { display: grid; justify-items: end; gap: 3px; text-align: right; }
.car-final-price span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.car-final-price small { color: #8a9694; font-size: .72rem; }
.facts { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 0; }
.facts span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .78rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .86rem; }
.text-button { color: var(--forest); border: 0; background: none; font-weight: 800; padding: 6px 0; }
.primary, .secondary { border: 0; border-radius: 10px; padding: 13px 20px; font-weight: 800; }
.primary { color: white; background: var(--accent); box-shadow: 0 5px 16px rgba(219,91,54,.2); }
.primary:hover { background: var(--accent-dark); }
.primary.compact { padding: 11px 16px; }
.secondary { color: var(--ink); background: #e4e7e3; }
.secondary.compact { padding: 11px 16px; }
.account-actions { display: flex; align-items: center; gap: 9px; position: absolute; right: clamp(20px, 5vw, 76px); }
[hidden] { display: none !important; }
.empty { padding: 60px; text-align: center; color: var(--muted); }
.offers-view { min-height: 620px; padding: clamp(55px,8vw,96px) 0 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 35px; }
.section-heading h1 { font-size: clamp(2.8rem,6vw,5rem); }
.section-heading > div > p:last-child { max-width: 48ch; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.offer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.offer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.offer-visual { display: block; color: inherit; text-decoration: none; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(16,37,42,.12); }
.offer-visual { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: white; font-weight: 850; }
.offer-visual.has-image { position: relative; overflow: hidden; min-height: 190px; }
.offer-visual.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(10,30,28,.18),rgba(10,30,28,.76)); }
.offer-visual.has-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-visual.has-image .offer-icon, .offer-visual.has-image .offer-type-label { position: relative; z-index: 1; }
.offer-visual.insurance { background: linear-gradient(145deg,#163b36,#2d6b60); }
.offer-visual.documents { background: linear-gradient(145deg,#a63e22,#df6845); }
.offer-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(255,255,255,.12); font: 700 1.8rem Georgia,serif; }
.offer-body { padding: 21px; }
.offer-provider { margin: 0 0 9px; color: var(--accent-dark); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.offer-body h2 { min-height: 2.35em; margin: 0; font: 700 1.35rem/1.18 Georgia,serif; }
.offer-price { display: flex; align-items: baseline; gap: 10px; margin: 15px 0 20px; color: var(--ink); font-size: 1.25rem; }
.offer-price strong { font-weight: 850; }
.offer-price del, .offer-detail-price del { color: #8a9694; font-size: .82em; font-weight: 650; text-decoration-thickness: 2px; }
.offer-detail-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.offer-detail-price strong { color: var(--accent-dark); }
.requirements-preview { margin: 0 0 19px; padding: 13px 14px; border-radius: 11px; background: #f5f3ee; }
.requirements-preview > p { margin: 0 0 9px; color: var(--forest); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.requirements-preview > p span { margin-right: 4px; color: var(--accent-dark); }
.requirements-preview ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.requirements-preview li { overflow: hidden; color: var(--muted); font-size: .77rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.requirements-preview li::before { content: "•"; margin-right: 7px; color: var(--accent); }
.requirements-preview small { display: block; margin-top: 9px; color: var(--accent-dark); font-size: .72rem; font-weight: 750; }
.offer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .83rem; }
.offer-meta .text-button { text-align: right; }
.offers-empty { padding: 76px 25px; border: 1px dashed #bdc8c3; border-radius: 20px; text-align: center; background: rgba(255,255,255,.42); }
.offers-empty > span { display: grid; place-items: center; width: 72px; height: 72px; margin: auto; border-radius: 22px; color: white; background: var(--forest); font: 700 2rem Georgia,serif; }
.offers-empty h2 { margin: 20px 0 8px; font: 700 1.55rem Georgia,serif; }
.offers-empty p { margin: 0 0 22px; color: var(--muted); }
dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 36px); border: 0; border-radius: 20px; padding: 0; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(7,25,25,.65); backdrop-filter: blur(4px); }
#car-form, #offer-form { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.dialog-head h2 { margin: 0; font: 700 2rem Georgia, serif; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef0ed; font-size: 1.7rem; line-height: 1; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fields label { display: grid; gap: 7px; font-size: .84rem; font-weight: 750; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; outline: none; background: #fafaf8; }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,59,54,.1); }
.fields .profile-locked input { color: var(--forest); background: #e9efeb; cursor: not-allowed; }
.fields .profile-locked::after { content: "Completat automat din profilul utilizatorului"; color: var(--muted); font-size: .72rem; font-weight: 500; }
.fields textarea { resize: vertical; }
.field-help { color: var(--muted); font-size: .74rem; font-weight: 500; }
.file-field input[type="file"] { padding: 9px; background: white; }
.file-field input[type="file"]::file-selector-button { border: 0; border-radius: 7px; padding: 9px 12px; margin-right: 12px; background: var(--forest); color: white; font-weight: 750; cursor: pointer; }
.file-help { color: var(--muted); font-size: .78rem; font-weight: 500; }
.image-preview { min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.image-preview img { width: 118px; height: 76px; object-fit: cover; border-radius: 7px; background: var(--forest); }
.image-preview:has(.preview-grid) { display: grid; }
.preview-count { color: var(--forest); font-weight: 800; }
.preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
.preview-grid > button { position: relative; overflow: hidden; min-width: 0; padding: 0; border: 2px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }
.preview-grid > button.is-cover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(201, 157, 62, .2); }
.preview-grid > button:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.preview-grid img { display: block; width: 100%; height: 82px; border-radius: 8px; }
.preview-grid small { position: absolute; left: 5px; bottom: 5px; padding: 3px 6px; border-radius: 999px; color: white; background: rgba(10,30,28,.78); font-size: .62rem; }
.image-selection-error { color: #a22f20; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; }
.form-error { min-height: 1.4em; margin: 12px 0 0; color: #a22f20; font-weight: 700; }
.rich-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; border-bottom: 1px solid var(--line); background: #f4f6f3; }
.rich-editor-toolbar button { border: 0; border-radius: 6px; padding: 6px 8px; background: white; color: var(--ink); cursor: pointer; font-size: .74rem; }
.rich-editor-toolbar button:hover { background: #e2e8df; }
.rich-editor-content { min-height: 112px; padding: 11px; outline: 0; line-height: 1.55; }
.rich-editor-content:empty::before { content: "Scrie descrierea anunțului…"; color: var(--muted); }
.rich-text { line-height: 1.65; }
.rich-text p { margin: 0 0 12px; }
.rich-text ul, .rich-text ol { margin: 0 0 12px; padding-left: 22px; }
.rich-text a { color: var(--forest); font-weight: 700; }
.feature-picker { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.feature-picker legend { padding: 0 5px; color: var(--ink); font-weight: 800; }
.feature-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.feature-picker label { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: .83rem; font-weight: 600; }
.feature-picker input { width: auto; accent-color: var(--forest); }
.car-features { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.car-features span { padding: 6px 9px; border-radius: 999px; background: #e7eee8; color: var(--forest); font-size: .76rem; font-weight: 750; }
.share-button { margin-top: 16px; }
.login-dialog { width: min(440px, calc(100% - 24px)); }
#login-form { padding: 30px; }
.login-copy { margin: -8px 0 22px; color: var(--muted); line-height: 1.55; }
.login-fields { display: grid; gap: 16px; }
.login-fields label { display: grid; gap: 7px; font-size: .88rem; font-weight: 750; }
.login-fields input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px; outline: none; }
.login-fields input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,59,54,.1); }
.login-submit { width: 100%; margin-top: 6px; }
.detail-dialog { width: min(850px, calc(100% - 24px)); }
.detail-dialog { position: relative; }
.detail-close { position: absolute; top: 15px; right: 15px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: white; background: rgba(8,27,26,.72); box-shadow: 0 4px 14px rgba(0,0,0,.18); font-size: 1.7rem; line-height: 1; }
.detail-close:hover { background: var(--accent); }
.detail-visual { height: min(380px, 42vh); background: linear-gradient(145deg, #214a43, #0c2626); display: grid; place-items: center; color: white; font: italic 700 3rem Georgia, serif; overflow: hidden; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.media-gallery { background: #102d2a; }
.gallery-main { height: min(430px, 48vh); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 76px; height: 56px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 8px; background: transparent; opacity: .66; }
.gallery-thumb.active { border-color: #ff8b68; opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-head { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 12px; color: white; }
.service-detail-head.insurance { background: linear-gradient(145deg,#163b36,#2d6b60); }
.service-detail-head.documents { background: linear-gradient(145deg,#a63e22,#df6845); }
.service-detail-head span { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.3); border-radius: 22px; font: 700 2.2rem Georgia,serif; background: rgba(255,255,255,.1); }
.service-detail-head p { margin: 0; font-size: .75rem; font-weight: 850; letter-spacing: .16em; }
.benefit-list { display: grid; gap: 8px; padding: 16px 0 4px; list-style: none; }
.benefit-list li { color: var(--muted); }
.benefit-list li::before { content: "✓"; margin-right: 9px; color: var(--accent); font-weight: 900; }
.requirements { margin-top: 25px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf7; }
.requirements h3 { margin: 0 0 15px; font: 700 1.25rem Georgia, serif; }
.requirements ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.requirements li::marker { color: var(--accent-dark); font-weight: 850; }
.requirements > p { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: #788482; font-size: .78rem; line-height: 1.5; }
.detail-body { padding: 28px; }
.detail-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.detail-top h2 { margin: 0 0 8px; font: 700 2rem Georgia, serif; }
.description { color: var(--muted); line-height: 1.65; }
.expires-detail { margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; color: var(--forest); background: #edf3ed; font-size: .85rem; }
.seller { margin-top: 22px; padding: 17px; border-radius: 12px; background: #edf1ed; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.seller p { margin: 3px 0; }
.whatsapp-button { display: block; margin-top: 10px; border-radius: 10px; padding: 13px 20px; color: white; background: #1f9d55; text-align: center; text-decoration: none; font-weight: 800; }
.whatsapp-button:hover { background: #168045; }
.schedule-viewing { width: 100%; margin-top: 12px; border: 1px solid var(--forest); border-radius: 10px; padding: 12px 16px; color: var(--forest); background: white; font-weight: 850; }
.schedule-viewing:hover { color: white; background: var(--forest); }
.contact-pending { color: var(--muted); font-size: .85rem; font-weight: 750; }
.users-dialog { width: min(660px, calc(100% - 24px)); }
.viewing-dialog { width: min(590px, calc(100% - 24px)); }
.viewing-dialog form { padding: 28px; }
.viewings-dialog { width: min(720px, calc(100% - 24px)); }
.viewings-panel { padding: 28px; }
.viewings-list { display: grid; gap: 11px; margin-top: 22px; }
.viewing-card { display: grid; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf8; }
.viewing-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.viewing-card-head > div, .viewing-client { display: grid; gap: 4px; }
.viewing-card-head span, .viewing-client a, .viewing-status-control { color: var(--muted); font-size: .82rem; }
.viewing-client a { color: var(--accent-dark); font-weight: 750; text-decoration: none; }
.viewing-status { padding: 5px 8px; border-radius: 999px; background: #e7ece9; color: var(--forest); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.viewing-status.confirmed { background: #def0e5; color: #17613a; }
.viewing-status.completed { background: #dfe9ed; color: #23526a; }
.viewing-status.cancelled { background: #f5e1dc; color: #9b3e2b; }
.viewing-status-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; }
.viewing-status-control select { min-width: 150px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: white; color: var(--ink); }
.listing-topbar { justify-content: space-between; }
.listing-page-main { width: min(1060px, calc(100% - 40px)); margin: 54px auto 76px; }
.back-link { color: rgba(255,255,255,.86); font-weight: 800; text-decoration: none; }
.back-link:hover { color: white; }
.listing-loading { padding: 70px 0; color: var(--muted); text-align: center; }
.listing-detail { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 22px 55px rgba(16,37,42,.12); }
.listing-close { z-index: 2; }
.listing-gallery .gallery-main { max-height: 590px; }
.listing-gallery .gallery-main { background: #102d2a; }
.listing-gallery .gallery-main img { width: 100%; min-height: 310px; max-height: 590px; object-fit: contain; display: block; }
.listing-gallery .gallery-thumbs { padding: 12px 22px; }
.listing-content { padding: clamp(24px, 5vw, 52px); }
.listing-content h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
.photo-management { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.view-count { margin: 14px 0 0; color: var(--muted); font-size: .84rem; font-weight: 750; }
.existing-image-editor { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; }
.existing-image-editor > p { margin: 0; color: var(--muted); font-size: .78rem; }
.existing-image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.existing-image-item { display: grid; gap: 6px; min-width: 0; }
.existing-image-item img { width: 100%; height: 82px; object-fit: cover; border-radius: 8px; }
.existing-image-item button { padding: 7px 6px; font-size: .7rem; }
.listing-management { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.photo-management p { margin: 0; color: var(--muted); font-size: .82rem; }
.photo-management > div { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-management .secondary { padding: 9px 11px; font-size: .78rem; }
.users-panel { padding: 28px; }
.users-list-wrap { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.users-list-wrap h3 { margin: 0 0 14px; font: 700 1.2rem Georgia, serif; }
.users-list { display: grid; gap: 9px; }
.users-list article { display: grid; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf8; }
.users-list .user-card.is-banned { border-color: #d7836b; background: #fff5f1; }
.user-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-card-head > div { display: grid; gap: 3px; }
.user-card-head small { color: var(--forest); font-weight: 750; }
.is-banned .user-card-head small { color: #a22f20; }
.users-list article div { display: grid; gap: 3px; }
.users-list article span, .users-list article small, .users-empty { color: var(--muted); font-size: .78rem; }
.users-list article a { color: var(--accent-dark); font-size: .78rem; font-weight: 750; text-decoration: none; }
.user-edit-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.user-edit-form label { display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.user-edit-form input, .user-edit-form select { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: white; }
.user-edit-form button { grid-column: 1 / -1; justify-self: start; padding: 9px 12px; }
.delete-button { margin-top: 18px; border: 0; background: none; color: #a22f20; font-weight: 750; padding: 0; }
.ad-management { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.ad-management .delete-button { margin: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; padding: 13px 18px; border-radius: 10px; background: var(--forest); color: white; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.site-footer { color: white; background: #0b2725; padding: 0 clamp(20px, 5vw, 76px); }
.footer-main { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: 1.35fr .75fr 1.25fr; gap: 54px; padding: 56px 0 44px; }
.brand-light { width: max-content; background: #071a1b; }
.brand-light img { width: min(245px, 70vw); }
.footer-mark { background: var(--accent); }
.footer-brand p { max-width: 36ch; margin: 18px 0 0; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; color: rgba(255,255,255,.66); }
.footer-title { margin: 0 0 8px; color: #ff9678; font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.footer-column a, .footer-column button { border: 0; padding: 0; color: rgba(255,255,255,.72); background: none; text-decoration: none; font-size: .9rem; }
.footer-column a:hover, .footer-column button:hover { color: white; }
.footer-admin-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 7px 10px; border-radius: 999px; color: #bde8d0; background: rgba(104,211,145,.12); font-size: .76rem; font-weight: 800; }
.footer-admin-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #68d391; }
.footer-auth-button { margin-top: 3px; font-weight: 850; text-align: left; }
.company-details strong { color: white; font-size: .92rem; }
.company-details b { color: #ffc1af; font-weight: 700; }
.footer-bottom { width: min(1180px, 100%); margin: auto; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .76rem; }
@media (max-width: 980px) { .topbar { flex-wrap: wrap; } .header-left { width: 100%; justify-content: center; } }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; min-height: auto; } .intro-showcase { min-height: 330px; } .intro-showcase::after { background: linear-gradient(180deg, var(--forest) 0%, rgba(22,59,54,0) 45%); } .car-grid, .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 570px) { main { width: min(100% - 24px, 1180px); padding-bottom: 42px; } .topbar { position: relative; padding: 14px 12px; align-items: flex-start; gap: 12px; } .header-left { width: 100%; align-items: flex-start; flex-direction: column; gap: 13px; } .account-actions { width: 100%; justify-content: flex-start; } .account-actions .primary { width: 100%; } .main-nav { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; gap: 3px; overflow: visible; padding: 4px; border-radius: 12px; background: #e6e9e5; } .nav-link { justify-content: center; min-height: 42px; padding: 8px 5px; white-space: nowrap; font-size: .78rem; } .nav-link span { font-size: .9rem; } .intro { min-height: 0; margin-top: 16px; border-radius: 18px; } .intro-content { padding: 32px 20px 27px; } h1 { font-size: clamp(2.35rem,12vw,3.3rem); } .intro-copy { margin-top: 18px; font-size: .96rem; } .intro-actions { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 22px; } .hero-button { justify-content: space-between; } .intro-showcase { min-height: 220px; } .trust-list { grid-template-columns: 1fr; gap: 13px; margin-top: 25px; padding-top: 22px; } .trust-list li { grid-template-columns: 110px 1fr; align-items: baseline; } .showcase-label { right: 12px; bottom: 12px; min-width: 170px; } .toolbar { align-items: stretch; flex-direction: column; padding: 18px 0; } .toolbar p { margin: 0; } .car-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .filter-reset { grid-column: span 2; } .car-grid, .offer-grid { grid-template-columns: 1fr; gap: 16px; } .car-visual { height: 210px; } .offers-view { padding: 42px 0; } .section-heading { align-items: stretch; flex-direction: column; gap: 22px; padding-bottom: 25px; } .section-heading .primary { width: 100%; } .offer-body h2 { min-height: 0; } dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; } #car-form, #offer-form, #login-form { padding: 19px; } .dialog-head { margin-bottom: 18px; } .fields { grid-template-columns: 1fr; gap: 13px; } .fields .wide { grid-column: auto; } .image-preview { align-items: flex-start; flex-direction: column; } .image-preview img { width: 100%; height: 150px; } .form-actions { position: sticky; bottom: -19px; margin: 0 -19px -19px; padding: 14px 19px; border-top: 1px solid var(--line); background: white; } .form-actions button { flex: 1; } .detail-top, .seller { flex-direction: column; } .seller .primary, .whatsapp-button { width: 100%; text-align: center; } .site-footer { padding: 0 18px; } .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 32px; } .footer-brand { grid-column: auto; } .footer-column { gap: 13px; } .footer-column a, .footer-column button { min-height: 34px; display: inline-flex; align-items: center; } .company-details span { line-height: 1.55; overflow-wrap: anywhere; } .footer-bottom { flex-direction: column; padding-bottom: 28px; line-height: 1.5; } }
@media (max-width: 570px) { .users-panel { padding: 19px; } .users-list article { grid-template-columns: 1fr; } .user-phone-form { align-items: stretch; flex-direction: column; } .preview-grid, .existing-image-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 570px) { .viewings-panel { padding: 19px; } .viewing-card-head, .viewing-status-control { align-items: stretch; flex-direction: column; } .viewing-status-control select { width: 100%; } }
@media (max-width: 570px) { .listing-topbar { align-items: center; justify-content: space-between; flex-wrap: wrap; } .listing-topbar .brand img { width: 165px; } .listing-topbar .main-nav { order: 3; } .back-link { font-size: .78rem; } .listing-page-main { width: min(100% - 24px, 1060px); margin: 18px auto 42px; } .listing-detail { border-radius: 16px; } .listing-gallery .gallery-main img { min-height: 225px; object-fit: contain; } .listing-gallery .gallery-thumbs { padding: 10px 14px; } .listing-content { padding: 22px 18px; } .listing-content h1 { font-size: 2.25rem; } }
@media (max-width: 570px) { .main-nav { background: transparent; box-shadow: none; } }
@media (max-width: 570px) { .header-left { align-items: center; } .account-actions { position: static; justify-content: center; } }
