/* ========================================
   HIZMET DETAY - HARITA & UZMAN SAYFASI
   ======================================== */

/* Map Header */
.map-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.05), rgba(13,148,136,0.02));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13,148,136,0.1);
}
.map-header-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.map-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}
.map-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Hizmet Detay Section */
.hizmet-detay-section {
  padding: 1.8rem 0 5rem;
}

/* Map Wrapper */
.map-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-container {
  position: relative;
  width: 100%;
}

/* SVG Styles */
#svg-turkiye-haritasi {
  width: 100%;
  height: auto;
  display: block;
}

#svg-turkiye-haritasi g[data-iladi] {
  cursor: pointer;
}

#svg-turkiye-haritasi g[data-iladi] path {
  fill: #dbeafe;
  stroke: #fff;
  stroke-width: 1.2;
  transition: fill 0.25s ease, filter 0.25s ease;
}

#svg-turkiye-haritasi g[data-iladi]:hover path {
  fill: #7dd3c8;
  filter: drop-shadow(0 2px 4px rgba(13,148,136,0.3));
}

#svg-turkiye-haritasi g[data-iladi].selected path {
  fill: #0d9488 !important;
  filter: drop-shadow(0 3px 8px rgba(13,148,136,0.4));
}

/* Tooltip */
.il-tooltip {
  position: fixed;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  white-space: nowrap;
  transform: translateX(-50%);
  letter-spacing: 0.3px;
}
.il-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

/* Filter Area */
.filter-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.filter-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.filter-card:hover {
  box-shadow: var(--shadow-md);
}

.filter-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.filter-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.filter-card select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: auto;
}

.filter-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.filter-card select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.selected-city {
  padding: 0.7rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 0.95rem;
  color: var(--text-primary);
  min-height: 2.6rem;
  display: flex;
  align-items: center;
}
.selected-city.active {
  border-color: var(--primary);
  background: rgba(13,148,136,0.05);
  font-weight: 700;
  color: var(--primary-dark);
}
.placeholder-text {
  color: var(--text-secondary);
  font-style: italic;
}

/* Results Header */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.results-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
.results-count {
  padding: 0.4rem 1rem;
  background: rgba(13,148,136,0.08);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
}

/* Professionals Grid */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Professional Card */
.prof-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.prof-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.prof-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.prof-card:hover::before {
  opacity: 1;
}

/* Status Badge */
.prof-status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.prof-status.online {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.prof-status.offline {
  background: rgba(156,163,175,0.15);
  color: #6b7280;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.online .status-dot {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  animation: pulse-green 2s infinite;
}
.offline .status-dot {
  background: #9CA3AF;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 12px rgba(16,185,129,0.8); }
}

/* Prof Header */
.prof-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}
.prof-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.prof-avatar.teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.prof-avatar.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.prof-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.prof-avatar.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.prof-avatar.pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.prof-avatar.green { background: linear-gradient(135deg, #22c55e, #16a34a); }

.prof-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.prof-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Prof Meta */
.prof-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.prof-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* CTA Button */
.prof-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.empty-state p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-area {
    grid-template-columns: 1fr;
  }
  .professionals-grid {
    grid-template-columns: 1fr;
  }
  .map-header {
    flex-direction: column;
    text-align: center;
  }
  .results-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}
