/* ============================================================
   AUTONESI — Design System & Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-input: #161616;
  --bg-input-focus: #1c1c1c;
  --border: #222222;
  --border-hover: #333333;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #777777;
  --accent: #e81224;
  --accent-hover: #ff1a30;
  --accent-glow: rgba(232, 18, 36, 0.25);
  --glass-bg: rgba(10, 10, 10, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(232, 18, 36, 0.15);
  --max-width: 1280px;
  --nav-height: 70px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
}

input,
select,
textarea {
  font-family: var(--font);
  outline: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.navbar-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.lang-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-card-hover);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 40%,
      rgba(0, 0, 0, 0.6) 80%,
      rgba(0, 0, 0, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 16px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--accent);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid var(--accent);
  transition: var(--transition);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-sell-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 42px;
  background: rgba(10, 10, 10, 0.6);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.04em;
  overflow: hidden;
  z-index: 1;
}

.btn-sell-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 18, 36, 0.2), rgba(255, 26, 48, 0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-sell-cta:hover {
  border-color: rgba(232, 18, 36, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 18, 36, 0.2);
}

.btn-sell-cta:hover::before {
  opacity: 1;
}

.btn-sell-glow {
  position: absolute;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  top: 0;
  left: -150%;
  transform: skewX(-20deg);
  animation: shine 6s infinite;
  z-index: -1;
}

@keyframes shine {
  0% {
    left: -150%;
  }

  20% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.btn-sell-cta svg {
  transition: transform var(--transition);
}

.btn-sell-cta:hover svg:last-child {
  transform: translateX(4px);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.08);
  /* Slightly increased opacity */
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-secondary:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============================================================
   INVENTORY GRID
   ============================================================ */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Car Card */
.car-card {
  background: #09090b;
  border-radius: 20px;
  border: 1px solid #27272a;
  padding: 12px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 18, 36, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.car-card-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.car-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform var(--transition-slow);
}

.car-card:hover .car-card-image {
  transform: scale(1.03);
}

.car-card-body {
  background: #161618;
  border-radius: 12px;
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.car-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.car-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  width: 100%;
}

.car-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.spec-badge {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.spec-badge svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Empty State */
.inventory-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.inventory-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  opacity: 0.3;
}

.inventory-empty h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .navbar-logo {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-bottom: 0;
}

.footer-social a:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.footer-copyright {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.xweb-logo {
  height: 40px;
  max-width: 250px;
  width: auto;
  opacity: 0.9;
  transition: var(--transition);
}

.xweb-logo:hover {
  opacity: 1;
}

/* ============================================================
   VIEW ALL BUTTON (Homepage)
   ============================================================ */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
}

.view-all-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

/* ============================================================
   INVENTORY PAGE — CAR DETAIL
   ============================================================ */
.inventory-page #car-detail-container {
  padding-top: calc(var(--nav-height) + 12px);
  padding-bottom: 64px;
  min-height: 70vh;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: var(--transition);
}

.detail-back-btn:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.detail-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-main-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  scrollbar-width: none;
  /* Firefox */
  border-radius: var(--radius);
}

.photo-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.photo-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.detail-image-wrap:hover .photo-nav-arrow {
  opacity: 1;
}

.photo-nav-arrow.prev-arrow {
  left: 10px;
}

.photo-nav-arrow.next-arrow {
  right: 10px;
}

@media (max-width: 768px) {
  .photo-nav-arrow {
    display: none;
  }
}

.detail-main-track::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.detail-track-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: zoom-in;
}

.detail-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  /* space for scrollbar/touch */
  scrollbar-width: none;
  /* Firefox */
}

.detail-thumbnails::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.detail-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.detail-thumb.active,
.detail-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

/* ============================================================
   ZOOM VIEWER OVERLAY
   ============================================================ */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.zoom-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.zoom-close-btn:hover {
  background: rgba(232, 18, 36, 0.8);
  transform: scale(1.1);
}

.zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  /* allows panning when zoomed */
}

.zoom-container img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.2s ease-out;
  /* Pinch to zoom is handled natively by mobile browsers when scaling is allowed, 
     but we can also tap-to-zoom */
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-spec {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #161618;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-spec svg {
  width: 22px;
  height: 22px;
  color: #ef4444;
  flex-shrink: 0;
}

.detail-spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1aa;
  margin-bottom: 4px;
}

.detail-spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.detail-description {
  padding-top: 8px;
}

.detail-description h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.detail-description p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* WhatsApp Share Button */
.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  padding: 14px 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  text-align: center;
  line-height: 1.2;
}

.whatsapp-share-btn svg {
  flex-shrink: 0;
}

.whatsapp-share-btn:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* Call Button (Detail View) */
.call-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(255, 59, 48, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  text-align: center;
  line-height: 1.2;
}

.call-share-btn svg {
  flex-shrink: 0;
}

.call-share-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 59, 48, 0.2);
}


@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FADE-IN SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

/* Password Gate */
.admin-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-gate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.admin-gate-box h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.admin-gate-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.admin-gate-box .input-field {
  margin-bottom: 20px;
}

.admin-gate-box .error-msg {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: -12px;
  margin-bottom: 16px;
  display: none;
}

/* Dashboard Layout */
.admin-dashboard {
  display: none;
  padding-top: calc(var(--nav-height) + 32px);
  min-height: 100vh;
}

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

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 1.75rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

/* Form */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 48px;
}

.admin-form-card h2 {
  font-size: 1.25rem;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-field:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-field::placeholder {
  color: var(--text-muted);
}

textarea.input-field {
  resize: vertical;
  min-height: 100px;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23777'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.image-upload-area:hover {
  border-color: var(--accent);
  background: rgba(232, 18, 36, 0.03);
}

.image-upload-area svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.image-upload-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.image-upload-area .upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.6;
}

.image-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  display: none;
}

/* Description Tabs */
.desc-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.desc-tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.desc-tab:hover {
  color: var(--text-secondary);
}

.desc-tab.active {
  background: var(--bg-card-hover);
  color: var(--text);
}

.desc-content {
  display: none;
}

.desc-content.active {
  display: block;
}

/* Admin Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-cancel:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.btn-submit {
  padding: 14px 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--accent-hover);
}

/* Inventory Table */
.admin-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}

.admin-table-card h2 {
  font-size: 1.25rem;
  padding: 32px 32px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.admin-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table .car-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-icon:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-icon.delete:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: #22c55e;
}

.toast.error {
  border-color: var(--accent);
}

/* ============================================================
   ADMIN ANALYTICS DASHBOARD
   ============================================================ */
.analytics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.analytics-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 59, 48, 0.3);
}

.analytics-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.analytics-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* ============================================================
   RESPONSIVE DESIGN adjustments
   ============================================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}



@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 300px;
    justify-content: center;
    font-size: 1.15rem !important;
    padding: 16px 24px !important;
  }

  .btn-sell-cta {
    width: 300px;
    justify-content: center;
    font-size: 1rem !important;
    padding: 16px 24px !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    /* Center the buttons */
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* --- Premium Dropdown Navigation --- */
  .navbar-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 20px 32px;
    gap: 4px;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .navbar-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }

  .navbar-nav a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-nav a:last-of-type {
    border-bottom: none;
  }

  .navbar-nav.open a {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar-nav .lang-switcher {
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.3s;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
  }

  .navbar-nav.open .lang-switcher {
    opacity: 1;
    transform: translateY(0);
  }

  /* --- Premium Mobile Toggle (Icon Only) --- */
  .mobile-toggle {
    display: flex;
    z-index: 1600;
    /* Must stay above the menu overlay */
    background: transparent;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
  }

  .mobile-toggle.active {
    background: transparent;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--text);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--text);
  }

  /* --- Other Mobile Adjustments --- */
  .hero {
    min-height: auto;
    height: auto;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 20px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 80px 0;
  }

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

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

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

  .admin-form-card {
    padding: 24px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    height: 75vh;
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 0.85rem;
  }

  .car-card-specs {
    gap: 12px;
  }

  .admin-gate-box {
    padding: 32px 24px;
  }

  .admin-header h1 {
    font-size: 1.35rem;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ============================================================
   CAR DETAIL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg-card-hover);
}

.modal-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-body {
  padding: 32px;
  position: relative;
}

.modal-body h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-spec svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.modal-spec .spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-spec .spec-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-description h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.modal-description p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ============================================================
   MODAL GALLERY
   ============================================================ */
.modal-image-wrap {
  width: 100%;
}

.modal-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 32px 0 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  /* Firefox */
}

.modal-thumbnails::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Edge */
}

.modal-thumb {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 2px solid transparent;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.modal-thumb:hover {
  opacity: 0.8;
}

.modal-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

/* ============================================================
   ADMIN PHOTO GRID
   ============================================================ */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.admin-thumb-remove:hover {
  background: var(--accent);
}

/* ============================================================
   PROMOTIONS SECTION
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.promo-card {
  border-color: rgba(232, 18, 36, 0.4);
  box-shadow: 0 0 0 1px rgba(232, 18, 36, 0.1);
  transition: var(--transition);
}

.promo-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 18, 36, 0.8);
  box-shadow: 0 12px 40px rgba(232, 18, 36, 0.2);
}

.car-card-image-wrap {
  position: relative;
}

.promo-badge,
.soon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  z-index: 2;
}

.promo-badge {
  background: var(--accent);
  color: #fff;
}

.soon-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sold-badge {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 3;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #ff4444;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border-radius: inherit;
}

.promo-empty,
.soon-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.soon-card {
  background: #09090b;
  border-radius: 20px;
  border: 1px solid #27272a;
  padding: 12px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.soon-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 18, 36, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.soon-card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform var(--transition-slow);
}

.soon-card:hover .soon-card-image {
  transform: scale(1.05);
}

.soon-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.soon-card-body {
  background: #161618;
  border-radius: 12px;
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.soon-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.soon-card-sub {
  font-size: 0.95rem;
  color: #a1a1aa;
}

/* ============================================================
   LOCATION SECTION
   ============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  width: 100%;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(1.1);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.location-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.location-item-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* WhatsApp Location Item */
.location-whatsapp-item {
  text-decoration: none;
  cursor: pointer;
}

.location-icon-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.location-icon-whatsapp svg {
  color: #25D366;
}

.location-whatsapp-item:hover .location-icon-whatsapp {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
  transform: scale(1.05);
}

.location-whatsapp-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #25D366;
  transition: var(--transition);
}

.location-whatsapp-item:hover .location-whatsapp-text {
  color: #fff;
}

.location-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.location-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  color: var(--text-secondary);
}

.location-social-btn svg {
  width: 18px;
  height: 18px;
}

.location-social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.location-social-btn.fb:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
  color: #1877f2;
}

.location-social-btn.ig:hover {
  background: rgba(225, 48, 108, 0.1);
  border-color: #e1306c;
  color: #e1306c;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .promo-grid,
  .soon-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SELL YOUR CAR PAGE
   ============================================================ */
.sell-page {
  padding-top: calc(var(--nav-height) + 48px);
  min-height: 100vh;
  padding-bottom: 80px;
}

.sell-header {
  text-align: center;
  margin-bottom: 56px;
}

.sell-header h1 {
  margin-bottom: 16px;
}

.sell-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

.sell-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.photo-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(232, 18, 36, 0.03);
}

.photo-upload-zone svg {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.photo-upload-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.photo-upload-zone small {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.photo-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  color: #fff;
  line-height: 1;
}

.photo-remove-btn:hover {
  background: var(--accent);
}

.sell-success {
  text-align: center;
  padding: 80px 24px;
  display: none;
}

.sell-success.visible {
  display: block;
}

.sell-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.sell-success-icon svg {
  width: 40px;
  height: 40px;
  color: #22c55e;
}

.sell-success h2 {
  margin-bottom: 12px;
}

.sell-success p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .sell-form-card {
    padding: 24px;
  }

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

/* ============================================================
   ADMIN — SELL REQUESTS TAB
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}

.admin-tab {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.admin-tab.active {
  background: var(--bg-card-hover);
  color: var(--text);
}

.admin-tab-panel {
  display: none;
}

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

.sell-req-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.sell-request-photos {
  display: flex;
  gap: 4px;
}

.toggle-flag {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-flag::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}

.toggle-flag.on {
  background: var(--accent);
}

.toggle-flag.on::after {
  left: 19px;
  background: #fff;
}

.flag-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}