/*
 * Adalet Portal - Nöbetçi Noter | ön yüz stilleri
 * Yazar: Cihan Aksu
 * Telif hakkı Cihan Aksu / Adaletportal.com'a aittir. İzinsiz kopyalanamaz.
 *
 * Ölçüler ve yapı, temanın nöbetçi eczaneler sayfasıyla (eczane-v2) aynıdır;
 * yalnızca vurgu rengi TNB yeşilidir.
 */

.apnn {
	--e-surface: var(--kan-bg-white-color, #fff);
	--e-text: var(--kan-text-color, #111827);
	--e-muted: var(--kan-text-color-muted, rgba(107, 114, 128, .95));
	--e-border: var(--kan-border-color2, rgba(91, 97, 110, .2));
	--e-radius: var(--kan-block-radius, 12px);
	--e-accent: #00523f; /* ca */
	--e-accent-soft: color-mix(in srgb, var(--e-accent) 12%, var(--e-surface));
	--e-inverse: #161616;
	--e-on-inverse: #fff;

	box-sizing: border-box;
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: calc(var(--e-radius) * 3.2);
	background: var(--e-surface);
	color: var(--e-text);
	box-shadow: var(--kan-block-shadow, 0 0 5px rgba(50, 53, 61, .1));
}
.apnn *, .apnn *::before, .apnn *::after { box-sizing: border-box; }

/* Üstteki bilgi kutusu (temanın kanews-response bileşeni) */
.apnn-v2__notice { margin: 14px 14px 0; border-radius: calc(var(--e-radius) * 2); }

/* Filtre satırı */
.apnn-v2__filtre {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: end;
	padding: 14px 14px 4px;
}
.apnn-v2__alan label { display: block; margin: 0 0 5px 4px; font-size: 12px; font-weight: 700; color: var(--e-muted); }
.apnn-v2__secim { position: relative; }
.apnn-v2__secim::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
	border-right: 2px solid var(--e-muted); border-bottom: 2px solid var(--e-muted); transform: rotate(45deg); pointer-events: none;
}
.apnn-v2__alan select, .apnn-v2__alan input[type="date"] {
	appearance: none; -webkit-appearance: none; width: 100%; height: 46px; margin: 0; padding: 0 40px 0 16px;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--e-text); background-color: var(--e-surface);
	border: 1px solid color-mix(in srgb, var(--e-border) 75%, transparent); border-radius: 999px; cursor: pointer;
	transition: border-color .18s, box-shadow .18s;
}
.apnn-v2__alan input[type="date"] { padding-right: 14px; min-width: 0; }
.dark-mode .apnn-v2__alan input[type="date"], .apnn.apnn-dark .apnn-v2__alan input[type="date"] { color-scheme: dark; }
.apnn-v2__alan select:hover, .apnn-v2__alan input[type="date"]:hover { border-color: color-mix(in srgb, var(--e-accent) 45%, var(--e-border)); }
.apnn-v2__alan select:focus-visible, .apnn-v2__alan input[type="date"]:focus-visible, .apnn-v2__dugme:focus-visible, .apnn-v2__action:focus-visible {
	outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent);
}
.apnn-v2__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.apnn-v2__dugme {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
	font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: var(--e-accent);
	border: 0; border-radius: 999px; cursor: pointer;
	box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--e-accent) 55%, transparent);
	transition: transform .18s, opacity .18s, box-shadow .18s;
}
.apnn-v2__dugme:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--e-accent) 60%, transparent); }
.apnn-v2__dugme { min-width: 124px; }
.apnn-v2__dugme.is-yukleniyor svg { display: none; }
.apnn-v2__dugme.is-yukleniyor::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: apnn-don .7s linear infinite; }
@keyframes apnn-don { to { transform: rotate(360deg); } }
.apnn-v2__dugme[disabled] { opacity: .6; cursor: wait; box-shadow: none; }

/* İl seçici (aranabilir açılır liste) */
.apnn-v2__secim.is-gelismis::after { display: none; }
.apnn-v2__secim.is-gelismis select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.apnn-cb { position: relative; }
.apnn-cb__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 46px; margin: 0; padding: 0 16px;
	font: inherit; font-size: 14px; font-weight: 600; text-align: left; color: var(--e-text); background: var(--e-surface);
	border: 1px solid color-mix(in srgb, var(--e-border) 75%, transparent); border-radius: 999px; cursor: pointer;
	transition: border-color .18s, box-shadow .18s;
}
.apnn-cb__btn:hover { border-color: color-mix(in srgb, var(--e-accent) 45%, var(--e-border)); }
.apnn-cb__btn:focus-visible, .apnn-cb.is-acik .apnn-cb__btn { outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-cb__deger { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.apnn-cb__deger.is-bos { color: var(--e-muted); font-weight: 500; }
.apnn-cb__ok { flex: 0 0 auto; color: var(--e-muted); transition: transform .18s; }
.apnn-cb.is-acik .apnn-cb__ok { transform: rotate(180deg); color: var(--e-accent); }
.apnn-cb__panel {
	position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column;
	background: var(--e-surface); border: 1px solid color-mix(in srgb, var(--e-border) 70%, transparent); border-radius: 18px;
	box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .08); overflow: hidden;
	animation: apnn-panel .14s ease-out;
}
.apnn-cb__panel[hidden] { display: none; }
@keyframes apnn-panel { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.apnn-cb__ara { position: relative; padding: 10px 10px 6px; }
.apnn-cb__ara svg { position: absolute; left: 24px; top: 50%; margin-top: -8px; color: var(--e-muted); pointer-events: none; }
.apnn-cb__ara input {
	width: 100%; height: 40px; margin: 0; padding: 0 14px 0 38px; font: inherit; font-size: 14px; color: var(--e-text);
	background: var(--e-accent-soft); border: 1px solid transparent; border-radius: 999px; outline: none; box-shadow: none;
}
.apnn-cb__ara input:focus { border-color: var(--e-accent); background: var(--e-surface); }
.apnn-cb__liste { max-height: 264px; margin: 0; padding: 4px 8px 8px; overflow-y: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; }
.apnn-cb__liste li {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin: 0; padding: 0 12px;
	font-size: 14px; font-weight: 500; color: var(--e-text); border-radius: 12px; cursor: pointer;
}
.apnn-cb__liste li mark { padding: 0; font-weight: 800; color: var(--e-accent); background: transparent; }
.apnn-cb__liste li.is-aktif { background: var(--e-accent-soft); }
.apnn-cb__liste li[aria-selected="true"] { font-weight: 700; color: var(--e-accent); }
.dark-mode .apnn-cb__liste li[aria-selected="true"], .dark-mode .apnn-cb__liste li mark { color: #6ee7b7; }
.apnn-cb__liste li svg { flex: 0 0 auto; opacity: 0; }
.apnn-cb__liste li[aria-selected="true"] svg { opacity: 1; }
.apnn-cb__bos { padding: 22px 14px 26px; text-align: center; font-size: 13px; color: var(--e-muted); }
.apnn-cb__bos[hidden] { display: none; }
.apnn-cb__perde { display: none; }
html.apnn-kilit, html.apnn-kilit body { overflow: hidden; }
@media (max-width: 576px) {
	.apnn-cb__perde { position: fixed; inset: 0; z-index: 99998; background: rgba(15, 23, 42, .5); }
	.apnn-cb.is-acik .apnn-cb__perde { display: block; }
	.apnn-cb__panel {
		position: fixed; z-index: 99999; left: 0; right: 0; top: auto; bottom: 0; max-height: 78vh; padding-bottom: env(safe-area-inset-bottom, 0px);
		border: 0; border-radius: 22px 22px 0 0; animation: apnn-sheet .2s ease-out;
	}
	.apnn-cb__panel::before { content: ""; align-self: center; width: 40px; height: 4px; margin: 10px 0 0; border-radius: 4px; background: color-mix(in srgb, var(--e-border) 90%, transparent); }
	.apnn-cb__liste { max-height: none; flex: 1 1 auto; }
	.apnn-cb__ara input { font-size: 16px; } /* iOS odaklanınca yakınlaştırmasın */
	.apnn-cb__panel { overscroll-behavior: contain; }
	.apnn-cb__liste li { min-height: 46px; }
}
@keyframes apnn-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Hero */
.apnn-v2__hero { margin-top: 10px; padding: 16px; background: linear-gradient(135deg, #00523f 0%, #00634b 55%, #007458 100%); }
.apnn-v2__hero-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; }
.apnn-v2__hero-count { color: #fff; font-weight: 900; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.apnn-v2__hero-label { margin-top: 4px; color: rgba(255, 255, 255, .92); font-weight: 700; font-size: 14px; }
.apnn-v2__hero-place { margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: 13px; font-weight: 600; }
.apnn-v2__hero-art {
	flex: 0 0 88px; display: flex; align-items: center; justify-content: center; color: #fff;
	border-radius: calc(var(--e-radius) * 2.4); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .22);
}

/* Gövde */
.apnn-v2__body { padding: 18px 16px 20px; border-top: 1px solid color-mix(in srgb, var(--e-border) 35%, transparent); transition: opacity .15s; }
.apnn-v2__body.is-loading { opacity: .55; pointer-events: none; }
.apnn-v2__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }

/* Kart */
.apnn-v2__card {
	display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px;
	border-radius: calc(var(--e-radius) * 2.2); border: 1px solid color-mix(in srgb, var(--e-border) 55%, transparent);
	background: color-mix(in srgb, var(--e-surface) 92%, var(--e-accent-soft));
}
.apnn-v2__card-head { display: flex; align-items: center; gap: 10px; background: linear-gradient(to right, var(--e-accent-soft), var(--e-surface)); }
.apnn-v2__card-icon { flex: 0 0 36px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--e-accent-soft); color: var(--e-accent); }
.dark-mode .apnn-v2__card-icon { color: #6ee7b7; }
.apnn .apnn-v2__card-name { margin: 0; padding: 0; font-size: 15px !important; line-height: 1.35 !important; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--e-text); }
.apnn-v2__card-address { font-size: 13px; line-height: 1.5; color: var(--e-muted); word-break: break-word; }
.apnn-v2__card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.apnn-v2__card-sag { display: inline-flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
.apnn-v2__card-district { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--e-accent-soft); color: var(--e-text); font-size: 12px; line-height: 1.4; font-weight: 700; }
.apnn-v2__card-district svg { color: var(--e-accent); }
.dark-mode .apnn-v2__card-district svg { color: #6ee7b7; }
.apnn-v2__card-hours { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--e-accent-soft); font-size: 12px; line-height: 1.4; }
.apnn-v2__card-hours-label { color: var(--e-muted); font-weight: 600; }
.apnn-v2__card-hours-value { color: var(--e-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.apnn-v2__card-acik { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11.5px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.apnn-v2__card-acik::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.dark-mode .apnn-v2__card-acik { background: rgba(74, 222, 128, .16); color: #86efac; }
.dark-mode .apnn-v2__card-acik::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.apnn-v2__card-actions { display: flex; gap: 8px; margin-top: auto; }
.apnn-v2__action {
	flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 10px;
	border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform .18s, opacity .18s;
}
.apnn-v2__action:hover { transform: translateY(-1px); opacity: .92; }
.apnn-v2__action--phone { background: var(--e-inverse); color: var(--e-on-inverse) !important; }
.dark-mode .apnn-v2__action--phone { background: #2a2f36; }
.apnn-v2__action--map { background: var(--e-accent); color: #fff !important; }

/* Mesafe rozeti (en yakın nöbetçiler) */
.apnn-v2__card-head .apnn-v2__card-distance { flex: 0 0 auto; margin: 0 8px 0 auto; }
.apnn-v2__card-name { min-width: 0; }
.apnn-v2__card-distance { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--e-text); color: var(--e-surface); font-size: 12px; line-height: 1.4; font-weight: 700; font-variant-numeric: tabular-nums; }
.apnn-v2__yakin { margin-top: 28px; padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--e-border) 45%, transparent); }
.apnn .apnn-v2__yakin-baslik, .apnn .apnn-v2__yakin-not { text-align: center; }
.apnn .apnn-v2__yakin-baslik { margin: 0 0 2px; padding: 0; font-size: 16px !important; font-weight: 700; line-height: 1.35 !important; letter-spacing: 0; text-transform: none; color: var(--e-text); }
.apnn .apnn-v2__yakin-not { margin: 0 0 16px; font-size: 12px !important; line-height: 1.5; color: var(--e-muted); }

/* Boş durum */
.apnn-v2__bos {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 28px; text-align: center;
	border-radius: calc(var(--e-radius) * 2.2); border: 0;
	background: color-mix(in srgb, var(--e-accent-soft) 60%, var(--e-surface));
}
.apnn-v2__bos-ikon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; color: var(--e-accent); background: var(--e-accent-soft); }
.dark-mode .apnn-v2__bos-ikon { color: #6ee7b7; }
.apnn-v2__bos strong { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--e-text); }
.apnn-v2__bos p { max-width: 460px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--e-muted); }

/* İskelet */
.apnn-v2__iskelet { height: 168px; border-radius: calc(var(--e-radius) * 2.2); background: linear-gradient(100deg, var(--e-accent-soft) 30%, color-mix(in srgb, var(--e-border) 55%, transparent) 50%, var(--e-accent-soft) 70%); background-size: 200% 100%; animation: apnn-parilti 1.3s linear infinite; }
@keyframes apnn-parilti { to { background-position: -200% 0; } }

.apnn-v2__kaynak { margin: 0; padding: 4px 16px 16px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--e-muted); }
.apnn-v2__kaynak a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 991px) { .apnn-v2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.apnn-v2__filtre { grid-template-columns: 1fr 1fr; }
	.apnn-v2__dugme { grid-column: 1 / -1; }
}
@media (max-width: 576px) {
	.apnn-v2__grid { grid-template-columns: 1fr; }
	.apnn-v2__filtre { grid-template-columns: 1fr; }
	.apnn-v2__hero-count { font-size: 36px; }
}

/* ------------------------------------------------------------------ */
/* Bildirimler (toast): sağ alt; "yukarı çık" düğmesi görününce onun    */
/* soluna, mobil alt menü varken menünün üstüne çıkar.                  */
/* ------------------------------------------------------------------ */
.apnn-toast-alani {
	position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: flex; flex-direction: column; gap: 8px;
	max-width: calc(100vw - 32px); pointer-events: none; transition: right .2s ease, bottom .2s ease;
}
.apnn-toast {
	pointer-events: auto; padding: 12px 16px; border-radius: var(--kan-block-radius, 8px); background: #1f2937; color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: 14px; line-height: 1.45; max-width: 380px; cursor: pointer;
	animation: apnn-giris .25s ease-out;
}
.apnn-toast-ok { background: #166534; }
.apnn-toast-hata { background: #b91c1c; }
.apnn-toast-uyari { background: #92400e; }
.apnn-toast.is-cikiyor { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes apnn-giris { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body:has(.progress-wrap.active-progress) .apnn-toast-alani { right: 71px; max-width: calc(100vw - 87px); }
@media (max-width: 991px) {
	body.tab-bar-active .apnn-toast-alani { bottom: calc(15px + var(--kan-tab-bar-h, 56px) + var(--kan-fab-gap, 12px) + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
	.apnn *, .apnn *::before, .apnn *::after, .apnn-toast, .apnn-toast-alani { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ */
/* Tema sayfa kutusu (kanews-section-box) içindeyken: kutunun kendisi   */
/* kart olur, hero kenardan kenara uzanır (nöbetçi eczane sayfası gibi). */
/* ------------------------------------------------------------------ */
.kanews-section-box:has(.apnn) { padding: 0; overflow: hidden; }
.kanews-section-box:has(.apnn) .kanews-article-content { padding: 0; }
.kanews-section-box:has(.apnn) .kanews-article-header { padding: 20px 20px 0; }
.kanews-section-box:has(.apnn) .entry-content-meta { margin: 15px 20px; }
.kanews-section-box:has(.apnn) .entry-content-inner > .apnn { margin: 0 0 14px; border-radius: 0; background: transparent; box-shadow: none; }
.kanews-section-box:has(.apnn) .entry-content-inner > *:not(.apnn):not(.entry-content-meta) { margin-left: 20px; margin-right: 20px; }
.kanews-section-box:has(.apnn) .entry-content-inner > *:not(.apnn):last-child { margin-bottom: 20px; }

/* ------------------------------------------------------------------ */
/* Modern görünüm: yüzen filtre kartı, daha yumuşak hero, canlı kartlar */
/* ------------------------------------------------------------------ */
.apnn-v2__notice.kanews-response {
	display: flex; align-items: flex-start; gap: 12px; margin: 16px 16px 0; padding: 12px 16px;
	font-size: 13.5px; line-height: 1.55; color: var(--e-text);
	background: color-mix(in srgb, var(--e-accent) 7%, var(--e-surface));
	border: 1px solid color-mix(in srgb, var(--e-accent) 16%, transparent); border-radius: 16px;
}
.apnn-v2__notice-ikon { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; color: var(--e-accent); background: color-mix(in srgb, var(--e-accent) 14%, var(--e-surface)); }
.dark-mode .apnn-v2__notice-ikon { color: #6ee7b7; }
.apnn-v2__notice-metin { min-width: 0; }

.apnn-v2__hero {
	position: relative; margin-top: 16px; padding: 22px 20px 58px;
	background:
		radial-gradient(circle at 93% 112%, rgba(255, 255, 255, .07) 0 135px, transparent 136px),
		radial-gradient(circle at 80% -14%, rgba(255, 255, 255, .06) 0 90px, transparent 91px),
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .14) 0%, transparent 55%),
		linear-gradient(135deg, #00523f 0%, #00634b 55%, #007458 100%);
}
.apnn-v2__hero-inner { position: relative; z-index: 1; }
.apnn-v2__hero-count { letter-spacing: -.02em; }
.apnn-v2__hero-place { display: inline-flex; align-items: center; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 12.5px; font-weight: 600; }
.apnn-v2__hero-art { flex-basis: 84px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

.apnn-v2__filtre {
	position: relative; margin: -34px 16px 0; padding: 14px;
	background: var(--e-surface); border: 1px solid color-mix(in srgb, var(--e-border) 50%, transparent); border-radius: 22px;
	box-shadow: 0 18px 36px -18px rgba(0, 60, 45, .38), 0 2px 8px rgba(15, 23, 42, .06);
}

.apnn-v2__body { padding: 24px 16px 22px; border-top: 0; background: color-mix(in srgb, var(--e-accent-soft) 38%, var(--e-surface)); }
.apnn-v2__bos { padding: 26px 20px 22px; background: transparent; }
.apnn-v2__bos-ikon { width: 72px; height: 72px; background: var(--e-surface); box-shadow: 0 0 0 10px color-mix(in srgb, var(--e-accent) 8%, transparent), 0 6px 16px -8px rgba(0, 60, 45, .35); }

.apnn-v2__card { background: var(--e-surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.apnn-v2__card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--e-accent) 32%, var(--e-border)); box-shadow: 0 18px 30px -18px rgba(0, 60, 45, .35); }
.apnn-v2__grid > .apnn-v2__card { animation: apnn-kart .42s ease both; }
.apnn-v2__grid > .apnn-v2__card:nth-child(2) { animation-delay: .04s; }
.apnn-v2__grid > .apnn-v2__card:nth-child(3) { animation-delay: .08s; }
.apnn-v2__grid > .apnn-v2__card:nth-child(4) { animation-delay: .12s; }
.apnn-v2__grid > .apnn-v2__card:nth-child(5) { animation-delay: .16s; }
.apnn-v2__grid > .apnn-v2__card:nth-child(n+6) { animation-delay: .2s; }
@keyframes apnn-kart { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.apnn-v2__yakin { border-top-color: color-mix(in srgb, var(--e-accent) 14%, transparent); }
.apnn-v2__kaynak { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px 18px; }
.apnn-v2__kaynak svg { flex: 0 0 auto; opacity: .7; }

@media (max-width: 767px) {
	.apnn-v2__filtre { margin: -30px 12px 0; }
	.apnn-v2__hero { padding: 20px 16px 52px; }
	.apnn-v2__notice.kanews-response { margin: 12px 12px 0; }
}
@media (max-width: 576px) {
	.apnn-v2__body { padding: 20px 12px 18px; }
}

/* ------------------------------------------------------------------ */
/* SEO bölümleri: başlıklar, il bağlantıları, sık sorulan sorular       */
/* ------------------------------------------------------------------ */
.apnn .apnn-v2__hero-label { margin: 4px 0 0; padding: 0; font-size: 14px !important; font-weight: 700; line-height: 1.3 !important; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .92); }
.apnn-v2__noscript { margin: 12px 0 0; font-size: 13px; color: var(--e-muted); text-align: center; }

.apnn-v2__iller, .apnn-v2__sss { padding: 8px 16px 22px; }
.apnn .apnn-v2__iller h2, .apnn .apnn-v2__sss h2 { margin: 0 0 14px; padding: 0; font-size: 16px !important; font-weight: 700; line-height: 1.35 !important; letter-spacing: 0; text-transform: none; text-align: center; color: var(--e-text); }
.apnn-v2__iller ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.apnn-v2__iller li { margin: 0; padding: 0; }
.apnn-v2__iller a {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; text-decoration: none;
	color: var(--e-text); background: var(--e-accent-soft); border: 1px solid transparent; border-radius: 999px; transition: background .18s, border-color .18s, transform .18s;
}
.apnn-v2__iller a:hover, .apnn-v2__iller a[aria-current] { color: #fff; background: var(--e-accent); transform: translateY(-1px); }
.apnn-v2__iller a:focus-visible { outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }

.apnn-v2__sss { max-width: 820px; margin: 0 auto; }
.apnn-v2__sss details { margin: 0 0 10px; background: var(--e-surface); border: 1px solid color-mix(in srgb, var(--e-border) 60%, transparent); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.apnn-v2__sss details[open] { border-color: color-mix(in srgb, var(--e-accent) 30%, var(--e-border)); box-shadow: 0 10px 24px -18px rgba(0, 60, 45, .4); }
.apnn-v2__sss summary { position: relative; padding: 14px 44px 14px 18px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--e-text); cursor: pointer; list-style: none; }
.apnn-v2__sss summary::-webkit-details-marker { display: none; }
.apnn-v2__sss summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--e-muted); border-bottom: 2px solid var(--e-muted); transform: rotate(45deg); transition: transform .2s; }
.apnn-v2__sss details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); border-color: var(--e-accent); }
.apnn-v2__sss summary:focus-visible { outline: none; border-radius: 16px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-v2__sss details p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; line-height: 1.65; color: var(--e-muted); }
.apnn .apnn-v2__iller ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.apnn .apnn-v2__iller li { list-style: none !important; margin: 0 !important; padding: 0 !important; background: none; }
.apnn .apnn-v2__iller li::before, .apnn .apnn-v2__iller li::after { content: none !important; display: none !important; }
.apnn .apnn-v2__iller li::marker { content: ""; }

/* Konumumu kullan */
.apnn-v2__etiket-satir { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 5px; min-height: 22px; }
.apnn-v2__etiket-satir label { margin: 0 0 0 4px; }
.apnn-v2__konum {
	display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 3px 10px 3px 8px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.4;
	color: var(--e-accent); background: var(--e-accent-soft); border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: background .18s, border-color .18s, transform .18s;
}
.dark-mode .apnn-v2__konum { color: #6ee7b7; }
.apnn-v2__konum[hidden] { display: none; }
.apnn-v2__konum:hover { border-color: color-mix(in srgb, var(--e-accent) 40%, transparent); transform: translateY(-1px); }
.apnn-v2__konum:focus-visible { outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-v2__konum.is-yukleniyor { cursor: wait; opacity: .8; transform: none; }
.apnn-v2__konum.is-yukleniyor svg { animation: apnn-don .9s linear infinite; }
.apnn-v2__alan > label { display: flex; align-items: center; min-height: 24px; margin: 0 0 5px 4px; }
.apnn-v2__etiket-satir { min-height: 24px; margin: 0 0 5px; }
.apnn-v2__etiket-satir label { margin: 0 0 0 4px; }

/* ------------------------------------------------------------------ */
/* "Tüm noterlikler" kartı                                             */
/* ------------------------------------------------------------------ */
.apnn-v2__cta {
	display: flex; align-items: center; gap: 18px; margin: 20px 16px 24px; padding: 20px 22px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--e-accent) 10%, var(--e-surface)) 0%, var(--e-surface) 70%);
	border: 1px solid color-mix(in srgb, var(--e-accent) 18%, transparent); border-radius: 22px;
	box-shadow: 0 14px 30px -22px rgba(0, 60, 45, .45);
}
.apnn-v2__cta-ikon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #00523f, #007458); box-shadow: 0 8px 18px -8px rgba(0, 82, 63, .7); }
.apnn-v2__cta-metin { flex: 1 1 auto; min-width: 0; }
.apnn .apnn-v2__cta-baslik { margin: 0; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--e-text); }
.apnn .apnn-v2__cta-alt { margin: 3px 0 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--e-muted); }
.apnn .apnn-v2__cta-dugme {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; font-size: 14px; font-weight: 700; text-decoration: none;
	color: #fff !important; background: var(--e-accent); border-radius: 999px; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--e-accent) 80%, transparent);
	transition: transform .18s, box-shadow .18s, background-color .18s;
}
.apnn .apnn-v2__cta-dugme svg { transition: transform .18s; }
.apnn .apnn-v2__cta-dugme:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -8px color-mix(in srgb, var(--e-accent) 85%, transparent); }
.apnn .apnn-v2__cta-dugme:hover svg { transform: translateX(3px); }
.apnn .apnn-v2__cta-dugme:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--e-accent) 30%, transparent); }
@media (max-width: 767px) {
	.apnn-v2__cta { flex-wrap: wrap; margin: 4px 12px 22px; padding: 18px; }
	.apnn-v2__cta-metin { flex-basis: calc(100% - 70px); }
	.apnn .apnn-v2__cta-dugme { width: 100%; justify-content: center; }
}

/* Paylaş */
.apnn-v2__hero-satir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.apnn-v2__hero-satir .apnn-v2__hero-place { margin-top: 0; }
.apnn-v2__paylas { position: relative; }
.apnn-v2__paylas[hidden] { display: none; }
.apnn-v2__paylas-dugme {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #fff;
	background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; cursor: pointer; transition: background .18s, transform .18s;
}
.apnn-v2__paylas-dugme:hover, .apnn-v2__paylas-dugme[aria-expanded="true"] { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.apnn-v2__paylas-dugme:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.apnn-v2__paylas-menu {
	position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; background: var(--e-surface);
	border: 1px solid color-mix(in srgb, var(--e-border) 70%, transparent); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .35), 0 4px 12px rgba(15, 23, 42, .1); animation: apnn-panel .14s ease-out;
}
.apnn-v2__paylas-menu[hidden] { display: none; }
.apnn-v2__paylas-oge {
	display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; margin: 0; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; text-align: left;
	color: var(--e-text); background: transparent; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
}
.apnn-v2__paylas-oge:hover, .apnn-v2__paylas-oge:focus-visible { outline: none; background: var(--e-accent-soft); }
.apnn-v2__paylas-oge svg { flex: 0 0 auto; color: var(--e-accent); }
.dark-mode .apnn-v2__paylas-oge svg { color: #6ee7b7; }
@media (max-width: 576px) { .apnn-v2__paylas-menu { left: auto; right: 0; } }

/* ------------------------------------------------------------------ */
/* Koyu mod: yumuşak zeminler biraz açılır, mesafe rozeti koyu temaya uyar */
/* ------------------------------------------------------------------ */
.dark-mode .apnn, .apnn.apnn-dark { --e-accent-soft: color-mix(in srgb, #34d399 14%, var(--e-surface)); }
.dark-mode .apnn-v2__card-distance, .apnn.apnn-dark .apnn-v2__card-distance {
	background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.dark-mode .apnn-v2__konum, .apnn.apnn-dark .apnn-v2__konum { background: color-mix(in srgb, #34d399 16%, transparent); color: #6ee7b7; }
.dark-mode .apnn-v2__iller a, .apnn.apnn-dark .apnn-v2__iller a { color: #e5e7eb; }
.dark-mode .apnn-v2__iller a:hover, .dark-mode .apnn-v2__iller a[aria-current], .apnn.apnn-dark .apnn-v2__iller a[aria-current] { color: #fff; }

/* ------------------------------------------------------------------ */
/* Tüm noterler rehberi                                                */
/* ------------------------------------------------------------------ */
.apnn-v2__filtre--tek { grid-template-columns: minmax(0, 1fr) auto; }
.apnn-v2__arama { margin: 0 0 18px; }
.apnn-v2__ara {
	width: 100%; height: 46px; margin: 0; padding: 0 20px; font: inherit; font-size: 14px; color: var(--e-text); background: var(--e-surface);
	border: 1px solid color-mix(in srgb, var(--e-border) 75%, transparent); border-radius: 999px; box-shadow: none; transition: border-color .18s, box-shadow .18s;
}
.apnn-v2__ara:focus-visible { outline: none; border-color: var(--e-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-v2__ara-yok { grid-column: 1 / -1; margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--e-muted); }
.apnn-v2__card-noter { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--e-text); }
.apnn-v2__card-noter span { margin-right: 4px; font-weight: 600; color: var(--e-muted); }
.apnn-v2__card-vekil { flex: 0 0 auto; margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11.5px; line-height: 1.5; font-weight: 700; }
.dark-mode .apnn-v2__card-vekil { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.apnn-v2__card-numara:not(.is-dolu) { display: none; }
.apnn-v2__chip-say { margin-left: 7px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--e-accent) 14%, transparent); font-size: 11px; font-weight: 700; line-height: 1.7; }
.apnn-v2__iller a:hover .apnn-v2__chip-say, .apnn-v2__iller a[aria-current] .apnn-v2__chip-say { background: rgba(255, 255, 255, .22); }
.apnn-v2__iller--ilce { padding-top: 0; }
.apnn-v2__sayfalar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 24px 0 2px; }
.apnn-v2__sayfalar a, .apnn-v2__sayfalar span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; font-size: 13px; font-weight: 700; text-decoration: none;
	color: var(--e-text); background: var(--e-accent-soft); border-radius: 999px; transition: background .18s, color .18s;
}
.apnn-v2__sayfalar a:hover { color: #fff; background: var(--e-accent); }
.apnn-v2__sayfalar .apnn-v2__sayfa-aktif { color: #fff; background: var(--e-accent); }
.apnn-v2__sayfalar .apnn-v2__sayfa-bosluk { min-width: 0; padding: 0 2px; background: transparent; color: var(--e-muted); }
.apnn-v2__sayfalar a:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
@media (max-width: 576px) { .apnn-v2__filtre--tek { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Kart: tek satırlı başlık, alt satırda il/ilçe, düzenli etiketler     */
/* ------------------------------------------------------------------ */
.apnn-v2__card { container-type: inline-size; gap: 12px; padding: 16px; border-radius: 20px; }
.apnn-v2__card-head { align-items: flex-start; gap: 12px; background: none; }
.apnn-v2__card-icon {
	position: relative; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px;
	background: linear-gradient(145deg, color-mix(in srgb, var(--e-accent) 18%, var(--e-surface)), color-mix(in srgb, var(--e-accent) 6%, var(--e-surface)));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--e-accent) 16%, transparent);
}
.apnn-v2__card-baslik { flex: 1 1 auto; min-width: 0; }
.apnn .apnn-v2__card-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px !important; line-height: 1.3 !important; font-weight: 600; letter-spacing: -.005em; }
.apnn-v2__card-konum { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--e-muted); }
.apnn-v2__card-konum svg { flex: 0 0 auto; color: var(--e-accent); }
.dark-mode .apnn-v2__card-konum svg { color: #6ee7b7; }
.apnn-v2__card-konum span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.apnn-v2__card-address {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; padding-top: 12px;
	border-top: 1px solid color-mix(in srgb, var(--e-border) 50%, transparent);
}
.apnn-v2__card-meta { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; min-width: 0; }
.apnn-v2__card--rehber .apnn-v2__card-meta { flex-wrap: wrap; }
.apnn-v2__card-hours { flex: 0 1 auto; min-width: 0; padding: 4px 10px; white-space: nowrap; }
.apnn-v2__card-acik::before { animation: apnn-nabiz 2s ease-out infinite; }
@keyframes apnn-nabiz { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70%, 100% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); } }
.apnn-v2__card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apnn-v2__card-actions > :only-child { grid-column: 1 / -1; }
.apnn-v2__action { gap: 7px; min-height: 40px; font-size: 13px; }
.apnn-v2__action svg { flex: 0 0 auto; }
.apnn-v2__card-head .apnn-v2__card-distance, .apnn-v2__card-head .apnn-v2__card-vekil { margin: 2px 0 0; }
@container (max-width: 272px) { .apnn-v2__card-hours-label { display: none; } }

/* İlçe seçimi: kartların üstünde */
.apnn-v2__ilceler { margin: 0 0 16px; }
.apnn .apnn-v2__ilceler h2 { margin: 0 0 10px; padding: 0; font-size: 12.5px !important; line-height: 1.4 !important; font-weight: 700; letter-spacing: .01em; text-transform: none; text-align: left; color: var(--e-muted); }
.apnn .apnn-v2__ilceler ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.apnn .apnn-v2__ilceler li { margin: 0 !important; padding: 0 !important; list-style: none !important; background: none; }
.apnn .apnn-v2__ilceler li::before, .apnn .apnn-v2__ilceler li::after { content: none !important; display: none !important; }
.apnn-v2__ilceler a {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--e-text); background: var(--e-surface);
	border: 1px solid color-mix(in srgb, var(--e-border) 70%, transparent); border-radius: 999px; transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.apnn-v2__ilceler a:hover, .apnn-v2__ilceler a[aria-current] { color: #fff; background: var(--e-accent); border-color: var(--e-accent); }
.apnn-v2__ilceler a:hover { transform: translateY(-1px); }
.apnn-v2__ilceler a:hover .apnn-v2__chip-say, .apnn-v2__ilceler a[aria-current] .apnn-v2__chip-say { background: rgba(255, 255, 255, .22); }
.apnn-v2__ilceler a:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-v2__ilce-daha { margin-top: 8px; }
.apnn-v2__ilce-daha summary {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; margin-bottom: 8px; font-size: 13px; font-weight: 700; list-style: none; cursor: pointer;
	color: var(--e-accent); background: var(--e-accent-soft); border-radius: 999px; transition: background .18s;
}
.dark-mode .apnn-v2__ilce-daha summary { color: #6ee7b7; }
.apnn-v2__ilce-daha summary::-webkit-details-marker { display: none; }
.apnn-v2__ilce-daha summary:hover { background: color-mix(in srgb, var(--e-accent) 18%, var(--e-surface)); }
.apnn-v2__ilce-daha summary:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-v2__ilce-daha .apnn-v2__daha-kapat, .apnn-v2__ilce-daha[open] .apnn-v2__daha-ac { display: none; }
.apnn-v2__ilce-daha[open] .apnn-v2__daha-kapat { display: inline; }

/* Sunucu taraflı arama */
form.apnn-v2__arama { display: flex; gap: 8px; align-items: stretch; }
form.apnn-v2__arama .apnn-v2__ara { flex: 1 1 auto; min-width: 0; }
.apnn-v2__ara-btn { flex: 0 0 auto; min-height: 46px; padding: 0 22px; font-size: 14px; font-weight: 700; color: #fff; background: var(--e-accent); border: 0; border-radius: 999px; cursor: pointer; transition: filter .18s; }
.apnn-v2__ara-btn:hover { filter: brightness(1.1); }
.apnn-v2__ara-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-accent) 28%, transparent); }
.apnn-v2__ara-durum { margin: -6px 0 16px; font-size: 13px; color: var(--e-muted); }
.apnn-v2__ara-durum a { color: var(--e-accent); font-weight: 700; }
.apnn-v2__card-meta .apnn-v2__card-acik { margin-left: auto; }
