:root {
  --ink: #f4f4f4;
  --muted: #a9adb4;
  --paper: #08090b;
  --surface: #111318;
  --surface-2: #181b21;
  --line: #2d313a;
  --line-hot: rgba(229, 34, 34, 0.56);
  --red: #e52222;
  --red-dark: #941212;
  --white: #ffffff;
  --black: #050607;
  --graphite: #20242b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(229, 34, 34, 0.12) 0 2px, transparent 2px 26px),
    linear-gradient(90deg, #08090b, #111318 48%, #08090b);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: 62px;
  max-width: 13ch;
  text-transform: uppercase;
}

h2 {
  font-size: 36px;
  text-transform: uppercase;
}

h3 {
  font-size: 21px;
}

.public-body {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px 56px;
  background: rgba(5, 6, 7, 0.92);
  border-bottom: 1px solid var(--line-hot);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: var(--logo-size, 68px);
  max-width: 260px;
  max-height: 104px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
}

.brand-link strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-link small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #d8dce2;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  border-color: var(--line-hot);
  background: rgba(229, 34, 34, 0.16);
  color: #fff;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  background: rgba(229, 34, 34, 0.14);
  color: #fff;
}

.menu-toggle span {
  display: block;
  grid-area: 1 / 1;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.public-body.nav-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.public-body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.public-body.nav-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.page-shell {
  min-height: calc(100vh - 128px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.66) 48%, rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(229, 34, 34, 0.32), transparent 42%);
}

.race-stripes {
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 520px;
  height: 280px;
  transform: skewX(-24deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 24px, transparent 24px 48px),
    linear-gradient(90deg, transparent, rgba(229, 34, 34, 0.85));
  opacity: 0.62;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 94px 72px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb8b8;
}

.hero-content p:not(.eyebrow),
.page-header p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions,
.detail-actions,
.admin-actions,
.inline-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.card-actions {
  margin-top: 0;
}

.hero-controls {
  position: absolute;
  right: 48px;
  bottom: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.hero-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 0;
  text-align: center;
  appearance: none;
}

.hero-arrow-icon {
  display: block;
  grid-area: 1 / 1;
  width: 23px;
  height: 23px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-dots {
  display: inline-flex;
  gap: 7px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 0;
}

.hero-dots button.active {
  background: var(--red);
  border-color: var(--red);
}

.hero-transition-fade .hero-image {
  animation: heroFadeImage 680ms ease both;
}

.hero-transition-fade .hero-content {
  animation: heroFadeContent 620ms ease 70ms both;
}

.hero-transition-zoom .hero-image {
  animation: heroZoomImage 820ms cubic-bezier(0.2, 0.76, 0.18, 1) both;
}

.hero-transition-zoom .hero-content {
  animation: heroFadeContent 620ms ease 90ms both;
}

.hero-transition-slide .hero-image {
  animation: heroSlideImage 720ms cubic-bezier(0.2, 0.76, 0.18, 1) both;
}

.hero-transition-slide .hero-content {
  animation: heroSlideContent 620ms cubic-bezier(0.2, 0.76, 0.18, 1) 60ms both;
}

.hero-transition-lift .hero-image {
  animation: heroFadeImage 680ms ease both;
}

.hero-transition-lift .hero-content {
  animation: heroLiftContent 620ms cubic-bezier(0.2, 0.76, 0.18, 1) 80ms both;
}

.hero-transition-none .hero-image,
.hero-transition-none .hero-content {
  animation: none;
}

@keyframes heroFadeImage {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroFadeContent {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoomImage {
  from {
    opacity: 0.4;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroSlideImage {
  from {
    opacity: 0.55;
    transform: translateX(42px) scale(1.04);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroSlideContent {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroLiftContent {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
}

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(229, 34, 34, 0.26);
}

.button.primary:hover {
  background: #ff2d2d;
}

.button.secondary {
  background: #fff;
  color: #08090b;
  border-color: #fff;
}

.button.ghost,
.button.ghost-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost-dark {
  border-color: var(--line);
  background: #20242b;
}

.page-header,
.inventory-section,
.content-band,
.contact-section,
.detail-page {
  padding: 72px 56px;
}

.page-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(229, 34, 34, 0.24) 0 2px, transparent 2px 24px),
    linear-gradient(90deg, #0c0d10, #17191f);
}

.page-header.with-image {
  min-height: 340px;
  display: grid;
  align-items: end;
}

.page-header-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-header.with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0.44));
  z-index: 1;
}

.page-header::after {
  content: "";
  position: absolute;
  right: 52px;
  bottom: -44px;
  width: 320px;
  height: 120px;
  transform: skewX(-22deg);
  background: var(--red);
  opacity: 0.42;
  z-index: 2;
}

.page-header > div,
.section-heading,
.metrics-row,
.listing-grid,
.gallery-category-grid,
.photo-grid,
.service-grid,
.contact-layout,
.two-column,
.detail-page > .detail-layout,
.empty-state,
.toolbar,
.custom-page-copy > .rich-copy,
.custom-page-copy > .copy-stack {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-header > div {
  position: relative;
  z-index: 3;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-header h1 {
  color: #fff;
}

.sync-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  background: linear-gradient(180deg, #171a20, #0e1014);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.search-field span,
label {
  display: grid;
  gap: 6px;
  color: #e5e8ee;
  font-size: 13px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #343944;
  border-radius: var(--radius);
  background: #0c0e12;
  color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(229, 34, 34, 0.45);
  border-color: var(--red);
}

input[readonly] {
  background: #151820;
  color: #f6c7c7;
}

textarea {
  resize: vertical;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  background: #0d0f13;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented a,
.segmented button,
.admin-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c8cdd5;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.segmented a,
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
}

.segmented a.active,
.segmented button.active {
  background: var(--red);
  color: #fff;
}

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

.listing-card {
  display: grid;
  grid-template-rows: 230px auto;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #16191f, #0d0f13);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--red-dark);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.listing-card > a {
  display: block;
  overflow: hidden;
}

.listing-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #0d0f13;
  transition: transform 180ms ease;
}

.listing-card:hover img {
  transform: scale(1.035);
}

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

.gallery-category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--red);
  border-radius: var(--radius);
  background: #111318;
  color: #fff;
  text-decoration: none;
}

.gallery-category-card img,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d0f13;
}

.gallery-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.88));
}

.gallery-category-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.gallery-category-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.gallery-category-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

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

.photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111318;
}

.photo-lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d0f13;
  cursor: zoom-in;
}

.photo-card img {
  display: block;
  aspect-ratio: 4 / 3;
  height: auto;
}

.photo-lightbox-trigger span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.photo-lightbox-trigger:hover span,
.photo-lightbox-trigger:focus-visible span {
  opacity: 1;
  transform: scale(1);
  background: var(--red);
}

.photo-card figcaption {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.photo-card figcaption strong {
  color: #fff;
}

.photo-card figcaption span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.lightbox-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050607;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.lightbox-close {
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 34px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: -26px;
}

.lightbox-nav.next {
  right: -26px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--red);
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  background: #111318;
}

.lightbox-caption strong {
  color: #fff;
}

.lightbox-caption span {
  color: var(--muted);
  font-size: 13px;
}

.listing-card-content {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span {
  overflow-wrap: anywhere;
}

.listing-card h3 {
  min-height: 52px;
}

.listing-card h3 a {
  color: #fff;
  text-decoration: none;
}

.listing-card p {
  margin: 0;
  color: var(--muted);
}

.price-line {
  color: #fff;
  font-size: 23px;
  font-weight: 950;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(229, 34, 34, 0.18);
  color: #ffb5b5;
  border: 1px solid rgba(229, 34, 34, 0.44);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.status-pill.sold {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
  border-color: rgba(255, 255, 255, 0.24);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-hot);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.split-band {
  background: #0c0e12;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.copy-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: #c5cad2;
}

.copy-stack p {
  margin: 0;
}

.rich-copy {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: #c5cad2;
}

.content-band > .rich-copy {
  width: min(1180px, 100%);
  margin: 0 auto 30px;
}

.rich-copy p,
.rich-copy ul,
.rich-copy ol {
  margin: 0;
}

.rich-copy ul,
.rich-copy ol {
  padding-left: 20px;
}

.rich-copy h2,
.rich-copy h3 {
  margin: 8px 0 0;
  color: #fff;
}

.showroom-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.service-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 16px;
  background: linear-gradient(180deg, #171a20, #0f1116);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(229, 34, 34, 0.44);
  border-radius: 8px;
  background: rgba(229, 34, 34, 0.16);
  color: #ff3434;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-section {
  background: #060708;
  color: #fff;
}

.contact-layout {
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-lines a {
  color: #fff;
  font-weight: 900;
}

.hours-table {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.hours-row {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: center;
  padding: 26px 56px;
  background: #050607;
  border-top: 1px solid var(--line-hot);
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
}

.footer-brand-copy {
  display: grid;
  gap: 4px;
}

.footer-brand-block strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-brand-block span {
  color: var(--muted);
  font-size: 13px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 4px 0;
  color: #fff;
  text-decoration: none;
}

.footer-contact-item:hover {
  color: #ff5656;
}

.footer-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff3434;
}

.footer-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item small,
.footer-contact-item strong {
  display: block;
}

.footer-contact-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-contact-item strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

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

.hours-admin-row {
  display: grid;
  grid-template-columns: 72px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.hours-admin-row label {
  display: grid;
  gap: 5px;
}

.hours-admin-row label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-page {
  background: #090a0d;
}

.detail-dialog,
.edit-dialog,
.login-dialog,
.interest-dialog {
  width: min(1040px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: #fff;
  background: #111318;
  box-shadow: var(--shadow);
}

.interest-dialog {
  max-width: 760px;
}

.detail-dialog::backdrop,
.edit-dialog::backdrop,
.login-dialog::backdrop,
.interest-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 0;
  background: #111318;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-detail-layout {
  box-shadow: var(--shadow);
}

.detail-main-image {
  width: 100%;
  height: 640px;
  object-fit: cover;
  background: #0d0f13;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 8px;
  background: #090a0d;
}

.thumb-row button {
  min-height: 58px;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #0d0f13;
}

.thumb-row button.active {
  border-color: var(--red);
}

.thumb-row img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.detail-copy {
  padding: 34px;
}

.detail-copy h1 {
  margin-top: 14px;
  font-size: 42px;
}

.detail-copy p {
  color: #c5cad2;
}

.detail-price {
  margin: 14px 0 6px;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
}

.detail-meta {
  color: var(--muted);
}

.interest-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(180deg, #171a20, #0f1116);
}

.consent-line {
  align-items: flex-start;
  color: #c5cad2;
}

/* Admin */
.admin-body {
  background: #08090b;
  color: #f4f4f4;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #050607;
  color: #fff;
  border-right: 1px solid var(--line-hot);
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.58);
}

.admin-tabs {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.admin-tabs button {
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: var(--red);
  color: #fff;
}

.admin-main {
  padding: 28px 48px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-top h1 {
  font-size: 40px;
}

.admin-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0;
}

.admin-current {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-actions.left {
  justify-content: flex-start;
  margin-top: 8px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.admin-card {
  padding: 18px;
  background: #111318;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.inner-card {
  background: #0c0e12;
}

.admin-card h2,
.content-form h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.history-errors {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: #ffb5b5;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.form-grid,
.content-form {
  display: grid;
  gap: 14px;
}

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

.switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.switch-line input {
  width: 20px;
  min-height: 20px;
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #111318;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-listing-cell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-listing-cell img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: #0d0f13;
}

.row-title {
  display: block;
  color: #fff;
  font-weight: 950;
}

.row-sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-action {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #20242b;
  color: #fff;
  font-weight: 900;
}

.icon-action.danger {
  border-color: rgba(232, 29, 29, 0.45);
  background: rgba(232, 29, 29, 0.16);
}

.danger-button {
  border-color: rgba(232, 29, 29, 0.45);
  background: rgba(232, 29, 29, 0.16);
  color: #fff;
}

.content-form {
  max-width: 920px;
  padding: 18px;
  background: #111318;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wide-form {
  max-width: 1180px;
}

.logo-admin-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.logo-preview-box {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px dashed var(--line-hot);
  border-radius: var(--radius);
  background: #050607;
}

.logo-preview-box img {
  width: 68px;
  height: 68px;
  max-width: 112px;
  max-height: 112px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.showroom-preview-box {
  min-height: 180px;
}

.showroom-preview-box img {
  width: 100%;
  height: 180px;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.compact-heading {
  margin-bottom: 12px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: #0b0d11;
}

.rich-toolbar button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #20242b;
  color: #fff;
  font-weight: 950;
}

.rich-editor {
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #0c0e12;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.rich-editor:focus {
  outline: 2px solid rgba(229, 34, 34, 0.45);
}

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

.service-admin-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-editor-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0f13;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-head strong,
.admin-subheading {
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-subheading {
  margin-top: 6px;
  color: #ffb5b5;
  font-size: 12px;
}

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

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

.photo-admin-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #252a33;
  border-radius: var(--radius);
  background: #111318;
}

.photo-admin-row img {
  width: 130px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #050607;
}

.custom-page-admin-row .rich-editor {
  min-height: 220px;
}

.code-textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.gallery-admin-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111318;
}

.gallery-admin-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #0d0f13;
}

.gallery-admin-item .row-actions {
  justify-content: stretch;
}

.gallery-admin-item .icon-action {
  flex: 1;
}

.edit-dialog {
  max-width: 920px;
}

.edit-dialog .content-form {
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 28px;
}

.login-dialog {
  max-width: 430px;
}

.login-box {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #111318;
}

.login-box h1 {
  font-size: 32px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #ffb5b5;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff;
  color: #08090b;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-link span {
    min-width: 0;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .nav-list {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    flex: 0 0 100%;
    width: 100%;
    max-height: 0;
    padding: 0;
    border-top: 0 solid transparent;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 220ms ease, opacity 160ms ease, padding 180ms ease, transform 180ms ease, border-color 180ms ease;
  }

  .public-body.nav-open .nav-list {
    max-height: min(70vh, 520px);
    padding-top: 10px;
    border-top: 1px solid rgba(229, 34, 34, 0.28);
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list a {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(17, 19, 24, 0.94);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 29px;
  }

  .topbar {
    padding: 12px 24px;
  }

  .page-header,
  .inventory-section,
  .content-band,
  .contact-section,
  .detail-page {
    padding: 56px 24px;
  }

  .hero-content {
    margin-left: 32px;
  }

  .metrics-row,
  .admin-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .two-column,
  .contact-layout,
  .detail-layout,
  .panel-row {
    grid-template-columns: 1fr;
  }

  .detail-main-image {
    height: 440px;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 24px;
  }

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

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

  .admin-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-tabs button {
    text-align: center;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 25px;
  }

  .admin-top,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    position: sticky;
    padding: 10px 14px;
  }

  .brand-link {
    width: auto;
  }

  .brand-logo {
    height: min(var(--logo-size, 68px), 68px);
    max-width: min(220px, 42vw);
  }

  .nav-list {
    width: 100%;
    overflow: hidden;
  }

  .public-body.nav-open .nav-list {
    overflow-y: auto;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 54px;
  }

  .toolbar,
  .table-toolbar,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .metrics-row,
  .admin-grid,
  .listing-grid,
  .gallery-category-grid,
  .photo-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    right: 16px;
    bottom: 14px;
  }

  .hero-controls button {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .hero-arrow-icon {
    width: 20px;
    height: 20px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    max-height: calc(100vh - 28px);
  }

  .lightbox-panel img {
    max-height: calc(100vh - 150px);
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }

  .lightbox-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    grid-auto-flow: row;
  }

  .listing-card {
    grid-template-rows: 210px auto;
  }

  .listing-card img {
    height: 210px;
  }

  .thumb-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-copy {
    padding: 22px;
  }

  .detail-main-image {
    height: 320px;
  }

  .interest-form {
    padding: 22px;
  }

  .footer {
    padding: 24px;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-item {
    min-height: 60px;
  }

  .hours-admin-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .row-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .photo-admin-row img {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 1fr;
  }
}
