/**
 * Privacy-Respecting NZ Map Styles
 * Lightweight, accessible, self-contained
 */

.nz-map-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 2rem 0;
}

.map-column {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.details-column {
  flex: 1;
  min-width: 300px;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.placeholder {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.placeholder i {
  font-size: 3rem;
  color: #999;
  margin-bottom: 1rem;
  display: block;
}

.location-details h3 {
  margin: 0 0 0.5rem 0;
  color: #1a237e;
  font-size: 1.5rem;
}

.location-details .region {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.address-box,
.coords-box {
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-radius: 4px;
  border-left: 4px solid #F8CB2E;
}

.address-box strong,
.coords-box strong {
  display: block;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.address-box p,
.coords-box p {
  margin: 0.5rem 0;
  color: #333;
}

.coords {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  background: #f0f0f0;
  padding: 0.5rem;
  border-radius: 3px;
  display: inline-block;
}

.copy-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn:hover {
  background: #45a049;
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn:focus {
  outline: 2px solid #1a237e;
  outline-offset: 2px;
}

.members,
.next-meetup {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #e3f2fd;
  border-radius: 4px;
  color: #1a237e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.members i,
.next-meetup i {
  font-size: 1.2rem;
}

.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #323232;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* SVG Map Styling */
.map-marker {
  transition: all 0.2s ease;
  cursor: pointer;
}

.map-marker:hover circle,
.map-marker:focus circle {
  r: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.map-marker.active circle {
  fill: #EE5007;
  r: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.map-marker:focus {
  outline: 2px solid #1a237e;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nz-map-wrapper {
    flex-direction: column;
  }
  
  .map-column,
  .details-column {
    max-width: 100%;
    width: 100%;
  }
  
  .copy-toast {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .copy-btn {
    display: none;
  }
  
  .copy-toast {
    display: none;
  }
  
  .nz-map-wrapper {
    page-break-inside: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .address-box,
  .coords-box {
    border-width: 2px;
    border-style: solid;
  }
  
  .map-marker circle {
    stroke-width: 3;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .map-marker,
  .copy-btn,
  .copy-toast {
    transition: none;
  }
  
  .map-marker:hover {
    transform: none;
  }
}
