/* ========================================== */
/* 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 HEADER & 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);
  position: sticky;
  top: 0;
  z-index: 100;
}

.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 {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  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 {
  margin-left: 1.1rem;
  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;
  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;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-wa-header:hover {
  background: var(--green-wa-hover) !important;
  transform: translateY(-1px);
}

/* ========================================== */
/* 3. HERO SHOWCASE                           */
/* ========================================== */
.hero {
  background: linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.85)), 
              url('https://images.unsplash.com/photo-1563720223185-11003d516935?auto=format&fit=crop&w=1200&q=80') center/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;
}

/* Row 1: Avatar + Title on Left, Phone Call Buttons on Right */
.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-avatar {
  width: 44px;
  height: 44px;
  background: var(--yellow-badge);
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.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);
}

/* Row 2: All 4 Meta Details In a Single Horizontal Row */
.dealer-meta-grid {
  display: flex;
  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 {
  white-space: nowrap;
}

/* Row 3: Inline Share Toolbar */
.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);
}

/* Brand Colors */
.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-wa { background: #25d366; color: #ffffff !important; border-color: #25d366; }
.btn-share-copy { background: var(--accent); color: #ffffff !important; border-color: var(--accent); }

/* Responsive Wrap for Smaller Screens */
@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-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);
}

/* ========================================== */
/* 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;
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.35s 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;
  background: var(--gold);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.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-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
  margin: 0.5rem 0 1rem;
}

.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 & Badges */
.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 & THUMBNAILS            */
/* ========================================== */
.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);
}

.modal-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background-color: #0f172a;
}

.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: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-modal-wa {
  flex: 2;
  min-width: 200px;
  text-align: center;
  background: var(--green-wa);
  color: white;
  padding: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-modal-calc {
  flex: 1;
  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        */
/* ========================================== */
.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. 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;
}

@media (max-width: 768px) {
  .loan-docs-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* ============================================ */
/* 15. MOBILE RESPONSIVE TWEAKS & OVERFLOW FIX*/
/* ============================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Prevent Header and Hero Overflow */
  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 {
    margin: 0;
    font-size: 0.8rem;
  }

  .btn-wa-header {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  .top-bar {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  /* Dealer Card Mobile Layout */
  .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;
  }

  /* Split phone numbers into 2 equal balanced columns */
  .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;
  }

  /* Clean 2x2 Grid for Dealer Meta Details */
  .dealer-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.8rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .dealer-meta-grid > div {
    white-space: normal;
  }

  /* Share Toolbar Grid Wrap */
  .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;
  }

  /* Inputs and Forms */
  .calc-inputs, .form-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .filter-wrapper {
    margin-top: 0;
  }

  /* Sticky Bottom Action Bar */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.8rem;
    background: #ffffff;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
    z-index: 9999;
    gap: 0.5rem;
  }

  .mobile-sticky-bar a {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.4rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
  }

  .sticky-call {
    background: var(--primary);
    color: white;
  }

  .sticky-wa {
    background: var(--green-wa);
    color: white;
  }
}