
.event-header {
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-neutral-200);
  padding-bottom: var(--space-6);
}

.event-badges {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.badge-photos {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--color-secondary-main);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-downloads {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.event-actions {
  margin-bottom: var(--space-8);
  text-align: center;
}

.event-faces-section {
  margin-top: var(--space-8);
}

.event-faces-section .biometric-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-1) var(--space-6) var(--space-1);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  margin-top: var(--space-4);
  /* Reset grid properties */
  grid-template-columns: unset;
  /* Drag scroll cursor */
  cursor: grab;
}

.event-faces-section .biometric-list.active {
  cursor: grabbing;
  scroll-behavior: auto;
  /* Dissable smooth scroll while dragging for responsiveness */
  scroll-snap-type: none;
  /* Disable snap while dragging */
}

.event-faces-section .biometric-list.active .biometric-item {
  /* Prevent clicking whilst dragging - handled by JS now */
  transform: scale(0.98);
  /* Slight feedback */
}

/* Custom Scrollbar */
.event-faces-section .biometric-list::-webkit-scrollbar {
  height: 6px;
}

.event-faces-section .biometric-list::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
  border-radius: 9999px;
}

.event-faces-section .biometric-list::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: 9999px;
}

.event-faces-section .biometric-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-400);
}

.event-faces-section .biometric-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
  display: flex;
  /* Keep this to fill height? Or just block? */
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-faces-section .biometric-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-faces-section .biometric-item:hover {
  transform: translateY(-4px);
}

.event-faces-section .biometric-item:hover .biometric-inner {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-200, #bfdbfe);
}

.event-faces-section .biometric-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.event-faces-section .biometric-image-wrapper {
  height: 200px !important;
}

.event-faces-section .biometric-item:hover .biometric-image {
  transform: scale(1.05);
}

.event-faces-section .biometric-info {
  padding: var(--space-3);
  background: white;
  border-top: 1px solid var(--color-neutral-100);
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  text-align: center;
  position: relative;
  z-index: 1;
}

.no-faces-message {
  color: var(--color-neutral-500);
  font-style: italic;
  text-align: center;
  padding: var(--space-8);
  background-color: var(--color-neutral-50);
  border-radius: var(--radius-md);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0;
  font-size: 14px;
  /* Fallback if var not defined */
  font-size: var(--font-size-sm, 14px);
  color: var(--color-neutral-500, #666);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  /* Fallback */
  margin: 0 var(--space-2, 8px);
  color: var(--color-neutral-400, #999);
}

.breadcrumbs a {
  color: var(--color-neutral-600, #4b5563);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-primary-main, #0ea5e9);
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--color-neutral-900, #111);
  font-weight: 500;
}

/* Add New Card Styles */
.event-faces-section .add-new-card .biometric-inner {
  justify-content: center;
  align-items: center;
  background-color: var(--color-neutral-50);
  border-style: dashed;
  cursor: pointer;
}

.event-faces-section .add-new-card:hover .biometric-inner {
  background-color: var(--color-neutral-100);
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-md);
}

.event-faces-section .add-icon-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-400);
  width: 100%;
  padding: var(--space-4);
  min-height: 200px;
  /* Match image height */
}

.event-faces-section .add-new-card:hover .add-icon-wrapper {
  color: var(--color-primary-500);
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.event-faces-section .add-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.event-faces-section .add-new-card .biometric-info {
  width: 100%;
  border-top: 1px solid var(--color-neutral-200);
  background: white;
  color: var(--color-primary-600);
  font-weight: 600;
  text-align: center;
  padding: var(--space-3);
  font-size: var(--text-xs);
}

.no-history {
  width: 100%;
  text-align: center;
  padding: var(--space-8);
  color: var(--color-neutral-500);
  margin: 0 auto;
}

/* Global Tooltip Styles */
.global-tooltip {
  position: fixed;
  background-color: var(--color-neutral-900, #111);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  transform: translateX(-50%);
}

.global-tooltip.visible {
  opacity: 1;
}

.global-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-neutral-900, #111);
}

/* -------------------------------------- */
/* REPORT MODAL STYLES (Injected)         */
/* -------------------------------------- */

/* Reset native dialog styles */
dialog.report-modal {
  padding: 0;
  border: none;
  background: transparent;
  width: 90%;
  max-width: 500px;
  color: #111827;
  margin: auto;
  box-shadow: none !important;
}

/* Modal Content Box */
.report-modal-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Header */
.report-modal-header {
  padding: 24px 24px 16px 24px;
}

.report-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.report-modal-subtitle {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

/* Content */
.report-modal-content {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.report-form-group {
  margin-bottom: 0;
  width: 100%;
}

/* Textarea - Strong overrides */
.report-textarea {
  display: block;
  width: 100% !important;
  /* Force full width */
  max-width: 100% !important;
  /* Force full width */
  box-sizing: border-box !important;
  min-height: 140px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #111827;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
  margin: 0;
}

.report-textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Actions Footer */
.report-modal-actions {
  padding: 24px;
  display: flex;
  /* Ensure children fill space */
  justify-content: stretch;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Buttons */
.btn-report-cancel,
.btn-report-submit {
  flex: 1;
  /* Grow to fill space */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  font-size: 15px;
  /* Slightly larger */
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-report-cancel {
  color: #4B5563;
  background-color: white;
  border: 1px solid #D1D5DB;
}

.btn-report-cancel:hover {
  background-color: #F3F4F6;
  color: #111827;
  border-color: #9CA3AF;
}

.btn-report-submit {
  color: white;
  background-color: #DC2626;
  border: 1px solid #DC2626;
}

.btn-report-submit:hover {
  background-color: #B91C1C;
  border-color: #B91C1C;
}

/* Backdrop */
dialog.report-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* -------------------------------------- */
/* MAP OVERLAY STYLES                     */
/* -------------------------------------- */

.map-overlay-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
  line-height: 1.5;
}

/* -------------------------------------- */
/* MOBILE RESPONSIVE STYLES               */
/* -------------------------------------- */

@media (max-width: 768px) {

  /* Mobile Images Grid */
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 12px !important;
  }

  /* Mobile Event Faces Section */
  .event-faces-section .biometric-list {
    gap: 12px;
    padding-bottom: 5px;
  }

  .event-faces-section .biometric-item {
    flex: 0 0 72px;
    width: 72px;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .event-faces-section .biometric-inner {
    border: none;
    background: transparent;
    box-shadow: none !important;
  }

  .event-faces-section .biometric-inner:hover {
    box-shadow: none !important;
    transform: none !important;
  }

  .event-faces-section .biometric-image,
  .event-faces-section .biometric-image-wrapper {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    margin: 0 auto;
  }

  .event-faces-section .biometric-image-wrapper {
    border: 1px solid var(--color-neutral-300);
  }

  .event-faces-section .add-new-card {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    flex: 0 0 64px !important;
    /* Override flex-basis from .biometric-item */
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 20px;
    background: var(--color-neutral-50);
    border: 2px dashed var(--color-neutral-300);
    display: flex;
    /* Ensure flex context for the link itself */
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    /* Ensure content stays inside circle */
    box-sizing: border-box;
  }

  .event-faces-section .add-new-card .biometric-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .event-faces-section .add-icon-wrapper {
    min-height: 0;
    height: auto;
    width: auto;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .event-faces-section .add-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }

  /* Specific override for Add New Card info text on mobile */
  .event-faces-section .add-new-card .biometric-info {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: auto;
    font-weight: normal;
    color: var(--color-neutral-500);
    line-height: 1.2;
  }

  .event-faces-section .biometric-info {
    padding: 4px 0 0 0;
    border: none;
    background: transparent;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Mobile Biometric Badge - Smaller Icon */
  .biometric-item .bg-yellow-100 svg {
    width: 8px !important;
    height: 8px !important;
  }

  .biometric-item .bg-yellow-100 {
    font-size: 10px !important;
    padding: 2px 4px !important;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  /* Mobile Image Card Adjustments */
  .image-card {
    padding: 8px !important;
  }

  .image-card img {
    max-width: 150px !important;
    max-height: 150px !important;
  }
}
