/* Ana sayfa Türkiye haritası seçicisi */
.map-picker {
  display: grid;
  gap: 18px;
}
.map-search-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.combo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.combo > .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.combo > .input {
  padding-left: 46px;
  box-shadow: var(--shadow-sm);
}
.combo-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
}
.combo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}
.combo-list li small {
  color: var(--text-3);
  font-weight: 500;
}
.combo-list li mark {
  background: none;
  color: var(--brand);
  font-weight: 800;
}
.combo-list li[aria-selected='true'],
.combo-list li:hover {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.combo-list .combo-empty {
  color: var(--text-3);
  font-weight: 500;
  cursor: default;
}
.combo-list .combo-empty:hover {
  background: none;
  color: var(--text-3);
}
.map-hint {
  margin: 8px 2px 0;
  font-size: 0.85rem;
  color: var(--text-3);
  display: flex;
  gap: 6px;
  align-items: center;
}

.map-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 960px) {
  .map-body {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.map-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(8px, 2vw, 20px);
  box-shadow: var(--shadow-xs);
}
.tr-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.map-il path {
  fill: var(--surface-3);
  stroke: var(--surface);
  stroke-width: 1.1;
  stroke-linejoin: round;
  transition: fill 0.15s, filter 0.15s;
  cursor: pointer;
}
.map-il.lv-1 path {
  fill: color-mix(in srgb, var(--brand) 22%, var(--surface-3));
}
.map-il.lv-2 path {
  fill: color-mix(in srgb, var(--brand) 40%, var(--surface-3));
}
.map-il.lv-3 path {
  fill: color-mix(in srgb, var(--brand) 62%, var(--surface-3));
}
.map-il.lv-4 path {
  fill: color-mix(in srgb, var(--brand) 85%, var(--surface-3));
}
.map-il:hover path,
.map-il:focus-visible path {
  fill: var(--reward);
}
.map-il:focus {
  outline: none;
}
.map-il:focus-visible path {
  stroke: var(--text);
  stroke-width: 2;
}
.map-il.is-selected path {
  fill: var(--lost);
  stroke: var(--surface);
  stroke-width: 1.6;
}
.tr-map:has(.is-selected) .map-il:not(.is-selected):not(:hover) path {
  opacity: 0.72;
}
.map-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--text);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.map-tooltip span {
  font-weight: 500;
  opacity: 0.8;
  margin-left: 6px;
}
.map-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
}
.map-legend i {
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: var(--surface-3);
  display: inline-block;
}
.map-legend i.lv-1 {
  background: color-mix(in srgb, var(--brand) 22%, var(--surface-3));
}
.map-legend i.lv-2 {
  background: color-mix(in srgb, var(--brand) 40%, var(--surface-3));
}
.map-legend i.lv-3 {
  background: color-mix(in srgb, var(--brand) 62%, var(--surface-3));
}
.map-legend i.lv-4 {
  background: color-mix(in srgb, var(--brand) 85%, var(--surface-3));
}

.map-panel {
  padding: 20px;
}
@media (min-width: 960px) {
  .map-panel {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}
.map-panel-empty h3 {
  margin: 12px 0 4px;
}
.map-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.map-panel-form {
  display: grid;
  gap: 14px;
}
.map-panel-title {
  margin: 0;
  font-size: 1.5rem;
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}
.seg label {
  position: relative;
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  text-align: center;
  padding: 8px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-2);
}
.seg input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
}
@media (max-width: 639px) {
  .map-search-form .btn-lg {
    padding-inline: 16px;
  }
  .map-legend {
    justify-content: center;
  }
}

/* Hayvan sitesi: 5 seçenekli tür seçimi (Tümü/Kedi/Köpek/Kuş/Diğer) */
.seg.seg-5 {
  grid-template-columns: repeat(5, 1fr);
}
.seg.seg-5 span {
  padding: 8px 2px;
  font-size: 0.82rem;
}
