/**
 * PRESTIGE MOTORS - OBSIDIAN LUXURY AUTOMOTIVE DESIGN SYSTEM
 * Tailored for high-end automotive dealership
 */

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

:root,
html {
  color-scheme: dark;
  -webkit-color-scheme: dark;
}

:root {
  --bg-deep: #060709;
  --bg-surface: #0e1117;
  --bg-card: rgba(18, 22, 31, 0.75);
  --bg-card-hover: rgba(24, 30, 42, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(223, 178, 107, 0.3);
  --accent-gold: #dfb26b;
  --accent-gold-glow: rgba(223, 178, 107, 0.25);
  --accent-cyan: #00e5ff;
  --accent-red: #ff3b30;
  --accent-green: #10b981;
  --text-primary: #ffffff;
  --text-secondary: #9aa0ac;
  --text-muted: #5e6573;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-th: 'Prompt', 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(14, 17, 23, 0.7);
  --glass-blur: blur(20px);
  --header-bg: rgba(6, 7, 9, 0.75);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.12);
  --spec-strip-bg: rgba(255, 255, 255, 0.02);
  --footer-bg: #040507;
  --badge-brand-bg: rgba(223, 178, 107, 0.12);
  --badge-brand-border: rgba(223, 178, 107, 0.3);
  --badge-brand-color: #dfb26b;
  --badge-custom-bg: rgba(14, 17, 23, 0.8);
  --slider-arrow-bg: rgba(0, 0, 0, 0.45);
  --slider-arrow-border: rgba(255, 255, 255, 0.15);
  --slider-arrow-color: #ffffff;
}

[data-theme="light"] {
  --bg-deep: #f5f6f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-gold: rgba(179, 135, 40, 0.4);
  --accent-gold: #b38728;
  --accent-gold-glow: rgba(179, 135, 40, 0.2);
  --accent-cyan: #0284c7;
  --accent-red: #dc2626;
  --accent-green: #059669;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #8492a6;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
  --spec-strip-bg: #f8fafc;
  --footer-bg: #0f172a;
  --badge-brand-bg: rgba(179, 135, 40, 0.1);
  --badge-brand-border: rgba(179, 135, 40, 0.35);
  --badge-brand-color: #9e742e;
  --badge-custom-bg: rgba(241, 245, 249, 0.9);
  --slider-arrow-bg: rgba(255, 255, 255, 0.8);
  --slider-arrow-border: rgba(0, 0, 0, 0.1);
  --slider-arrow-color: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-th);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  background: radial-gradient(circle at 50% 10%, rgba(223, 178, 107, 0.08) 0%, rgba(0, 229, 255, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

[data-theme="light"] .ambient-glow {
  background: radial-gradient(circle at 50% 10%, rgba(179, 135, 40, 0.1) 0%, rgba(2, 132, 199, 0.04) 40%, transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo .symbol {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-gold), #8a652c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060709;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.brand-logo .text-group h1 {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-logo .text-group span {
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

@media (max-width: 1320px) {
  .nav-links {
    gap: 0.75rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =========================================================
   LUXURY THEME TOGGLE SWITCH (เปิด = สว่าง / ปิด = มืด)
   ========================================================= */
.theme-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-switch-wrapper:hover {
  border-color: var(--accent-gold);
  background: rgba(223, 178, 107, 0.08);
}

[data-theme="light"] .theme-switch-wrapper {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-switch-wrapper:hover {
  background: rgba(179, 135, 40, 0.08);
  border-color: var(--accent-gold);
}

/* The Clickable Switch */
.theme-switch-control {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}

.theme-switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-switch-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #090c12;
  border: 1.5px solid rgba(223, 178, 107, 0.4);
  border-radius: 999px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
}

.theme-switch-track .track-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.track-icon-sun {
  color: #b38728;
  opacity: 0.25;
  transform: scale(0.85);
}

.track-icon-moon {
  color: #dfb26b;
  opacity: 1;
  transform: scale(1);
}

/* Sliding Knob */
.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3342, #11151e);
  border: 1px solid #dfb26b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switch-thumb::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dfb26b;
  opacity: 0.8;
}

/* Checked State: ON = สว่าง (Light Mode) */
.theme-switch-control input:checked + .theme-switch-track {
  background: linear-gradient(135deg, #f5ecd8, #dfb26b);
  border-color: #b38728;
  box-shadow: 0 0 14px rgba(223, 178, 107, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.theme-switch-control input:checked + .theme-switch-track .track-icon-sun {
  opacity: 1;
  color: #6d4e0e;
  transform: scale(1);
}

.theme-switch-control input:checked + .theme-switch-track .track-icon-moon {
  opacity: 0.25;
  color: #8c6e2e;
  transform: scale(0.85);
}

.theme-switch-control input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(28px);
  background: #ffffff;
  border-color: #b38728;
  box-shadow: 0 2px 10px rgba(109, 78, 14, 0.35), 0 0 8px rgba(223, 178, 107, 0.5);
}

.theme-switch-control input:checked + .theme-switch-track .theme-switch-thumb::after {
  background: #b38728;
}

/* Status Label beside switch */
.theme-switch-label-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
  cursor: pointer;
}

.theme-switch-label-wrap .mode-text {
  color: var(--text-primary);
  font-weight: 600;
}

.theme-switch-label-wrap .state-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(223, 178, 107, 0.15);
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}

[data-theme="light"] .theme-switch-label-wrap .state-badge {
  background: rgba(179, 135, 40, 0.15);
  color: #8a652c;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-header-call .btn-call-icon,
.btn-header-call svg.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold) !important;
  stroke: var(--accent-gold) !important;
  flex-shrink: 0;
  line-height: 1;
}

[data-theme="light"] .btn-header-call .btn-call-icon,
[data-theme="light"] .btn-header-call svg.svg-icon {
  color: #b38728 !important;
  stroke: #b38728 !important;
}

[data-theme="light"] .btn-header-call {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-header-call:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-header-call:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
}

/* =========================================================
   1. HERO VISUAL SLIDER (PURE FULL-WIDTH VISUAL SHOWCASE)
   No text covering the car - lets curvature and lighting speak!
   ========================================================= */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  max-height: 950px;
  overflow: hidden;
  background-color: #000;
  padding-top: 74px; /* offset fixed header */
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.95) contrast(1.05);
}

/* Subtle Vignette & Bottom Blending to blend seamlessly with dark body */
.hero-slider-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg-deep) 0%, rgba(6, 7, 9, 0.6) 50%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  transition: background 0.3s ease;
}

[data-theme="light"] .hero-slider-section::after {
  background: linear-gradient(to top, var(--bg-deep) 0%, rgba(245, 246, 249, 0.5) 50%, transparent 100%);
}

/* Glassmorphism Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--slider-arrow-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--slider-arrow-border);
  color: var(--slider-arrow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
  background: rgba(223, 178, 107, 0.35);
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 30px var(--accent-gold-glow);
}

.slider-arrow.prev {
  left: 2rem;
}

.slider-arrow.next {
  right: 2rem;
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

/* Minimalist Bottom Navigation Dots */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 17, 23, 0.45);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  width: 48px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

/* =========================================================
   2. SECTION TITLE & FILTER SYSTEM
   ========================================================= */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Filter Bar */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

[data-theme="light"] .filter-btn {
  background: #ffffff;
  color: var(--text-secondary);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

[data-theme="light"] .filter-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), #a57d38);
  color: #060709;
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-gold-glow);
}

/* =========================================================
   Brand Tags Bar (แท็กยี่ห้อรถสำหรับคัดกรองด่วน)
   ========================================================= */
.brand-tags-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.brand-tags-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border-subtle);
}

.brand-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-tag-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

[data-theme="light"] .brand-tag-btn {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--text-secondary);
}

.brand-tag-btn:hover {
  background: rgba(223, 178, 107, 0.12);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.brand-tag-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), #9e742e);
  border-color: var(--accent-gold);
  color: #060709;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.brand-tag-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

[data-theme="light"] .brand-tag-count {
  background: rgba(0, 0, 0, 0.08);
}

.brand-tag-btn.active .brand-tag-count {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* Badge for Brand Tag on Car Card */
.badge-brand {
  background: var(--badge-brand-bg);
  border: 1px solid var(--badge-brand-border);
  color: var(--badge-brand-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.badge-brand:hover {
  background: var(--accent-gold);
  color: #060709;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Brand Tag Hero & Header on Car Detail Page */
.car-detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.car-detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), rgba(223, 178, 107, 0.2));
}

.car-brand-tag-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.badge-brand-hero {
  background: var(--badge-brand-bg);
  border: 1px solid var(--badge-brand-border);
  color: var(--badge-brand-color);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.badge-brand-hero:hover {
  background: var(--accent-gold);
  color: #060709;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.badge-brand-hero .tag-arrow {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 500;
  margin-left: 2px;
}

.car-detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.car-detail-title .brand-name {
  color: var(--accent-gold);
}

.car-detail-title .year-pill {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .car-detail-title .year-pill {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}

.car-detail-submodel {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.car-marketing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 8px;
}

/* =========================================================
   3. CAR CARD GRID & HOVER IMAGE SWITCHER
   ========================================================= */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.car-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 24px var(--accent-gold-glow);
}

/* Card Visual Container with Dual Image Hover Swap */
.car-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #000;
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.car-img.primary-img {
  z-index: 1;
  opacity: 1;
}

.car-img.secondary-img {
  z-index: 2;
  opacity: 0;
}

/* Hover swap: smooth switch to interior / secondary angle */
.car-card:hover .primary-img {
  transform: scale(1.06);
}

.car-card:hover .secondary-img {
  opacity: 1;
  transform: scale(1.04);
}

/* Floating Tag / Badges on Card Visual */
.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.badge-hot {
  background: rgba(255, 59, 48, 0.85);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 59, 48, 0.4);
}

.badge-certified {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.badge-custom {
  background: rgba(14, 17, 23, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
}

/* Real-time View Counter Badge on Card */
.live-viewer-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 5;
  background: rgba(6, 7, 9, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Hover Visual Hint ("ชี้เพื่อดูภายใน") */
.visual-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(14, 17, 23, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: opacity 0.3s;
}

.car-card:hover .visual-hint {
  opacity: 0;
}

/* Card Body Content */
.car-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-title-group {
  margin-bottom: 1rem;
}

.car-brand-model {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s;
}

.car-brand-model:hover {
  color: var(--accent-gold);
}

.car-submodel {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Car Specs Quick Strip */
.car-specs-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  background: var(--spec-strip-bg);
  border-radius: 10px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Pricing Section */
.car-pricing-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.price-cash-group .price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-cash-group .price-cash {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price-installment-group {
  text-align: right;
  background: rgba(223, 178, 107, 0.08);
  border: 1px solid rgba(223, 178, 107, 0.2);
  padding: 6px 12px;
  border-radius: 10px;
}

[data-theme="light"] .price-installment-group {
  background: rgba(179, 135, 40, 0.08);
  border-color: rgba(179, 135, 40, 0.25);
}

.price-installment-group .inst-label {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.price-installment-group .inst-value {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

/* Card Action Buttons */
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-primary-action {
  background: linear-gradient(135deg, #1f2533, #151922);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

[data-theme="light"] .btn-primary-action {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, var(--accent-gold), #b38841);
  color: #060709;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

[data-theme="light"] .btn-primary-action:hover {
  background: linear-gradient(135deg, var(--accent-gold), #9e742e);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.btn-calc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-calc-icon:hover {
  background: rgba(223, 178, 107, 0.2);
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

/* =========================================================
   4. FACEBOOK INTEGRATION & SOCIAL PROOF SECTION
   ========================================================= */
.facebook-social-section {
  padding: 6rem 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 80% 20%, rgba(24, 119, 242, 0.05) 0%, transparent 60%);
}

.fb-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

/* Facebook Live Page Box / Plugin */
.fb-page-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

[data-theme="light"] .fb-page-widget-card {
  background: #ffffff;
  border-color: rgba(24, 119, 242, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.fb-widget-banner {
  background: linear-gradient(135deg, #1877f2 0%, #0d47a1 100%);
  padding: 1.15rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  gap: 12px;
}

.fb-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-banner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #1877f2;
  font-size: 1.15rem;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.fb-banner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-banner-identity h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-verified-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.fb-banner-identity .fb-followers-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}

/* Header Action Buttons (Follow + Share like Image 3) */
.fb-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.fb-btn-action:hover {
  background: #ffffff;
  color: #1877f2;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.fb-btn-action.btn-follow {
  background: #ffffff;
  color: #1877f2;
  font-weight: 700;
}

.fb-btn-action.btn-follow:hover {
  background: #e0edff;
}

/* Post Body (Image 4 Style) */
.fb-widget-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.fb-post-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem;
  transition: var(--transition-smooth);
}

[data-theme="light"] .fb-post-preview-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

.fb-post-preview-card:hover {
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fb-post-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.fb-post-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.fb-post-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fb-post-date-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.fb-post-caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.fb-post-media-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  max-height: 240px;
  margin-bottom: 0.85rem;
  background: #000;
}

.fb-post-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fb-post-media-frame:hover img {
  transform: scale(1.03);
}

/* Facebook Multi-Photo Mosaic Grid */
.fb-post-photos-mosaic {
  display: grid;
  gap: 6px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
}

.fb-photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0b0f19;
}

.fb-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-photo-item:hover img {
  transform: scale(1.05);
}

/* 1 Photo */
.fb-photos-count-1 {
  grid-template-columns: 1fr;
  max-height: 320px;
}
.fb-photos-count-1 .fb-photo-item {
  height: 280px;
}

/* 2 Photos */
.fb-photos-count-2 {
  grid-template-columns: 1fr 1fr;
  height: 240px;
}
.fb-photos-count-2 .fb-photo-item {
  height: 100%;
}

/* 3 Photos */
.fb-photos-count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 125px 125px;
  height: 256px;
}
.fb-photos-count-3 .fb-photo-item:first-child {
  grid-row: span 2;
  height: 100%;
}

/* 4 Photos */
.fb-photos-count-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 140px 140px;
  height: 286px;
}

/* 5+ Photos: 1 big on top, 3 below, last with overlay */
.fb-photos-count-5plus {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 180px 105px;
  height: 291px;
}
.fb-photos-count-5plus .fb-photo-item:first-child {
  grid-column: span 3;
  height: 180px;
}
.fb-photos-count-5plus .fb-photo-item:not(:first-child) {
  height: 105px;
}

.fb-photo-overlay-more {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.fb-photo-item:hover .fb-photo-overlay-more {
  background: rgba(24, 119, 242, 0.88);
}

/* Stream Strip: Recent Photos from all page posts */
.fb-recent-stream-strip {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
}

.fb-recent-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fb-recent-stream-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.fb-stream-thumb {
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
}

.fb-stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fb-stream-thumb:hover img {
  transform: scale(1.12);
}

/* Lightbox Modal for Facebook Photos */
.fb-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 7, 15, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fb-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.fb-lightbox-dialog {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: fbZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fbZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fb-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.fb-lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.fb-lightbox-img-wrap {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.fb-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.fb-lightbox-footer {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-lightbox-caption {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-lightbox-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.fb-lightbox-cta:hover {
  background: #0d65d9;
}

.fb-post-reactions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fb-reaction-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Widget Action Buttons */
.fb-widget-footer {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-fb-messenger-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0084ff, #00c6ff);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-fb-messenger-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 132, 255, 0.5);
  color: #ffffff !important;
}

.btn-fb-page-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.25);
  color: #1877f2;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-fb-page-visit {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #60a5fa;
}

.btn-fb-page-visit:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
  color: #1877f2;
}

.fb-page-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fb-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1877f2, #00c6ff);
}

.fb-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fb-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #1877f2;
  object-fit: cover;
}

.fb-meta h3 {
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-verified-badge {
  color: #1877f2;
}

.fb-followers-stat {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.fb-live-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fb-post-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1rem;
  transition: var(--transition-smooth);
}

.fb-post-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(24, 119, 242, 0.3);
}

.fb-post-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.fb-post-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-fb-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1877f2;
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.35);
}

.btn-fb-cta:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.5);
}

/* Deliveries & Reviews Section ("ส่งมอบแล้วกว่า 500+ คัน") */
.deliveries-showcase-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.deliveries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.delivery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.delivery-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.delivery-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.delivery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-content {
  padding: 1.25rem;
}

.delivery-stars {
  color: var(--accent-gold);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.delivery-quote {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.delivery-client-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.delivery-car-tag {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* =========================================================
   5. FLOATING MESSENGER CHAT WIDGET
   ========================================================= */
.floating-messenger-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0084ff, #00c6ff);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 132, 255, 0.4);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.floating-messenger-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 35px rgba(0, 132, 255, 0.6);
}

.floating-messenger-btn .pulse-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #000;
}

/* =========================================================
   6. MODALS (LOAN CALCULATOR & INQUIRY)
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 7, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 28px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-gold-glow);
  transform: scale(0.95) translateY(20px);
  transition: var(--transition-smooth);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

/* Modal Form Elements */
.calc-field-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.calc-label span.val-highlight {
  color: var(--accent-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calc-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
  cursor: pointer;
}

.tenure-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.tenure-pill {
  padding: 10px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.tenure-pill.active {
  background: var(--accent-gold);
  color: #060709;
  font-weight: 700;
  border-color: var(--accent-gold);
}

/* Result Box in Loan Calculator */
.calc-result-box {
  background: rgba(223, 178, 107, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  margin-top: 2rem;
}

.calc-result-box .inst-monthly-big {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Form Controls */
select, .form-select, input, .form-input, textarea, .form-textarea {
  color-scheme: dark;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-select {
  cursor: pointer;
}

/* Bulletproof Dropdown Options Styling (Fix white text on white background) */
select option, 
.form-select option {
  background-color: #0e1117 !important;
  color: #ffffff !important;
  padding: 10px 14px;
}

select option:checked, 
.form-select option:checked {
  background-color: #1a2232 !important;
  color: var(--accent-gold) !important;
  font-weight: 700;
}

/* Light Mode Overrides */
[data-theme="light"] select,
[data-theme="light"] .form-select,
[data-theme="light"] input,
[data-theme="light"] .form-input,
[data-theme="light"] textarea,
[data-theme="light"] .form-textarea {
  color-scheme: light;
}

[data-theme="light"] select option,
[data-theme="light"] .form-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] select option:checked,
[data-theme="light"] .form-select option:checked {
  background-color: #f1f5f9 !important;
  color: #b38728 !important;
  font-weight: 700;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: #94a3b8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  background: var(--footer-bg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  color: #94a3b8;
}

[data-theme="light"] .site-footer h4 {
  color: #ffffff !important;
}

[data-theme="light"] .site-footer p {
  color: #94a3b8 !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .fb-grid-layout {
    grid-template-columns: 1fr;
  }
  .cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* ========================================================
   TOP ANNOUNCEMENT BAR & BENTO SHOWCASE EXTENSIONS
   ======================================================== */
.site-announcement-bar {
  background: linear-gradient(90deg, #10141d, #251d10, #10141d);
  border-bottom: 1px solid rgba(223, 178, 107, 0.28);
  padding: 6px 1rem;
  font-size: 0.82rem;
  color: #f1f5f9;
  position: relative;
  z-index: 101;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.announcement-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-content-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.announcement-social-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ann-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ann-social-icon:hover {
  transform: translateY(-2px) scale(1.08);
}

.ann-social-icon.ann-icon-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; box-shadow: 0 0 10px rgba(24, 119, 242, 0.5); }
.ann-social-icon.ann-icon-line:hover { background: #10b981; color: #fff; border-color: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.ann-social-icon.ann-icon-tiktok:hover { background: #000; color: #f43f5e; border-color: #f43f5e; box-shadow: 0 0 10px rgba(244, 63, 94, 0.5); }
.ann-social-icon.ann-icon-youtube:hover { background: #ef4444; color: #fff; border-color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.ann-social-icon.ann-icon-ig:hover { background: #ec4899; color: #fff; border-color: #ec4899; box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
.ann-social-icon.ann-icon-mail:hover { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold-glow); }

[data-theme="light"] .site-announcement-bar {
  background: linear-gradient(90deg, #faf5eb, #f3e8d2, #faf5eb);
  border-bottom: 1px solid rgba(179, 135, 40, 0.25);
  color: #4a3818;
  box-shadow: 0 2px 10px rgba(179, 135, 40, 0.08);
}

[data-theme="light"] .ann-social-icon {
  background: rgba(179, 135, 40, 0.1);
  border-color: rgba(179, 135, 40, 0.2);
  color: #8a652c;
}

.site-announcement-bar .announcement-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(223, 178, 107, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.76rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

[data-theme="light"] .site-announcement-bar .announcement-btn {
  background: rgba(179, 135, 40, 0.15);
  border-color: #b38728;
  color: #8a652c;
}

.site-announcement-bar .announcement-btn:hover {
  background: var(--accent-gold);
  color: #060709;
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

[data-theme="light"] .site-announcement-bar .announcement-btn:hover {
  background: #b38728;
  color: #ffffff;
}

/* Offset page content when Top Announcement Bar is active */
body.has-announcement-bar .hero-slider-section {
  padding-top: 114px;
}

body.has-announcement-bar main {
  padding-top: 140px !important;
}

@media (max-width: 820px) {
  .announcement-bar-container {
    flex-direction: column;
    gap: 8px;
    padding: 2px 0;
  }
}

/* =========================================================
   OFFICIAL SOCIAL CHANNELS SECTION (เรียงตามภาพ Facebook Line TikTok Youtube Instagram Email)
   ========================================================= */
.social-channels-section {
  padding: 5rem 0 3.5rem;
  background: var(--bg-surface);
  position: relative;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.85rem 1.15rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.social-card .social-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  transition: all 0.3s ease;
}

.social-card:hover .social-icon-box {
  transform: scale(1.1);
}

.social-card.card-fb .social-icon-box { background: rgba(24, 119, 242, 0.15); color: #1877f2; border: 1px solid rgba(24, 119, 242, 0.3); }
.social-card.card-line .social-icon-box { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.social-card.card-tiktok .social-icon-box { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }
.social-card.card-youtube .social-icon-box { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.social-card.card-instagram .social-icon-box { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }
.social-card.card-email .social-icon-box { background: rgba(223, 178, 107, 0.15); color: var(--accent-gold); border: 1px solid rgba(223, 178, 107, 0.3); }

.social-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.social-card .social-handle {
  font-size: 0.76rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-all;
}

.social-card .social-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.social-card .social-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.social-card:hover .social-btn-pill {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

@media (max-width: 1200px) {
  .social-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .social-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.88rem;
  }
  .social-card {
    padding: 1.35rem 0.88rem;
  }
}

@media (max-width: 380px) {
  .social-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Content Bento Strip (Below Pure Visual Slider) */
.hero-content-bento {
  padding: 3rem 0 2rem;
  position: relative;
}

.hero-bento-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-brand-bg);
  border: 1px solid var(--badge-brand-border);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-h1-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-desc-p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.hero-stat-card:hover {
  border-color: var(--border-gold);
  background: rgba(223, 178, 107, 0.05);
}

.hero-stat-card .stat-num {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.hero-stat-card .stat-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Why Choose Us Section */
.why-us-section {
  padding: 4rem 0 3rem;
  position: relative;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: left;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.why-card .why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--badge-brand-bg);
  border: 1px solid var(--badge-brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.why-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.why-card .social-why-handle {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.65rem;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.why-card .social-why-action {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.why-card:hover .social-why-action {
  color: #ffffff;
  padding-left: 2px;
}

/* Individual Brand Styling */
.why-card-fb:hover {
  border-color: rgba(24, 119, 242, 0.5);
  box-shadow: 0 16px 36px rgba(24, 119, 242, 0.18);
}
.why-card-fb .why-icon-wrap {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.25);
  color: #1877f2;
}
.why-card-fb:hover .why-icon-wrap {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.6);
  transform: scale(1.06);
}
.why-card-fb:hover .social-why-action {
  color: #60a5fa;
}

.why-card-ig:hover {
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: 0 16px 36px rgba(225, 48, 108, 0.18);
}
.why-card-ig .why-icon-wrap {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.25);
  color: #e1306c;
}
.why-card-ig:hover .why-icon-wrap {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  color: #ffffff;
  border-color: #e1306c;
  box-shadow: 0 0 16px rgba(225, 48, 108, 0.6);
  transform: scale(1.06);
}
.why-card-ig:hover .social-why-action {
  color: #f472b6;
}

.why-card-line:hover {
  border-color: rgba(6, 199, 85, 0.5);
  box-shadow: 0 16px 36px rgba(6, 199, 85, 0.18);
}
.why-card-line .why-icon-wrap {
  background: rgba(6, 199, 85, 0.12);
  border-color: rgba(6, 199, 85, 0.25);
  color: #06c755;
}
.why-card-line:hover .why-icon-wrap {
  background: #06c755;
  color: #ffffff;
  border-color: #06c755;
  box-shadow: 0 0 16px rgba(6, 199, 85, 0.6);
  transform: scale(1.06);
}
.why-card-line:hover .social-why-action {
  color: #34d399;
}

.why-card-tiktok:hover {
  border-color: rgba(254, 44, 85, 0.5);
  box-shadow: 0 16px 36px rgba(254, 44, 85, 0.18);
}
.why-card-tiktok .why-icon-wrap {
  background: rgba(254, 44, 85, 0.12);
  border-color: rgba(254, 44, 85, 0.25);
  color: #fe2c55;
}
.why-card-tiktok:hover .why-icon-wrap {
  background: #000000;
  color: #fe2c55;
  border-color: #fe2c55;
  box-shadow: 0 0 16px rgba(254, 44, 85, 0.6);
  transform: scale(1.06);
}
.why-card-tiktok:hover .social-why-action {
  color: #fb7185;
}

[data-theme="light"] .why-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .why-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .hero-bento-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .hero-h1-title {
    font-size: 1.8rem;
  }
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-slider-section {
    height: 54vh;
    min-height: 380px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .deliveries-grid {
    grid-template-columns: 1fr;
  }
  .slider-arrow {
    width: 44px;
    height: 44px;
  }
  .slider-arrow.prev { left: 1rem; }
  .slider-arrow.next { right: 1rem; }
}

/* =========================================================
   COMPREHENSIVE FRONT-END RESPONSIVE & MOBILE POLISH
   ========================================================= */

/* Car Detail Main Grid */
.car-detail-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Inventory Filter Grid */
.inventory-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
  gap: 1rem;
  align-items: flex-end;
}

.inventory-filter-actions {
  display: flex;
  gap: 8px;
}

/* Mobile Nav Hamburger Button */
.btn-mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-mobile-nav-toggle:hover {
  background: rgba(223, 178, 107, 0.15);
  border-color: var(--accent-gold);
}

/* Mobile Navigation Drawer Sheet */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-nav-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
  background: rgba(223, 178, 107, 0.12);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.mobile-nav-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .car-detail-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-bento-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
    gap: 2rem;
  }

  .hero-h1-title {
    font-size: 2rem;
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 1140px) {
  /* Show Mobile Hamburger Button & Drawer on laptops/tablets to prevent awkward two-line wrapping */
  .btn-mobile-nav-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Show Mobile Hamburger Button & Drawer */
  .btn-mobile-nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none !important;
  }

  .site-header {
    height: 66px;
  }

  .header-inner {
    height: 66px;
    padding: 0 1rem;
  }

  .mobile-nav-drawer {
    top: 66px;
  }

  /* Compact Header Actions */
  .header-actions {
    gap: 8px;
  }

  .theme-switch-label-wrap {
    display: none !important;
  }

  .theme-switch-wrapper {
    padding: 3px;
  }

  .btn-header-call {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Hero Visual Slider */
  .hero-slider-section {
    height: 52vh;
    min-height: 360px;
    max-height: 480px;
  }

  .hero-h1-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .hero-desc-p {
    font-size: 0.92rem;
  }

  .hero-actions-row {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions-row a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
  }

  /* Inventory Filter on Mobile */
  .inventory-filter-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .inventory-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .inventory-filter-actions button,
  .inventory-filter-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Car Cards Grid: 1 Column on Mobile */
  .cars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .car-card {
    border-radius: 20px;
  }

  .card-body {
    padding: 1.25rem;
  }

  /* Modals: Mobile Friendly Dimensions & Padding */
  .modal-window {
    width: 95% !important;
    max-width: 95vw !important;
    padding: 1.5rem 1.25rem !important;
    border-radius: 22px !important;
    margin: 10px auto;
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
  }

  /* Input fields: 16px to prevent iOS auto-zoom */
  .form-input, .form-select, input, select, textarea {
    font-size: 16px !important;
  }

  /* Footer: 1 Column cleanly stacked */
  .footer-grid,
  .site-footer .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: left;
  }

  /* Sticky Mobile Action Bar on Car Detail */
  .mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 18, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-gold);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-sticky-action-bar a,
  .mobile-sticky-action-bar button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .site-announcement-bar {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .brand-logo h1 {
    font-size: 1rem;
  }

  .brand-logo .symbol {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .specs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .hero-h1-title {
    font-size: 1.5rem;
  }
}

/* =========================================================
   SHOWROOM & GOOGLE MAPS SECTION STYLES
   ========================================================= */
.showroom-location-section {
  padding: 5rem 0 3.5rem;
  background: var(--bg-surface);
  position: relative;
}

.showroom-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: stretch;
}

.showroom-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showroom-map-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .showroom-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .showroom-info-card {
    padding: 1.5rem;
  }

  .showroom-map-frame {
    min-height: 380px;
  }
}

@media (max-width: 576px) {
  .showroom-map-frame {
    min-height: 300px;
  }

  .showroom-map-frame iframe {
    min-height: 300px !important;
  }
}

/* Bulletproof Global Select & Option styling */
select option,
.form-select option,
option {
  color-scheme: dark !important;
  background-color: #13171f !important;
  color: #ffffff !important;
}
