/* Custom Styles for Arts & Rec Guide */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Location Button Enhancements */
.location-btn {
  display: block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  max-width: 120px;
  margin: 0 auto;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

.location-btn:active {
  transform: scale(0.98) !important;
}

/* Desktop sizing for location buttons */
@media (min-width: 768px) {
  .location-btn {
    max-width: 200px;
  }
}

/* Map Container Styles */
#map {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* For better mobile support */
}

/* Map Controls */
.map-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-control-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-control-btn:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

.map-control-btn:active {
  transform: scale(0.95);
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .map-controls {
    top: 0.5rem;
    left: 0.5rem;
  }

  .map-control-btn {
    padding: 0.5rem;
  }
}

/* MapKit Annotation Customization */
.custom-annotation {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: #1f2937;
}

/* POI Name Label Styling */
.poi-name-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 11px;
  color: #000000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  margin-top: 2px;
}

/* Info Callout Styling */
.mapkit-callout {
  max-width: 300px;
}

.mapkit-callout-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
}

.mapkit-callout-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

/* POI and Trail Callout Styles */
.poi-callout {
  padding: 12px;
  max-width: 250px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.callout-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
}

.callout-category {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.callout-description {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.callout-info {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-style: italic;
  color: #6b7280;
}

.callout-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 8px;
  display: block;
}

/* Layers Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #f0f0f4;
  border-radius: 1rem;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.close-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.layer-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.control-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  /* border: 1px solid #d1d5db; */
  border-radius: 20px;
  background-color: #dedee3;
  color: #007AFF;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

/* .control-btn:hover {
  background-color: #f9fafb;
  border-color: #007AFF;
} */

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

.layer-list {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.layer-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 0.75rem;
  border-bottom: 1px solid #d1d5db;
}

.layer-item:last-child {
  border-bottom: none;
}

.layer-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.layer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.layer-item span {
  font-size: 1rem;
  color: #1f2937;
  user-select: none;
  flex: 1;
}

.layer-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  cursor: pointer;
  accent-color: #007AFF;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background-color: white;
  position: relative;
  transition: all 0.2s;
}

.layer-checkbox:checked {
  background-color: #007AFF;
  border-color: #007AFF;
}

.layer-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
}

.help-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;


  gap: 0.75rem;

}

.privacy-subhead {
font-weight: 600;
font-size: 1.125rem;
  padding-top: 0.5rem;


}

.blue-link {
  color: #007AFF;
}


.obvious-link {
  color: #007AFF;
  text-decoration: underline;
}

.subtle-link {
  color: gray;
}

.subtle-link:hover {
  color: #007AFF;
}

.info-text {
  font-size: 1rem;
}

.info-text-subtle {
  font-size: 1rem;
  color: #404040;
  font-style: italic;
}

hr {
  border-color: lightgray;
  border-width: 0.25px;
}

.pill-button {
  display: inline-block;
  background-color: #007AFF;
  color: white;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s;
}

/* .pill-button:hover {
  background-color: #0056b3;
} */
