:root {
  color-scheme: light;
  --navy: #07142a;
  --navy-2: #0b1f3d;
  --blue: #1267f2;
  --blue-2: #075be2;
  --green: #38b82f;
  --ink: #0f1b2d;
  --muted: #637088;
  --line: #dfe6f0;
  --soft: #f5f8fc;
  --card: #ffffff;
  --shadow: 0 18px 44px rgba(11, 31, 61, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f7f9fc;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a,
select {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button:hover,
.vehicle-card:hover,
.whatsapp:hover,
.primary:hover {
  transform: translateY(-1px);
}

.site-header {
  align-items: center;
  background: rgba(5, 15, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  gap: 28px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 4vw;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #dce8ff 100%);
  border: 3px solid #1d73ff;
  border-radius: 16px;
  color: var(--blue);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1;
}

.brand strong span {
  color: var(--blue);
}

.brand small {
  color: #9ab1d2;
  display: block;
  font-size: 12px;
  letter-spacing: 9px;
  margin-top: 4px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 34px;
  font-weight: 600;
}

.nav a:hover {
  color: #79a8ff;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.phone {
  color: #dce7f8;
  font-weight: 600;
}

.whatsapp,
.interest,
.primary {
  align-items: center;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
}

.primary {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(18, 103, 242, 0.24);
}

.primary.full {
  width: 100%;
}

.secondary {
  align-items: center;
  background: white;
  border: 1px solid #bdc9da;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
}

.secondary.light {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.menu-button,
.mobile-filter-button,
.close-filter {
  display: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(5, 15, 31, 0.99) 0%, rgba(6, 19, 39, 0.92) 38%, rgba(6, 19, 39, 0.35) 72%),
    url("../assets/hero-showroom.png") center right / cover no-repeat;
  color: white;
  min-height: 326px;
  padding: 58px 4vw 24px;
}

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

.hero p,
.about-section p,
.admin-hero p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 620px;
}

.hero span {
  color: #d7e1ef;
  display: block;
  font-size: 18px;
  line-height: 1.45;
  max-width: 580px;
}

.hero-search {
  display: flex;
  margin-top: 18px;
  max-width: 730px;
}

.hero-search input {
  border: 0;
  border-radius: 8px 0 0 8px;
  color: var(--ink);
  flex: 1;
  font-size: 17px;
  min-height: 56px;
  padding: 0 22px;
}

.hero-search button {
  background: var(--blue);
  border: 0;
  border-radius: 0 8px 8px 0;
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chips button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 0 16px;
}

.chips .active {
  background: var(--blue);
  border-color: var(--blue);
}

.inventory-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: 270px minmax(0, 1fr);
  padding: 14px 4vw 20px;
}

.filters {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(11, 31, 61, 0.06);
  padding: 12px;
  position: sticky;
  top: 86px;
}

.filter-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filter-head button,
.section-head button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filter-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.filter-select span {
  display: block;
  font-weight: 800;
  margin-bottom: 2px;
}

.filter-select select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  outline: none;
  width: 100%;
}

.inventory-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.inventory-toolbar h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.inventory-toolbar h2 span {
  color: var(--blue);
  font-weight: 900;
}

.inventory-toolbar select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 16px;
}

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

.vehicle-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-image {
  aspect-ratio: 1.38 / 1;
  background: #dde5ee;
  position: relative;
}

.card-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.badge {
  background: var(--green);
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  left: 12px;
  padding: 5px 12px;
  position: absolute;
  top: 12px;
}

.badge.blue {
  background: var(--blue);
}

.favorite {
  background: rgba(15, 27, 45, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: white;
  font-size: 11px;
  height: 36px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 70px;
}

.card-body {
  padding: 14px;
}

.card-title {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.card-title h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 0;
}

.card-title strong {
  font-size: 16px;
}

.card-body p {
  color: var(--muted);
  margin: 4px 0 10px;
}

.card-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
}

.price {
  color: var(--blue);
  display: block;
  font-size: 24px;
  margin-top: 16px;
}

.card-body small {
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.card-actions .secondary,
.card-actions .interest {
  font-size: 13px;
  height: 44px;
  line-height: 1;
  min-height: 44px;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
}

.card-actions .interest {
  box-shadow: 0 10px 22px rgba(56, 184, 47, 0.2);
}

.trust-strip {
  background: var(--navy);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
  margin: 6px 4vw 16px;
  padding: 22px;
}

.trust-strip div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
}

.trust-strip span {
  background: rgba(18, 103, 242, 0.24);
  border: 1px solid rgba(53, 130, 255, 0.55);
  border-radius: 999px;
  grid-row: span 2;
  height: 44px;
}

.trust-strip p {
  color: #b7c4d8;
  margin: 3px 0 0;
}

.financing,
.about-section,
.contact-cta,
.detail-copy,
.related,
.leads-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 4vw 24px;
  padding: 24px;
}

.financing {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 70px 1fr auto auto auto 260px;
}

.finance-icon {
  align-items: center;
  background: #eef4ff;
  border-radius: 8px;
  color: var(--blue);
  display: flex;
  font-size: 30px;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.financing h2,
.about-section h2,
.contact-cta h2 {
  margin: 0 0 6px;
}

.financing p,
.contact-cta p {
  color: var(--muted);
  margin: 0;
}

.financing span {
  color: var(--ink);
  font-weight: 700;
}

.about-section {
  display: grid;
  gap: 26px;
  grid-template-columns: 0.8fr 1.2fr;
}

.about-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.about-grid article {
  background: var(--soft);
  border-radius: 8px;
  padding: 18px;
}

.about-grid span {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.contact-cta {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #0d2a56);
  color: white;
  display: flex;
  justify-content: space-between;
}

.detail-page {
  padding-bottom: 72px;
}

.admin-hero {
  background: linear-gradient(135deg, var(--navy), #102d5c);
  color: white;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 22px 4vw;
}

.detail-title-block {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(11, 31, 61, 0.09);
  display: grid;
  gap: 16px;
  margin-top: 0;
  padding: 24px 28px;
  width: 100%;
}

.detail-title-main {
  align-items: flex-start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.detail-title-block h1 {
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 8px;
  text-wrap: balance;
  text-transform: uppercase;
}

.detail-title-block h1 span {
  font-weight: 900;
}

.detail-title-block h1 em {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.detail-title-block p {
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

.detail-title-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 18px;
  padding-top: 8px;
}

.offer-pill {
  background: var(--green);
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  white-space: nowrap;
}

.detail-favorite {
  align-items: center;
  background: #f5f9ff;
  border: 1px solid #d7e6ff;
  border-radius: 999px;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 42px;
}

.admin-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
  margin: 0 0 14px;
}

.detail-price-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-price-line strong {
  color: var(--blue);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 390px;
  margin: 24px 4vw;
}

.detail-media-column {
  display: grid;
  gap: 16px;
}

.gallery,
.lead-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.main-photo {
  background: #e8eef6;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.main-photo img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.main-photo span {
  background: rgba(7, 20, 42, 0.74);
  border-radius: 999px;
  bottom: 16px;
  color: white;
  font-weight: 800;
  padding: 9px 14px;
  position: absolute;
  right: 16px;
}

.thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.thumbs button {
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

.thumbs .selected {
  border-color: var(--blue);
}

.thumbs img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.lead-panel {
  align-self: start;
  position: sticky;
  top: 92px;
}

.status {
  background: #e9f9e7;
  border-radius: 999px;
  color: #238d20;
  display: inline-block;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.status.reservado {
  background: #fff7dd;
  color: #9c6d00;
}

.status.vendido {
  background: #ffe7e7;
  color: #bd1e1e;
}

.spec-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.spec-grid div {
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
}

.spec-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.lead-panel .whatsapp {
  width: 100%;
}

.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.lead-form h3 {
  margin: 0;
}

.lead-form input,
.lead-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.catalog-grid textarea,
.login-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

.lead-form textarea,
.admin-form textarea,
.catalog-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.detail-copy {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.detail-copy p,
.detail-copy li {
  color: var(--muted);
  line-height: 1.6;
}

.detail-copy ul {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}

.lightbox {
  align-items: center;
  background: rgba(4, 10, 20, 0.88);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 30px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.lightbox img {
  border-radius: 8px;
  max-height: 82vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox button {
  background: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  position: absolute;
  right: 24px;
  top: 24px;
}

.mobile-sticky-cta {
  display: none;
}

.login-page {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #0f2c59);
  display: flex;
  min-height: calc(100vh - 72px);
  justify-content: center;
  padding: 24px;
}

.login-card,
.admin-form,
.admin-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 12px;
  max-width: 410px;
  width: 100%;
}

.login-card p {
  color: #bd1e1e;
  margin: 0;
}

.admin-page {
  background: #f4f7fb;
  min-height: calc(100vh - 72px);
  padding-bottom: 0;
}

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

.admin-sidebar {
  background: linear-gradient(180deg, #061326, #0a2348);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
}

.admin-brand {
  margin-bottom: 12px;
}

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

.admin-tabs button,
.admin-logout {
  justify-content: flex-start;
  width: 100%;
}

.admin-tabs button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #dbe7f8;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
  text-align: left;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.admin-logout {
  margin-top: auto;
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-topbar p,
.admin-login p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.admin-topbar h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.role-pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(11, 31, 61, 0.08);
  font-weight: 900;
  padding: 11px 16px;
}

.admin-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.metric-card,
.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(11, 31, 61, 0.07);
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.metric-card span,
.metric-card small,
.admin-row small {
  color: var(--muted);
}

.metric-card strong {
  color: var(--blue);
  font-size: 34px;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.section-head p {
  color: var(--muted);
  margin: 6px 0 0;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 430px;
  margin: 24px 4vw;
}

.admin-grid.enhanced {
  grid-template-columns: minmax(0, 1fr) 470px;
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
}

.form-grid label,
.catalog-grid label {
  display: grid;
  gap: 6px;
}

.form-grid label span,
.catalog-grid label span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkbox {
  align-items: center;
  display: flex;
  gap: 10px;
}

.checkbox input {
  min-height: auto;
  width: auto;
}

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

.vehicle-form-page .admin-form {
  margin-top: 18px;
}

.admin-vehicle-filters {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  margin: 18px 0;
  padding: 12px;
}

.admin-vehicle-filters input,
.admin-vehicle-filters select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.compact-form {
  align-self: start;
}

.permission-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.file-upload {
  background: var(--soft);
  border: 1px dashed #b9c8dc;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.file-upload span {
  font-weight: 900;
}

.file-upload small {
  color: var(--muted);
}

.permission-box small,
.form-alert {
  color: var(--muted);
}

.form-alert {
  background: #fff7dd;
  border-radius: 8px;
  padding: 12px;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 74px 1fr auto auto;
  padding: 12px 0;
}

.vehicle-admin-row {
  grid-template-columns: 74px minmax(220px, 1fr) 112px auto auto auto;
}

.vehicle-views {
  background: #eef4ff;
  border: 1px solid #d7e6ff;
  border-radius: 8px;
  color: var(--blue);
  padding: 8px 10px;
  text-align: center;
}

.vehicle-views span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-views strong {
  color: var(--blue);
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.simple-row {
  grid-template-columns: 1fr auto auto;
}

.admin-row img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 74px;
}

.admin-row span {
  color: var(--muted);
  display: block;
}

.admin-row button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.lead-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding: 14px 0;
}

.lead-row span,
.lead-row small {
  color: var(--muted);
}

.lead-row p {
  color: var(--muted);
  margin: 6px 0 0;
}

.catalog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-grid button {
  grid-column: 1 / -1;
}

.old-price,
.detail-old-price {
  color: #8a96aa;
  text-decoration: line-through;
}

.detail-old-price,
.detail-store {
  display: block;
  margin-top: 4px;
}

.detail-store {
  color: #c9d7ea;
  font-weight: 700;
}

.is-sold .card-image img {
  filter: grayscale(0.5);
}

.float-whatsapp {
  background: var(--green);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 16px 36px rgba(56, 184, 47, 0.35);
  color: white;
  font-weight: 900;
  padding: 14px 18px;
  position: fixed;
  right: 18px;
  z-index: 30;
}

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

  .trust-strip,
  .financing,
  .about-section,
  .detail-layout,
  .admin-grid,
  .admin-grid.enhanced,
  .admin-cards {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .financing .primary {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small,
  .phone,
  .header-actions .whatsapp {
    display: none;
  }

  .menu-button,
  .mobile-filter-button,
  .close-filter {
    display: inline-flex;
  }

  .menu-button,
  .mobile-filter-button,
  .close-filter {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    min-height: 40px;
    padding: 0 12px;
  }

  .nav {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(5, 15, 31, 0.99) 0%, rgba(6, 19, 39, 0.86) 56%, rgba(6, 19, 39, 0.38) 100%),
      url("../assets/hero-showroom.png") center bottom / cover no-repeat;
    min-height: 560px;
    padding: 38px 18px 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search input,
  .hero-search button {
    border-radius: 8px;
  }

  .hero-search button {
    min-height: 50px;
    margin-top: 8px;
  }

  .inventory-shell {
    display: block;
    padding: 16px;
  }

  .mobile-filter-button {
    margin-bottom: 12px;
    width: 100%;
  }

  .filters {
    bottom: 0;
    display: none;
    left: 0;
    overflow: auto;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 64px;
    z-index: 40;
  }

  .filters.open {
    display: block;
  }

  .inventory-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .vehicle-grid,
  .trust-strip,
  .about-grid,
  .detail-copy,
  .form-grid,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .financing,
  .about-section,
  .contact-cta,
  .detail-copy,
  .related,
  .leads-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .financing {
    align-items: stretch;
  }

  .contact-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .admin-hero {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    padding: 18px 16px;
  }

  .detail-title-block {
    max-width: 100%;
    margin-top: 0;
    padding: 18px;
  }

  .detail-title-block h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.08;
  }

  .detail-title-block p {
    font-size: 13px;
  }

  .detail-title-main {
    display: grid;
    gap: 16px;
  }

  .detail-title-actions {
    gap: 12px;
    justify-content: space-between;
    padding-top: 0;
    width: 100%;
  }

  .offer-pill {
    font-size: 13px;
    padding: 9px 15px;
  }

  .detail-price-line strong {
    font-size: 26px;
  }

  .detail-layout,
  .admin-grid {
    margin: 16px;
  }

  .admin-shell {
    display: block;
  }

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

  .admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-tabs button {
    min-width: max-content;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-topbar {
    align-items: flex-start;
    display: grid;
    gap: 12px;
  }

  .admin-grid.enhanced {
    margin: 0;
  }

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

  .lead-panel {
    position: static;
  }

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

  .detail-copy ul {
    columns: 1;
  }

  .admin-row,
  .vehicle-admin-row,
  .simple-row {
    grid-template-columns: 64px 1fr;
  }

  .admin-row button {
    grid-column: span 1;
  }

  .vehicle-views {
    grid-column: 1 / -1;
    text-align: left;
  }

  .vehicle-views strong,
  .vehicle-views span {
    display: inline;
  }

  .vehicle-views strong {
    margin-left: 8px;
  }

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

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

  .mobile-sticky-cta {
    background: var(--blue);
    bottom: 0;
    color: white;
    display: block;
    font-weight: 900;
    left: 0;
    padding: 16px;
    position: fixed;
    right: 0;
    text-align: center;
    z-index: 25;
  }

  .float-whatsapp {
    display: none;
  }
}
