/* ═══════════════════════════════════════════════════════════════ */
/* AMBULANCE DETAIL PAGE - PREMIUM DESIGN                        */
/* ═══════════════════════════════════════════════════════════════ */

/* === HERO SECTION === */
.amb-hero-section {
  padding: 40px 0 60px;
  background: #fff;
}

/* === 3D MODEL VIEWER CARD === */
.amb-model-viewer-card {
  background: #f5f7fa;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e8ecf1;
}

.amb-viewer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.amb-viewer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.amb-fullscreen-btn {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s;
}
.amb-fullscreen-btn:hover { color: #1a202c; background: #fff; }

/* 3D Container */
.amb-3d-container {
  height: 480px;
  position: relative;
  background: #f0f0f0;
  border-radius: 0;
}

/* Loading Overlay */
.amb-loading-overlay {
  display: flex;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.92);
  z-index: 10;
  flex-direction: column;
  gap: 8px;
}

.amb-loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #e3000f;
  border-radius: 50%;
  animation: amb-spin 0.8s linear infinite;
}
@keyframes amb-spin { to { transform: rotate(360deg); } }

.amb-loading-text {
  font-weight: 600; font-size: 14px; color: #475569; margin: 0;
}
.amb-loading-percent {
  font-weight: 700; font-size: 13px; color: #e3000f;
}

.amb-progress-track {
  width: 200px; height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.amb-progress-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #e3000f, #019ee3);
  border-radius: 4px; transition: width 0.3s;
}

/* Thumbnail Gallery */
.amb-thumbnail-gallery {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e8ecf1;
  background: #fff;
}

.amb-thumb-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.amb-thumb-track::-webkit-scrollbar { display: none; }

.amb-thumb-item {
  flex: 0 0 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
}
.amb-thumb-item.active, .amb-thumb-item:hover {
  border-color: #e3000f;
  opacity: 1;
}
.amb-thumb-item img {
  width: 100%; height: 100%; object-fit: cover;
}

.amb-thumb-nav {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}
.amb-thumb-nav:hover {
  border-color: #cbd5e1;
  color: #1a202c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Interaction Hint */
.amb-interaction-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 12px;
  color: #94a3b8;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}
.amb-interaction-hint svg { transform: rotate(180deg); }

/* === PRODUCT INFO (RIGHT SIDE) === */
.amb-product-info {
  padding: 10px 0 10px 30px;
}

.amb-product-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.amb-product-brand {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #e3000f;
  margin-bottom: 16px;
}

.amb-product-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 28px;
}

/* Feature List */
.amb-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.amb-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.amb-feature-icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fef2f2;
  color: #e3000f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amb-feature-icon--blue {
  background: #eff6ff;
  color: #019ee3;
}

.amb-feature-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}
.amb-feature-text span {
  font-size: 15px;
  color: #94a3b8;
}

/* CTA Buttons */
.amb-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.amb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.amb-btn--primary {
  background: #e3000f;
  color: #fff;
  border-color: #e3000f;
}
.amb-btn--primary:hover {
  background: #c5000d;
  border-color: #c5000d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227,0,15,0.3);
}

.amb-btn--outline {
  background: #fff;
  color: #e3000f;
  border-color: #e3000f;
}
.amb-btn--outline:hover {
  background: #fef2f2;
  color: #c5000d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227,0,15,0.15);
}

/* === INTERIOR VIEWS SECTION === */
.amb-interior-section {
  padding: 60px 0;
  background: #f8fafc;
}

.amb-section-header {
  margin-bottom: 40px;
}

.amb-section-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.amb-section-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  max-width: 800px;
  margin: 0;
}

.amb-interior-card {
  background: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e8ecf1;
  transition: box-shadow 0.3s;
}
.amb-interior-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.amb-interior-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.amb-interior-3d {
  height: 500px;
  position: relative;
  background: #f0f0f0;
}

/* === SPECS SECTION === */
.amb-specs-section {
  padding: 60px 0;
  background: #fff;
}

.amb-specs-heading {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features Grid */
.amb-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.amb-fcard {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 22px 18px;
  transition: all 0.3s;
}
.amb-fcard:hover {
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.amb-fcard-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.amb-fcard-icon--blue {
  background: #eff6ff;
  color: #019ee3;
}
.amb-fcard-icon--red {
  background: #fef2f2;
  color: #e3000f;
}

.amb-fcard h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}
.amb-fcard p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Specs Table Wrapper */
.amb-specs-table-wrapper {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #f1f5f9;
}

.amb-specs-content table {
  width: 100% !important;
  border-collapse: collapse;
}
.amb-specs-content table tr {
  border-bottom: 1px solid #e8ecf1;
}
.amb-specs-content table tr:last-child {
  border-bottom: none;
}
.amb-specs-content table td,
.amb-specs-content table th {
  padding: 12px 8px;
  font-size: 14px;
  color: #475569;
  vertical-align: middle;
}
.amb-specs-content table td:first-child,
.amb-specs-content table th:first-child {
  font-weight: 700;
  color: #1e293b;
  width: 40%;
}

/* === CTA BANNER === */
.amb-cta-banner {
  padding: 0 0 60px;
  background: #fff;
}

.amb-cta-inner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.amb-cta-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.amb-cta-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.amb-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e3000f;
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
}
.amb-cta-link:hover {
  background: #c5000d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227,0,15,0.4);
}

/* === FULLSCREEN MODE === */
.amb-model-viewer-card.fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  border-radius: 0;
  background: #f0f0f0;
}
.amb-model-viewer-card.fullscreen .amb-3d-container {
  height: calc(100vh - 100px);
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                     */
/* ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .amb-hero-section { padding: 24px 0 40px; }
  .amb-product-info { padding: 30px 0 0; }
  .amb-product-title { font-size: 26px; }
  .amb-3d-container { height: 380px; }
  .amb-interior-3d { height: 380px; }
  .amb-interior-section .row > div { margin-bottom: 20px; }
  .amb-specs-section .row > .col-lg-5 { margin-bottom: 40px; }
}

@media (max-width: 767px) {
  .amb-hero-section { padding: 16px 0 32px; }
  .amb-product-title { font-size: 22px; }
  .amb-product-info { padding: 24px 0 0; }
  .amb-3d-container { height: 300px; }
  .amb-interior-3d { height: 300px; }
  .amb-features-grid { grid-template-columns: 1fr; }

  .amb-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .amb-cta-buttons { justify-content: center; }
  .amb-btn { width: 100%; justify-content: center; }

  .amb-section-title { font-size: 20px; }

  .amb-thumb-item { flex: 0 0 60px; height: 45px; }
}

@media (max-width: 480px) {
  .amb-3d-container { height: 250px; }
  .amb-interior-3d { height: 250px; }
  .amb-product-title { font-size: 20px; }
  .amb-cta-text h3 { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════════ */
/* GALLERY TAB SECTION                                            */
/* ═══════════════════════════════════════════════════════════════ */

.amb-gallery-section {
  padding: 60px 0;
  background: #fff;
}

/* Tab Navigation */
.amb-gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.amb-gallery-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Urbanist', sans-serif;
}
.amb-gallery-tab-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.amb-gallery-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #e3000f, #c5000d);
  border-color: #e3000f;
  box-shadow: 0 4px 14px rgba(227,0,15,0.25);
}
.amb-gallery-tab-btn svg {
  flex-shrink: 0;
}
.amb-gallery-tab-btn .amb-tab-count {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 6px;
}
.amb-gallery-tab-btn.active .amb-tab-count {
  background: rgba(255,255,255,0.3);
}

/* Gallery Grid Container */
.amb-gallery-pane {
  display: none;
}
.amb-gallery-pane.active {
  display: block;
  animation: ambGalleryFadeIn 0.4s ease;
}
@keyframes ambGalleryFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.amb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Gallery Card */
.amb-gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #f0f4f8;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.amb-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.amb-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.amb-gallery-card:hover img {
  transform: scale(1.08);
}

/* Hover overlay */
.amb-gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.6) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}
.amb-gallery-card:hover .amb-gallery-card-overlay {
  opacity: 1;
}
.amb-gallery-zoom-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3000f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.amb-gallery-card:hover .amb-gallery-zoom-icon {
  transform: translateY(0);
}

/* Skeleton Placeholder */
.amb-gallery-skeleton {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ambShimmer 1.5s ease-in-out infinite;
}
@keyframes ambShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Load More Button */
.amb-gallery-load-more-wrap {
  text-align: center;
  margin-top: 28px;
}
.amb-gallery-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #e3000f;
  background: #fff;
  border: 2px solid #e3000f;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Urbanist', sans-serif;
}
.amb-gallery-load-more:hover {
  background: #e3000f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227,0,15,0.25);
}
.amb-gallery-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.amb-gallery-load-more .amb-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: amb-spin 0.7s linear infinite;
}
.amb-gallery-load-more.loading .amb-spinner { display: inline-block; }
.amb-gallery-load-more.loading .amb-btn-text { display: none; }

/* Empty state */
.amb-gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.amb-gallery-empty svg {
  margin-bottom: 16px;
  color: #cbd5e1;
}
.amb-gallery-empty p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════ */
/* LIGHTBOX                                                       */
/* ═══════════════════════════════════════════════════════════════ */

.amb-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.amb-lightbox.open {
  display: flex;
  animation: ambLbFadeIn 0.3s ease;
}
@keyframes ambLbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.amb-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  user-select: none;
  transition: opacity 0.3s ease;
}

.amb-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.amb-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.amb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.amb-lightbox-nav:hover {
  background: rgba(227,0,15,0.7);
}
.amb-lightbox-prev { left: 20px; }
.amb-lightbox-next { right: 20px; }

.amb-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* GALLERY RESPONSIVE                                             */
/* ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .amb-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .amb-gallery-section { padding: 40px 0; }
}

@media (max-width: 767px) {
  .amb-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .amb-gallery-tabs { gap: 6px; }
  .amb-gallery-tab-btn { padding: 8px 16px; font-size: 13px; }
  .amb-lightbox-nav { width: 38px; height: 38px; font-size: 16px; }
  .amb-lightbox-prev { left: 10px; }
  .amb-lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .amb-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .amb-gallery-card { border-radius: 8px; }
}

