/* ==========================================================================
   TUGAR MOTORS - "Beyond the Drive"
   Tema Community 4, Roundabouts, Ghana
   Primary Colours: Royal Deep Blue, Midnight Black, Crisp White & Logo Orange Accent
   ========================================================================== */

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

:root {
  /* Color Palette - Blue, Black, White + Logo Brand Accent */
  --tm-blue-primary: #0D47A1;       /* Deep Royal Blue */
  --tm-blue-electric: #1E88E5;      /* Electric Accent Blue */
  --tm-blue-dark: #0A2540;          /* Deep Navy Midnight */
  --tm-blue-light: #EBF4FF;         /* Soft Icy Blue Tint */
  --tm-blue-glow: rgba(13, 71, 161, 0.18);

  --tm-black: #0B0F19;              /* Rich Automotive Obsidian */
  --tm-black-surface: #111827;      /* Dark Card / Surface */
  --tm-black-card: #1E293B;         /* Slate Dark */
  --tm-gray-900: #0F172A;
  --tm-gray-700: #334155;
  --tm-gray-500: #64748B;
  --tm-gray-300: #CBD5E1;
  --tm-gray-100: #F1F5F9;
  --tm-gray-50: #F8FAFC;

  --tm-white: #FFFFFF;
  --tm-orange-accent: #FF791F;      /* Exact Logo Accent Color */
  --tm-orange-hover: #E6660D;
  --tm-green-status: #10B981;
  --tm-gold: #F59E0B;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(11, 15, 25, 0.06);
  --shadow-md: 0 10px 25px rgba(11, 15, 25, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 15, 25, 0.14);
  --shadow-blue: 0 12px 30px rgba(13, 71, 161, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--tm-black-surface);
  background-color: var(--tm-gray-50);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tm-black);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ==========================================================================
   TOP NOTIFICATION BAR & ANNOUNCEMENT
   ========================================================================== */
.tm-top-bar {
  background: #060B14;
  color: #CBD5E1;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tm-top-bar a {
  color: #F8FAFC !important;
  transition: color var(--transition-fast);
}

.tm-top-bar a:hover {
  color: #38BDF8 !important;
}

.tm-top-bar .text-primary {
  color: #38BDF8 !important;
}

.tm-top-badge {
  background: rgba(30, 136, 229, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.tm-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 71, 161, 0.1);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
  z-index: 1040;
}

.tm-navbar.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}

.tm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.tm-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-fast);
}

.tm-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.tm-brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--tm-black);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}

.tm-brand-title span {
  color: var(--tm-blue-primary);
}

.tm-brand-slogan {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tm-orange-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.tm-brand-divider {
  display: inline-block;
  width: 1.5px;
  height: 38px;
  background: linear-gradient(180deg, rgba(13, 71, 161, 0.08) 0%, rgba(13, 71, 161, 0.3) 50%, rgba(13, 71, 161, 0.08) 100%);
  margin: 0 4px;
  border-radius: 2px;
}

.tm-partner-brand {
  display: inline-flex;
  align-items: center;
}

.tm-partner-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-fast);
}

.tm-brand:hover .tm-brand-logo,
.tm-brand:hover .tm-partner-logo {
  transform: scale(1.04);
}

.nav-link.tm-nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1E293B;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link.tm-nav-link:hover {
  color: var(--tm-blue-primary);
  background: var(--tm-blue-light);
}

.nav-link.tm-nav-link.active {
  color: var(--tm-blue-primary);
  background: #EBF4FF;
  font-weight: 800;
}

.nav-link.tm-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--tm-blue-primary);
  border-radius: 2px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-tm-primary {
  background: linear-gradient(135deg, var(--tm-blue-primary) 0%, #1565C0 100%);
  color: var(--tm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.btn-tm-primary:hover {
  background: linear-gradient(135deg, #0A3880 0%, var(--tm-blue-primary) 100%);
  color: var(--tm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.45);
}

.btn-tm-secondary {
  background: var(--tm-black);
  color: var(--tm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.btn-tm-secondary:hover {
  background: #1E293B;
  color: var(--tm-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-tm-outline {
  background: transparent;
  color: var(--tm-blue-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 2px solid var(--tm-blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.btn-tm-outline:hover {
  background: var(--tm-blue-primary);
  color: var(--tm-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.25);
}

.btn-tm-whatsapp {
  background: #25D366;
  color: var(--tm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-normal);
}

.btn-tm-whatsapp:hover {
  background: #1EBE5D;
  color: var(--tm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-tm-orange {
  background: linear-gradient(135deg, var(--tm-orange-accent) 0%, #EA580C 100%);
  color: var(--tm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 121, 31, 0.35);
  transition: all var(--transition-normal);
}

.btn-tm-orange:hover {
  background: linear-gradient(135deg, #E6660D 0%, #C2410C 100%);
  color: var(--tm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 121, 31, 0.5);
}

/* Currency Switcher Pill */
.currency-pill-group {
  background: var(--tm-gray-100);
  border: 1px solid var(--tm-gray-300);
  border-radius: var(--radius-full);
  padding: 3px;
  display: inline-flex;
}

.currency-pill {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--tm-gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.currency-pill.active {
  background: var(--tm-blue-primary);
  color: var(--tm-white);
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.3);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-in-stock {
  background: rgba(16, 185, 129, 0.14);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-in-stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.badge-incoming {
  background: rgba(30, 136, 229, 0.14);
  color: #075985;
  border: 1px solid rgba(30, 136, 229, 0.3);
}

.badge-incoming::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284C7;
}

.badge-reserved {
  background: rgba(245, 158, 11, 0.14);
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-reserved::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.tm-hero {
  position: relative;
  background: radial-gradient(circle at 75% 20%, #173873 0%, #0A1B36 50%, #050B14 100%);
  color: var(--tm-white);
  padding: 75px 0 105px;
  overflow: hidden;
}

.tm-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -80px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.tm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 136, 229, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #93C5FD;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tm-hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.tm-hero-title .gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #FFFFFF 50%, var(--tm-orange-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tm-hero-lead {
  font-size: 1.15rem;
  color: #E2E8F0;
  max-width: 550px;
  line-height: 1.75;
  margin-bottom: 34px;
}

.tm-hero-lead strong {
  color: #FFFFFF;
  font-weight: 700;
}

.tm-hero-image-wrapper {
  position: relative;
  text-align: center;
}

.tm-hero-car-img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.75));
  transition: transform var(--transition-normal);
  animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.tm-hero-glass-card {
  position: absolute;
  bottom: 12px;
  left: 15px;
  right: 15px;
  max-width: 520px;
  background: rgba(6, 12, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px 22px;
  text-align: left;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.tm-hero-glass-card .title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.tm-hero-glass-card .subtitle {
  font-size: 0.8rem;
  color: #CBD5E1;
  font-weight: 500;
  margin: 2px 0 0;
}

/* Hero Quick Search Bar */
.tm-hero-search-box {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 0 15px 40px rgba(10, 25, 47, 0.12);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(13, 71, 161, 0.12);
}

/* ==========================================================================
   CAR INVENTORY CARDS & GRID
   ========================================================================== */
.car-card {
  background: var(--tm-white);
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 71, 161, 0.15);
  border-color: rgba(13, 71, 161, 0.35);
}

.car-card-img-wrap {
  position: relative;
  background: linear-gradient(180deg, #070B14 0%, #142138 100%);
  height: 245px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.car-card-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.car-card-condition-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(11, 18, 33, 0.88);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.car-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0F172A;
  line-height: 1.3;
}

.car-card-title a {
  color: #0F172A;
  transition: color var(--transition-fast);
}

.car-card-title a:hover {
  color: var(--tm-blue-primary);
}

.car-card-tagline {
  font-size: 0.86rem;
  color: #334155;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: #F8FAFC;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid #E2E8F0;
}

.car-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #0F172A;
  font-weight: 600;
}

.car-spec-item i {
  color: var(--tm-blue-primary);
  font-size: 1rem;
}

.car-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.car-card-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--tm-gray-500);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.car-card-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--tm-blue-primary);
  line-height: 1.1;
  margin: 0;
  font-family: var(--font-heading);
}

/* ==========================================================================
   VEHICLE DETAILS PAGE
   ========================================================================== */
.gallery-main-viewport {
  position: relative;
  background: #0B0F19;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tm-gray-300);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-fast);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: thin;
}

.gallery-thumb {
  width: 90px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all var(--transition-fast);
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--tm-blue-primary);
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid #CBD5E1;
}

.specs-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

.specs-table tr:hover {
  background-color: #EFF6FF;
}

.specs-table td {
  padding: 13px 18px;
  font-size: 0.94rem;
  border-bottom: 1px solid #E2E8F0;
}

.specs-table td.spec-name {
  font-weight: 700;
  color: #1E293B;
  width: 40%;
}

.specs-table td.spec-val {
  font-weight: 700;
  color: #0F172A;
}

/* ==========================================================================
   FEATURE & VALUE CARDS
   ========================================================================== */
.feature-card {
  background: var(--tm-white);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 32px 26px;
  transition: all var(--transition-normal);
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(13, 71, 161, 0.12);
  border-color: #38BDF8;
}

.feature-card h5 {
  color: #0F172A;
  font-size: 1.18rem;
  font-weight: 800;
}

.feature-card p {
  color: #334155 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--tm-blue-electric);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--tm-blue-light);
  color: var(--tm-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--tm-blue-primary);
  color: var(--tm-white);
  transform: scale(1.08);
}

/* ==========================================================================
   INTERACTIVE FINANCING CALCULATOR
   ========================================================================== */
.calc-card {
  background: linear-gradient(135deg, #0A192F 0%, #0B0F19 100%);
  color: var(--tm-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.calc-range {
  accent-color: var(--tm-blue-electric);
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & CALL)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: var(--tm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 1060;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: #1EBE5D;
  color: var(--tm-white);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-btn::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: pulseRipple 2s infinite;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: var(--tm-black);
  color: var(--tm-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   FOOTER (HIGH CONTRAST & LEGIBILITY)
   ========================================================================== */
.tm-footer {
  background: #060A14 !important;
  color: #E2E8F0 !important;
  padding: 70px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-footer h5 {
  color: #FFFFFF !important;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.tm-footer p,
.tm-footer li,
.tm-footer span,
.tm-footer .text-secondary,
.tm-footer .text-muted {
  color: #CBD5E1 !important;
}

.tm-footer a {
  color: #CBD5E1 !important;
  transition: color var(--transition-fast);
}

.tm-footer a:hover {
  color: #60A5FA !important;
}

.tm-footer-bottom {
  padding-top: 25px;
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #CBD5E1 !important;
}

.tm-footer-bottom strong,
.tm-footer-bottom em {
  color: #FFFFFF !important;
}

/* ==========================================================================
   GLOBAL CONTRAST & READABILITY OVERRIDES
   ========================================================================== */
/* High Contrast Light Section Typography */
p.text-secondary,
.text-secondary:not(.bg-dark *):not(.tm-hero *):not(.tm-footer *) {
  color: #334155 !important;
}

p.text-muted,
.text-muted:not(.bg-dark *):not(.tm-hero *):not(.tm-footer *) {
  color: #475569 !important;
}

.card p.text-muted,
.card p.small {
  color: #475569 !important;
}

/* Dark Sections Full Contrast */
.bg-dark,
.card.bg-dark,
.tm-hero,
.tm-footer {
  color: #FFFFFF !important;
}

.bg-dark p,
.bg-dark span:not(.badge):not([class*="text-"]),
.bg-dark .text-secondary,
.bg-dark .text-muted,
.bg-dark .lead,
.card.bg-dark p,
.card.bg-dark span:not(.badge):not([class*="text-"]),
.card.bg-dark .text-secondary,
.card.bg-dark .text-muted,
.tm-hero p,
.tm-hero .text-secondary,
.tm-hero .text-muted {
  color: #E2E8F0 !important;
}

.bg-dark strong,
.card.bg-dark strong,
.tm-hero strong {
  color: #FFFFFF !important;
}

/* Headings inside dark sections (page headers, banners) must be white.
   No !important so Bootstrap colour utilities (text-warning, text-info...) still win. */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Keep light cards inside dark sections readable */
.bg-dark .bg-white :is(h1, h2, h3, h4, h5, h6),
.bg-dark .bg-light :is(h1, h2, h3, h4, h5, h6) {
  color: var(--tm-black);
  text-shadow: none;
}

.bg-dark .text-warning,
.text-white .text-warning {
  color: #FBBF24 !important;
}

.breadcrumb-item a,
.breadcrumb-item a.text-secondary {
  color: #94A3B8 !important;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: #38BDF8 !important;
}

.breadcrumb-item.active {
  color: #FFFFFF !important;
  font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #64748B !important;
}

/* Form Controls Consistency */
.form-control, .form-select {
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  color: #0F172A;
  font-weight: 500;
  padding: 10px 14px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--tm-blue-primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.form-label {
  color: #1E293B;
  font-weight: 700;
}

/* ==========================================================================
   FILTER CONTROLS & PILLS
   ========================================================================== */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tm-white);
  border: 1.5px solid #CBD5E1;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover, .filter-chip.active {
  background: var(--tm-blue-primary);
  border-color: var(--tm-blue-primary);
  color: var(--tm-white);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991.98px) {
  .tm-hero {
    padding: 50px 0 60px;
    text-align: center;
  }
  .tm-hero-title {
    font-size: 2.6rem;
  }
  .tm-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .tm-hero-image-wrapper {
    margin-top: 30px;
  }
  .gallery-main-viewport {
    height: 360px;
  }
}

@media (max-width: 575.98px) {
  .tm-brand-logo {
    height: 40px;
  }
  .tm-brand-title {
    font-size: 1.15rem;
  }
  .tm-brand-slogan {
    font-size: 0.6rem;
  }
  .tm-brand-divider {
    height: 28px;
    margin: 0 2px;
  }
  .tm-partner-logo {
    height: 32px;
  }
  .tm-hero-title {
    font-size: 2.1rem;
  }
  .car-specs-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main-viewport {
    height: 270px;
  }
  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
  .tm-hero-search-box {
    padding: 20px 16px;
    margin-top: -35px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   FLAGSHIP SPOTLIGHT - ANIMATED BACKGROUND (media/images (13).jpg)
   ========================================================================== */
.tm-flagship {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: #060B14;
  isolation: isolate;
}

/* Background photo with slow Ken Burns zoom + pan */
.tm-flagship-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url("../media/images (13).jpg") center right / cover no-repeat;
  transform-origin: 70% 55%;
  animation: tmKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Dark gradient so text on the left is always readable, car visible on the right */
.tm-flagship-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 11, 20, 0.96) 0%, rgba(6, 11, 20, 0.88) 38%, rgba(6, 11, 20, 0.45) 68%, rgba(6, 11, 20, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 11, 20, 0.75) 0%, rgba(6, 11, 20, 0) 35%);
}

/* Moving light sweep for a premium showroom feel */
.tm-flagship-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  animation: tmShineSweep 7s ease-in-out infinite;
}

/* Readable typography (overrides global dark heading color) */
.tm-flagship .tm-flagship-title {
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  line-height: 1.15;
}
.tm-flagship .tm-flagship-lead {
  color: #E2E8F0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Glass stat cards */
.tm-flagship-stat {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tm-flagship-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
}
.tm-flagship-stat .small {
  color: #CBD5E1;
}

/* Staggered entrance animation for content */
.tm-flagship-anim {
  opacity: 0;
  animation: tmFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes tmKenBurns {
  0%   { transform: scale(1.02) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1%); }
  100% { transform: scale(1.18) translate(-3%, 1%); }
}

@keyframes tmShineSweep {
  0%   { left: -40%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}

@keyframes tmFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .tm-flagship { min-height: 0; }
  .tm-flagship-bg { background-position: 65% center; }
  .tm-flagship-overlay {
    background: linear-gradient(180deg, rgba(6, 11, 20, 0.80) 0%, rgba(6, 11, 20, 0.90) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-flagship-bg,
  .tm-flagship-shine,
  .tm-flagship-anim {
    animation: none;
  }
  .tm-flagship-anim { opacity: 1; }
  .tm-flagship-shine { display: none; }
}
