/* YerBulan.tr - Ana Stil Dosyası */

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section {
  background: linear-gradient(135deg, #4a708b 0%, #104e8b 100%);
  color: white;
  padding: 20px 0;
  margin-bottom: 20px;
}

#map { 
  height: 500px; 
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.form-label { 
  font-weight: 600; 
  color: #495057;
}

.optional-label { 
  color: #6c757d; 
  font-size: 0.9em; 
}

.arama-section { 
  border: 2px solid #e9ecef; 
  border-radius: 15px; 
  padding: 25px; 
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.arama-section:hover { 
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.arama-section.active { 
  border-color: #0d6efd; 
  background: linear-gradient(135deg, #e7f1ff 0%, #f8f9ff 100%);
  transform: translateY(-3px);
}

#adres_section.active {
  border-color: #198754;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 12px 24px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-primary {
  background: linear-gradient(45deg, #4a708b, #104e8b);
  border: none;
}

#adres_sonuc {
  background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
  border: 1px solid #28a745;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  display: none;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
}

.mesafe-container {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-range {
  background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
}

/* Mobil için konum butonu stilleri */
.leaflet-control-location {
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leaflet-control-location button {
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.leaflet-control-location button:hover {
  background: #f8f9fa;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
  .hero-section {
    padding: 15px 0;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .arama-section {
    padding: 20px;
    margin-bottom: 15px;
  }
  
  #map {
    height: 400px;
    margin-top: 15px;
  }
  
  .mesafe-container {
    padding: 15px;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Loading animasyonu */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #3498db;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sonuç bilgi kutusu */
#sonuc_bilgi {
  border-radius: 10px;
  font-weight: 500;
}

/* Form kontrolleri */
.form-control:focus,
.form-select:focus {
  border-color: #4a708b;
  box-shadow: 0 0 0 0.2rem rgba(74, 112, 139, 0.25);
}

/* Info kartları */
.info-card {
  transition: transform 0.3s ease;
  border-radius: 15px;
}

.info-card:hover {
  transform: translateY(-5px);
}


/* Harita popup stilleri */
.leaflet-popup-content {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content h6 {
  color: #2c3e50;
  margin-bottom: 8px;
}

/* Mobil dokunmatik iyileştirmeler */
@media (max-width: 576px) {
  .btn {
    touch-action: manipulation;
    font-size: 0.9rem;
    padding: 10px 18px;
  }
  
  .form-control,
  .form-select {
    font-size: 16px; /* iOS zoom engellemek için */
  }
  
  .arama-section {
    padding: 15px;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}