/* ========================================== */
/* 1. GLOBAL DESIGN TOKENS & RESET            */
/* ========================================== */
:root {
  --primary: #0f172a;
  --accent: #1e3a8a;
  --accent-hover: #172554;
  --gold: #d97706;
  --yellow-badge: #facc15;
  --green-wa: #25d366;
  --green-wa-hover: #1da851;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 2rem;
}

.hidden {
  display: none !important;
}

/* ========================================== */
/* 2. TOP NAVIGATION                          */
/* ========================================== */
.top-bar {
  background: var(--primary);
  color: #94a3b8;
  padding: 0.45rem 8%;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-phones a {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1rem;
}

header {
  background: #ffffff;
  padding: 0.8rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);

}

.brand-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
}

nav a:hover {
  color: var(--accent);
}

.dealer-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-career-nav {
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-career-nav:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-wa-header {
  background: var(--green-wa);
  color: white !important;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-wa-header:hover {
  background: var(--green-wa-hover) !important;
  transform: translateY(-1px);
}

.theme-toggle {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ========================================== */
/* 3. HERO SHOWCASE                           */
/* ========================================== */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.85)),
              url('../assets/brand/background_car.webp') center 55% / cover;
  color: white;
  padding: 3.5rem 1rem 4.5rem 1rem;
  text-align: center;
}

.badge-verified {
  display: inline-block;
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
  border: 1px solid #4ade80;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow-badge);
}

/* ========================================== */
/* 4. DEALER PROFILE CARD & SHARE TOOLBAR     */
/* ========================================== */
.dealer-profile-section {
  max-width: 1100px;
  margin: -2.5rem auto 1.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
}

.dealer-profile-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dealer-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}

.dealer-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dealer-title-group h3 {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-block;
  margin-right: 0.5rem;
}

.badge-verified-pill {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  display: inline-block;
}

.dealer-phone-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-phone-call {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--primary);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-phone-call:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dealer-meta-grid {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text);
  background: #f8fafc;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.dealer-meta-grid > div {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
  white-space: nowrap;
}

.dealer-meta-grid dt, .dealer-meta-grid dd { margin: 0; }
.dealer-meta-grid dd { min-width: 0; overflow-wrap: anywhere; }
.share-profile-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.2rem;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
}

.share-btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.share-icon-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.btn-share-tt { background: #000000; color: #ffffff !important; border-color: #000000; }
.btn-share-ig { background: #e1306c; color: #ffffff !important; border-color: #e1306c; }
.btn-share-fb { background: #1877f2; color: #ffffff !important; border-color: #1877f2; }
.btn-share-yt { background: #ff0000; color: #ffffff !important; border-color: #ff0000; }
.btn-share-wa { background: #25d366; color: #ffffff !important; border-color: #25d366; }
.btn-share-copy { background: var(--accent); color: #ffffff !important; border-color: var(--accent); }

@media (max-width: 900px) {
  .dealer-meta-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .dealer-badge-header, .share-profile-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================== */
/* 5. CATEGORY VIEW TOGGLE (TABS)             */
/* ========================================== */
.category-toggle-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem auto 1.5rem;
  position: relative;
  z-index: 15;
  padding: 0 1rem;
}

.cat-tab-btn {
  background: #ffffff;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.cat-tab-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cat-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(30,58,138,0.25);
}

/* ========================================== */
/* 6. MULTI-VARIABLE SEARCH & FILTER CARD     */
/* ========================================== */
.filter-wrapper {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.filter-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.filter-item {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
}

.filter-budget-item {
  flex: 1 1 100%;
}

.filter-item label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.filter-item input, .filter-item select {
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.filter-item input:focus, .filter-item select:focus {
  border-color: var(--accent);
}

.filter-item select {
  cursor: pointer;
}

.budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.budget-preset {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.budget-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.budget-preset.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.budget-preset:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.filter-actions {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.active-filter-status {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.active-filter-status.has-active-filters {
  background: #eff6ff;
  color: var(--accent);
  font-weight: 600;
}

.filter-actions .btn-reset-filters {
  margin-top: 0;
  white-space: nowrap;
}

.filter-actions .btn-reset-filters:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.65;
}

/* ========================================== */
/* 7. INVENTORY & CAR CARDS                   */
/* ========================================== */
.inventory-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 4rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  color: var(--accent);
  font-size: 1.8rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-mudah-badge {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.btn-mudah-badge:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.8rem;
}

.car-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 190px;
  background: #0f172a;
}

.card-img-wrapper.is-loading,
.modal-main-img-wrapper.is-loading {
  background: linear-gradient(110deg, #1e293b 8%, #334155 18%, #1e293b 33%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

.card-img-wrapper.is-loading .car-card-img,
.modal-main-img-wrapper.is-loading .modal-main-img {
  opacity: 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.2s ease;
  display: block;
}

.car-card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.car-card:hover .car-card-video {
  opacity: 1;
}

.video-badge-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(2px);
}

.car-card:hover .car-card-img {
  transform: scale(1.06);
}

.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-promo.badge-green { background: linear-gradient(135deg, #10b981, #059669); }
.badge-promo.badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-promo.badge-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.badge-promo.badge-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.badge-new-arrival {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.car-card-body {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

.car-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0.3rem 0;
}

.car-card-installment {
  margin: -0.1rem 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.car-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  margin: 0.5rem 0 1rem;
}

.car-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #475569;
}

.card-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-card-details {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-card-details:hover {
  background: #e2e8f0;
}

.btn-card-wa {
  background: var(--green-wa);
  color: white;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

/* Sold Car Styling */
.car-card.is-sold {
  opacity: 0.88;
  border-color: #cbd5e1;
}

.car-card.is-sold .car-card-img {
  filter: grayscale(25%);
}

.badge-sold-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
  z-index: 5;
  text-transform: uppercase;
}

.btn-card-sold {
  background: #e2e8f0;
  color: #64748b;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}

/* ========================================== */
/* 8. VIP NUMBER PLATES CARD GRID             */
/* ========================================== */
.plates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.plate-card {
  background: #0f172a;
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
}

.plate-badge-box {
  background: #000000;
  border: 3px solid #334155;
  border-radius: 8px;
  padding: 16px 24px;
  display: inline-block;
  margin: 0 auto 1rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.5);
  min-width: 220px;
}

.plate-text {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 2.2rem;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
  line-height: 1;
}

.plate-type {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plate-package {
  font-size: 0.82rem;
  color: var(--yellow-badge);
  margin: 0.5rem 0 0.8rem;
  font-weight: 600;
  background: rgba(250, 204, 21, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.plate-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.6rem;
}

.plate-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.btn-plate-wa {
  background: var(--green-wa);
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  display: block;
  transition: background 0.2s;
}

.btn-plate-wa:hover {
  background: var(--green-wa-hover);
}

/* ========================================== */
/* 9. PAGINATION CONTROLS                     */
/* ========================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-reset-filters {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
}

/* ========================================== */
/* 10. MODAL LIGHTBOX & ARROWS                */
/* ========================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: white;
  max-width: 680px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.8rem;
  border-radius: 12px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 1.2rem;
  top: 0.8rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  z-index: 20;
}

.modal-main-img-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.modal-main-img-wrapper .modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.similar-cars-section {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.similar-cars-section h3 {
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 1.05rem;
}

.similar-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.similar-car-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.similar-car-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.similar-car-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.similar-car-card-image {
  display: block;
  width: 100%;
  height: 100px;
  background: #e2e8f0;
  object-fit: cover;
}

.similar-car-card-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem;
}

.similar-car-card-title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.similar-car-card-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.similar-car-card-price {
  margin-top: auto;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
}

.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.modal-nav-arrow:hover {
  background: rgba(30, 58, 138, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }

.modal-thumbnails-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.modal-thumb {
  flex: 0 0 75px;
  width: 75px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}

.modal-thumb:hover, .modal-thumb.active-thumb {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.modal-desc-box {
  background: #f1f5f9;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 3.25rem;
  gap: 0.75rem;
}

.modal-action-buttons > .btn-modal-book,
.modal-action-buttons > .btn-modal-wa,
.modal-action-buttons > .btn-modal-email,
.modal-action-buttons > .btn-modal-calc,
.modal-action-buttons > .btn-modal-mudah {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.btn-modal-wa {
  text-align: center;
  background: var(--green-wa);
  color: white;
  padding: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-modal-mudah {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--accent);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-modal-calc {
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.modal-highlights-section {
  margin: 1rem 0;
}

.modal-highlights-section strong {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.highlight-chip {
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

/* ========================================== */
/* 11. CAREERS / RECRUITMENT MODAL            */
/* ========================================== */
.career-modal-box {
  max-width: 650px;
}

.job-listing-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.badge-career {
  background: #dbeafe;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.career-salary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0.6rem 0 1rem;
}

.career-section {
  margin-bottom: 1rem;
}

.career-section h4 {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.career-section ul {
  padding-left: 1.2rem;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
}

.btn-career-apply {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green-wa);
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  margin-top: 0.8rem;
  transition: background 0.2s;
}

.btn-career-apply:hover {
  background: var(--green-wa-hover);
}

/* ========================================== */
/* 12. SERVICES, CALCULATOR & TRADE-IN        */
/* ========================================== */
.featured-video-section {
  padding: 3rem 5%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.featured-video-container {
  max-width: 1000px;
  margin: 0 auto;
}

.featured-video-section .section-heading {
  margin-bottom: 1.25rem;
}

.featured-video-section .section-heading h2 {
  color: var(--primary);
}

.featured-video-section .section-heading p {
  margin-bottom: 0;
}

.featured-video-frame {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.featured-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-video-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.featured-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.featured-video-link:hover {
  background: var(--primary);
  transform: translateY(-1px);
}
.services-section {
  background: white;
  padding: 4rem 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.services-container h2 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.services-container p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.8rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: left;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.calc-section {
  background: #e2e8f0;
  padding: 4rem 5%;
}

.calc-card {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  padding: 2.2rem;
  border-radius: 12px;
}

.calc-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-field {
  display: flex;
  flex-direction: column;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.input-field input, .input-field select {
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.calc-display {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  font-size: 1.1rem;
  text-align: center;
  color: var(--accent);
}

.tradein-section {
  background: var(--primary);
  color: white;
  padding: 4rem 5%;
  text-align: center;
}

.tradein-card {
  max-width: 620px;
  margin: 0 auto;
}

.tradein-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.tradein-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.form-row input, .form-row select {
  flex: 1;
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
}

.btn-tradein {
  width: 100%;
  background: var(--gold);
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

/* ========================================== */
/* 13. FREQUENTLY ASKED QUESTIONS             */
/* ========================================== */
.faq-section {
  padding: 3rem 5%;
  background: var(--bg);
}

.faq-section .section-heading {
  margin-bottom: 1.5rem;
}

.faq-section .section-heading h2 {
  color: var(--primary);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.faq-item[open] {
  border-left-color: var(--accent);
}

.faq-item summary {
  position: relative;
  padding: 0.9rem 2.8rem 0.9rem 1rem;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "-";
  color: var(--accent);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ========================================== */
/* 14. SHOWROOM LOCATION & FOOTER             */
/* ========================================== */
.location-section {
  padding: 4rem 5%;
  text-align: center;
  background: white;
}

.location-section h2 {
  color: var(--accent);
}

.contact-actions-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.btn-contact-action {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
}

.map-frame-wrapper {
  max-width: 900px;
  margin: 1.5rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

footer {
  background: #090d16;
  color: #64748b;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
}

/* ============================================= */
/* 14. LOAN DOCUMENT CHECKLIST & NAVIGATION BTNS  */
/* ============================================= */
.loan-docs-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: left;
}

.loan-docs-box h4 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.loan-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.doc-col strong {
  font-size: 0.85rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}

.doc-col ul {
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-nav-action {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-nav-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-waze {
  background: #33ccff;
  color: #0f172a;
}

.btn-gmaps {
  background: #4285f4;
  color: #ffffff;
}

/* ============================================ */
/* 15. MOBILE RESPONSIVE TWEAKS & OVERFLOW FIX*/
/* ============================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

.mobile-sticky-bar a,
.mobile-sticky-bar a:link,
.mobile-sticky-bar a:visited,
.mobile-sticky-bar a:hover,
.mobile-sticky-bar a:focus,
.mobile-sticky-bar a:active,
.mobile-sticky-bar button,
.mobile-sticky-bar button:hover,
.mobile-sticky-bar button:focus,
.mobile-sticky-bar button:active {
  text-decoration: none;
}
@media (max-width: 1100px) {
  header {
    flex-direction: column;
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 4.5rem;
  }

  .modal-action-buttons {
    grid-template-columns: 1fr;
  }

  header, .top-bar, .hero {
    width: 100%;
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    padding: 0.8rem 1rem;
    gap: 0.8rem;
    align-items: center;
  }

  .brand-header {
    justify-content: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.8rem;
    width: 100%;
  }

  nav a, .btn-career-nav, .theme-toggle {
    margin: 0;
    font-size: 0.8rem;
  }

  .btn-wa-header {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .top-bar {
    display: none;
  }

  nav a, .btn-career-nav, .btn-wa-header, .theme-toggle {
    min-width: 0;
  }

  .hero-cta-row {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-book, .btn-hero-browse {
    width: 100%;
    min-width: 0;
  }

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

  .dealer-profile-section {
    margin-top: -1.2rem;
    padding: 0 0.8rem;
  }

  .dealer-profile-card {
    padding: 1.2rem 1rem;
  }

  .dealer-badge-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .dealer-title-wrapper {
    justify-content: flex-start;
  }

  .dealer-phone-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-phone-call {
    text-align: center;
    padding: 0.6rem 0.3rem;
    font-size: 0.76rem;
    white-space: normal;
    word-break: break-word;
  }

  .dealer-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.75rem 0.8rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .dealer-meta-grid > div {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 0.45rem;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .dealer-meta-grid dd {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .share-profile-container {
    border-top: 1px dashed var(--border);
    padding-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .share-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .share-icon-btn {
    text-align: center;
    padding: 0.5rem 0.2rem;
    font-size: 0.72rem;
  }

  .calc-inputs, .form-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .filter-wrapper {
    margin-top: 0;
  }

  .loan-docs-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
    background: #ffffff;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
    z-index: 9999;
    gap: 0.4rem;
  }

  .mobile-sticky-bar a, .mobile-sticky-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 42px;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px;
    white-space: nowrap;
    margin: 0;
    min-width: 0;
  }

  .sticky-call {
    background: var(--primary);
    color: white;
  }

  .sticky-wa {
    background: var(--green-wa);
    color: white;
  }
}

@media (max-width: 400px) {
  .mobile-sticky-bar a, .mobile-sticky-bar button {
    gap: 0.1rem;
    padding: 0 0.2rem;
    font-size: 0.72rem;
  }
}

/* ============================================= */
/* 16. FLOATING QUICK-DIAL & LIGHTBOX ARROWS     */
/* ============================================= */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.3rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatPulse 3s infinite ease-in-out;
}

.floating-wa-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65); }
}

@media (max-width: 768px) {
  .floating-wa-btn {
    display: none;
  }
}

/* ============================================= */
/* 17. BOOKING CTA & APPOINTMENT MODAL           */
/* ============================================= */
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-hero-book {
  background: var(--gold);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

.btn-hero-book:hover {
  background: #b45309;
  transform: translateY(-2px);
}

.btn-hero-browse {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.btn-hero-browse:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-book-appointment {
  background: var(--gold);
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-book-appointment:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.btn-modal-book {
  text-align: center;
  background: var(--gold);
  color: #ffffff;
  border: none;
  padding: 0.85rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.btn-modal-book:hover {
  background: #b45309;
}

.booking-modal-box {
  max-width: 520px;
}

.booking-form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.booking-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.btn-booking-submit {
  background: var(--green-wa);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.2s;
}

.btn-booking-submit:hover {
  background: var(--green-wa-hover);
}

.plate-card.is-sold-plate {
  opacity: 0.8;
  border-color: #334155;
}

.sticky-book {
  background: var(--gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.7rem 0.4rem;
  flex: 1.2;
  cursor: pointer;
}

@media (max-width: 768px) {
  .booking-two-col {
    grid-template-columns: 1fr;
  }
  .btn-book-appointment {
    grid-column: 1 / -1;
    padding: 0.65rem;
    font-size: 0.85rem;
  }
}

/* ============================================= */
/* 18. MOBILE PAGINATION SLIDING BAR FIX         */
/* ============================================= */
@media (max-width: 768px) {
  .pagination-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0.25rem 0.75rem 0.25rem;
    gap: 0.4rem;
    max-width: 100%;
    scrollbar-width: thin;
  }

  .pagination-container .page-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

/* ============================================= */
/* 19. EMAIL CONTACT BUTTONS & SHARE CAR LINK    */
/* ============================================= */
.btn-email-header {
  background: #eff6ff;
  color: var(--accent) !important;
  border: 1px solid #bfdbfe;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
}

.btn-email-header:hover {
  background: var(--accent);
  color: #ffffff !important;
}

.btn-card-email {
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-card-email:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-plate-email {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-plate-email:hover {
  background: #334155;
}

.btn-modal-email {
  text-align: center;
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  padding: 0.85rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-modal-email:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-share-car-link {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-share-car-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.booking-submit-row, .tradein-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn-booking-email {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

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

.btn-tradein-email {
  width: 100%;
  background: #334155;
  color: #ffffff;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.btn-tradein-email:hover {
  background: #475569;
}

.sticky-email {
  background: #eff6ff;
  color: var(--accent) !important;
  border: 1px solid #bfdbfe;
}

@media (max-width: 768px) {
  .booking-submit-row, .tradein-btn-row {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #111827;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --gold: #fbbf24;
  --yellow-badge: #fde047;
  --bg: #0b1120;
  --card: #111827;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
}

html[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--text);
}

body,
header,
.dealer-profile-card,
.dealer-meta-grid,
.filter-card,
.cat-tab-btn,
.budget-preset,
.car-card,
.similar-car-card,
.modal-box,
.modal-specs,
.modal-desc-box,
.job-listing-card,
.service-card,
.calc-section,
.calc-card,
.calc-display,
.faq-item,
.location-section,
.mobile-sticky-bar,
.loan-docs-box,
.input-field input,
.input-field select,
.filter-item input,
.filter-item select,
.form-row input,
.form-row select,
.theme-toggle {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.car-card,
.similar-car-card,
.cat-tab-btn {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] header,
html[data-theme="dark"] .dealer-profile-card,
html[data-theme="dark"] .filter-card,
html[data-theme="dark"] .cat-tab-btn:not(.active),
html[data-theme="dark"] .budget-preset:not(.active),
html[data-theme="dark"] .car-card,
html[data-theme="dark"] .similar-car-card,
html[data-theme="dark"] .modal-box,
html[data-theme="dark"] .modal-specs,
html[data-theme="dark"] .modal-desc-box,
html[data-theme="dark"] .job-listing-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .calc-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .location-section,
html[data-theme="dark"] .loan-docs-box {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .dealer-meta-grid,
html[data-theme="dark"] .calc-section,
html[data-theme="dark"] .calc-display,
html[data-theme="dark"] .btn-phone-call,
html[data-theme="dark"] .btn-contact-action,
html[data-theme="dark"] .btn-card-details,
html[data-theme="dark"] .btn-mudah-badge,
html[data-theme="dark"] .page-btn:not(.active),
html[data-theme="dark"] .share-icon-btn:not(.btn-share-tt):not(.btn-share-ig):not(.btn-share-fb):not(.btn-share-yt):not(.btn-share-wa):not(.btn-share-copy) {
  background-color: #1e293b;
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] nav a {
  color: var(--text);
}

html[data-theme="dark"] .theme-toggle {
  background-color: #1e293b;
  border-color: #475569;
  color: var(--text);
}

html[data-theme="dark"] .btn-career-nav,
html[data-theme="dark"] .btn-email-header,
html[data-theme="dark"] .btn-card-email,
html[data-theme="dark"] .btn-modal-email,
html[data-theme="dark"] .btn-share-car-link {
  background-color: #1e293b;
  border-color: #475569;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .btn-career-nav:hover,
html[data-theme="dark"] .btn-email-header:hover,
html[data-theme="dark"] .btn-share-copy,
html[data-theme="dark"] .cat-tab-btn.active,
html[data-theme="dark"] .budget-preset.active,
html[data-theme="dark"] .btn-mudah-badge:hover,
html[data-theme="dark"] .page-btn.active,
html[data-theme="dark"] .btn-reset-filters,
html[data-theme="dark"] .btn-modal-mudah,
html[data-theme="dark"] .featured-video-link,
html[data-theme="dark"] .btn-card-email:hover,
html[data-theme="dark"] .btn-modal-email:hover,
html[data-theme="dark"] .btn-share-car-link:hover,
html[data-theme="dark"] .btn-booking-email {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-card-details:hover,
html[data-theme="dark"] .page-btn:hover {
  background-color: #334155;
  color: #f1f5f9;
}

html[data-theme="dark"] .badge-verified-pill,
html[data-theme="dark"] .highlight-chip,
html[data-theme="dark"] .badge-career {
  background-color: #1e293b;
  border-color: #475569;
  color: #bfdbfe;
}

html[data-theme="dark"] .career-salary-box {
  background-color: #052e25;
  border-color: #166534;
  color: #bbf7d0;
}

html[data-theme="dark"] .calc-display {
  background-color: #0b1120;
  color: #93c5fd;
}

html[data-theme="dark"] .services-section {
  background-color: #111827;
  border-color: var(--border);
}

html[data-theme="dark"] .services-section p,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .car-card-meta span,
html[data-theme="dark"] footer {
  color: var(--text-muted);
}

html[data-theme="dark"] .faq-section .section-heading h2,
html[data-theme="dark"] .faq-item summary,
html[data-theme="dark"] .similar-cars-section h3,
html[data-theme="dark"] .featured-video-section .section-heading h2,
html[data-theme="dark"] .doc-col strong,
html[data-theme="dark"] .btn-phone-call {
  color: var(--text);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: #1e293b;
  border-color: #475569;
  color: var(--text);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

html[data-theme="dark"] option {
  background-color: #1e293b;
  color: var(--text);
}

html[data-theme="dark"] footer {
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  header,
  .dealer-profile-card,
  .dealer-meta-grid,
  .filter-card,
  .cat-tab-btn,
  .budget-preset,
  .car-card,
  .similar-car-card,
  .modal-box,
  .modal-specs,
  .modal-desc-box,
  .job-listing-card,
  .service-card,
  .calc-section,
  .calc-card,
  .calc-display,
  .faq-item,
  .location-section,
  .mobile-sticky-bar,
  .loan-docs-box,
  input,
  select,
  textarea,
  .theme-toggle {
    transition: none !important;
  }
}

html[data-theme="dark"] .mobile-sticky-bar {
  background-color: #111827;
  border-top: 1px solid #334155;
}

html[data-theme="dark"] .sticky-email {
  background-color: #1e293b;
  border-color: #475569;
  color: #bfdbfe !important;
}