/* ============================================
   TAMMKREIZ EVENT MAP STYLES
   Design moderne et élégant
   ============================================ */

.tk-event-map-container {
  display: flex;
  flex-direction: column;
  gap: var(--tk-space-6);
}

/* Search Wrapper */
.tk-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Error */
.tk-error-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.tk-error-alert {
  border-radius: var(--tk-radius-lg);
  border: none;
  box-shadow: var(--tk-shadow-md);
}

/* Loading State */
.tk-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: var(--tk-space-4);
}

.tk-loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--tk-gray-200);
  border-top-color: var(--tk-orange);
  border-radius: var(--tk-radius-full);
  animation: tk-spin 1s linear infinite;
}

@keyframes tk-spin {
  to { transform: rotate(360deg); }
}

.tk-loading-state p {
  color: var(--tk-gray-500);
  font-size: var(--tk-font-size-base);
}

/* Map & List Container */
.tk-map-list-container {
  background: var(--tk-white);
  border-radius: var(--tk-radius-xl);
  overflow: hidden;
  box-shadow: var(--tk-shadow-lg);
  border: 1px solid var(--tk-gray-100);
}

/* Mobile Toggle */
.tk-mobile-toggle {
  display: none;
  padding: var(--tk-space-3);
  background: var(--tk-gray-50);
  border-bottom: 1px solid var(--tk-gray-100);
  gap: var(--tk-space-2);
}

.tk-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tk-space-3);
  border: 2px solid var(--tk-gray-200);
  border-radius: var(--tk-radius-lg);
  background: var(--tk-white);
  color: var(--tk-gray-600);
  font-weight: var(--tk-font-weight-semibold);
  font-size: var(--tk-font-size-sm);
  cursor: pointer;
  transition: all var(--tk-transition-fast);
}

.tk-toggle-btn.active {
  background: linear-gradient(135deg, var(--tk-orange) 0%, var(--tk-orange-dark) 100%);
  border-color: var(--tk-orange);
  color: var(--tk-white);
}

.tk-toggle-btn:not(.active):hover {
  border-color: var(--tk-orange);
  color: var(--tk-orange);
}

/* Map Row */
.tk-map-row {
  min-height: 600px;
}

/* Events List Column */
.tk-events-list-col {
  height: 600px;
  border-right: 1px solid var(--tk-gray-100);
}

.tk-events-list {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* List Header */
.tk-events-list-header {
  padding: var(--tk-space-4) var(--tk-space-5);
  background: linear-gradient(135deg, var(--tk-blue) 0%, var(--tk-blue-dark) 100%);
  color: var(--tk-white);
}

.tk-events-count {
  display: flex;
  align-items: center;
  gap: var(--tk-space-1);
  font-size: var(--tk-font-size-base);
}

.tk-events-number {
  font-size: var(--tk-font-size-2xl);
  font-weight: var(--tk-font-weight-extrabold);
  margin-right: var(--tk-space-1);
}

/* List Body */
.tk-events-list-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--tk-space-2);
}

/* Custom scrollbar */
.tk-events-list-body::-webkit-scrollbar {
  width: 6px;
}

.tk-events-list-body::-webkit-scrollbar-track {
  background: var(--tk-gray-100);
}

.tk-events-list-body::-webkit-scrollbar-thumb {
  background: var(--tk-gray-300);
  border-radius: var(--tk-radius-full);
}

.tk-events-list-body::-webkit-scrollbar-thumb:hover {
  background: var(--tk-orange);
}

/* Empty State */
.tk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--tk-space-12);
  text-align: center;
}

.tk-empty-icon {
  width: 80px;
  height: 80px;
  background: var(--tk-gray-100);
  border-radius: var(--tk-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--tk-font-size-2xl);
  color: var(--tk-gray-400);
  margin-bottom: var(--tk-space-4);
}

.tk-empty-state h4 {
  font-size: var(--tk-font-size-lg);
  font-weight: var(--tk-font-weight-bold);
  color: var(--tk-gray-700);
  margin: 0 0 var(--tk-space-2);
}

.tk-empty-state p {
  font-size: var(--tk-font-size-sm);
  color: var(--tk-gray-500);
  margin: 0;
}

/* Event Item */
.tk-event-item {
  display: flex;
  align-items: center;
  gap: var(--tk-space-4);
  padding: var(--tk-space-4);
  margin: var(--tk-space-2);
  background: var(--tk-white);
  border-radius: var(--tk-radius-lg);
  border: 1px solid var(--tk-gray-100);
  cursor: pointer;
  transition: all var(--tk-transition-fast);
  animation: fadeInUp 0.4s ease both;
}

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

.tk-event-item:hover {
  border-color: var(--tk-orange);
  box-shadow: var(--tk-shadow-md);
  transform: translateX(4px);
}

/* Marker Number */
.tk-event-item-marker {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tk-orange) 0%, var(--tk-orange-dark) 100%);
  border-radius: var(--tk-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--tk-shadow-colored-orange);
}

.tk-marker-number {
  color: var(--tk-white);
  font-weight: var(--tk-font-weight-bold);
  font-size: var(--tk-font-size-sm);
}

/* Event Content */
.tk-event-item-content {
  flex: 1;
  min-width: 0;
}

.tk-event-type-badge {
  display: inline-block;
  padding: var(--tk-space-1) var(--tk-space-2);
  background: rgba(95, 195, 231, 0.15);
  color: var(--tk-blue-dark);
  font-size: var(--tk-font-size-xs);
  font-weight: var(--tk-font-weight-bold);
  border-radius: var(--tk-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--tk-space-1);
}

.tk-event-item-title {
  font-size: var(--tk-font-size-base);
  font-weight: var(--tk-font-weight-bold);
  color: var(--tk-gray-800);
  margin: 0 0 var(--tk-space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-event-item-date {
  display: flex;
  align-items: center;
  font-size: var(--tk-font-size-xs);
  color: var(--tk-gray-500);
  margin: 0;
  text-transform: capitalize;
}

/* Arrow */
.tk-event-item-arrow {
  color: var(--tk-gray-300);
  transition: all var(--tk-transition-fast);
}

.tk-event-item:hover .tk-event-item-arrow {
  color: var(--tk-orange);
  transform: translateX(4px);
}

/* Map Column */
.tk-map-col {
  position: relative;
  height: 600px;
}

.tk-map-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Map Counter */
.tk-map-counter {
  position: absolute;
  top: var(--tk-space-4);
  right: var(--tk-space-4);
  display: flex;
  align-items: center;
  padding: var(--tk-space-2) var(--tk-space-4);
  background: var(--tk-white);
  border-radius: var(--tk-radius-pill);
  box-shadow: var(--tk-shadow-lg);
  font-size: var(--tk-font-size-sm);
  font-weight: var(--tk-font-weight-bold);
  color: var(--tk-gray-700);
  z-index: 1000;
}

.tk-map-counter svg {
  color: var(--tk-orange);
}

/* Responsive */
@media (max-width: 991px) {
  .tk-mobile-toggle {
    display: flex;
  }

  .tk-events-list-col,
  .tk-map-col {
    height: 500px;
  }

  .tk-map-row {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .tk-search-wrapper {
    padding: 0 var(--tk-space-4);
  }

  .tk-events-list-col,
  .tk-map-col {
    height: 450px;
  }

  .tk-event-item {
    padding: var(--tk-space-3);
    gap: var(--tk-space-3);
  }

  .tk-event-item-marker {
    width: 36px;
    height: 36px;
  }

  .tk-events-list-header {
    padding: var(--tk-space-3) var(--tk-space-4);
  }
}

