/* Toilet Finder Styles */
.tool-header {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.tool-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tool-subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}

.tool-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 900px) {
  .tool-container {
    grid-template-columns: 1fr;
  }
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tool-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-section h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-primary {
  background: #0066cc;
  color: white;
}

.btn-primary:hover {
  background: #0055aa;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  font-size: 1.1rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: #999;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
  font-size: 0.9rem;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 10px;
}

input:focus, select:focus {
  outline: none;
  border-color: #0066cc;
}

.map-container {
  position: relative;
}

#map {
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  #map {
    height: 400px;
  }
}



/* Summary Stats */
.results-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.summary-stat {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0066cc;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

/* Results List */
.results-list {
  max-height: 400px;
  overflow-y: auto;
}

.result-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.result-card:hover {
  border-color: #0066cc;
  box-shadow: 0 2px 8px rgba(0,102,204,0.15);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.result-name {
  font-weight: 600;
  color: #333;
}

.result-distance {
  text-align: right;
}

.distance-value {
  display: block;
  font-weight: 600;
  color: #0066cc;
}

.walk-time {
  font-size: 0.8rem;
  color: #666;
}

.result-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.result-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: #e3f2fd;
  color: #0066cc;
}

.tag.free { background: #e8f5e9; color: #2e7d32; }
.tag.wheelchair { background: #fff3e0; color: #e65100; }
.tag.baby { background: #fce4ec; color: #c2185b; }

.result-actions {
  margin-top: 10px;
}

.btn-directions {
  display: inline-block;
  padding: 6px 12px;
  background: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
}

.btn-directions:hover {
  background: #0055aa;
}

/* Loading */
.loading-indicator {
  text-align: center;
  padding: 30px;
  color: #666;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

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

/* Map Markers - FIXED */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

.user-marker {
  font-size: 32px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.toilet-marker {
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border: 2px solid #0066cc;
}

.toilet-marker.wheelchair {
  border-color: #e65100;
}

.toilet-marker.baby {
  border-color: #c2185b;
}

/* Popup Styles - FIXED */
.leaflet-popup-content {
  margin: 12px;
  min-width: 180px;
}

.popup-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

.popup-facilities {
  margin: 8px 0;
  font-size: 1.1rem;
}

.popup-directions {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #0066cc;
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.popup-directions:hover {
  background: #0055aa;
  color: white !important;
  text-decoration: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
}

.toast.error { background: #ef4444; }
.toast.success { background: #22c55e; }

/* Hidden */
.hidden {
  display: none !important;
}

/* SEO Content */
.seo-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.content-section {
  margin-bottom: 30px;
}

.content-section h2 {
  color: #333;
  margin-bottom: 10px;
}

.content-section p,
.content-section li {
  color: #555;
  line-height: 1.6;
}

.content-section ul {
  margin-left: 20px;
}

.content-section a {
  color: #0066cc;
}

.data-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.data-note a {
  color: #0066cc;
}
