﻿:root {
  --gold: #d2a64b;
  --gold-strong: #b98725;
  --gold-soft: #f6ecd5;
  --ink: #191814;
  --ink-2: #28261f;
  --charcoal: #171611;
  --surface: #ffffff;
  --surface-soft: #f7f6f2;
  --line: #e7e3da;
  --muted: #706d65;
  --success: #21875b;
  --danger: #c64949;
  --shadow-sm: 0 8px 30px rgba(32, 27, 18, 0.08);
  --shadow-md: 0 20px 60px rgba(32, 27, 18, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: var(--font-ui), Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  border: 0;
}
button,
select {
  cursor: pointer;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-ui), Arial, sans-serif;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(210, 166, 75, 0.45);
  outline-offset: 3px;
}
.site-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 42px;
}
.section-heading > div {
  max-width: 730px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.section-heading.centered {
  align-items: center;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.section-heading.centered > p {
  max-width: 620px;
}
.section-heading.light h2,
.section-heading.light p {
  color: #fff;
}
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button svg {
  width: 18px;
  height: 18px;
}
.button-primary {
  color: #17140e;
  background: linear-gradient(135deg, #e0bb67, var(--gold));
  box-shadow: 0 12px 30px rgba(210, 166, 75, 0.22);
}
.button-primary:hover {
  box-shadow: 0 16px 38px rgba(210, 166, 75, 0.34);
}
.button-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.button-dark {
  color: #fff;
  background: var(--ink);
}
.button-whatsapp {
  width: 100%;
  color: #fff;
  background: #168a54;
}
.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll reveals: down moves content right-to-left; up reverses the path. */
html.scroll-animations-enabled [data-scroll-reveal] {
  opacity: 0;
  transform: translate3d(72px, 0, 0);
  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: opacity, transform;
}
html.scroll-animations-enabled [data-scroll-reveal].is-scroll-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
html.scroll-animations-enabled [data-scroll-reveal].is-scroll-hidden-left {
  transform: translate3d(-72px, 0, 0);
}
.vehicle-card-reveal {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.scroll-animations-enabled [data-scroll-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Site header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 82px;
  color: #fff;
  background: rgba(23, 22, 17, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-inline: auto;
}
.site-logo {
  width: 176px;
  height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.site-logo img {
  width: 176px;
  height: auto;
  object-fit: contain;
  transform: scale(1.12);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: #fff;
}
.site-nav .nav-admin-link {
  display: none;
}
.header-contact {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s;
}
.header-contact:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 82px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #171611 url("/assets/zaigon/fundo-header-sem-texto.png") center /
    cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 8, 0.88) 0%,
      rgba(10, 10, 8, 0.62) 42%,
      rgba(10, 10, 8, 0.08) 78%
    ),
    linear-gradient(0deg, rgba(10, 10, 8, 0.55), transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 92px 120px;
}
.hero-copy-block {
  max-width: 710px;
}
.hero-kicker {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 9px 14px;
  color: #f4d992;
  background: rgba(210, 166, 75, 0.12);
  border: 1px solid rgba(228, 190, 105, 0.28);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.hero-kicker svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6.6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.hero-copy-block > p {
  max-width: 570px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}
.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.hero-scroll {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Public sections */
.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -28px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px;
  color: #fff;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stats-grid div:last-child {
  border: 0;
}
.stats-grid strong {
  color: var(--gold);
  font:
    800 25px "Manrope",
    sans-serif;
}
.stats-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}
.inventory-section {
  padding: 110px 0 120px;
  background: var(--surface-soft);
}
#estoque.inventory-section {
  padding-top: clamp(24px, 4vw, 56px);
}
.inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.inventory-search {
  min-width: 260px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 12px;
}
.inventory-search svg {
  width: 19px;
  color: var(--muted);
}
.inventory-search input {
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
}
.inventory-filters {
  display: flex;
  gap: 8px;
}
.inventory-filters select {
  min-width: 150px;
  padding: 12px 44px 12px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23191814' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
  border-radius: 12px;
  outline: 0;
}
@media (forced-colors: active) {
  .inventory-filters select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}
.filter-toggle {
  display: none;
}
.clear-filters,
.filter-toggle {
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  color: var(--muted);
  background: transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.clear-filters {
  display: flex;
}
.clear-filters svg,
.filter-toggle svg {
  width: 17px;
}
.inventory-result-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.inventory-result-meta strong {
  color: var(--ink);
}
.vehicles-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.vehicle-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 36px rgba(31, 27, 18, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: #d9c59b;
  box-shadow: 0 20px 54px rgba(31, 27, 18, 0.12);
}
.vehicle-card-media,
.detail-gallery-main,
.gallery-lightbox-image {
  touch-action: pan-y pinch-zoom;
}
.vehicle-card-media {
  position: relative;
  height: 250px;
  isolation: isolate;
  overflow: hidden;
  background: #1d1c18;
  border-bottom: 1px solid #f0eee8;
}
.vehicle-card-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.vehicle-badges {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 7px;
}
.status-badge,
.featured-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.status-badge {
  color: #116840;
  background: #dbf7e9;
}
.status-reservado {
  color: #886317;
  background: #fff0c9;
}
.status-vendido {
  color: #fff;
  background: #e50914;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.38);
}
.featured-badge {
  color: #2b2210;
  background: var(--gold);
}
.card-gallery-prev,
.card-gallery-next,
.gallery-detail-prev,
.gallery-detail-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 19, 16, 0.72);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.vehicle-card-media:hover .card-gallery-prev,
.vehicle-card-media:hover .card-gallery-next {
  opacity: 1;
}
.card-gallery-prev {
  left: 12px;
}
.card-gallery-next {
  right: 12px;
}
.card-gallery-prev svg,
.card-gallery-next svg {
  width: 19px;
}
.photo-count {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(20, 19, 16, 0.72);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.vehicle-card-body {
  padding: 22px;
}
.vehicle-brand {
  margin-bottom: 7px;
  color: var(--gold-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vehicle-card h3 {
  margin-bottom: 4px;
  font-size: 24px;
  letter-spacing: -0.035em;
}
.vehicle-version {
  min-height: 20px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}
.vehicle-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
.vehicle-specs span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  overflow: hidden;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 11px;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vehicle-specs svg {
  width: 15px;
  flex: 0 0 auto;
  color: var(--gold-strong);
}
.vehicle-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.vehicle-card-footer > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vehicle-card-footer small {
  color: var(--muted);
  font-size: 10px;
}
.vehicle-card-footer strong {
  font:
    800 18px "Manrope",
    sans-serif;
}
.vehicle-card-footer > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
}
.vehicle-card-footer > a svg {
  width: 14px;
}
.empty-state {
  padding: 70px 30px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d7d0c1;
  border-radius: var(--radius-lg);
}
.empty-state > svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}
.empty-state h3 {
  margin: 15px 0 7px;
}
.empty-state p {
  color: var(--muted);
}
.benefits-section {
  padding: 120px 0;
  background: #fff;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-card {
  position: relative;
  min-height: 300px;
  padding: 34px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.benefit-card > svg {
  width: 50px;
  height: 50px;
  padding: 12px;
  color: #33270f;
  background: var(--gold);
  border-radius: 16px;
}
.benefit-card h3 {
  margin: 70px 0 10px;
  font-size: 22px;
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.card-number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #ded9ce;
  font:
    800 52px "Manrope",
    sans-serif;
}
.about-section {
  padding: 110px 0;
  background: var(--gold-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}
.about-grid h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.about-copy {
  display: grid;
  gap: 20px;
  max-width: 720px;
}
.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.services-section {
  padding: 120px 0;
  color: #fff;
  background: var(--charcoal);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.services-grid article {
  position: relative;
  min-height: 270px;
  padding: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}
.services-grid article > svg:first-child {
  width: 38px;
  height: 38px;
  padding: 8px;
  color: var(--gold);
  background: rgba(210, 166, 75, 0.1);
  border-radius: 12px;
}
.services-grid h3 {
  margin: 58px 0 10px;
  font-size: 19px;
}
.services-grid p {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-size: 13px;
}
.services-grid article > svg:last-child {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 17px;
  color: var(--gold);
}
.contact-section {
  padding: 120px 0;
  background: var(--gold-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 76px;
  align-items: center;
}
.contact-copy h2 {
  max-width: 540px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.contact-copy > p {
  max-width: 510px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.contact-details {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-details svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--gold-strong);
  background: #fff;
  border-radius: 13px;
}
.contact-details span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}
.contact-details strong {
  color: var(--ink);
  font-size: 14px;
}
.text-link-modern {
  display: inline-flex;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.contact-form-card {
  padding: 36px;
  background: #fff;
  border: 1px solid rgba(149, 119, 55, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form-card > h2 {
  margin-bottom: 8px;
  font-size: 30px;
}
.contact-form-card > p {
  color: var(--muted);
}
.lead-form {
  display: grid;
  gap: 17px;
}
.lead-form.is-compact {
  gap: 13px;
}
.lead-form.is-compact .form-field-row {
  grid-template-columns: 1fr;
}
.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-size: 12px;
  font-weight: 800;
}
.form-field label small {
  color: var(--muted);
  font-weight: 400;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 13px;
  outline: 0;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--gold);
}
.form-privacy {
  margin: -7px 0 0;
  color: #99948a;
  font-size: 10px;
  text-align: center;
}
.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  color: #155e40;
  background: #e4f7ed;
  border-radius: var(--radius-md);
}
.form-success svg {
  flex: 0 0 auto;
}
.form-success p {
  margin: 4px 0 0;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

/* Footer and contact */
.site-footer {
  padding: 78px 0 22px;
  color: #fff;
  background: #11100d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr 0.8fr;
  gap: 60px;
}
.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-grid h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-grid a,
.footer-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.6;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-brand img {
  width: 190px;
  height: auto;
  object-fit: contain;
}
.footer-brand p {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 13px;
}
.footer-social svg {
  width: 19px;
}
.footer-admin-link {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.3) !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.33);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
}
.floating-whatsapp {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: #168a54;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 36px rgba(21, 105, 68, 0.3);
  font-size: 11px;
  font-weight: 800;
}
.floating-whatsapp svg {
  width: 20px;
  height: 20px;
}
.contact-page-hero {
  padding: 100px 0 130px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0, rgba(210, 166, 75, 0.28), transparent 33%),
    var(--charcoal);
}
.contact-page-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -0.06em;
}
.contact-page-hero p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1.65;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-top: -60px;
  padding-bottom: 110px;
}
.contact-channel-list {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-channel-list > * {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 15px;
}
.contact-channel-list svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--gold-strong);
  background: #fff;
  border-radius: 12px;
}
.contact-channel-list span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-channel-list small {
  color: var(--muted);
}
.contact-channel-list strong {
  overflow-wrap: anywhere;
}

/* Vehicle detail */
.vehicle-detail-page {
  padding-bottom: 110px;
  background: var(--surface-soft);
}
.detail-breadcrumb {
  display: flex;
  gap: 8px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 11px;
}
.detail-breadcrumb strong {
  color: var(--ink);
}
.vehicle-detail-hero {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 26px;
  align-items: start;
}
.detail-gallery,
.vehicle-summary,
.finance-calculator,
.vehicle-lead-card,
.vehicle-information {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.detail-gallery {
  min-width: 0;
  padding: 14px;
}
.detail-gallery-main {
  position: relative;
  height: 535px;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
}
.detail-gallery-main > img {
  object-fit: contain;
}
.detail-gallery-main:hover .gallery-detail-prev,
.detail-gallery-main:hover .gallery-detail-next {
  opacity: 1;
}
.gallery-detail-prev {
  left: 16px;
}
.gallery-detail-next {
  right: 16px;
}
.gallery-expand {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(20, 19, 16, 0.72);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.gallery-expand svg {
  width: 15px;
}
.gallery-detail-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(20, 19, 16, 0.7);
  border-radius: var(--radius-pill);
  font-size: 10px;
}
.detail-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 9px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
}
.detail-thumbnails button {
  position: relative;
  height: 65px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
}
.detail-thumbnails button.is-active {
  border-color: var(--gold);
}
.detail-thumbnails img {
  object-fit: contain;
}
.gallery-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 60px;
  background: rgba(8, 8, 7, 0.94);
}
.gallery-lightbox > button {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 24px;
  color: #fff;
  background: transparent;
  font-size: 40px;
}
.gallery-lightbox-image {
  position: relative;
  width: 100%;
  height: 100%;
}
.gallery-lightbox-image img {
  object-fit: contain;
}
.vehicle-summary {
  position: sticky;
  top: 104px;
  padding: 30px;
}
.vehicle-summary-badges {
  display: flex;
  gap: 7px;
  margin-bottom: 26px;
}
.vehicle-summary h1 {
  margin-bottom: 5px;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.detail-version {
  color: var(--muted);
}
.detail-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 26px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.detail-price small {
  color: var(--muted);
}
.detail-price strong {
  font:
    800 27px "Manrope",
    sans-serif;
}
.summary-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.summary-specs > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: var(--surface-soft);
  border-radius: 13px;
}
.summary-specs svg {
  width: 18px;
  flex: 0 0 auto;
  color: var(--gold-strong);
}
.summary-specs span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-specs small {
  color: var(--muted);
  font-size: 9px;
}
.summary-specs strong {
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.summary-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.vehicle-detail-content {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}
.vehicle-information {
  padding: 38px;
}
.detail-section h2 {
  max-width: 600px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.detail-section > p {
  color: var(--muted);
  line-height: 1.75;
}
.technical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}
.technical-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px;
  background: var(--surface-soft);
  border-radius: 14px;
}
.technical-grid span {
  color: var(--muted);
  font-size: 10px;
}
.technical-grid strong {
  font-size: 13px;
}
.features-list {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.features-list h3 {
  font-size: 21px;
}
.features-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.features-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.features-list svg {
  width: 17px;
  color: var(--success);
}
.vehicle-lead-column {
  display: grid;
  gap: 18px;
}
.finance-calculator,
.vehicle-lead-card {
  padding: 27px;
}
.calculator-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.calculator-title > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border-radius: 13px;
}
.calculator-title div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calculator-title span {
  color: var(--muted);
  font-size: 10px;
}
.finance-calculator > label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
}
.finance-calculator label strong {
  color: var(--ink);
}
.finance-calculator input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--gold-strong);
}
.calculator-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 22px;
  padding: 18px;
  background: var(--surface-soft);
  border-radius: 14px;
}
.calculator-result span,
.calculator-result small {
  color: var(--muted);
  font-size: 9px;
}
.calculator-result strong {
  font: 800 24px "Manrope";
}
.vehicle-lead-card h3 {
  margin-bottom: 7px;
  font-size: 24px;
}
.vehicle-lead-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.not-found {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}
.not-found > span {
  color: var(--gold);
  font: 800 100px "Manrope";
}
.not-found h1 {
  font-size: 36px;
}
.not-found p {
  color: var(--muted);
}

/* Admin auth */
.admin-auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f2f0ea;
}
.admin-auth-visual {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.admin-auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 10, 8, 0.88),
    rgba(10, 10, 8, 0.18)
  );
}
.admin-auth-visual > img {
  object-fit: cover;
}
.admin-auth-visual > div {
  position: absolute;
  z-index: 2;
  right: 70px;
  bottom: 70px;
  left: 70px;
  color: #fff;
}
.admin-auth-visual span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-auth-visual h1 {
  max-width: 660px;
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}
.admin-auth-visual p {
  color: rgba(255, 255, 255, 0.6);
}
.admin-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.auth-logo {
  width: 210px;
  height: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 26px;
}
.auth-logo img {
  width: 210px;
  height: auto;
  object-fit: contain;
  filter: brightness(0.25);
}
.auth-card {
  width: min(480px, 100%);
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.auth-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.auth-heading > svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border-radius: 14px;
}
.auth-heading span {
  color: var(--gold-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-heading h2 {
  margin: 4px 0;
  font-size: 30px;
}
.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-form {
  display: grid;
  gap: 18px;
}
.auth-form > label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 13px;
}
.input-with-icon:focus-within {
  background: #fff;
  border-color: var(--gold);
}
.input-with-icon > svg {
  width: 17px;
  color: var(--muted);
}
.input-with-icon input {
  min-width: 0;
  flex: 1;
  padding: 14px 0;
  background: transparent;
  outline: 0;
}
.input-with-icon button {
  display: grid;
  padding: 6px;
  color: var(--muted);
  background: transparent;
}
.input-with-icon button svg {
  width: 17px;
}
.password-hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.admin-primary-button,
.admin-secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #17140e;
  background: var(--gold);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
}
.admin-primary-button svg,
.admin-secondary-button svg {
  width: 17px;
}
.admin-primary-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.admin-secondary-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.admin-form-error,
.admin-form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 11px;
}
.admin-form-error {
  color: #8c2929;
  background: #ffe7e7;
}
.admin-form-success {
  color: #17613f;
  background: #e2f6ea;
}
.admin-form-success svg {
  width: 17px;
}
.setup-callout {
  display: grid;
  gap: 13px;
  padding: 17px;
  background: var(--gold-soft);
  border-radius: 14px;
}
.setup-callout p {
  margin: 0;
  font-size: 13px;
}
.auth-footer {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.auth-footer a {
  color: var(--gold-strong);
  font-weight: 800;
}

/* Admin layout */
.admin-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f3f2ee;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  background: #181713;
}
.admin-logo {
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 12px 28px;
}
.admin-logo img {
  width: 180px;
  height: auto;
  object-fit: contain;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar nav a,
.admin-sidebar-bottom a,
.admin-sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  transition:
    color 0.2s,
    background 0.2s;
}
.admin-sidebar nav a:hover,
.admin-sidebar-bottom a:hover,
.admin-sidebar-bottom button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.admin-sidebar svg {
  width: 18px;
}
.admin-security-note {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  color: #d7bc7a;
  background: rgba(210, 166, 75, 0.08);
  border: 1px solid rgba(210, 166, 75, 0.15);
  border-radius: 13px;
}
.admin-security-note svg {
  flex: 0 0 auto;
}
.admin-security-note span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  line-height: 1.4;
}
.admin-security-note strong {
  color: #d7bc7a;
  font-size: 10px;
}
.admin-sidebar-bottom {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar-bottom button {
  width: 100%;
}
.admin-main {
  min-width: 0;
}
.admin-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.admin-topbar > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.admin-topbar span {
  color: var(--muted);
  font-size: 9px;
}
.admin-topbar strong {
  font-size: 13px;
}
.admin-role {
  padding: 7px 10px;
  color: #795919 !important;
  background: var(--gold-soft);
  border-radius: var(--radius-pill);
  font-weight: 800;
}
.admin-content {
  width: min(1400px, 100%);
  margin-inline: auto;
  padding: 36px;
}
.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.admin-page-heading > div > span {
  color: var(--gold-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-page-heading h1 {
  margin: 7px 0 6px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.admin-page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-back-link svg {
  width: 16px;
}
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}
.dashboard-cards article {
  display: flex;
  gap: 14px;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.dashboard-cards article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border-radius: 13px;
}
.dashboard-cards svg {
  width: 19px;
}
.dashboard-cards article > div {
  display: flex;
  flex-direction: column;
}
.dashboard-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.dashboard-cards strong {
  font: 800 29px "Manrope";
}
.dashboard-cards small {
  color: var(--muted);
  font-size: 9px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-panel,
.admin-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(31, 27, 18, 0.035);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  margin: 0 0 3px;
  font-size: 17px;
}
.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.panel-heading > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-strong);
  font-size: 10px;
  font-weight: 800;
}
.panel-heading a svg {
  width: 14px;
}
.dashboard-list {
  display: grid;
  padding: 8px;
}
.dashboard-list > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
}
.dashboard-list > a:hover {
  background: var(--surface-soft);
}
.dashboard-vehicle-thumb {
  width: 64px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.dashboard-vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dashboard-list > a > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dashboard-list strong {
  font-size: 11px;
}
.dashboard-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-list > a > svg {
  width: 16px;
  color: #aaa59a;
}
.lead-initial {
  width: 38px;
  height: 38px;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto !important;
  color: #5d4519;
  background: var(--gold-soft);
  border-radius: 12px;
  font-weight: 800;
}
.lead-initial.large {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.dashboard-empty {
  padding: 34px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Admin inventory and forms */
.vehicle-table-panel {
  overflow: hidden;
}
.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.admin-table-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-table-toolbar svg {
  width: 16px;
  color: var(--muted);
}
.admin-table-toolbar input {
  background: transparent;
}
.admin-table-toolbar span {
  color: var(--muted);
  font-size: 10px;
}
.admin-table-scroll {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}
.admin-table th {
  padding: 12px 16px;
  color: var(--muted);
  background: #faf9f6;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.admin-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.table-vehicle {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-vehicle img,
.no-photo {
  width: 78px;
  height: 54px;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.no-photo {
  font-size: 8px;
}
.table-vehicle > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.table-vehicle strong {
  color: var(--ink);
  font-size: 11px;
}
.table-vehicle small {
  font-size: 9px;
}
.admin-status,
.published-dot,
.draft-dot {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-weight: 800;
}
.admin-status {
  color: #17613f;
  background: #e2f6ea;
}
.admin-status.reservado {
  color: #745718;
  background: #fff0c8;
}
.admin-status.vendido {
  color: #6c5656;
  background: #eee7e7;
}
.published-dot {
  color: #17613f;
  background: #e2f6ea;
}
.draft-dot {
  color: #706d65;
  background: #eeece7;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.admin-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 10px;
}
.admin-icon-button:hover {
  color: var(--ink);
  background: var(--gold-soft);
}
.admin-icon-button.danger:hover {
  color: var(--danger);
  background: #ffe9e9;
}
.admin-icon-button svg {
  width: 15px;
}
.delete-confirm {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #ffe9e9;
  border-radius: 9px;
}
.delete-confirm span,
.delete-confirm button {
  font-size: 8px;
}
.delete-confirm button {
  padding: 4px 6px;
  background: #fff;
  border-radius: 6px;
}
.vehicle-admin-form {
  display: grid;
  gap: 18px;
}
.admin-form-card {
  padding: 26px;
}
.admin-form-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.admin-form-card-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.admin-form-card-heading > div > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #6d511c;
  background: var(--gold-soft);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}
.admin-form-card-heading h2 {
  margin: 0;
  font-size: 19px;
}
.admin-form-card-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.admin-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.admin-fields-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.admin-fields-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}
.admin-fields-grid label small {
  color: var(--muted);
  font-weight: 400;
}
.admin-fields-grid input,
.admin-fields-grid select,
.admin-fields-grid textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 11px;
  outline: 0;
  resize: vertical;
}
.admin-fields-grid input:focus,
.admin-fields-grid select:focus,
.admin-fields-grid textarea:focus {
  background: #fff;
  border-color: var(--gold);
}
.admin-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.admin-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}
.admin-switches input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-strong);
}
.admin-form-card > h3 {
  margin: 28px 0 15px;
  font-size: 15px;
}
.admin-form-actions {
  position: sticky;
  z-index: 5;
  bottom: 15px;
  display: flex;
  justify-content: flex-end;
  padding: 13px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.photo-dropzone {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: #faf9f6;
  border: 1px dashed #ccc5b5;
  border-radius: 16px;
  cursor: pointer;
}
.photo-dropzone:hover {
  color: var(--ink);
  background: var(--gold-soft);
  border-color: var(--gold);
}
.photo-dropzone svg {
  width: 30px;
  height: 30px;
  color: var(--gold-strong);
}
.photo-dropzone strong {
  color: var(--ink);
  font-size: 12px;
}
.photo-dropzone span {
  font-size: 9px;
}
.photo-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.crop-help {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 10px;
  padding: 11px;
  color: var(--muted);
  background: var(--gold-soft);
  border-radius: 11px;
  font-size: 9px;
}
.crop-help svg {
  width: 16px;
  flex: 0 0 auto;
  color: var(--gold-strong);
}
.crop-help span {
  flex: 1;
}
.crop-help button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px;
  background: #fff;
  border-radius: 8px;
  font-size: 8px;
}
.crop-preview-grid,
.existing-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.crop-preview,
.existing-photo {
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.crop-preview-image,
.existing-photo > div {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #fff;
  border-radius: 9px;
}
.crop-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crop-preview > strong {
  display: block;
  margin: 8px 0;
  overflow: hidden;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.crop-preview label {
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}
.crop-preview input {
  width: 100%;
  accent-color: var(--gold-strong);
}
.existing-photo {
  display: grid;
  gap: 7px;
}
.existing-photo img {
  object-fit: contain;
}
.existing-photo label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
}
.existing-photo input {
  accent-color: var(--gold-strong);
}
.admin-muted {
  color: var(--muted);
  font-size: 10px;
}

/* Leads, settings, audit */
.lead-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}
.lead-admin-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.lead-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lead-card-top > div {
  min-width: 0;
  flex: 1;
}
.lead-card-top h2 {
  margin: 0 0 3px;
  font-size: 16px;
}
.lead-card-top p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lead-status {
  padding: 6px 8px;
  color: #17613f;
  background: #e2f6ea;
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-weight: 800;
}
.lead-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}
.lead-contacts a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 9px;
  font-size: 8px;
}
.lead-contacts svg {
  width: 13px;
}
.lead-admin-card blockquote {
  margin: 0 0 18px;
  padding: 12px;
  color: var(--muted);
  background: #faf9f6;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 10px;
  line-height: 1.55;
}
.lead-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lead-card-footer small {
  color: var(--muted);
  font-size: 8px;
}
.lead-card-footer form {
  display: flex;
  gap: 5px;
}
.lead-card-footer select,
.lead-card-footer button {
  padding: 7px 8px;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 8px;
}
.lead-card-footer button {
  color: #fff;
  background: var(--ink);
}
.settings-form,
.password-form {
  margin-bottom: 18px;
}
.settings-form > .admin-primary-button,
.password-form > .admin-primary-button {
  margin-top: 22px;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #17613f;
  background: #e2f6ea;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 800;
}
.security-badge svg {
  width: 16px;
}
.audit-list {
  padding: 8px;
}
.audit-list article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 12px;
}
.audit-list article:hover {
  background: var(--surface-soft);
}
.audit-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border-radius: 11px;
}
.audit-list svg {
  width: 15px;
}
.audit-list article > div {
  flex: 1;
}
.audit-list strong {
  font-size: 10px;
}
.audit-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
}
.audit-list small {
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 18px;
  }
  .vehicles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vehicle-detail-hero,
  .vehicle-detail-content {
    grid-template-columns: 1fr;
  }
  .vehicle-summary {
    position: static;
  }
  .detail-gallery-main {
    height: 500px;
  }
  .admin-fields-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .crop-preview-grid,
  .existing-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-header-inner {
    height: 70px;
  }
  .site-header-inner {
    width: min(100% - 28px, 1180px);
  }
  .site-logo,
  .site-logo img {
    width: 150px;
  }
  .menu-toggle {
    display: grid;
  }
  .header-contact {
    display: none;
  }
  .site-nav {
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 12px;
    color: var(--ink);
    border-radius: 10px;
  }
  .site-nav a:hover {
    color: var(--ink);
    background: var(--surface-soft);
  }
  .site-nav .nav-admin-link {
    display: block;
    color: var(--muted);
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .hero {
    min-height: 680px;
    background-position: 62% center;
  }
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(10, 10, 8, 0.88),
      rgba(10, 10, 8, 0.58)
    );
  }
  .hero-content {
    padding-block: 80px 110px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }
  .stats-grid div:nth-child(2) {
    border: 0;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .inventory-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .inventory-search {
    width: calc(100% - 110px);
    flex: auto;
  }
  .filter-toggle {
    display: flex;
  }
  .inventory-filters {
    width: 100%;
    display: none;
    grid-template-columns: 1fr 1fr;
  }
  .inventory-filters.is-open {
    display: grid;
  }
  .inventory-filters select {
    width: 100%;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    min-height: 250px;
  }
  .benefit-card h3 {
    margin-top: 50px;
  }
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vehicle-card-media {
    height: 280px;
  }
  .admin-auth-page {
    grid-template-columns: 1fr;
  }
  .admin-auth-visual {
    display: none;
  }
  .admin-auth-panel {
    min-height: 100svh;
    padding: 28px;
  }
  .admin-layout {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .admin-sidebar {
    padding: 18px 10px;
  }
  .admin-logo {
    width: 50px;
    margin-inline: 3px;
  }
  .admin-logo img {
    width: 160px;
    max-width: none;
    transform: translateX(-48px);
  }
  .admin-sidebar nav a,
  .admin-sidebar-bottom a,
  .admin-sidebar-bottom button {
    justify-content: center;
    padding: 12px;
    font-size: 0;
  }
  .admin-security-note {
    display: none;
  }
  .admin-topbar {
    padding-inline: 22px;
  }
  .admin-content {
    padding: 26px 22px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .lead-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-container {
    width: calc(100% - 28px);
  }
  .hero {
    min-height: 670px;
    background-position: 67% center;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-copy-block,
  .hero-copy-block > p {
    max-width: 100%;
  }
  .hero-copy-block > p {
    overflow-wrap: anywhere;
    font-size: 15px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-proof {
    display: grid;
  }
  .hero-scroll {
    display: none;
  }
  .stats-strip {
    margin-top: -18px;
  }
  .stats-grid {
    padding: 22px 12px;
    border-radius: 22px;
  }
  .stats-grid div {
    padding-inline: 12px;
  }
  .stats-grid strong {
    font-size: 20px;
  }
  .stats-grid span {
    font-size: 9px;
  }
  .inventory-section,
  .benefits-section,
  .services-section,
  .contact-section {
    padding-block: 80px;
  }
  .section-heading h2 {
    font-size: 38px;
  }
  .inventory-toolbar {
    min-width: 0;
  }
  .inventory-search {
    min-width: 0;
    width: 100%;
  }
  .filter-toggle {
    flex: 1;
    justify-content: center;
    background: var(--surface-soft);
  }
  .clear-filters {
    flex: 1;
    justify-content: center;
  }
  .inventory-filters.is-open {
    grid-template-columns: 1fr;
  }
  .vehicles-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .vehicle-card {
    width: 100%;
  }
  .vehicle-card-media {
    height: 260px;
  }
  .vehicle-card-footer {
    min-width: 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid article {
    min-height: 230px;
  }
  .form-field-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px;
    border-radius: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .floating-whatsapp {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
  .floating-whatsapp span {
    display: none;
  }
  .contact-page-hero {
    padding: 70px 0 100px;
  }
  .contact-page-hero h1 {
    font-size: 48px;
  }
  .contact-page-grid {
    margin-top: -45px;
    padding-bottom: 80px;
  }
  .detail-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
  }
  .vehicle-detail-hero {
    width: 100%;
  }
  .detail-gallery {
    padding: 8px;
    border-radius: 0;
    border-inline: 0;
  }
  .detail-gallery-main {
    height: 340px;
  }
  .vehicle-summary {
    margin-inline: 14px;
    padding: 24px;
  }
  .vehicle-detail-content {
    width: calc(100% - 28px);
  }
  .vehicle-information {
    padding: 24px;
  }
  .technical-grid {
    grid-template-columns: 1fr 1fr;
  }
  .features-list > div {
    grid-template-columns: 1fr;
  }
  .gallery-lightbox {
    padding: 20px;
  }
  .admin-auth-panel {
    padding: 18px;
  }
  .auth-card {
    padding: 24px;
  }
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 10px 14px;
  }
  .admin-logo {
    width: 150px;
    height: 50px;
    margin: 0 auto 0 0;
    flex: 0 0 auto;
  }
  .admin-logo img {
    width: 150px;
    transform: none;
  }
  .admin-sidebar nav {
    display: flex;
    flex: 0 0 auto;
  }
  .admin-sidebar nav a {
    display: flex;
  }
  .admin-sidebar-bottom {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .admin-sidebar-bottom a {
    display: none;
  }
  .admin-topbar {
    height: 58px;
  }
  .admin-role {
    display: none;
  }
  .admin-content {
    padding: 22px 14px;
  }
  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-page-heading h1 {
    font-size: 34px;
  }
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
  .admin-fields-grid,
  .admin-fields-grid.three {
    grid-template-columns: 1fr;
  }
  .admin-form-card {
    padding: 18px;
  }
  .admin-form-card-heading {
    flex-direction: column;
  }
  .crop-preview-grid,
  .existing-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lead-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .lead-card-footer form {
    width: 100%;
  }
  .lead-card-footer select {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Admin dark theme and readability */
.admin-auth-page,
.admin-layout,
.admin-main,
.admin-content {
  color: #f4f2ec;
  background: #0d0e0c;
}

.admin-auth-panel {
  color: #f4f2ec;
  background: #0d0e0c;
}

.auth-logo img {
  filter: none;
}

.auth-card,
.admin-panel,
.admin-form-card,
.lead-admin-card {
  color: #f4f2ec;
  background: #191a17;
  border-color: #34362f;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.auth-card {
  width: min(540px, 100%);
  padding: 44px;
}
.auth-heading {
  gap: 17px;
  margin-bottom: 32px;
}
.auth-heading > svg {
  width: 50px;
  height: 50px;
  color: #edc76f;
  background: rgba(210, 166, 75, 0.14);
}
.auth-heading span,
.admin-page-heading > div > span {
  color: #e3ba60;
  font-size: 13px;
}
.auth-heading h2 {
  margin: 5px 0;
  font-size: 36px;
}
.auth-heading p {
  color: #aaa9a1;
  font-size: 15px;
  line-height: 1.55;
}
.auth-form {
  gap: 22px;
}
.auth-form > label {
  color: #f4f2ec;
  font-size: 15px;
}
.input-with-icon {
  padding-inline: 16px;
  background: #242520;
  border-color: #383a33;
  border-radius: 15px;
}
.input-with-icon:focus-within {
  background: #292a25;
  border-color: #d2a64b;
}
.input-with-icon > svg,
.input-with-icon button {
  color: #b6b4ac;
}
.input-with-icon input {
  padding: 16px 0;
  color: #fff;
  font-size: 17px;
}
.input-with-icon input::placeholder,
.admin-fields-grid input::placeholder,
.admin-fields-grid textarea::placeholder {
  color: #777970;
}
.password-hint {
  color: #aaa9a1;
  font-size: 13px;
}
.setup-callout {
  background: #272319;
}
.setup-callout p {
  font-size: 15px;
}

.admin-primary-button,
.admin-secondary-button {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 15px;
  font-size: 15px;
}

.admin-secondary-button {
  color: #f4f2ec;
  background: #242520;
  border-color: #3a3b35;
}
.admin-secondary-button:hover {
  background: #30312b;
}
.admin-primary-button:hover {
  background: #dfb75d;
}

.admin-sidebar {
  background: #11120f;
  border-right: 1px solid #292a25;
}

.admin-sidebar nav {
  gap: 8px;
}
.admin-sidebar nav a,
.admin-sidebar-bottom a,
.admin-sidebar-bottom button {
  min-height: 48px;
  padding: 14px 16px;
  color: #b7b6ae;
  border-radius: 14px;
  font-size: 15px;
}

.admin-sidebar nav a:hover,
.admin-sidebar-bottom a:hover,
.admin-sidebar-bottom button:hover {
  color: #fff;
  background: #26271f;
}

.admin-sidebar svg {
  width: 21px;
  height: 21px;
}
.admin-sidebar-bottom {
  border-color: #292a25;
}
.admin-topbar {
  height: 82px;
  background: rgba(20, 21, 18, 0.94);
  border-color: #30312b;
}
.admin-topbar span {
  color: #aaa9a1;
  font-size: 13px;
}
.admin-topbar strong {
  color: #fff;
  font-size: 17px;
}
.admin-role {
  color: #f0cc77 !important;
  background: rgba(210, 166, 75, 0.13);
  font-size: 12px !important;
}
.admin-content {
  padding: 44px;
}
.admin-page-heading {
  margin-bottom: 36px;
}
.admin-page-heading h1 {
  margin: 9px 0 8px;
  color: #fff;
  font-size: clamp(38px, 4vw, 56px);
}
.admin-page-heading p {
  color: #aaa9a1;
  font-size: 16px;
  line-height: 1.55;
}
.admin-back-link {
  color: #c0beb6;
  font-size: 14px;
}

.dashboard-cards {
  gap: 18px;
  margin-bottom: 26px;
}
.dashboard-cards article {
  gap: 17px;
  padding: 25px;
  background: #191a17;
  border-color: #34362f;
  border-radius: 20px;
}
.dashboard-cards article > span {
  width: 50px;
  height: 50px;
  color: #e3ba60;
  background: rgba(210, 166, 75, 0.13);
}
.dashboard-cards svg {
  width: 23px;
  height: 23px;
}
.dashboard-cards p {
  color: #aaa9a1;
  font-size: 14px;
}
.dashboard-cards strong {
  color: #fff;
  font-size: 36px;
}
.dashboard-cards small {
  color: #929188;
  font-size: 12px;
}
.panel-heading {
  padding: 26px;
  border-color: #34362f;
}
.panel-heading h2 {
  color: #fff;
  font-size: 22px;
}
.panel-heading p {
  color: #aaa9a1;
  font-size: 14px;
}
.panel-heading > a {
  color: #e3ba60;
  font-size: 14px;
}
.dashboard-list {
  padding: 12px;
}
.dashboard-list > a {
  gap: 15px;
  padding: 14px;
}
.dashboard-list > a:hover {
  background: #252620;
}
.dashboard-vehicle-thumb {
  width: 78px;
  height: 57px;
  border-color: #3a3b35;
}
.dashboard-list strong {
  color: #f4f2ec;
  font-size: 15px;
}
.dashboard-list small {
  color: #aaa9a1;
  font-size: 13px;
}
.dashboard-list > a > svg {
  width: 19px;
  color: #85847d;
}
.dashboard-empty {
  color: #aaa9a1;
  font-size: 14px;
}
.lead-initial {
  color: #f0cc77;
  background: rgba(210, 166, 75, 0.14);
}

.admin-table-toolbar {
  padding: 20px 24px;
  border-color: #34362f;
}
.admin-table-toolbar svg {
  width: 20px;
  color: #aaa9a1;
}
.admin-table-toolbar input {
  color: #dddcd5;
  font-size: 15px;
}
.admin-table-toolbar input::placeholder {
  color: #929188;
}
.admin-table-toolbar span {
  color: #aaa9a1;
  font-size: 14px;
}
.admin-table th {
  padding: 16px 18px;
  color: #aaa9a1;
  background: #131410;
  font-size: 12px;
}
.admin-table td {
  padding: 17px 18px;
  color: #c7c5bd;
  border-color: #30312b;
  font-size: 14px;
}
.table-vehicle img,
.no-photo {
  border-color: #3a3b35;
}
.no-photo {
  color: #777970;
  font-size: 11px;
}
.table-vehicle strong {
  color: #fff;
  font-size: 15px;
}
.table-vehicle small {
  color: #aaa9a1;
  font-size: 13px;
}
.admin-status,
.published-dot,
.draft-dot {
  padding: 7px 10px;
  font-size: 11px;
}
.draft-dot {
  color: #c5c3bb;
  background: #34352f;
}
.admin-icon-button {
  width: 40px;
  height: 40px;
  color: #c3c1b9;
  background: #292a25;
}
.admin-icon-button:hover {
  color: #17140e;
  background: #d2a64b;
}
.admin-icon-button svg {
  width: 18px;
}
.delete-confirm span,
.delete-confirm button {
  font-size: 12px;
}

.admin-form-card {
  padding: 32px;
}
.admin-form-card-heading {
  margin-bottom: 28px;
  padding-bottom: 23px;
  border-color: #34362f;
}
.admin-form-card-heading > div > span {
  width: 38px;
  height: 38px;
  color: #f0cc77;
  background: rgba(210, 166, 75, 0.14);
  font-size: 12px;
}
.admin-form-card-heading h2 {
  color: #fff;
  font-size: 24px;
}
.admin-form-card-heading p {
  color: #aaa9a1;
  font-size: 14px;
  line-height: 1.6;
}
.admin-fields-grid {
  gap: 22px;
}
.admin-fields-grid label {
  gap: 9px;
  color: #f4f2ec;
  font-size: 15px;
}
.admin-fields-grid label small {
  color: #aaa9a1;
  font-size: 13px;
}
.admin-fields-grid input,
.admin-fields-grid select,
.admin-fields-grid textarea {
  padding: 15px 16px;
  color: #fff;
  background: #242520;
  border-color: #383a33;
  border-radius: 14px;
  font-size: 16px;
  color-scheme: dark;
}

.admin-fields-grid input:focus,
.admin-fields-grid select:focus,
.admin-fields-grid textarea:focus {
  background: #292a25;
  border-color: #d2a64b;
}
.admin-switches label {
  color: #efede7;
  font-size: 14px;
}
.admin-switches input {
  width: 20px;
  height: 20px;
}
.admin-form-card > h3 {
  color: #fff;
  font-size: 19px;
}
.admin-form-actions {
  padding: 16px;
  background: rgba(24, 25, 22, 0.93);
  border-color: #3a3b35;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.admin-muted {
  color: #aaa9a1;
  font-size: 14px;
}

.photo-dropzone {
  min-height: 180px;
  color: #aaa9a1;
  background: #22231f;
  border-color: #5d5748;
}
.photo-dropzone:hover {
  color: #fff;
  background: #29261e;
}
.photo-dropzone strong {
  color: #f4f2ec;
  font-size: 16px;
}
.photo-dropzone span {
  font-size: 13px;
}
.crop-help {
  padding: 14px;
  color: #d0cec6;
  background: #28251c;
  font-size: 13px;
}
.crop-help button {
  color: #f4f2ec;
  background: #3a372e;
  font-size: 12px;
}
.crop-preview,
.existing-photo {
  background: #22231f;
  border-color: #3a3b35;
}
.crop-preview > strong {
  color: #f4f2ec;
  font-size: 12px;
}
.crop-preview label,
.existing-photo label {
  color: #b9b7af;
  font-size: 12px;
}

.lead-admin-grid {
  gap: 20px;
}
.lead-card-top h2 {
  color: #fff;
  font-size: 21px;
}
.lead-card-top p {
  color: #aaa9a1;
  font-size: 13px;
}
.lead-status {
  font-size: 11px;
}
.lead-contacts a {
  padding: 10px 12px;
  color: #d1cfc7;
  background: #292a25;
  font-size: 13px;
}
.lead-contacts svg {
  width: 16px;
}
.lead-admin-card blockquote {
  padding: 16px;
  color: #c7c5bd;
  background: #22231f;
  font-size: 14px;
}
.lead-card-footer {
  border-color: #34362f;
}
.lead-card-footer small {
  color: #aaa9a1;
  font-size: 12px;
}
.lead-card-footer select,
.lead-card-footer button {
  padding: 10px 12px;
  color: #f4f2ec;
  background: #292a25;
  font-size: 13px;
}
.lead-card-footer button {
  color: #17140e;
  background: #d2a64b;
  font-weight: 800;
}
.admin-form-error,
.admin-form-success {
  gap: 12px;
  min-height: 58px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: admin-notice-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.admin-form-success {
  color: #165539;
  background: linear-gradient(135deg, #edfbf3, #d8f2e5);
  border-color: #a8d8bd;
  border-left-color: #21875b;
}
.admin-form-error {
  color: #8c2929;
  background: linear-gradient(135deg, #fff1f1, #ffe2e2);
  border-color: #edb5b5;
  border-left-color: #c64949;
}
.admin-form-success svg,
.admin-form-error svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.vehicle-admin-form > .admin-form-success,
.vehicle-admin-form > .admin-form-error {
  margin-bottom: 6px;
}
@keyframes admin-notice-enter {
  from { opacity: 0; transform: translate3d(0, -14px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-form-success,
  .admin-form-error { animation: none; }
}

@media (max-width: 860px) {
  .admin-topbar {
    height: 76px;
  }
  .admin-content {
    padding: 32px 26px;
  }
  .admin-sidebar nav a,
  .admin-sidebar-bottom a,
  .admin-sidebar-bottom button {
    font-size: 0;
  }
}

@media (max-width: 620px) {
  .admin-auth-panel {
    padding: 24px 18px;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .auth-heading h2 {
    font-size: 30px;
  }
  .admin-sidebar {
    background: #11120f;
    border-right: 0;
    border-bottom: 1px solid #30312b;
  }
  .admin-sidebar nav {
    gap: 5px;
  }
  .admin-sidebar nav a {
    min-width: max-content;
    flex-direction: column;
    gap: 5px;
    padding: 9px 11px;
    font-size: 11px;
  }
  .admin-sidebar nav a svg {
    width: 19px;
    height: 19px;
  }
  .admin-topbar {
    height: 68px;
  }
  .admin-content {
    padding: 28px 16px;
  }
  .admin-page-heading h1 {
    font-size: 38px;
  }
  .admin-page-heading p {
    font-size: 15px;
  }
  .admin-page-heading .admin-primary-button,
  .admin-page-heading .admin-secondary-button {
    width: 100%;
  }
  .dashboard-cards article {
    padding: 22px;
  }
  .admin-form-card {
    padding: 22px 18px;
  }
  .admin-form-card-heading h2 {
    font-size: 22px;
  }
  .admin-form-card-heading p {
    font-size: 14px;
  }
  .crop-preview-grid,
  .existing-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* One consistent, legible typeface across the administrative experience. */
.admin-auth-page,
.admin-auth-page *,
.admin-layout,
.admin-layout * {
  font-family: var(--font-ui), Arial, sans-serif !important;
  font-optical-sizing: auto;
}

/* Admin photo manager */
.photo-manager {
  display: grid;
  gap: 18px;
}
.photo-submission-input {
  display: none;
}
.photo-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #22231f;
  border: 1px solid #393b34;
  border-radius: 17px;
}
.photo-manager-toolbar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-manager-toolbar strong {
  color: #fff;
  font-size: 17px;
}
.photo-manager-toolbar span {
  color: #aaa9a1;
  font-size: 13px;
}
.photo-manager-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-add-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #17140e;
  background: #d2a64b;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.photo-add-button:hover {
  background: #dfb75d;
  transform: translateY(-1px);
}
.photo-add-button svg {
  width: 19px;
}
.photo-clear-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #f2b7b7;
  background: rgba(168, 62, 62, 0.12);
  border: 1px solid rgba(205, 87, 87, 0.5);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.photo-clear-button:hover {
  color: #fff;
  background: #a83e3e;
  border-color: #a83e3e;
}
.photo-clear-button svg {
  width: 18px;
}
.photo-add-button input,
.photo-empty-state input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-manager-error {
  margin: 0;
  padding: 13px 15px;
  color: #ffb5b5;
  background: rgba(198, 73, 73, 0.12);
  border: 1px solid rgba(198, 73, 73, 0.3);
  border-radius: 12px;
  font-size: 14px;
}
.photo-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.photo-manager-card {
  min-width: 0;
  overflow: hidden;
  background: #22231f;
  border: 1px solid #3a3b35;
  border-radius: 17px;
  cursor: grab;
  transition:
    opacity 0.2s,
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.photo-manager-card:hover {
  border-color: #70664e;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.photo-manager-card:active {
  cursor: grabbing;
}
.photo-manager-card.is-dragging {
  opacity: 0.4;
  transform: scale(0.97);
  border-color: #d2a64b;
}
.photo-manager-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11120f;
  border-bottom: 1px solid #393b34;
}
.photo-manager-image > img {
  width: 100%;
  height: 100%;
}
.photo-manager-image.existing > img {
  object-fit: contain;
}
.photo-manager-image.new > img {
  object-fit: cover;
}
.photo-position {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #17140e;
  background: #d2a64b;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.photo-drag-hint {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 48px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  color: #fff;
  background: rgba(12, 13, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.photo-drag-hint svg {
  width: 15px;
}
.photo-cover-badge {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: #17140e;
  background: #e4bb59;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.photo-cover-badge svg {
  width: 14px;
  fill: currentColor;
}
.photo-manager-card-body {
  display: grid;
  gap: 11px;
  padding: 12px;
}
.photo-cover-button {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #c5c3bb;
  background: #2b2c27;
  border: 1px solid #3c3e37;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}
.photo-cover-button:hover {
  color: #f0cc77;
  border-color: #79683f;
}
.photo-cover-button.is-cover {
  color: #f0cc77;
  background: rgba(210, 166, 75, 0.11);
  border-color: rgba(210, 166, 75, 0.35);
}
.photo-cover-button svg {
  width: 15px;
}
.photo-cover-button.is-cover svg {
  fill: currentColor;
}
.photo-card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.photo-card-actions button {
  height: 37px;
  display: grid;
  place-items: center;
  color: #c8c6be;
  background: #2b2c27;
  border: 1px solid #3c3e37;
  border-radius: 10px;
}
.photo-card-actions button:hover:not(:disabled) {
  color: #17140e;
  background: #d2a64b;
  border-color: #d2a64b;
}
.photo-card-actions button.danger:hover {
  color: #fff;
  background: #a83e3e;
  border-color: #a83e3e;
}
.photo-card-actions button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
.photo-card-actions svg {
  width: 17px;
}
.photo-empty-state {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #aaa9a1;
  background: #20211d;
  border: 2px dashed #4b4d44;
  border-radius: 18px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.photo-empty-state:hover {
  background: #272820;
  border-color: #d2a64b;
}
.photo-empty-state > svg {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  color: #d2a64b;
}
.photo-empty-state strong {
  color: #fff;
  font-size: 17px;
}
.photo-empty-state span {
  font-size: 13px;
}
.photo-save-note {
  margin: -4px 0 0;
  color: #8f8e86;
  font-size: 12px;
}

.crop-editor-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 30px;
  background: rgba(5, 6, 5, 0.88);
  backdrop-filter: blur(12px);
}
.crop-editor-modal {
  width: min(920px, 100%);
  overflow: hidden;
  color: #f4f2ec;
  background: #181916;
  border: 1px solid #3b3d35;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.crop-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #34362f;
}
.crop-editor-heading > div {
  min-width: 0;
}
.crop-editor-heading span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e3ba60;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crop-editor-heading span svg {
  width: 16px;
}
.crop-editor-heading h3 {
  margin: 6px 0 3px;
  color: #fff;
  font-size: 28px;
}
.crop-editor-heading p {
  margin: 0;
  overflow: hidden;
  color: #aaa9a1;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.crop-editor-heading > button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #c8c6be;
  background: #292a25;
  border-radius: 12px;
}
.crop-editor-heading > button:hover {
  color: #fff;
  background: #3a3b35;
}
.crop-editor-heading > button svg {
  width: 20px;
}
.crop-editor-stage {
  position: relative;
  width: calc(100% - 52px);
  aspect-ratio: 16 / 9;
  margin: 24px 26px;
  overflow: hidden;
  background: #090a08;
  border: 1px solid #41433b;
  border-radius: 17px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.crop-editor-stage:active {
  cursor: grabbing;
}
.crop-editor-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 33.2%,
      rgba(255, 255, 255, 0.16) 33.3%,
      transparent 33.5%,
      transparent 66.4%,
      rgba(255, 255, 255, 0.16) 66.5%,
      transparent 66.7%
    ),
    linear-gradient(
      0deg,
      transparent 33.2%,
      rgba(255, 255, 255, 0.16) 33.3%,
      transparent 33.5%,
      transparent 66.4%,
      rgba(255, 255, 255, 0.16) 66.5%,
      transparent 66.7%
    );
}
.crop-editor-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crop-ratio-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: #17140e;
  background: #d2a64b;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}
.crop-drag-instruction {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  padding: 7px 11px;
  color: #fff;
  background: rgba(10, 11, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.crop-editor-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 2px 26px 24px;
}
.crop-editor-controls label {
  display: grid;
  gap: 10px;
}
.crop-editor-controls label > span {
  display: flex;
  justify-content: space-between;
  color: #bbb9b1;
  font-size: 13px;
  font-weight: 700;
}
.crop-editor-controls strong {
  color: #e6bd61;
}
.crop-editor-controls input {
  width: 100%;
  accent-color: #d2a64b;
}
.crop-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 26px;
  background: #121310;
  border-top: 1px solid #34362f;
}
.crop-editor-footer > span {
  color: #8f8e86;
  font-size: 12px;
}
.crop-editor-footer > div {
  display: flex;
  gap: 8px;
}
.crop-editor-footer button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}
.crop-editor-footer button svg {
  width: 16px;
}
.crop-reset-button,
.crop-cancel-button {
  color: #d1cfc7;
  background: #292a25;
  border: 1px solid #3c3e37;
}
.crop-confirm-button {
  color: #17140e;
  background: #d2a64b;
}
.crop-confirm-button:hover {
  background: #dfb75d;
}

@media (max-width: 1100px) {
  .photo-manager-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .photo-manager-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .photo-manager-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .photo-add-button {
    width: 100%;
  }
  .photo-clear-button {
    width: 100%;
  }
  .photo-manager-grid {
    grid-template-columns: 1fr;
  }
  .photo-drag-hint {
    display: none;
  }
  .crop-editor-backdrop {
    align-items: start;
    padding: 12px;
  }
  .crop-editor-modal {
    border-radius: 18px;
  }
  .crop-editor-heading {
    padding: 19px;
  }
  .crop-editor-heading h3 {
    font-size: 24px;
  }
  .crop-editor-stage {
    width: calc(100% - 30px);
    margin: 15px;
    border-radius: 12px;
  }
  .crop-editor-controls {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 3px 18px 20px;
  }
  .crop-editor-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 18px;
  }
  .crop-editor-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .crop-confirm-button {
    grid-column: 1 / -1;
  }
}

/* Let the original image set the card's photo height: no crop or side bands. */
.vehicle-card-media {
  height: auto;
  aspect-ratio: auto;
}

.detail-gallery-main {
  height: auto;
  aspect-ratio: auto;
}

.detail-gallery-main > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-thumbnails {
  display: flex;
}
.detail-thumbnails button {
  flex: 0 0 auto;
  height: 80px;
  padding: 0;
}
.detail-thumbnails img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* Compact photo actions and precise drag destination feedback. */
.photo-manager-card {
  position: relative;
  cursor: default;
  overflow: hidden;
}
.photo-manager-card.is-dragging {
  opacity: 0.28;
  transform: scale(0.96);
}
.photo-manager-grid.is-reordering .photo-manager-card:not(.is-dragging) {
  opacity: 0.72;
}
.photo-manager-grid.is-reordering .photo-manager-card.is-drop-before,
.photo-manager-grid.is-reordering .photo-manager-card.is-drop-after {
  opacity: 1;
  transform: scale(1.025);
  border-color: #d2a64b;
  box-shadow:
    0 0 0 3px rgba(210, 166, 75, 0.15),
    0 18px 40px rgba(0, 0, 0, 0.35);
}
.photo-manager-card.is-drop-before::before,
.photo-manager-card.is-drop-after::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #f0c96d;
  box-shadow: 0 0 18px rgba(240, 201, 109, 0.95);
  pointer-events: none;
}
.photo-manager-card.is-drop-before::before {
  left: 0;
}
.photo-manager-card.is-drop-after::after {
  right: 0;
}
.photo-drag-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: -5px;
  padding: 10px 14px;
  color: #f4d786;
  background: rgba(210, 166, 75, 0.1);
  border: 1px solid rgba(210, 166, 75, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}
.photo-drag-status svg {
  width: 17px;
}
.photo-edit-overlay {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #fff;
  background: rgba(12, 13, 11, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.photo-edit-overlay:hover {
  color: #17140e;
  background: #d2a64b;
  border-color: #d2a64b;
}
.photo-edit-overlay svg {
  width: 14px;
}
.photo-manager-card-body {
  padding: 10px 12px;
}
.photo-card-actions {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  width: min(190px, 100%);
  margin-inline: auto;
  gap: 18px;
}
.photo-card-actions .photo-round-action {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #d0cec6;
  background: #2c2d28;
  border: 1px solid #42443c;
  border-radius: 50%;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.photo-card-actions .photo-round-action:hover {
  transform: translateY(-2px);
}
.photo-card-actions .photo-round-action.cover:hover,
.photo-card-actions .photo-round-action.cover.is-cover {
  color: #17140e;
  background: #d2a64b;
  border-color: #e4bd64;
  box-shadow: 0 6px 18px rgba(210, 166, 75, 0.22);
}
.photo-card-actions .photo-round-action.cover.is-cover svg {
  fill: currentColor;
}
.photo-card-actions .photo-round-action.drag {
  color: #f1d181;
  background: #373227;
  border-color: #6e5d39;
  cursor: grab;
}
.photo-card-actions .photo-round-action.drag:hover {
  color: #17140e;
  background: #e1b95f;
  border-color: #e1b95f;
  box-shadow: 0 6px 18px rgba(210, 166, 75, 0.24);
}
.photo-card-actions .photo-round-action.drag:active {
  cursor: grabbing;
  transform: scale(0.92);
}
.photo-card-actions .photo-round-action.delete {
  color: #fff;
  background: #a83e3e;
  border-color: #c65757;
}
.photo-card-actions .photo-round-action.delete:hover {
  background: #c84c4c;
  border-color: #df6969;
  box-shadow: 0 6px 18px rgba(198, 73, 73, 0.3);
}
.photo-card-actions .photo-round-action svg {
  width: 18px;
}

@media (max-width: 720px) {
  .photo-manager-card.is-drop-before::before,
  .photo-manager-card.is-drop-after::after {
    right: 0;
    left: 0;
    width: auto;
    height: 6px;
  }
  .photo-manager-card.is-drop-before::before {
    top: 0;
    bottom: auto;
  }
  .photo-manager-card.is-drop-after::after {
    top: auto;
    bottom: 0;
  }
  .photo-drag-status {
    position: sticky;
    z-index: 10;
    top: 8px;
  }
}

.photo-card-actions .photo-round-action.cover.is-cover {
  color: #e4bb59;
  background: #2c2d28;
  border-color: #6f613e;
  box-shadow: none;
}
.photo-card-actions .photo-round-action.cover.is-cover svg {
  fill: #e4bb59;
}
.photo-card-actions .photo-round-action.drag {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.photo-drag-pointer {
  position: fixed;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  color: #17140e;
  background: #e4bb59;
  border: 2px solid #f3d88f;
  border-radius: 999px;
  transform: translate(14px, 14px);
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 900;
}
.photo-drag-pointer svg {
  width: 16px;
}

.email-form {
  margin-bottom: 18px;
}
.email-form > .admin-primary-button {
  margin-top: 22px;
}

.password-field-control {
  position: relative;
}
.admin-fields-grid .password-field-control input {
  padding-right: 52px;
}
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #b6b4ac;
  background: transparent;
  border-radius: 9px;
  transform: translateY(-50%);
}
.password-visibility-toggle:hover {
  color: #f4f2ec;
  background: #34362f;
}
.password-visibility-toggle:focus-visible {
  outline: 2px solid #d2a64b;
  outline-offset: 2px;
}
.password-visibility-toggle svg {
  width: 19px;
  height: 19px;
}

/* Keep browser autofill consistent with the dark admin fields. */
.admin-auth-page .input-with-icon input:-webkit-autofill,
.admin-auth-page .input-with-icon input:-webkit-autofill:hover,
.admin-auth-page .input-with-icon input:-webkit-autofill:focus,
.admin-auth-page .input-with-icon input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #242520 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #242520 inset !important;
  transition: background-color 9999s ease-out 0s;
}

.admin-auth-page .input-with-icon:focus-within input:-webkit-autofill,
.admin-auth-page .input-with-icon:focus-within input:-webkit-autofill:hover,
.admin-auth-page .input-with-icon:focus-within input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #292a25 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #292a25 inset !important;
}

.admin-auth-page .input-with-icon input:autofill {
  color: #fff !important;
  background: #242520 !important;
}

.admin-auth-page .input-with-icon input:not(:placeholder-shown) {
  color: #fff;
  font-weight: 600;
}

.admin-layout .admin-fields-grid input:-webkit-autofill,
.admin-layout .admin-fields-grid input:-webkit-autofill:hover,
.admin-layout .admin-fields-grid input:-webkit-autofill:focus,
.admin-layout .admin-fields-grid input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #242520 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #242520 inset !important;
  transition: background-color 9999s ease-out 0s;
}

.admin-layout .admin-fields-grid input:not(:placeholder-shown) {
  color: #fff;
  font-weight: 600;
}

/* Lead status and deletion controls */
.lead-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lead-card-actions > form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lead-card-actions select {
  min-width: 145px;
  color: #f4f2ec;
  background: #292a25;
  border: 1px solid #3c3e37;
}
.lead-card-actions .lead-update-button {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #17140e;
  background: #d2a64b;
  font-weight: 800;
}
.lead-card-actions .lead-update-button:hover:not(:disabled) {
  background: #dfb75d;
}
.lead-card-actions .lead-update-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.lead-card-actions .lead-update-button svg {
  width: 15px;
}
.lead-card-actions .lead-delete-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #a83e3e;
  border: 1px solid #c65757;
  border-radius: 10px;
}
.lead-card-actions .lead-delete-button:hover {
  background: #c14949;
}
.lead-card-actions .lead-delete-button svg {
  width: 15px;
}
.lead-delete-confirmation {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  color: #ffc2c2;
  background: rgba(168, 62, 62, 0.15);
  border: 1px solid rgba(198, 87, 87, 0.35);
  border-radius: 11px;
}
.lead-delete-confirmation > span {
  padding-inline: 5px;
  font-size: 12px;
  font-weight: 800;
}
.lead-delete-confirmation .lead-confirm-delete {
  min-width: 52px;
  height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #a83e3e;
  font-weight: 800;
}

.form-field label small {
  color: #b98725;
}
.lead-delete-confirmation .lead-confirm-delete svg {
  width: 15px;
}
.lead-delete-confirmation > button {
  color: #d7d5cd;
  background: #30312c;
}

@media (max-width: 720px) {
  .lead-card-actions {
    width: 100%;
    align-items: center;
    flex-direction: row;
  }
  .lead-card-actions > form {
    min-width: 0;
    flex: 1;
  }
  .lead-card-actions select {
    min-width: 0;
    flex: 1;
  }
  .lead-card-actions .lead-delete-button {
    width: 38px;
    align-self: center;
  }
  .lead-delete-confirmation {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .lead-delete-confirmation > span {
    width: 100%;
  }
  .lead-delete-confirmation form {
    flex: 1;
  }
  .lead-delete-confirmation .lead-confirm-delete,
  .lead-delete-confirmation > button {
    width: 100%;
  }
}

/* Vehicle photo choices */
.vehicle-photo-section {
  display: grid;
  gap: 18px;
}
.vehicle-photo-section .admin-form-card-heading {
  margin-bottom: 0;
}
.vehicle-photo-section [data-photo-grid]:empty {
  display: none;
}
.vehicle-photo-card {
  container-type: inline-size;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.vehicle-photo-card:has([data-photo-cover]:checked) {
  border-color: #b99043;
  box-shadow:
    0 0 0 1px rgba(210, 166, 75, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.16);
}
.vehicle-photo-card .photo-manager-image {
  aspect-ratio: 4 / 3;
}
.vehicle-photo-card .photo-manager-image img {
  display: block;
  object-fit: contain;
  transition: opacity 0.2s;
}
.vehicle-photo-card.is-removed .photo-manager-image img {
  opacity: 0.3;
}
.vehicle-photo-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  color: #1e190d;
  background: linear-gradient(135deg, #efcf85, #d2a64b);
  border: 1px solid #efcf85;
  border-radius: 9px;
  box-shadow: 0 4px 14px #0004;
  font-size: 11px;
  font-weight: 800;
}
.vehicle-photo-cover-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.vehicle-photo-card:has([data-photo-cover]:checked) .vehicle-photo-cover-badge {
  display: inline-flex;
}
.vehicle-photo-options {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  padding: 12px;
  background: #1e1f1b;
}
.vehicle-photo-options .vehicle-photo-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 46px;
  padding: 10px;
  color: #aaa99f;
  background: #282923;
  border: 1px solid #3b3d33;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.vehicle-photo-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.vehicle-photo-option .vehicle-photo-tick {
  position: relative;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border: 1.5px solid #646458;
  border-radius: 6px;
  background: #1c1d19;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.vehicle-photo-option:has(input:checked) {
  color: #eee9db;
  background: #303027;
  border-color: #686043;
}
.vehicle-photo-option input:checked + .vehicle-photo-tick {
  background: #d2a64b;
  border-color: #d2a64b;
}
.vehicle-photo-option input:checked + .vehicle-photo-tick::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #211b0f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vehicle-photo-cover-option:has(input:checked) {
  color: #f0cb79;
  background: linear-gradient(135deg, #3d3523, #302a1e);
  border-color: #b08b43;
}
.vehicle-photo-option:hover:not(:has(input:disabled)) {
  border-color: #c7a354;
  color: #f2d794;
}
.vehicle-photo-option:has(input:focus-visible) {
  outline: 2px solid #efcf85;
  outline-offset: 3px;
}
.vehicle-photo-option:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}
@container (max-width: 310px) {
  .vehicle-photo-options {
    grid-template-columns: 1fr;
  }
}

/* Customer testimonials */
.button-test-drive-whatsapp {
  margin-top: 14px;
}
.testimonials-section {
  padding: 110px 0;
  background: #fff;
}
.testimonials-viewport {
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.testimonial-card {
  min-width: 0;
  flex: 0 0 calc((100% - 40px) / 3);
  overflow: hidden;
  opacity: 0.5;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  transform: scale(0.97);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.testimonial-card.is-active {
  opacity: 1;
  border-color: #d8be82;
  box-shadow: 0 18px 40px rgba(58, 43, 13, 0.14);
  transform: scale(1);
}
.testimonial-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd8cd;
}
.testimonial-photo img {
  object-fit: cover;
}
.testimonial-copy {
  position: relative;
  min-width: 0;
  padding: 24px 22px;
}
.testimonial-copy > svg {
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--gold-strong);
}
.testimonial-copy blockquote {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
.testimonial-copy strong,
.testimonial-copy span {
  display: block;
}
.testimonial-copy strong {
  margin-bottom: 3px;
  font-size: 13px;
}
.testimonial-copy span {
  color: var(--muted);
  font-size: 11px;
}

/* Testimonials manager */
.testimonials-manager {
  display: grid;
  gap: 22px;
}
.testimonial-admin-form {
  display: grid;
  gap: 15px;
}
.testimonial-admin-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f4f2ec;
  font-size: 14px;
  font-weight: 800;
}
.testimonial-admin-form input:not([type="checkbox"]),
.testimonial-admin-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: #fff;
  background: #242520;
  border: 1px solid #383a33;
  border-radius: 13px;
  outline: 0;
  resize: vertical;
}
.testimonial-admin-form input:focus,
.testimonial-admin-form textarea:focus {
  border-color: #d2a64b;
  background: #292a25;
}
.testimonial-publish-toggle {
  flex-direction: row !important;
  align-items: center;
  color: #d4d2ca !important;
}
.testimonial-publish-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #d2a64b;
}
.testimonials-admin-list {
  overflow: hidden;
}
.testimonials-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}
.testimonial-admin-card {
  min-width: 0;
  overflow: hidden;
  padding: 15px;
  background: #20211d;
  border: 1px solid #393b34;
  border-radius: 18px;
}
.testimonial-admin-photo {
  position: relative;
  height: 190px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #11120f;
  border-radius: 13px;
}
.testimonial-admin-photo img {
  object-fit: cover;
}
.testimonial-admin-photo > span {
  position: absolute;
  top: 11px;
  right: 11px;
}
.testimonial-delete-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  color: #ffb5b5;
  background: rgba(198, 73, 73, 0.13);
  border: 1px solid rgba(198, 73, 73, 0.35);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}
.testimonial-delete-button:hover {
  color: #fff;
  background: #a83e3e;
}
.testimonial-delete-button svg {
  width: 16px;
}

@media (max-width: 760px) {
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (min-width: 761px) {
  .footer-bottom {
    position: relative;
    justify-content: flex-start;
  }
  .footer-bottom > span:last-child {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .testimonial-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 620px) {
  .testimonials-section {
    padding-block: 80px;
  }
  .testimonial-card {
    flex-basis: 100%;
  }
  .testimonials-admin-grid {
    grid-template-columns: 1fr;
    padding: 13px;
  }
}

/* Keep complete vehicle names readable on narrow screens. */
.vehicle-summary h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

/* Keep public action labels on one line, including narrow mobile cards. */
.button,
.header-contact,
.floating-whatsapp,
.vehicle-card-footer > a,
.filter-toggle,
.clear-filters {
  white-space: nowrap;
  flex-wrap: nowrap;
}
.button {
  min-width: 0;
  max-width: 100%;
  padding-inline: clamp(12px, 2vw, 24px);
}
.button svg,
.floating-whatsapp svg {
  flex-shrink: 0;
}

/* Browse real stock by model. */
.model-visit { margin: 40px 0; padding: 24px; border: 1px solid #ded8cb; border-radius: 16px; }
.model-visit p { margin: 16px 0 20px; line-height: 1.7; }
.inventory-section .section-heading h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; overflow-wrap: anywhere; }
