/* ==========================================================================
   PREV RWANDA — SYSTEM-WIDE DESIGN FRAMEWORK & RESPONSIVE ENGINE
   ========================================================================== */

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

/* --- Reset & Global Variable Declarations --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Premium Corporate White & Dark Green Palette Tokens */
  --g: #0d4f34;       /* Deep Forest Green - Main Brand Anchor */
  --g2: #166947;      /* Vivid Deep Green - Interactive Components */
  --accent: #29a86f;  /* Electric Mint - Highlight Callouts & Statuses */
  --black: #ffffff;   /* Pure Canvas White Base */
  --s: #f4f7f5;       /* Light Muted Grey/Green Contrast Surfaces */
  --card: #ffffff;    /* Clear Card Surface Fills */
  --border: #e2e9e5;  /* Subtle Architecture Matrix Partitions */
  --white: #0a120e;   /* Off-Black - Deep High-Contrast Typography text */
  --muted: #55685f;   /* Elegant Muted Green-Grey for Secondary Text */
  
  /* Typography Scale Ecosystems */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

/* --- Typography Reusables --- */
.section-label-giant {
  color: var(--g2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title-giant {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

/* --- Layout Wrappers --- */
.huge-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 max(20px, 4vw);
}

/* --- Structural Headers --- */
.mega-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: 80px;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-huge {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--g);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 4px;
}

.nav-links-new {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link-new {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link-new:hover,
.nav-link-new.active {
  color: var(--g);
}

.cta-header-btn {
  font-family: var(--font-display);
  background: var(--g);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(13, 79, 52, 0.15);
}

/* CTA visibility controls: ensure only one CTA shows per viewport
   - `.desktop-cta` is visible on larger viewports
   - `.mobile-cta` is hidden by default and only shown when the nav is opened */
.desktop-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mobile-cta {
  display: none;
}

.cta-header-btn:hover {
  background: var(--g2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 79, 52, 0.25);
}

/* --- Hamburger Toggle Engine --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
  padding: 8px;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--g);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Hero Components --- */
.giant-hero {
  padding-top: 180px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, rgba(41, 168, 111, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero-media-card {
  margin-top: 32px;
  max-width: 780px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  background: var(--card);
}

.hero-media-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.hero-badge {
  display: inline-block;
  background: var(--s);
  border: 1px solid var(--border);
  color: var(--g);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title-huge {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 950px;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title-huge span {
  color: var(--g2);
  position: relative;
  display: inline-block;
}

.hero-subtitle-huge {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  max-width: 750px;
}

.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-actions-group .cta-header-btn {
  min-width: 210px;
}

.contact-icon {
  color: var(--g2);
  width: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--white);
  font-size: 15px;
}

.contact-detail-link {
  color: inherit;
  text-decoration: none;
}

.contact-detail-link:hover {
  color: var(--g2);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--g2);
}

/* --- Custom Form Layout Components --- */
.massive-contact-section {
  padding: 100px 0;
  background: var(--black);
}

.grid-contact-huge {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 60px;
}

.form-pane-massive {
  background: var(--card);
  border: 1px solid var(--border);
  padding: clamp(24px, 5vw, 48px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* --- Global Utilities for Forms --- */
.form-group-huge {
  margin-bottom: 24px;
}

.form-group-huge label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-huge {
  width: 100%;
  padding: 14px 18px;
  background: var(--s);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.25s ease;
}

.input-huge:focus {
  outline: none;
  border-color: var(--g2);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(22, 105, 71, 0.1);
}

.huge-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--g);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.huge-submit-btn:hover {
  background: var(--g2);
}

/* --- Info Cards --- */
.info-card-massive {
  background: var(--s);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.info-card-massive:hover {
  transform: translateY(-4px);
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* --- Image Blocks --- */
.responsive-corporate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* --- Footers --- */
.giant-footer {
  background: var(--s);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px 0;
}

.footer-grid-giant {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc-huge {
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
  max-width: 400px;
}

.footer-column-huge h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links-huge {
  list-style: none;
}

.footer-links-huge li {
  margin-bottom: 12px;
}

.footer-links-huge a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s ease;
}

.footer-links-huge a:hover {
  color: var(--g2);
}

.footer-bottom-huge {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM MEDIA QUERY LAYER
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-links-new { gap: 20px; }
}

@media (max-width: 900px) {
  .nav-links-new {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: calc(100vh - 80px);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px max(20px, 4vw);
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .nav-links-new.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .desktop-cta {
    display: none !important;
  }

  .nav-links-new .mobile-cta {
    display: none;
  }

  .nav-links-new.active .mobile-cta {
    display: inline-flex;
    width: 100%;
    padding: 12px 16px;
    background: var(--g);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(13, 79, 52, 0.12);
  }

  .nav-links-new.active .mobile-cta:hover {
    background: var(--g2);
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .nav-links-new {
    top: 64px;
    height: calc(100vh - 64px);
  }
}

@media (max-width: 768px) {
  .giant-hero { padding-top: 120px; padding-bottom: 50px; }
  .massive-contact-section { padding: 50px 0; }
  .grid-contact-huge { gap: 24px; }
  .reverse-mobile-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  .image-block-wrapper {
    height: 280px;
  }
  .form-pane-massive {
    padding: clamp(16px, 4vw, 32px);
  }
}

@media (max-width: 600px) {
  .giant-hero { padding-top: 100px; padding-bottom: 40px; }
  .hero-title-huge { font-size: clamp(28px, 5vw, 40px); }
  .section-title-giant { font-size: clamp(24px, 4vw, 36px); }
  .massive-contact-section { padding: 40px 0; }
  .grid-contact-huge { gap: 16px; flex-direction: column; }
  .reverse-mobile-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  .image-block-wrapper {
    height: 240px;
  }
  .form-pane-massive {
    padding: clamp(12px, 3vw, 24px);
  }
  .fleet-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PREV RWANDA — FLEET SYSTEM OVERLAYS & CARD ENGINE
   ========================================================================== */

.fleet-filterbar {
  background: var(--s);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 80px;
  z-index: 900;
}

.fleet-filterbar .huge-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: var(--g2);
  color: var(--white);
}

.filter-btn.active {
  background: var(--g);
  border-color: var(--g);
  color: #ffffff;
}

.filter-count {
  font-size: 11px;
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background: rgba(255,255,255,0.2);
}

.showing-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* --- Fleet Grid Architecture --- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 32px;
}

@media (max-width: 480px) {
  .mega-header {
    height: 64px;
  }

  .brand-huge {
    font-size: 22px;
  }

  .hero-title-huge {
    font-size: clamp(22px, 5vw, 32px);
  }

  .section-title-giant {
    font-size: clamp(18px, 4vw, 28px);
  }

  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .car-gallery {
    height: 200px;
  }

  .huge-submit-btn {
    padding: 14px;
    font-size: 14px;
  }

  .input-huge {
    padding: 12px 16px;
    font-size: 14px;
  }

  .form-pane-massive {
    padding: clamp(12px, 3vw, 20px);
  }

  .footer-grid-giant {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.fleet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 79, 52, 0.06);
  border-color: rgba(13, 79, 52, 0.15);
}

/* --- Native Asset Multi-Image Component Track --- */
.car-gallery {
  position: relative;
  height: 240px;
  background: #f0f3f1;
  overflow: hidden;
}

.gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.gallery-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--g);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
  opacity: 0;
  transition: all 0.25s ease;
}

.car-gallery:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: var(--g);
  color: #ffffff;
}

.gallery-arrow.left { left: 12px; }
.gallery-arrow.right { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.gallery-dots .dot {
  width: 6px;
  height: 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dots .dot.active {
  background: var(--g);
  width: 16px;
  border-radius: 100px;
}

.gallery-label-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 79, 52, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.5px;
}

.car-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
  letter-spacing: 0.5px;
}

.active-badge {
  background: #e1f7ec;
  color: #166947;
  border: 1px solid rgba(22, 105, 71, 0.2);
}

/* --- Card Body Elements --- */
.fleet-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fleet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.car-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.car-type {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.car-category-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--s);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: var(--g);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  margin-bottom: 24px;
  background: var(--s);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

.spec-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.spec-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-top: 2px;
}

.fleet-reserve-btn {
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}

/* --- Show More Engine Elements --- */
.show-more-zone {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.show-more-progress {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--g2);
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 13px;
  color: var(--muted);
}

.show-more-btn, .show-less-btn {
  font-family: var(--font-display);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.show-more-btn:hover {
  border-color: var(--g2);
  transform: translateY(-2px);
}

.btn-remaining {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* --- Filter & Count Logic Utility Layers --- */
.hidden-card { display: none !important; }
.filter-hidden { display: none !important; }
.visible-card { display: flex !important; }

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS & STRUCTURE CORRECTIONS
   ========================================================================== */

@media (max-width: 768px) {
  .hero-title-huge {
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: -1px;
  }
  
  .hero-subtitle-huge {
    font-size: 15px;
  }
  
  .section-title-giant {
    font-size: clamp(24px, 3.5vw, 40px);
  }
  
  .grid-contact-huge {
    gap: 32px;
  }
  
  .form-pane-massive {
    padding: 24px;
  }
  
  .info-card-massive {
    padding: 24px;
  }
  
  .footer-grid-giant {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-huge {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .mega-header {
    height: 64px;
  }
  
  .brand-huge {
    font-size: 22px;
  }
  
  .cta-header-btn {
    padding: 10px 18px;
    font-size: 12px;
  }
  
  .giant-hero {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  
  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
  }
  
  .massive-contact-section {
    padding: 50px 0;
  }
  
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .hero-actions-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions-group .cta-header-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Clean Separation: Corporate Media vs. Dynamic Car Sliders --- */
.responsive-corporate-img,
.image-block-wrapper img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Ensure global canvas variables behave cleanly */
body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container padding consistency */
.huge-container {
  padding-left: max(16px, 4vw);
  padding-right: max(16px, 4vw);
}
/* ==========================================================================
   PREV RWANDA — LIGHTBOX OVERLAY
   ========================================================================== */

/* ── Overlay backdrop ── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  animation: lb-fade-in 0.22s ease;
}
#lb-overlay.lb-open {
  display: flex;
}
@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Inner wrapper ── */
.lb-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 70px;
  box-sizing: border-box;
}

/* ── Main image ── */
#lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: lb-zoom-in 0.22s cubic-bezier(0.34,1.28,0.64,1);
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes lb-zoom-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Close button ── */
#lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  z-index: 10001;
}
#lb-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* ── Prev / Next arrows ── */
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  z-index: 10001;
  user-select: none;
}
.lb-arrow:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.08);
}
#lb-prev { left: 14px; }
#lb-next { right: 14px; }

/* ── Caption bar (slide label + counter) ── */
#lb-caption {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.75);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 10001;
  pointer-events: none;
}
#lb-label {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
#lb-counter {
  opacity: 0.6;
}

/* ── Car name tag ── */
#lb-car-name {
  position: fixed;
  top: 18px;
  left: 22px;
  color: rgba(255,255,255,0.80);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10001;
  pointer-events: none;
  max-width: calc(100% - 100px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Dot strip ── */
#lb-dots {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10001;
  pointer-events: all;
}
.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  padding: 0;
}
.lb-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* ── Mobile tweaks ── */
@media (max-width: 600px) {
  .lb-box {
    padding: 54px 14px 90px;
  }
  .lb-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  #lb-prev { left: 6px; }
  #lb-next { right: 6px; }
  #lb-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  #lb-car-name {
    top: 14px;
    left: 12px;
    font-size: 13px;
  }
}