:root {
  color-scheme: dark;
  --bg: #160d08;
  --surface: #24150d;
  --surface-2: #321f14;
  --surface-3: #432b1c;
  --text: #fff7ed;
  --muted: #dcc9b8;
  --line: rgba(245, 222, 196, 0.16);
  --brand: #c8823b;
  --brand-dark: #9b5b24;
  --metal: #f4d6a7;
  --premium-red: #e0162f;
  --nigeria-green: #1f8a4c;
  --accent: #7d4b2a;
  --container: 1440px;
  --shadow: 0 18px 58px rgba(35, 19, 10, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4eadc;
  --surface: #fff9ef;
  --surface-2: #ead8c3;
  --surface-3: #ddc4aa;
  --text: #1f120b;
  --muted: #4f3829;
  --line: rgba(67, 43, 28, 0.24);
  --brand: #7b451f;
  --brand-dark: #5d3116;
  --metal: #54341f;
  --premium-red: #b80f24;
  --nigeria-green: #12683a;
  --accent: #a86f38;
  --shadow: 0 18px 58px rgba(67, 43, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(22, 13, 8, 0.86), rgba(22, 13, 8, 0.92)),
    url("../Gallery/front_plates_cropped.jpeg") center 5rem / min(1120px, 92vw) auto no-repeat fixed,
    linear-gradient(rgba(244, 214, 167, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 214, 167, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), var(--surface));
  background-size: auto, min(1100px, 92vw) auto, 64px 64px, 64px 64px, auto;
  color: var(--text);
  min-width: 320px;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(rgba(244, 234, 220, 0.9), rgba(244, 234, 220, 0.94)),
    url("../Gallery/front_plates_cropped.jpeg") center 5rem / min(1120px, 92vw) auto no-repeat fixed,
    linear-gradient(rgba(67, 43, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 43, 28, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), var(--surface-2));
  background-size: auto, min(1120px, 92vw) auto, 64px 64px, 64px 64px, auto;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 72%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff8ee;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(200, 130, 59, 0.28);
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong,
h1,
h2,
h3,
.button,
.trust-strip strong,
.vehicle-card-body > strong,
.dialog-price,
.status-pill {
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.75rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.section,
.section-band {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(760px, calc(100vh - 76px));
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.15rem;
  max-width: 860px;
  font-size: clamp(3rem, 6.8vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.hero-tagline {
  margin: 0 0 1.25rem;
  color: var(--metal);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.card-actions,
.dialog-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.highlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.highlight-chips span {
  border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--line));
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: color-mix(in srgb, var(--surface) 70%, var(--brand));
  color: var(--metal);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--premium-red), var(--brand));
  color: #fff8ee;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-dark,
.button-ghost {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.button-icon,
.inline-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}

.button-icon svg,
.inline-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.location-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
}

.location-line .inline-icon {
  margin-top: 0.15rem;
  color: var(--brand);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.trust-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.25rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
}

.mobile-plate {
  display: none;
}

.hero-visual img {
  width: 100%;
}

.plate-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plate-frame img {
  width: 100%;
  transform: scale(1.015);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.section-heading > a,
.inventory-count {
  color: var(--muted);
  font-weight: 700;
}

.featured-grid,
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.buyer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sold-grid,
.reviews-orbit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.buyer-card,
.sold-card,
.review-card,
.rating-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.buyer-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 250px;
  padding: 1.2rem;
}

.buyer-card h3 {
  color: var(--metal);
}

.buyer-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.55;
}

.sold-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 1rem;
  align-items: start;
  overflow: hidden;
  padding: 0.75rem;
}

.sold-card img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.sold-card > div {
  min-width: 0;
  align-self: center;
}

.sold-card h3 {
  color: var(--text);
}

.sold-card p,
.review-card p {
  color: var(--muted);
  line-height: 1.55;
}

.status-pill.is-sold {
  display: inline-flex;
  margin-top: 0.5rem;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  color: var(--metal);
}

.reviews-section {
  position: relative;
}

.rating-summary {
  min-width: 150px;
  padding: 1rem;
  text-align: center;
}

.rating-summary strong,
.rating-summary span {
  display: block;
}

.rating-summary strong {
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.rating-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.rating-bars {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  text-align: left;
}

.rating-bar {
  display: grid;
  grid-template-columns: 46px 1fr 36px;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.rating-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 70%, black);
}

.rating-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--premium-red), var(--brand), var(--metal));
}

.review-card {
  min-height: 210px;
  padding: 1.1rem;
}

.review-card:nth-child(2),
.review-card:nth-child(5) {
  transform: translateY(1rem);
}

.review-card:nth-child(3),
.review-card:nth-child(6) {
  transform: translateY(-0.6rem);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: var(--brand);
  font-weight: 900;
}

.review-stars span {
  display: block;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 78%, black);
}

.review-stars span.is-filled {
  background: linear-gradient(90deg, var(--premium-red), var(--brand));
}

.review-stars b {
  margin-left: 0.3rem;
  color: var(--metal);
  font-size: 0.78rem;
}

.review-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.vehicle-card-featured {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, var(--brand));
}

.image-button,
.gallery-item {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.condition {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  background: color-mix(in srgb, var(--premium-red) 32%, rgba(39, 23, 15, 0.78));
  color: #fff8ee;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.vehicle-card-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.vehicle-card-body > strong {
  color: var(--brand);
  font-size: 1.4rem;
}

.vehicle-card-body > p {
  color: var(--muted);
  line-height: 1.5;
}

.safe-note,
.telegram-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.contact-actions + .telegram-note {
  margin-top: 1.2rem;
}

.spec-grid,
.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.spec-grid div,
.detail-list div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

label span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
}

textarea {
  resize: vertical;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item span {
  display: block;
  padding: 0.7rem;
  color: var(--muted);
  text-align: left;
}

.about-section,
.budget-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.about-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 13, 8, 0.94), rgba(22, 13, 8, 0.76)),
    url("../Gallery/front_plates_cropped.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .about-section {
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.98), rgba(255, 249, 239, 0.9)),
    url("../Gallery/front_plates_cropped.jpeg") center / cover no-repeat;
}

.about-section > div {
  position: relative;
  z-index: 1;
}

.about-section .lead {
  max-width: 720px;
}

.about-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
  gap: 1rem;
  align-items: start;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-metrics strong {
  display: block;
  color: var(--brand);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.admin-inbox {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-inbox ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-inbox li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface-2);
}

.admin-inbox span {
  display: block;
  margin: 0.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-inbox p,
.admin-grid p {
  color: var(--muted);
}

.admin-vehicles {
  margin-top: 1rem;
}

.admin-vehicle-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.8fr) minmax(120px, 0.7fr) minmax(110px, 0.45fr) auto;
  gap: 0.75rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.admin-vehicle-row:first-child {
  border-top: 0;
}

.checkbox-line {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.checkbox-line span {
  margin: 0;
}

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
  background: var(--bg);
  color: var(--metal);
}

.about-grid article,
.admin-grid article,
.contact-panel,
.inquiry-form,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .about-grid article,
:root[data-theme="light"] .contact-panel,
:root[data-theme="light"] .inquiry-form,
:root[data-theme="light"] .budget-form,
:root[data-theme="light"] .buyer-card,
:root[data-theme="light"] .vehicle-card,
:root[data-theme="light"] .gallery-item,
:root[data-theme="light"] .sold-card,
:root[data-theme="light"] .review-card,
:root[data-theme="light"] .rating-summary,
:root[data-theme="light"] .empty-state {
  background: color-mix(in srgb, var(--surface) 96%, white);
  color: var(--text);
}

:root[data-theme="light"] .budget-section {
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.98), rgba(234, 216, 195, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(123, 69, 31, 0.12), transparent 34%);
}

.contact-panel,
.inquiry-form {
  box-shadow: var(--shadow);
}

.budget-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, black), color-mix(in srgb, var(--surface-2) 84%, var(--brand))),
    radial-gradient(circle at 88% 12%, rgba(244, 214, 167, 0.12), transparent 34%);
}

.budget-copy {
  max-width: 680px;
}

.budget-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--surface) 90%, black);
  box-shadow: var(--shadow);
}

.budget-form .button,
.budget-form .form-status {
  grid-column: 1 / -1;
}

.map-embed {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}

.map-embed iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  filter: sepia(0.55) saturate(0.85) contrast(1.03) brightness(0.86);
}

.inquiry-form {
  display: grid;
  gap: 1rem;
}

.form-status {
  min-height: 1.5rem;
  color: var(--muted);
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-weight: 800;
}

.status-pill.is-live {
  border-color: color-mix(in srgb, var(--nigeria-green) 65%, var(--line));
  color: var(--nigeria-green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem) 6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  display: block;
}

.mobile-cta {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.mobile-cta a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-height: 52px;
  padding: 0.35rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-cta a:nth-child(2) {
  background: var(--brand);
  color: #fff8ee;
}

dialog {
  width: min(1100px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.close-dialog {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

.dialog-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-content {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.dialog-price {
  display: block;
  margin: 1rem 0;
  color: var(--brand);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.notice {
  margin-top: 1rem;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 1040px) {
  .hero,
  .about-section,
  .budget-section,
  .contact-section,
  .dialog-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .filters,
  .featured-grid,
  .inventory-grid,
  .buyer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sold-grid,
  .reviews-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    grid-column: 1 / -1;
  }

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

  .dialog-media img {
    min-height: 320px;
    max-height: 48vh;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .section,
  .section-band {
    padding: 3.2rem 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .mobile-plate {
    display: block;
    width: 100%;
    margin: 1.25rem 0 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .trust-strip,
    .filters,
    .featured-grid,
    .inventory-grid,
    .buyer-grid,
    .sold-grid,
    .reviews-orbit,
    .gallery-grid,
    .about-grid,
    .budget-form,
    .admin-grid,
  .admin-shell,
  .admin-metrics,
  .admin-vehicle-row {
    grid-template-columns: 1fr;
  }

  .review-card:nth-child(2),
  .review-card:nth-child(3),
  .review-card:nth-child(5),
  .review-card:nth-child(6) {
    transform: none;
  }

  .sold-card {
    grid-template-columns: 1fr;
  }

  .sold-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .sold-card > div {
    padding: 0.25rem 0.15rem 0.1rem;
    align-self: start;
  }

  :root[data-theme="light"] .sold-card h3,
  :root[data-theme="light"] .sold-card p,
  :root[data-theme="light"] .sold-card .eyebrow {
    color: var(--text);
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: grid;
  }
}
