/* /afet-risk-analizi/ (2026-11-05) */
.afr-page { max-width: 1240px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; color: #0f172a; }
.afr-page .card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.pp-imar-main .afr-page .afr-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px 22px;
  background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 60%, #7c2d12 140%); color: #fff; border: none; }
.pp-imar-main .afr-hero h1 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.afr-hero p { margin: 0 0 12px; color: #dbe4f0; max-width: 640px; }
.afr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.afr-chips li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 5px 11px; font-size: .85rem; }
.afr-chips i { color: #fbbf24; margin-right: 4px; }
.afr-hero__price { flex: none; text-align: center; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 14px 18px; }
.afr-hero__price b { display: block; font-size: 1.3rem; color: #fbbf24; }
.afr-hero__price span { font-size: .8rem; color: #dbe4f0; }
.afr-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.afr-map-card { overflow: hidden; }
.afr-map { height: 560px; }
.afr-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #e2e8f0; font-size: .9rem; color: #334155; }
.afr-map-alt { margin: 0; padding: 0 14px 12px; font-size: .82rem; color: #64748b; }
.afr-panel { padding: 16px; min-height: 300px; }
.afr-empty { text-align: center; color: #475569; padding: 40px 10px; }
.afr-empty i { font-size: 2.4rem; color: #94a3b8; }
.afr-muted { color: #64748b; font-size: .82rem; margin-top: 6px; }
.afr-parcel { border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 12px; }
.afr-parcel__title { font-weight: 700; font-size: 1.02rem; }
.afr-parcel__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .85rem; color: #475569; }
.afr-btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 10px; padding: 11px 16px; font-weight: 600;
  background: #0f2744; color: #fff; cursor: pointer; text-decoration: none; font-size: .95rem; }
.afr-btn:hover { background: #1e3a5f; color: #fff; }
.afr-btn:disabled { opacity: .6; cursor: wait; }
.afr-btn--ghost { background: #f1f5f9; color: #0f2744; padding: 7px 12px; font-size: .85rem; }
.afr-btn--ghost:hover { background: #e2e8f0; color: #0f2744; }
.afr-status { margin: 10px 0; font-size: .88rem; color: #334155; }
.afr-status--err { color: #b91c1c; }
.afr-res-hero { border-radius: 12px; padding: 14px; background: color-mix(in srgb, var(--tone) 9%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 30%, #fff); }
.afr-res-hero__label { font-size: .75rem; letter-spacing: .06em; color: #475569; font-weight: 700; }
.afr-res-hero__value { font-size: 1.7rem; font-weight: 800; color: var(--tone); }
.afr-res-hero__chip { display: inline-block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--tone); }
.afr-res-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.afr-res-box { background: #fff; border-radius: 8px; padding: 7px 6px; text-align: center; border: 1px solid #e2e8f0; }
.afr-res-box span { display: block; font-size: .72rem; color: #64748b; }
.afr-res-box b { font-size: .86rem; }
.afr-res-box[data-level="Düşük"] b { color: #16a34a; }
.afr-res-box[data-level="Orta"] b { color: #ca8a04; }
.afr-res-box[data-level="Yüksek"] b { color: #ea580c; }
.afr-res-box[data-level="Çok yüksek"] b { color: #b91c1c; }
.afr-sec { margin-top: 16px; }
.afr-sec h3 { font-size: .95rem; margin: 0 0 8px; }
.afr-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: .86rem; }
.afr-row span { color: #475569; }
.afr-row b { text-align: right; font-weight: 600; }
.afr-note { font-size: .84rem; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; background: #f1f5f9; color: #334155; }
.afr-note--neg { background: #fef2f2; color: #991b1b; }
.afr-note--pos { background: #f0fdf4; color: #166534; }
.afr-svg svg { width: 100%; height: auto; border-radius: 10px; display: block; }
.afr-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: .78rem; color: #475569; }
.afr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.afr-info { padding: 18px 20px; }
.afr-info h2 { margin: 0 0 12px; font-size: 1.15rem; }
.afr-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.afr-info h3 { margin: 0 0 4px; font-size: .95rem; color: #0f2744; }
.afr-info p { margin: 0; font-size: .86rem; color: #475569; }
@media (max-width: 900px) {
  .afr-hero { flex-direction: column; align-items: flex-start; }
  .afr-layout { grid-template-columns: 1fr; }
  .afr-map { height: 420px; }
  .afr-res-boxes { grid-template-columns: repeat(2, 1fr); }
}
/* 2026-11-05 b: ayrıntı kartları harita + panelin altında, fay katmanı, bilgi kartı */
.afr-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.afr-details[hidden] { display: none; }
.afr-detail { padding: 14px 16px; }
.afr-detail--wide { grid-column: 1 / -1; }
.afr-detail .afr-sec { margin-top: 0; }
.afr-detail .afr-svg svg { max-height: 460px; object-fit: contain; }
.afr-map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 14px 10px; font-size: .76rem; color: #475569; }
.afr-map-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; }
.afr-map-legend__hint { color: #64748b; font-style: italic; }
.afr-popup .mapboxgl-popup-content { border-radius: 10px; padding: 10px 12px 8px; box-shadow: 0 6px 20px rgba(15, 23, 42, .25); }
.afr-pop { font-size: .82rem; color: #0f172a; min-width: 200px; }
.afr-pop__title { font-weight: 700; font-size: .9rem; margin: 0 14px 6px 0; display: flex; align-items: center; gap: 6px; }
.afr-pop__title i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.afr-pop__row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed #e2e8f0; }
.afr-pop__row span { color: #64748b; }
.afr-pop__row b { font-weight: 600; text-align: right; }
.afr-pop__src { margin-top: 5px; font-size: .72rem; color: #94a3b8; }
