/**
 * EJ Cars Theme for Armal Motors
 * Clean, modern automotive design inspired by ejcars.co.uk
 * Built with HTML5, CSS3, and Bootstrap 5
 */

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

:root {
  --ej-primary: #345e7d;
  --ej-primary-dark: #23435c;
  --ej-primary-light: #44749a;
  --ej-secondary: #5da9e9;
  --ej-secondary-hover: #3d92da;
  --ej-tertiary: #162836;
  --ej-dark-bg: #12202c;
  --ej-body-bg: #ffffff;
  --ej-surface-bg: #f4f6f9;
  --ej-card-bg: #ffffff;
  --ej-border: #e2e8f0;
  --ej-text-main: #1c2527;
  --ej-text-muted: #64748b;
  --ej-text-light: #94a3b8;
  --ej-white: #ffffff;
  --ej-radius-sm: 8px;
  --ej-radius-md: 14px;
  --ej-radius-lg: 20px;
  --ej-radius-pill: 50px;
  --ej-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ej-shadow-md: 0 8px 24px rgba(22, 40, 54, 0.08);
  --ej-shadow-lg: 0 16px 36px rgba(22, 40, 54, 0.12);
  --ej-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--ej-font) !important;
  color: var(--ej-text-main) !important;
  background-color: var(--ej-body-bg) !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ej-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--ej-secondary);
}

/* ==========================================================================
   Wider Responsive Container (Reduced left/right space for premium widescreen layout)
   ========================================================================== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1380px !important;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1520px !important;
  }
}

@media (min-width: 1600px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1660px !important;
  }
}

/* ==========================================================================
   Header & Navigation (Exact EJ Cars Replication)
   ========================================================================== */
.ej-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1025;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.ej-header-main {
  padding: 14px 0 12px 0;
}

.ej-header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ej-brand-logo {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition: max-height 0.25s ease;
}

/* Right Column Stack */
.ej-header-right {
  text-align: right;
}

/* Row 1: Contact, Phone Button, Heart Favourites */
.ej-header-top-row {
  gap: 16px;
}

.ej-touch-text {
  font-family: var(--ej-font);
  font-weight: 700;
  font-size: 15px;
  color: #1a2936;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.ej-phone-btn {
  background-color: #345e7d;
  color: #ffffff !important;
  font-family: var(--ej-font);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(52, 94, 125, 0.2);
  white-space: nowrap;
}

.ej-phone-btn:hover {
  background-color: #26455c;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(52, 94, 125, 0.3);
}

.ej-phone-btn-sm {
  background-color: #345e7d;
  color: #ffffff !important;
  font-family: var(--ej-font);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

/* Favourites Heart with Red Overlap Badge */
.ej-fav-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  cursor: pointer;
  margin-left: 4px;
}

.ej-fav-heart {
  font-size: 25px;
  color: #1a2530;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ej-fav-icon-link:hover .ej-fav-heart {
  color: #e53e3e;
  transform: scale(1.08);
}

.ej-fav-counter-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  background-color: #e53e3e;
  color: #ffffff;
  font-family: var(--ej-font);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #ffffff;
}

/* Row 2: Menu Links */
.ej-header-nav-row {
  display: block;
}

.ej-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ej-nav-link {
  font-family: var(--ej-font);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #345e7d !important;
  text-decoration: none;
  padding: 6px 0 8px 0 !important;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

.ej-nav-link:hover {
  color: #5da9e9 !important;
}

.ej-nav-link.active {
  color: #345e7d !important;
}

/* Sky-blue active underline indicator (exactly like EJ Cars) */
.ej-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #5da9e9;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.ej-nav-link.active::after {
  transform: scaleX(1);
}

.ej-nav-link:hover::after {
  transform: scaleX(1);
}

/* Mobile Toggle */
.ej-mobile-toggle-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  color: #345e7d;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section & Quick Search Widget
   ========================================================================== */
.ej-hero-section {
  position: relative;
  min-height: 540px;
  background: url('/assets/images/banner/banner-image.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 100px;
}

.ej-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 44, 0.72) 0%, rgba(22, 40, 54, 0.85) 100%);
}

.ej-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.ej-hero-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.ej-hero-subtitle {
  color: var(--ej-secondary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ej-hero-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 35px;
}

/* Floating Search Widget - Increased Size & Proper Readability */
.ej-search-widget {
  background: #ffffff;
  border-radius: var(--ej-radius-md);
  padding: 18px 22px;
  box-shadow: var(--ej-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ej-search-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
}

@media (max-width: 991px) {
  .ej-search-form {
    flex-wrap: wrap;
  }
}

.ej-search-field {
  flex: 1 1 200px;
  min-width: 180px;
  position: relative;
  text-align: left;
}

.ej-search-field.price-field {
  flex: 1.3 1 240px;
  min-width: 220px;
}

.ej-search-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ej-text-muted);
  margin-bottom: 6px;
  text-align: left;
  letter-spacing: 0.5px;
}

.ej-search-select,
.ej-search-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #dbe2ea;
  border-radius: var(--ej-radius-sm);
  padding: 0 38px 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ej-text-main);
  background-color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23345e7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.ej-search-select:focus,
.ej-search-input:focus {
  border-color: var(--ej-secondary);
  box-shadow: 0 0 0 3px rgba(93, 169, 233, 0.2);
}

.ej-search-btn-wrapper {
  flex: 0 0 auto;
  align-self: flex-end;
}

.ej-btn-search {
  height: 52px;
  padding: 0 32px;
  background: var(--ej-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: var(--ej-radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(52, 94, 125, 0.25);
  cursor: pointer;
}

.ej-btn-search:hover {
  background: var(--ej-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(52, 94, 125, 0.35);
}

/* ==========================================================================
   Brand / Manufacturer Marquee
   ========================================================================== */
.ej-brands-bar {
  background: var(--ej-surface-bg);
  border-bottom: 1px solid var(--ej-border);
  padding: 22px 0;
  overflow: hidden;
}

.ej-brands-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.ej-brand-pill {
  background: #ffffff;
  border: 1px solid var(--ej-border);
  padding: 8px 18px;
  border-radius: var(--ej-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ej-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ej-brand-pill:hover {
  border-color: var(--ej-secondary);
  background: #ffffff;
  color: var(--ej-secondary);
  box-shadow: var(--ej-shadow-sm);
  transform: translateY(-2px);
}

/* ==========================================================================
   Vehicle Card & Slider (ejcars style)
   ========================================================================== */
.ej-section {
  padding: 60px 0;
}

.ej-section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.ej-section-title {
  color: var(--ej-tertiary);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ej-section-subtitle {
  color: var(--ej-text-muted);
  font-size: 15px;
}

/* Vehicle Card */
.ej-vehicle-card {
  background: #ffffff;
  border-radius: var(--ej-radius-md);
  border: 1px solid var(--ej-border);
  overflow: hidden;
  box-shadow: var(--ej-shadow-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ej-vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ej-shadow-lg);
  border-color: #cbd5e1;
}

.ej-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.ej-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ej-vehicle-card:hover .ej-card-img-wrap img {
  transform: scale(1.05);
}

.ej-ribbon-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ej-secondary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--ej-radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.ej-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.ej-card-make-model {
  color: var(--ej-tertiary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ej-card-make-model a {
  color: inherit;
}

.ej-card-make-model a:hover {
  color: var(--ej-secondary);
}

.ej-card-variant {
  font-size: 13px;
  color: var(--ej-text-muted);
  margin-bottom: 14px;
  min-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ej-card-price-row {
  margin-bottom: 14px;
}

.ej-card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ej-primary);
  line-height: 1;
}

.ej-card-finance {
  font-size: 12px;
  color: var(--ej-text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Specs Badges inside Card */
.ej-card-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.ej-spec-tag {
  background: var(--ej-surface-bg);
  border: 1px solid #edf2f7;
  color: var(--ej-text-main);
  padding: 4px 10px;
  border-radius: var(--ej-radius-sm);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ej-spec-tag i {
  color: var(--ej-primary);
  font-size: 11px;
}

.ej-btn-card-details {
  background: var(--ej-primary);
  color: #ffffff !important;
  border-radius: var(--ej-radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  display: block;
  width: 100%;
  border: none;
  transition: all 0.25s ease;
}

.ej-btn-card-details:hover {
  background: var(--ej-secondary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(93, 169, 233, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Parallax Callout / Banner Section
   ========================================================================== */
.ej-callout-banner {
  position: relative;
  background: url('/assets/images/banner/banner-image.png') center center / cover no-repeat fixed;
  padding: 90px 0;
  text-align: center;
  color: #ffffff;
}

.ej-callout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 40, 54, 0.88);
}

.ej-callout-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.ej-callout-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.3;
}

.ej-callout-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

/* ==========================================================================
   Signpost Blocks (Exact EJ Cars Carousel Slider)
   ========================================================================== */
.ej-signposts-section {
  background-color: var(--ej-surface-bg);
  padding: 40px 0 50px;
  overflow: hidden;
}

.ej-signpost-slider-wrapper {
  position: relative;
}

.ejSignpostSwiper {
  overflow: hidden;
  padding: 8px 0 12px;
}

.ej-signpost-slide-card {
  position: relative;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 40, 54, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ej-signpost-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 40, 54, 0.22);
}

.ej-signpost-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ej-signpost-slide-card:hover .ej-signpost-bg {
  transform: scale(1.08);
}

.ej-signpost-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 44, 0.15) 0%, rgba(18, 32, 44, 0.88) 100%);
  transition: background 0.3s ease;
}

.ej-signpost-slide-card:hover .ej-signpost-gradient {
  background: linear-gradient(180deg, rgba(52, 94, 125, 0.25) 0%, rgba(18, 32, 44, 0.94) 100%);
}

.ej-signpost-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.ej-signpost-heading {
  font-family: var(--ej-font);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 5px;
  line-height: 1.2;
}

.ej-signpost-sub {
  font-family: var(--ej-font);
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Minimalist Chevron Navigation Arrows (Exact EJ Cars Style) */
.ej-signpost-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.ej-signpost-arrow:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.ej-signpost-prev {
  left: 6px;
}

.ej-signpost-next {
  right: 6px;
}

.ej-signpost-arrow.swiper-button-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Value Feature Cards (Exact EJ Cars Style with Floating Top Badges)
   ========================================================================== */
.ej-features-section {
  background-color: #ffffff;
  padding: 60px 0 70px;
}

.ej-feature-card {
  position: relative;
  background: #253d4f;
  border-radius: 10px;
  padding: 55px 28px 34px;
  color: #ffffff;
  height: 100%;
  text-align: center;
  box-shadow: 0 10px 28px rgba(18, 32, 44, 0.16);
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ej-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(18, 32, 44, 0.24);
}

.ej-feature-floating-badge {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s ease;
}

.ej-feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.ej-feature-card:hover .ej-feature-floating-badge {
  transform: translateX(-50%) scale(1.08);
}

.ej-feature-title {
  color: #5da9e9;
  font-family: var(--ej-font);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.ej-feature-text {
  font-family: var(--ej-font);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   Footer (ejcars style)
   ========================================================================== */
.ej-footer {
  background: var(--ej-tertiary);
  color: #ffffff;
  padding: 60px 0 0;
  border-top: 4px solid var(--ej-primary);
}

.ej-footer-col-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.ej-footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--ej-secondary);
  border-radius: 2px;
}

.ej-footer-mini-vehicle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ej-footer-mini-img {
  width: 70px;
  height: 52px;
  border-radius: var(--ej-radius-sm);
  object-fit: cover;
}

.ej-footer-mini-info a {
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  display: block;
}

.ej-footer-mini-info a:hover {
  color: var(--ej-secondary);
}

.ej-footer-mini-price {
  color: var(--ej-secondary);
  font-weight: 700;
  font-size: 14px;
}

.ej-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.ej-footer-contact-item i {
  color: var(--ej-secondary);
  font-size: 18px;
  margin-top: 3px;
}

.ej-footer-contact-item a {
  color: rgba(255, 255, 255, 0.85);
}

.ej-footer-contact-item a:hover {
  color: var(--ej-secondary);
}

.ej-opening-hours {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.ej-opening-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.ej-quick-search-form {
  display: flex;
  gap: 6px;
}

.ej-quick-search-input {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ej-radius-sm);
  color: #ffffff;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.ej-quick-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ej-quick-search-btn {
  background: var(--ej-primary);
  border: none;
  color: #ffffff;
  padding: 0 16px;
  border-radius: var(--ej-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ej-quick-search-btn:hover {
  background: var(--ej-secondary);
}

.ej-regulatory-box {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.ej-regulatory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.ej-footer-bottom {
  background: var(--ej-primary);
  padding: 16px 0;
  font-size: 13px;
  color: #ffffff;
}

.ej-footer-bottom a {
  color: #ffffff;
  margin: 0 10px;
}

.ej-footer-bottom a:hover {
  color: var(--ej-secondary);
  text-decoration: underline;
}

/* ==========================================================================
   Showroom / Stock Page Styling (ejcars style filters)
   ========================================================================== */
.ej-stock-header {
  background: var(--ej-surface-bg);
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--ej-border);
  margin-bottom: 30px;
}

.ej-stock-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ej-tertiary);
  margin: 0;
}

.ej-stock-count-badge {
  background: var(--ej-primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--ej-radius-pill);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   EJ Cars Clean Sidebar Filters (Exact Match with User Screenshot)
   ========================================================================== */
.ej-sidebar-filters {
  background: #ffffff;
  padding: 0 0 10px 0;
  margin-bottom: 30px;
  max-height: calc(100vh - 105px);
  display: flex;
  flex-direction: column;
}

.ej-sidebar-filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 14px 4px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.ej-sidebar-filters__list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: #acacac transparent;
  scroll-behavior: smooth;
}

.ej-sidebar-filters__list::-webkit-scrollbar {
  width: 5px;
}

.ej-sidebar-filters__list::-webkit-scrollbar-track {
  background: transparent;
}

.ej-sidebar-filters__list::-webkit-scrollbar-thumb {
  background-color: #acacac;
  border-radius: 4px;
}

.ej-sidebar-filters__list::-webkit-scrollbar-thumb:hover {
  background-color: #718096;
}

.ej-sidebar-filters__title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  margin: 0;
}

.ej-sidebar-filters__clear {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.ej-sidebar-filters__clear:hover {
  color: #dc2626;
  background: #fef2f2;
}

.ej-filter-row {
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.15s ease;
}

.ej-filter-row:last-child {
  border-bottom: none;
}

.ej-filter-summary {
  display: flex;
  align-items: center;
  padding: 15px 2px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.ej-filter-summary::-webkit-details-marker {
  display: none;
}

.ej-filter-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  --icon-base-color: #1c2527;
  --icon-highlight-color: #1c2527;
  fill: #1c2527;
}

.ej-filter-label {
  font-size: 15px;
  font-weight: 700;
  color: #1c2527;
  margin-left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.ej-filter-active-count {
  font-size: 10px;
  background-color: #279fb0;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.ej-filter-chevron {
  font-size: 12px;
  color: #1c2527;
  transition: transform 0.25s ease;
  margin-left: auto;
}

details[open] > .ej-filter-summary .ej-filter-chevron {
  transform: rotate(180deg);
}

.ej-filter-dropdown {
  padding: 4px 4px 14px 38px;
  max-height: 260px;
  overflow-y: auto;
}

.ej-filter-dropdown::-webkit-scrollbar {
  width: 5px;
}

.ej-filter-dropdown::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

/* Checkbox and Radio styling */
.ej-filter-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.ej-filter-checkbox:hover {
  color: #0f172a;
}

.ej-filter-checkbox input[type="checkbox"],
.ej-filter-checkbox input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  accent-color: #1c2527;
  cursor: pointer;
}

.ej-filter-badge {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

/* Range grid for Price & Mileage */
.ej-filter-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
}

.ej-filter-range-grid select {
  width: 100%;
  height: 36px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12.5px;
  color: #334155;
  background: #ffffff;
  outline: none;
}

/* ==========================================================================
   EJ Cars Stocklist Top Bar (Search & Sort)
   ========================================================================== */
.stocklist-vehicles__top-container {
  margin-bottom: 20px;
}

.stocklist-vehicles__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stocklist__keyword-search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  height: 46px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stocklist__keyword-search:focus-within {
  border-color: #279fb0;
  box-shadow: 0 0 0 3px rgba(39, 159, 176, 0.15);
}

.stocklist__keyword-search > i.fa-search {
  position: absolute;
  left: 15px;
  color: #9aa5b5;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.stocklist__keyword-search input.keyword-search {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 42px 0 42px;
  font-size: 15px;
  color: #2d3748;
  outline: none;
  font-family: inherit;
}

.stocklist__keyword-search input.keyword-search::placeholder {
  color: #718096;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.stocklist__keyword-search .keyword-search__reset {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #9aa5b5;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  display: none;
  line-height: 1;
  z-index: 2;
  transition: color 0.15s ease;
}

.stocklist__keyword-search .keyword-search__reset:hover {
  color: #2d3748;
}

/* Sorting Dropdown */
.sorting-dropdown {
  position: relative;
}

.sorting-dropdown button {
  height: 46px;
  background-color: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.sorting-dropdown button:hover {
  border-color: #b0b7c3;
  background-color: #f8fafc;
}

.sorting-dropdown button i {
  color: #279fb0;
  font-size: 14px;
}

.sorting-dropdown .dropdown-content {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.15s ease-out, opacity 0.15s ease, visibility 0.15s ease;
}

.sorting-dropdown .dropdown-content.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sorting-dropdown .sortColumn {
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  color: #4a5568;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sorting-dropdown .sortColumn:hover {
  background-color: #f0f9fa;
  color: #279fb0;
}

.sorting-dropdown .sortColumn.selected {
  background-color: #279fb0;
  color: #ffffff;
  font-weight: 600;
}

/* Meta status row below search/sort */
.stocklist-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 0 2px;
  font-size: 13.5px;
  color: #64748b;
}

.stocklist-meta-bar .count-highlight {
  color: #1e293b;
  font-weight: 700;
}

/* Active Filter Pills Bar (Exact EJ Cars Match) */
.stocklist-active-pills-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
}

.stocklist-active-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ej-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ej-active-pill:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.ej-active-pill i {
  font-size: 13px;
  color: #6b7280;
  transition: color 0.15s ease;
}

.ej-active-pill:hover i {
  color: #dc2626;
}

.stocklist-pill-clear-all {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stocklist-pill-clear-all:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

/* Highlight for selected filter checkbox in sidebar */
.ej-filter-checkbox.is-selected {
  background-color: #f0f7ff;
  border-radius: 4px;
}

.ej-filter-checkbox.is-selected span:first-child {
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 576px) {
  .stocklist-vehicles__top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sorting-dropdown button {
    width: 100%;
    justify-content: center;
  }
  .sorting-dropdown .dropdown-content {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Vehicle Detail Page
   ========================================================================== */
.ej-detail-header {
  background: var(--ej-surface-bg);
  padding: 24px 0;
  border-bottom: 1px solid var(--ej-border);
  margin-bottom: 30px;
}

.ej-detail-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ej-tertiary);
  margin-bottom: 4px;
}

.ej-detail-variant {
  font-size: 16px;
  color: var(--ej-text-muted);
  margin: 0;
}

.ej-detail-price-box {
  text-align: right;
}

.ej-detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--ej-primary);
}

.ej-detail-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--ej-radius-md);
  overflow: hidden;
  background: #0b0f19;
  margin-bottom: 12px;
}

.ej-detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Main Image Prev/Next Nav Controls */
.ej-main-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  font-size: 16px;
  padding: 0;
  opacity: 0.85;
}

.ej-main-nav-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.ej-main-nav-prev {
  left: 14px;
}

.ej-main-nav-next {
  right: 14px;
}

/* Gallery Thumbnails Carousel Wrapper */
.ej-detail-thumbs-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
}

.ej-detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  padding: 1px 0;
  margin: 0;
}

.ej-detail-thumbs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge, Opera */
  width: 0;
  height: 0;
}

/* Thumbnail Carousel Navigation Arrows (Overlaid on sides) */
.ej-thumb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 56px;
  background: rgba(30, 33, 38, 0.78);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, opacity 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ej-thumb-nav-btn:hover {
  background: rgba(15, 17, 20, 0.95);
  color: #ffffff;
}

.ej-thumb-nav-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.ej-thumb-nav-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.ej-thumb-nav-btn i {
  font-size: 13px;
  color: #ffffff;
}

/* Thumbnail Items: Clean landscape rectangles with full opacity */
.ej-detail-thumb {
  flex: 0 0 calc((100% - 40px) / 6);
  min-width: 110px;
  max-width: 135px;
  height: 84px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 1;
  background: #f1f3f5;
  user-select: none;
}

.ej-detail-thumb.active {
  border-color: var(--ej-secondary, #0d6efd);
}

.ej-detail-thumb:hover {
  border-color: rgba(13, 110, 253, 0.6);
}

.ej-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .ej-detail-thumb {
    flex: 0 0 115px;
    height: 76px;
  }
}

@media (max-width: 576px) {
  .ej-detail-thumb {
    flex: 0 0 95px;
    height: 64px;
  }
  .ej-thumb-nav-btn {
    width: 24px;
    height: 46px;
  }
  .ej-main-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Key Specs Grid */
.ej-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.ej-spec-box {
  background: var(--ej-surface-bg);
  border: 1px solid var(--ej-border);
  border-radius: var(--ej-radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.ej-spec-box i {
  color: var(--ej-primary);
  font-size: 20px;
  margin-bottom: 6px;
}

.ej-spec-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ej-text-muted);
}

.ej-spec-val {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ej-tertiary);
  margin-top: 2px;
}

/* Sidebar Enquiry Form */
.ej-enquiry-card {
  background: #ffffff;
  border: 1px solid var(--ej-border);
  border-radius: var(--ej-radius-md);
  box-shadow: var(--ej-shadow-md);
  padding: 26px;
  position: sticky;
  top: 90px;
}

.ej-enquiry-title {
  color: var(--ej-tertiary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ej-btn-enquire {
  background: var(--ej-primary);
  color: #ffffff;
  font-weight: 700;
  width: 100%;
  padding: 12px;
  border-radius: var(--ej-radius-sm);
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.ej-btn-enquire:hover {
  background: var(--ej-secondary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(93, 169, 233, 0.4);
}

.ej-btn-call {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  width: 100%;
  padding: 12px;
  border-radius: var(--ej-radius-sm);
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.25s ease;
}

.ej-btn-call:hover {
  background: #1ebc57;
  color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .ej-hero-title {
    font-size: 28px;
  }
  .ej-detail-price-box {
    text-align: left;
    margin-top: 10px;
  }
  .ej-search-field {
    flex: 1 1 100%;
  }
  .ej-btn-search {
    width: 100%;
  }
  .ej-sidebar-filters {
    max-height: none;
  }
  .ej-sidebar-filters__list {
    max-height: none;
    overflow-y: visible;
  }
}

/* Scroll to Top Button (Exact EJ Cars Match) */
.ej-scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: #8da4b5;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  opacity: 0;
  visibility: hidden;
}

.ej-scroll-top-btn.visible {
  opacity: 0.9;
  visibility: visible;
}

.ej-scroll-top-btn:hover {
  background-color: #345e7d;
  opacity: 1;
  transform: translateY(-3px);
}

/* ==========================================================================
   Editorial Legal Pages (Privacy Policy, Cookies, Terms - Matching EJ Cars)
   ========================================================================== */
.ej-policy-wrapper {
  background-color: #ffffff;
  padding: 48px 20px 80px 20px;
}

.ej-policy-container {
  max-width: 960px;
  margin: 0 auto;
}

.ej-policy-title {
  font-size: 34px;
  font-weight: 800;
  color: #1c2527;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.ej-policy-heading {
  font-size: 23px;
  font-weight: 800;
  color: #1c2527;
  letter-spacing: -0.3px;
  margin-top: 36px;
  margin-bottom: 14px;
}

.ej-policy-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
}

.ej-policy-contact-box {
  font-size: 15.5px;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 20px;
  padding: 4px 0;
}

.ej-policy-contact-box a {
  color: #1c2527;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ej-policy-contact-box a:hover {
  color: #279fb0;
}

.ej-policy-list {
  padding-left: 22px;
  margin-bottom: 22px;
}

.ej-policy-list li {
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 8px;
}

.ej-policy-list li:last-child {
  margin-bottom: 0;
}

.ej-policy-subheading {
  font-size: 15.5px;
  font-weight: 700;
  color: #1c2527;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ==========================================================================
   Add to Favourites Floating Buttons & Interactions
   ========================================================================== */
.ej-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  color: #e53e3e;
  font-size: 16px;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.ej-fav-btn:hover {
  transform: scale(1.14);
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.25);
}

.ej-fav-btn:active {
  transform: scale(0.92);
}

.ej-fav-btn.is-active {
  color: #e53e3e;
}

.ej-fav-btn.is-active i {
  font-weight: 900;
}

.ej-fav-btn.animating i {
  animation: favHeartPulse 0.45s ease forwards;
}

/* Detail Page Favourite Button (Floating directly on top-right of main image) */
.ej-fav-btn--detail {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  font-size: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Detail Top Utility Bar (Continue Search & Favourite) */
.ej-detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.ej-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ej-detail-back-link:hover {
  color: var(--ej-primary);
  transform: translateX(-3px);
  text-decoration: none;
}

/* Floating Toast Notification */
.ej-fav-toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.ej-fav-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 50px;
  background: #1a2530;
  color: #ffffff;
  font-family: var(--ej-font);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ej-fav-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ej-fav-toast-icon {
  font-size: 17px;
  color: #e53e3e;
}

/* Animations */
@keyframes favHeartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

@keyframes ejBadgeBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.ej-badge-pulse {
  animation: ejBadgeBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   Reserve Now Button & Modal
   ========================================================================== */
.ej-btn-reserve-now {
  width: 100%;
  background-color: #2f5879;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 15px 24px;
  font-family: var(--ej-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 88, 121, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.ej-btn-reserve-now:hover {
  background-color: #244460;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 88, 121, 0.4);
  text-decoration: none;
}

.ej-btn-reserve-now:active {
  transform: translateY(0);
}

.ej-btn-reserve-now i {
  font-size: 17px;
}

/* Reserve Modal */
.ej-reserve-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.ej-reserve-modal .modal-header {
  background: linear-gradient(135deg, #1e3a52 0%, #2f5879 100%);
  color: #ffffff;
  padding: 20px 24px;
  border-bottom: none;
}

.ej-reserve-modal .modal-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ej-reserve-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.ej-reserve-modal .btn-close:hover {
  opacity: 1;
}

.ej-reserve-car-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.ej-reserve-input {
  height: 50px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 15px;
  padding: 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ej-reserve-input:focus {
  border-color: #2f5879;
  box-shadow: 0 0 0 3px rgba(47, 88, 121, 0.15);
}

.ej-btn-reserve-submit {
  width: 100%;
  background-color: #2f5879;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-family: var(--ej-font);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ej-btn-reserve-submit:hover {
  background-color: #244460;
  color: #ffffff;
}

.ej-btn-reserve-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


