/* ============================================================
   FT Car Sales — Main Stylesheet
   Clean, modern UK dealership aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:       #000000;
  --navy-mid:   #454545;
  --red:        #0099D9;
  --red-dark:   #004373;
  --grey-100:   #f5f6f8;
  --grey-200:   #e8eaed;
  --grey-400:   #9aa3ae;
  --grey-600:   #5a6472;
  --white:      #ffffff;
  --text:       ##1a1f27;
  --text-light: #5a6472;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);

  --nav-h:      86px;
  --font-main:  'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

/* ── Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--grey { background: var(--grey-100); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230,51,41,.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: relative;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--red); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__cta { margin-left: 16px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Mobile Nav ────────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: stretch;
}

/* Split layout */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Left content panel */
.hero__content {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.hero__content-inner {
  padding: 0 56px 0 max(48px, calc((100vw - 1200px) / 2 + 24px));
  width: 100%;
  max-width: 640px;
}

/* Right image panel */
.hero__image {
  position: relative;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Seamless fade from left panel into image */
.hero__image-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(13,27,42,0.5) 35%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,51,41,.2);
  border: 1px solid rgba(230,51,41,.4);
  color: #ff7b74;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero__title {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.hero__title em {
  font-style: normal;
  color: var(--red);
}
.hero__sub {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.hero__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* ── Section Headers ───────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}
.section-header__left {}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.section-title { color: var(--navy); }
.section-sub {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 15px;
}

/* ── Car Cards ─────────────────────────────────────────── */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.car-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.car-card__img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--grey-100);
}
.car-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.car-card:hover .car-card__img img { transform: scale(1.04); }
.car-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--available { background: #e6f4ea; color: #1e7e34; }
.badge--reserved  { background: #fff3cd; color: #856404; }
.badge--sold      { background: #f8d7da; color: #842029; }
.badge--featured  { background: var(--red); color: var(--white); }

.car-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.car-card__year {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.car-card__specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.car-card__spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-light);
}
.car-card__spec svg { flex-shrink: 0; opacity: .6; }
.car-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--grey-200);
}
.car-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.car-card__price-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  font-family: var(--font-main);
}

/* ── No Photo Placeholder ──────────────────────────────── */
.car-card__no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  color: var(--grey-400);
  font-size: 13px;
}

/* ── Stock Filters ─────────────────────────────────────── */
.filters {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.filters__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filters__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}
.filters__group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filters__group select,
.filters__group input {
  padding: 10px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3ae' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .2s;
}
.filters__group select:focus,
.filters__group input:focus {
  outline: none;
  border-color: var(--navy);
}

/* ── Vehicle Detail ────────────────────────────────────── */
.vehicle-detail { padding: 48px 0 72px; }
.vehicle-detail__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.vehicle-gallery__main {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  margin-bottom: 12px;
}
.vehicle-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vehicle-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.vehicle-gallery__thumb {
  width: 80px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.vehicle-gallery__thumb.active { border-color: var(--red); }
.vehicle-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.vehicle-info__tag {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.vehicle-info__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 8px;
}
.vehicle-info__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 24px;
}
.vehicle-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.vehicle-spec {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.vehicle-spec__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.vehicle-spec__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.vehicle-info__desc {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 15px;
}
.vehicle-enquiry {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}
.vehicle-enquiry h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.vehicle-enquiry p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.vehicle-enquiry .btn { width: 100%; justify-content: center; }
.vehicle-enquiry__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ── Why Us / USP Strip ────────────────────────────────── */
.usp-strip {
  background: var(--navy);
  padding: 48px 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.usp-item {
  text-align: center;
  color: var(--white);
}
.usp-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(230,51,41,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--red);
}
.usp-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.usp-item__text {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── Contact ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--grey-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.contact-info__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-info__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── About ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey-200);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content .section-tag { display: block; }
.about-content h2 { margin-bottom: 20px; }
.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ── Page Hero (inner pages) ───────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 48px 0;
}
.page-hero__title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}
.page-hero__sub {
  color: rgba(255,255,255,.6);
  font-size: 15px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--grey-200);
  color: var(--text);
  transition: all .2s;
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination span.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__logo span { color: var(--red); }
.footer__tagline {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a { color: rgba(255,255,255,.4); }
.footer__bottom a:hover { color: var(--white); }

/* ── Admin Panel ───────────────────────────────────────── */
.admin-body {
  background: var(--grey-100);
  min-height: 100vh;
}
.admin-nav {
  background: var(--navy);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-right: auto;
}
.admin-nav__logo span { color: var(--red); }
.admin-nav a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.admin-nav a:hover { color: var(--white); }
.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-header h1 {
  font-size: 1.6rem;
  color: var(--navy);
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  overflow: hidden;
}
.admin-card__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
}
.admin-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--grey-100); }
.admin-table__actions { display: flex; gap: 8px; }

/* ── Admin Form ────────────────────────────────────────── */
.admin-form { padding: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,42,.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--red);
  cursor: pointer;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-200);
}

/* ── Image Upload ──────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--navy);
  background: var(--grey-100);
}
.upload-zone__icon { color: var(--grey-400); margin-bottom: 12px; }
.upload-zone__text { font-size: 14px; color: var(--text-light); }
.upload-zone__text strong { color: var(--navy); }
.image-previews {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.image-preview {
  position: relative;
  width: 100px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--grey-200);
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview__remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
  border: none;
}
.image-preview--primary { border-color: var(--red); }

/* ── Flash Messages ────────────────────────────────────── */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash--success { background: #e6f4ea; color: #1e7e34; border: 1px solid #c3e6cb; }
.flash--error   { background: #f8d7da; color: #842029; border: 1px solid #f5c6cb; }
.flash--info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Admin Login ───────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-box__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}
.login-box__logo span { color: var(--red); }
.login-box__sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.login-box .form-group { margin-bottom: 16px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Stats Cards (admin dashboard) ────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__label {
  font-size: 13px;
  color: var(--text-light);
}
.stat-card--red .stat-card__num { color: var(--red); }
.stat-card--green .stat-card__num { color: #1e7e34; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .vehicle-detail__grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__image {
    height: 260px;
    order: -1;
  }
  .hero__image-fade {
    background: linear-gradient(to bottom, transparent 0%, var(--navy) 100%);
  }
  .hero__content-inner {
    padding: 40px 24px;
  }
  .hero { padding: 0; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 48px 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .cars-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .vehicle-specs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
