/* Astrokartografi arayüz katmanı (2026-10-31): yakın çizgiler, en iyi yerler, çizgi etiketleri, gelişmiş ayarlar.
   TR ve EN sayfa ortak kullanır. astro-ui.css'e dokunmaz. */

/* Açılır pencereler: düz, opak, net kenarlı (eski hali harita üstünde soluk görünüyordu) */
.leaflet-popup-content-wrapper { background: #FFFFFF; border: 1px solid #C9A962; box-shadow: 0 8px 26px rgba(10, 22, 40, .32); }
.leaflet-popup-tip { background: #FFFFFF; border: 1px solid #C9A962; }
/* Solma geçişi kapalı: harita kayarken (autopan) pencere uzun süre yarı saydam kalıyordu */
.leaflet-fade-anim .leaflet-popup { transition: none; }
.leaflet-popup-content .acgx-birth-line { display: block; font-size: 13px; color: #1A2E5E; margin-top: 2px; }

/* Yakın çizgiler penceresi */
.acgx-pop h4 { margin: 0 22px 2px 0; }
.acgx-coord { font-size: 11.5px; color: #566383; margin-bottom: 8px; }
.acgx-lead { font-size: 12px; font-weight: 600; color: #7A5F1A; margin-bottom: 4px; }
.acgx-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.acgx-list li + li { border-top: 1px solid #EDE5D6; }
.acgx-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 4px; margin: 0;
  font: inherit; color: #0A1628; cursor: pointer; border-radius: 6px;
}
button.acgx-item:hover, button.acgx-item:focus-visible { background: rgba(201, 169, 98, .16); outline: none; }
.acgx-item.acgx-static { cursor: default; }
.acgx-head { display: flex; align-items: baseline; gap: 6px; }
.acgx-head strong { font-weight: 700; font-size: 13.5px; }
.acgx-glyph { font-size: 16px; line-height: 1; min-width: 16px; text-align: center; }
.acgx-km { margin-left: auto; font-size: 12px; font-weight: 600; color: #3A4A72; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acgx-mean { display: block; font-size: 12px; line-height: 1.45; color: #3A4A72; margin-top: 2px; }
.acgx-note { font-size: 11.5px; color: #566383; margin-top: 6px; line-height: 1.45; }
.acgx-empty { font-size: 13px; color: #3A4A72; margin: 4px 0 0; line-height: 1.5; }
.acgx-angles { font-size: 11.5px; color: #566383; margin-top: 8px; padding-top: 6px; border-top: 1px solid #EDE5D6; }

/* Panel: yer sorgula + en iyi yerler */
.acgx-section[hidden] { display: none; }
.acgx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.acgx-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 11px;
  border: 1px solid var(--field-bd); border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 600 12.5px 'Raleway', sans-serif; cursor: pointer;
}
.acgx-chip[aria-pressed="true"] { background: var(--gold-wash); border-color: var(--gold-ink); color: var(--ink); }
.acgx-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.acgx-chip .acgx-glyph { font-size: 15px; }
.acgx-best { list-style: none; margin: 0; padding: 0; }
.acgx-best li + li { border-top: 1px solid var(--line); }
.acgx-best .acgx-item { color: var(--ink); padding: 8px 6px; }
.acgx-best .acgx-km { color: var(--ink-2); }
.acgx-best .acgx-mean { color: var(--ink-2); }
.acgx-best .acgx-empty { color: var(--ink-2); padding: 4px 0; }
.geocode-results .item { display: flex; flex-direction: column; }
.geocode-results .item.kbd { background: #F6F1E7; }
.geocode-results .grp { padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7A5F1A; background: #FBFAF7; border-bottom: 1px solid #EDE5D6; }

/* Gelişmiş ayarlar */
details.acgx-adv > .fold-body .check-grid { margin-bottom: 10px; }
details.acgx-adv .acgx-sub { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 6px 0 4px; }

/* Çizgi etiketleri */
.acgx-lbl { background: none; border: 0; }
.acgx-lbl-in {
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  padding: 1px 6px 1px 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--c, #1A2E5E); border-left-width: 3px;
  font: 700 11px/16px 'Raleway', sans-serif; color: #0A1628; letter-spacing: .02em;
  box-shadow: 0 1px 3px rgba(10, 22, 40, .18); cursor: pointer;
}
.acgx-lbl-in .g { color: var(--c, #1A2E5E); font-size: 13px; line-height: 1; }
@media (max-width: 768px) {
  .acgx-lbl-in { font-size: 10px; padding: 0 4px 0 3px; }
  .acgx-list { max-height: 210px; }
}
details.acgx-adv .acgx-mod-rozet { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; background: var(--gold, #C9A962); color: #0A1628; vertical-align: middle; }
details.acgx-adv .acgx-mod-rozet[hidden] { display: none; }
details.acgx-adv .mode-selector { margin: 0 0 8px; }
.acgx-best-alt { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.acgx-best-alt .acgx-daha { margin: 0; align-self: flex-start; }
.acgx-best-alt .acgx-daha[hidden] { display: none; }
.acgx-genis { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.4; margin: 0; }
.acgx-genis input { margin-top: 2px; flex: 0 0 auto; }

/* Sade akış: form / sonuç görünümleri */
.acgx-ac { margin: 4px 0 14px; }
.acgx-ac label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

.acgx-ozet { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; color: var(--ink); }
.acgx-degistir { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.acgx-degistir:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#acgx-sonuc .acgx-araclar { margin-top: 16px; }
.acgx-stil { position: absolute; left: 10px; top: 84px; z-index: 800; display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(10, 22, 40, .18); border-radius: 8px; box-shadow: 0 1px 4px rgba(10, 22, 40, .15); font-size: 12px; color: #0A1628; }
.acgx-stil label { margin: 0; font-size: 12px; font-weight: 600; color: #0A1628; }
.acgx-stil select { width: auto; min-width: 0; margin: 0; padding: 3px 6px; font-size: 12px; height: auto; }
/* Giriş metni her ekranda iki satır, "Devamını oku" ile açılır; "Nasıl kullanılır?" aynı satırda */
.panel .lede:not(.open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.panel .lede-more { display: inline-block; background: none; border: 0; padding: 0; margin: 0 14px 12px 0; font: inherit; font-size: 12.5px; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.panel .acgx-tur { display: inline-block; margin: 0 0 12px; }
.panel.acgx-sonucta > .lede, .panel.acgx-sonucta > .lede-more, .panel.acgx-sonucta > .acgx-tur { display: none !important; }
@media (max-width: 768px) {
  .panel.open ~ #map .acgx-stil { display: none; }
  .acgx-stil { top: 74px; padding: 3px 4px 3px 8px; }
}
