/*
 * Bileşenler + yerleşim. Değerler tokens.css'ten; bileşen görünümü mobil uygulamanın birebir karşılığı
 * (Tasarım B anasayfa, D ilçe seçimi, 2B liste kartı, 3B krom, harita alt kartı, yarıçap çipi).
 * Kırılımlar: < 768 mobil · 768–1023 mobil düzen ortalanmış · ≥ 1024 masaüstü T1: tek sol panel + harita + üst bar (PLAN §8.5, #12).
 */

/* ── Temel ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }   /* ekran değişince başlığa verilen programatik odak */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-md); top: -100px; z-index: 100; background: var(--white); padding: var(--s-sm) var(--s-md); border-radius: var(--r-md); box-shadow: var(--sh-floating); }
.skip:focus { top: var(--s-md); }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.app { min-height: 100vh; outline: none; }
/* Giriş hareketi yalnız değişen parçada (main.js `data-enter`): aynı ekranın yeniden çizimi (menü, bildirim) oynatmaz. */
.app[data-enter~="screen"] .screen { animation: appear var(--t-appear) var(--ease); }
.app[data-enter~="sheet"] .sheet { animation: sheet-in var(--t-sheet) var(--ease-sheet); }
.app[data-enter~="overlay"] :is(.modal, .sharepop) { animation: appear var(--t-fast) var(--ease); }
.app[data-enter~="overlay"] .sharepop--sheet { animation: sheet-in var(--t-medium) var(--ease-sheet); }
.app[data-enter~="toast"] .toast { animation: appear var(--t-fast) var(--ease); }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.press { transition: transform var(--t-fast) var(--ease); }
.press:active { transform: scale(var(--press-scale)); }
.label { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.chev { width: 20px; height: 20px; color: var(--chev); }
.sk { background: linear-gradient(90deg, var(--line) 0%, #F8F9FA 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Anasayfa (Tasarım B) ──────────────────────────────────────────────── */
.hero { background: var(--header-bg); color: var(--white); padding: var(--s-lg) var(--page) 96px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.brand { display: flex; align-items: center; gap: var(--s-md); }
.brand__logo { width: 52px; height: 52px; border-radius: 50%; background: var(--white); padding: 3px; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.brand__logo img { width: 100%; height: 100%; }
.brand__org { min-width: 0; line-height: 1.15; }
.brand__org small { display: block; font-size: 10px; letter-spacing: .14em; font-weight: 600; opacity: .9; text-transform: uppercase; }
.brand__org b { font-size: 15px; font-weight: 600; }
.hero__title { font-size: 30px; font-weight: 700; margin: 22px 0 10px; line-height: 1.15; }
.hero__sub { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 13px; gap: 4px 10px; opacity: .95; }
.hero__sub span { display: inline-flex; align-items: center; gap: 6px; }
.hero__sub .ico { width: 14px; height: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); margin: -72px var(--page) 0; position: relative; }
.tile { background: var(--white); border-radius: var(--r-xl); padding: 18px var(--s-md); box-shadow: var(--sh-card); text-align: left; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; }
.tile__row { display: flex; justify-content: space-between; align-items: flex-start; height: 44px; color: var(--acc); }
.tile__row .main { width: 40px; height: 40px; }
.tile__row .main.wide { width: 64px; }
.tile__row .arr { width: 18px; height: 18px; }
.tile b { display: block; font-size: 16px; font-weight: 700; margin-top: 14px; line-height: 1.25; }
.tile small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.tile--near { --acc: var(--blue); }
.tile--district { --acc: var(--red); }
.last { margin: var(--s-md) var(--page) 0; background: var(--white); border-radius: var(--r-xl); padding: 18px 18px 18px var(--s-lg); box-shadow: var(--sh-card); display: flex; gap: 10px; align-items: center; width: calc(100% - 2 * var(--page)); text-align: left; }
.last--full { display: block; padding: 0; overflow: hidden; transition: transform var(--t-fast) var(--ease); }
.last--full:has(> .last__hit:active) { transform: scale(var(--press-scale)); }
.last__hit { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 18px 18px 18px var(--s-lg); }
.last__hit:focus-visible { outline-offset: -3px; }
.last__body { flex: 1; min-width: 0; }
.last__name { display: block; margin: 4px 0; font-size: 16px; font-weight: 700; }
.last__addr { display: block; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.last--empty { background: transparent; box-shadow: none; border: 1.5px dashed var(--handle); color: var(--muted); }
.last--empty .ico { width: 28px; height: 28px; color: var(--muted); }
.banner { margin: 18px var(--page) 0; }
.banner img { width: auto; max-width: 100%; max-height: 240px; margin-left: auto; margin-right: auto; border-radius: var(--r-lg); margin-top: var(--s-sm); box-shadow: 0 2px 6px rgba(27, 104, 172, .28); }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 22px 0 26px; line-height: 1.6; }
/* ── Nöbet saati çipi ───────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 7px; border-radius: var(--r-pill); padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); font-variant-numeric: tabular-nums; margin-top: var(--s-sm); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-ring); }

/* ── Geri düğmesi ───────────────────────────────────────────────────────── */
.round { width: 48px; height: 48px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--acc, var(--red)); flex: none; }
.round .ico { width: 22px; height: 22px; }

/* ── İlçe seçimi (D) ────────────────────────────────────────────────────── */
.dist { padding: var(--s-lg) var(--page) var(--s-xl); }
.dist__title { font-size: 28px; font-weight: 700; margin: 18px 0 2px; }
.dist__hint { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 399px) { .notice { grid-template-columns: 20px 1fr; } .notice button { grid-column: 2; justify-self: start; } }
.pills { display: flex; gap: var(--s-sm); overflow-x: auto; scrollbar-width: none; }
.pill { height: 40px; padding: 0 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; background: var(--white); border: 1px solid var(--border); color: var(--muted); flex: none; }
.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); font-weight: 600; }
.search { margin-top: var(--s-md); background: var(--white); border-radius: var(--r-lg); min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 var(--s-sm) 0 var(--s-lg); box-shadow: 0 4px 14px rgba(0, 0, 0, .07); border: 1.5px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.search:focus-within { border-color: var(--red); }
.search > .ico { color: var(--red); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 15px var(--font); color: var(--ink); height: 60px; }
.search input::placeholder { color: var(--chev); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
.sec { display: flex; justify-content: space-between; margin: var(--s-lg) 0 var(--s-sm); }
.recent { display: flex; gap: var(--s-sm); flex-wrap: wrap; }
.recent button { height: 38px; padding: 0 var(--s-md); border-radius: var(--r-pill); background: var(--white); border: 1px solid #E6E8EB; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; }
.dlist { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); margin: 0; padding: 0; list-style: none; }
.drow { display: flex; align-items: center; justify-content: space-between; padding: var(--s-md) var(--s-md) var(--s-md) 18px; font-size: 15.5px; font-weight: 500; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.dlist li:last-child .drow { border-bottom: 0; }
.drow:hover { background: #FAFAFB; }
.drow[aria-current="true"] { background: var(--red-soft); color: var(--red); font-weight: 600; }
.dempty { padding: var(--s-xl) var(--s-md); text-align: center; color: var(--muted); font-size: 14px; }

/* ── Liste/harita kromu (3B) ────────────────────────────────────────────── */
.chrome { padding: var(--s-lg) var(--page) var(--s-sm); display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 75%, rgba(244, 245, 247, 0)); }
.chrome__r1, .chrome__r2 { display: flex; gap: 10px; align-items: center; }
.place { flex: 1; min-width: 0; height: 56px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-soft); display: flex; align-items: center; gap: 12px; padding: 0 var(--s-md); line-height: 1.2; color: var(--acc); }
.place .ico { width: 30px; height: 30px; }
.place .ico.wide { width: 38px; }
.place__txt { min-width: 0; color: var(--ink); }
.place__txt b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place__txt small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { flex: 1; height: 46px; background: var(--white); border-radius: var(--r-pill); box-shadow: var(--sh-soft); display: flex; }
.seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--s-sm); font-size: 14.5px; font-weight: 500; border-radius: var(--r-pill); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.seg button[aria-pressed="true"] { background: var(--acc); color: var(--white); font-weight: 600; }

/* ── Eczane liste kartı (2B) ────────────────────────────────────────────── */
.plist { padding: var(--s-sm) var(--page) 96px; margin: 0; list-style: none; }
/* Kart = kap: seçim düğmesi (.card__hit). Basılı-tut kabı küçültür. */
.card { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-list); margin-bottom: 12px; border: 1.5px solid var(--border); width: 100%; overflow: hidden; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.card:hover { border-color: var(--border-hover); }
.card.is-selected { border-color: var(--acc); }
.card:has(> .card__hit:active) { transform: scale(var(--press-scale)); }
.card__hit, .card--sk { padding: var(--s-md) 12px var(--s-md) 18px; display: flex; align-items: center; gap: var(--s-sm); width: 100%; text-align: left; }
.card__hit:focus-visible { outline-offset: -3px; }
.card__body { flex: 1; min-width: 0; }
.card__name { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__addr { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__nomap { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.km { max-width: 96px; text-align: right; flex: none; line-height: 1.25; }
.km b { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.km b .ico { width: 18px; height: 18px; color: var(--acc); }
@media (max-width: 399px) { .km { max-width: 82px; } .km b { font-size: 14px; } }

/* ── Harita alt kartı ───────────────────────────────────────────────────── */
.sheet { background: var(--white); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 10px var(--s-lg) 22px; box-shadow: var(--sh-sheet); }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sheet__handle { display: block; width: 36px; height: 4px; border-radius: var(--r-pill); background: var(--handle); margin: 0 auto; }
/* Tutamak (js/sheet.js): dokunma alanı kart genişliğinde; tutamak + ad satırı sürüklenir, sayfa kaymaz. */
.sheet__grip { display: block; width: 100%; margin: -10px 0 2px; padding: 10px 0 10px; background: none; border: 0; cursor: grab; touch-action: none; }
.sheet__grip:focus-visible { outline-offset: -4px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.bottom .sheet__top { touch-action: none; }
.sheet__top { display: flex; gap: 12px; align-items: flex-start; }
.sheet h2 { margin: 0; font-size: 18px; font-weight: 700; flex: 1; line-height: 1.2; letter-spacing: .2px; }
.sheet .km { max-width: none; }
.sheet p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sheet__tarif { font-size: 12.5px; }
.sheet__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; margin: -6px -8px 0 0; }
/* Telefon bağlantıları (#9): alt kart ve son eczanede alt alta (karar); liste kartında yoğunluk için yan yana, sığmazsa alta iner.
   Dokunma hedefi ≥ 36 px. */
/* "Ara" (#16): numara satırı yok; küçük yeşil çerçeveli düğme, numara dokununca menüde. */
.btn--call:disabled { opacity: .45; cursor: default; }
.btns { display: flex; gap: var(--s-sm); margin-top: var(--s-md); }
.btn { flex: 1; height: 50px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn .ico { width: 20px; height: 20px; }
.btn--call { background: var(--green); color: var(--white); }
.btn--dir { background: var(--white); border: 1.5px solid var(--border); color: var(--blue); }

/* ── Yarıçap çipi ───────────────────────────────────────────────────────── */
.radius { position: relative; display: inline-block; }
.radius__chip { height: 50px; padding: 0 18px 0 var(--s-md); border-radius: var(--r-pill); background: var(--radius-fill); color: var(--white); display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; box-shadow: var(--sh-floating); }
.radius__chip .ico { width: 24px; height: 24px; }
.radius__chip .ico.s { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); transform: rotate(90deg); }
.radius__chip[aria-expanded="true"] .ico.s { transform: rotate(-90deg); }
.radius__menu { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(330px, calc(100vw - 2 * var(--page))); background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-floating); border: 1px solid rgba(0, 0, 0, .12); padding: 12px; }
.radius__menu p { margin: 0 0 10px 4px; }
.radius__opts { display: flex; gap: 6px; }
.radius__opts button { flex: 1; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--border); font-size: 14px; font-weight: 600; white-space: nowrap; }
.radius__opts button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── Boş / hata / konum ─────────────────────────────────────────────────── */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 28px; gap: 10px; }
.state__circ { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc); display: flex; align-items: center; justify-content: center; }
.state__circ .ico { width: 34px; height: 34px; }
.state__alt { display: flex; justify-content: center; margin-top: -32px; padding-bottom: 32px; }
.linkbtn { font-size: 13.5px; font-weight: 600; color: var(--acc, var(--blue)); text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.state b { font-size: 17px; font-weight: 600; }
.state p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 300px; }
.state__btn { margin-top: var(--s-sm); height: 46px; padding: 0 var(--s-xl); border-radius: var(--r-pill); background: var(--acc); color: var(--white); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: var(--s-sm); }
.ask { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: var(--page); background: rgba(48, 48, 48, .28); }
.ask__card { width: min(400px, 100%); background: var(--white); border-radius: var(--r-xl); box-shadow: 0 12px 36px rgba(0, 0, 0, .20); padding: 10px var(--s-lg) 22px; --acc: var(--blue); }
.ask__card .state { padding: 22px 12px 10px; }
.ask__card .spin { animation: pulse 1.04s var(--ease) infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .45; } }
.ask__card .btn--dir { color: var(--red); }

/* ── Hata bildir (#9): ince bağlantı + diyalog (mobil "Hata bildir" ekranının karşılığı) ─────────────── */
.rlink { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: underline; text-decoration-color: #C3C8CF; text-underline-offset: 3px; border-radius: var(--r-sm); }
.rlink .ico { width: 16px; height: 16px; flex: none; }
.rlink:hover { color: var(--ink); }
.sheet__report, .plist__report { display: flex; justify-content: center; }
.sheet__report { margin-top: 6px; margin-bottom: -10px; }
.plist:has(+ .plist__report) { padding-bottom: 0; }
.plist__report { padding: 0 var(--page) 96px; } /* 96: liste sonu yarıçap çipinin altında kalmasın (.plist ile aynı) */
.home__report { display: none; }
.foot .rlink { display: flex; margin: 0 auto 8px; width: fit-content; }
.report { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.report__card { width: min(460px, 100%); margin: auto 0; padding: 14px var(--s-lg) 20px; --acc: var(--red); }
.report__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report__head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.report__intro { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.report__alert { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--red) 8%, var(--white)); color: var(--red); font-size: 13px; font-weight: 500; }
.rctx { display: flex; align-items: center; gap: 6px; margin-top: var(--s-md); padding: 10px 4px 10px 14px; border-radius: var(--r-lg); background: var(--bg); }
.rctx__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rctx__body b { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.rctx__body small { font-size: 12.5px; color: var(--muted); }
.rctx__x { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; flex: none; }
.report__types { border: 0; padding: 0; margin: var(--s-md) 0 0; }
.report__types legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid #E3E6EA; background: var(--white); font-size: 13.5px; font-weight: 500; color: var(--ink); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.rchip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); font-weight: 600; }
.rf { display: block; margin-top: 10px; }
.rf input, .rf textarea { width: 100%; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--white); border: 1.5px solid #E3E6EA; border-radius: var(--r-lg); padding: 12px 14px; }
.rf textarea { resize: vertical; min-height: 96px; margin-top: 2px; }
.rf input:focus, .rf textarea:focus { outline: none; border-color: var(--red); }
.rf [aria-invalid="true"] { border-color: var(--red); }
.rf__err { display: block; margin-top: 4px; font-size: 12.5px; color: var(--red); }
.report__sub { margin: var(--s-md) 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.report__sub small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; }
.report__kvkk { margin: 10px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.btn--report { background: var(--red); color: var(--white); }
.btn--report[disabled] { opacity: .6; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.state__circ--ok { background: color-mix(in srgb, var(--green) 12%, transparent); }
.state__circ--ok img { width: 44px; height: 44px; }

/* ── Harita ─────────────────────────────────────────────────────────────── */
.map-shell { position: fixed; inset: 0; z-index: 0; background: #F2EFE9; display: none; }
.map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; padding: var(--page); text-align: center; }
.scrim { display: none; position: fixed; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(var(--bg), rgba(244, 245, 247, 0)); pointer-events: none; z-index: 1; }
body[data-map="on"] .scrim { display: block; }

/* ── Paylaş · telefona aktar · uygulama (#12, PLAN §8.5 ✓ Seçim) ───────────── */
.sharebtn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: -4px; }
.sharebtn .ico, .iconbtn .ico { width: 19px; height: 19px; }
.sharebtn:hover, .iconbtn:hover { border-color: var(--chev); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-soft); border: 1px solid transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Web Share yoksa küçük menü: masaüstünde düğmenin yanında (konum JS'ten), mobilde alttan. */
.sharepop { position: fixed; z-index: 45; width: 340px; background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-modal); padding: 14px; }
.sharepop--sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 16px var(--page) 24px; }
.sharepop h2 { margin: 4px 6px 10px; font-size: 15px; font-weight: 700; }
.sharepop__prev { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 8px; display: flex; flex-direction: column; }
.sharepop__prev b { font-size: 12.5px; }
.sharepop__prev span { color: var(--muted); }
.sharepop__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sharepop__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 8px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; color: var(--ink); }
.sharepop__item:hover, .sharepop__item:focus-visible { background: var(--bg); }
.sharepop__item .c { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; }
.sharepop__item:hover .c { background: var(--white); }
.sharepop__item .c .ico { width: 18px; height: 18px; }
.phonepop__hint { margin: -6px 6px 8px; font-size: 12.5px; color: var(--muted); }
.phonepop__msg { margin: 0 6px 8px; font-size: 13.5px; color: var(--muted); }
.phonepop__num { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phonepop__sk { padding: 4px 6px 8px; }
.sharepop__item .c--call, .sharepop__item:hover .c--call { background: var(--green); color: var(--white); }
.sharepop__item small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* Pencere: "Bu listeyi telefonunuzda açın" (QR) ve "Mobil uygulama". */
.modal { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: var(--page); overflow-y: auto; }
.modal__card { position: relative; width: min(700px, 100%); margin: auto; background: var(--white); border-radius: 28px; box-shadow: var(--sh-modal); padding: 36px 32px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: var(--s-xl); align-items: center; }
.modal__card--app { width: min(760px, 100%); padding: 40px 36px 32px; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
.modal__card--single { width: min(480px, 100%); grid-template-columns: 1fr; }
.modal__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.modal__close .ico { width: 18px; height: 18px; }
.modal h2 { margin: 6px 0 0; font-size: 21px; font-weight: 700; line-height: 1.25; }
.modal__eyebrow { color: var(--red); }
.modal__lead { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.modal__side { text-align: center; }
.modal__cap { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.urlbox { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: var(--r-md); padding: 8px 8px 8px 12px; font-size: 12.5px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.urlbox b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.urlbox button { height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.urlbox .ico { width: 15px; height: 15px; }
.qrbox { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--sh-card); }
.qrbox > img { width: 200px; height: 200px; image-rendering: pixelated; }
.qrbox--empty { width: 222px; height: 222px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.qrbox--empty > .ico { width: 30px; height: 30px; }
.qrbox--empty button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); min-height: 36px; }
.apphead { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.apphead h2 { margin-top: 2px; }
.appicon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(200, 12, 15, .18); flex: none; }
.appicon--sm { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.feats { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 12px; }
.feats li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.35; }
.feats b { display: block; font-weight: 600; }
.feats small { display: block; color: var(--muted); font-size: 12.5px; }
.feat__ico { width: 38px; height: 38px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex: none; }
.feat__ico .ico { width: 20px; height: 20px; }
.feat__ico .ico.wide { width: 28px; }
.feat__ico--blue { background: var(--blue-soft); color: var(--blue); }
.feat__ico--red { background: var(--red-soft); color: var(--red); }
.feat__ico--green { background: var(--green-soft); color: var(--green); }
/* Resmî rozetler: Apple SVG; Google PNG'nin kendi şeffaf payı var (646×250 içinde) → yükseklik büyük, pay negatif. */
.badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badges a { display: inline-flex; border-radius: var(--r-sm); }
.badges img { height: 44px; width: auto; }
.badges__play img { height: 64px; margin: -10px -8px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--white); border-radius: var(--r-pill); padding: 10px 18px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; box-shadow: var(--sh-floating); white-space: nowrap; }
.toast .ico { width: 18px; height: 18px; }

/* Mobil web uygulama bandı (Android; iOS'ta Safari'nin kendi bandı). Harita görünümünde yer kaplamaz. */
.band { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 14px 10px 6px; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.band__x { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; border-radius: 50%; }
.band__x .ico { width: 16px; height: 16px; }
.band__t { flex: 1; min-width: 0; line-height: 1.25; }
.band__t b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band__t small { font-size: 11.5px; color: var(--muted); }
.band__go { height: 36px; padding: 0 20px; border-radius: var(--r-pill); background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; flex: none; display: inline-flex; align-items: center; text-decoration: none; }
body[data-map="on"] .band-slot { display: none; }

/* ── Üst bar (yalnız masaüstü) ──────────────────────────────────────────── */
.topbar { display: none; }

/* ═════════ Mobil yerleşim (< 1024) ═════════ */
@media (max-width: 1023px) {
  .home, .results__panel, .dist-wrap { position: relative; z-index: 2; }
  /* Harita görünümü: harita tam ekran, krom üstte, alt yığın (yarıçap + alt kart) altta. */
  body[data-map="on"] { overflow: hidden; }
  body[data-map="on"] .map-shell { display: block; }
  body[data-map="on"] .chrome { position: fixed; left: 0; right: 0; top: 0; background: none; }
  .results--map .results__panel { display: none; }
  .bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; pointer-events: none; }
  .bottom > * { pointer-events: auto; }
  .bottom .radius { margin: 0 var(--page) 14px; }
  .results--list .bottom .radius { margin-bottom: var(--page); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home, .dist, .results__panel, .chrome { max-width: var(--tablet-max); margin-left: auto; margin-right: auto; }
  body[data-map="on"] .chrome { max-width: none; padding-left: max(var(--page), calc((100vw - var(--tablet-max)) / 2 + var(--page))); padding-right: max(var(--page), calc((100vw - var(--tablet-max)) / 2 + var(--page))); }
  .sheet { max-width: var(--tablet-max); margin: 0 auto; }
  .bottom .radius { margin-left: max(var(--page), calc((100vw - var(--tablet-max)) / 2 + var(--page))); }
}

/* ═════════ Masaüstü (≥ 1024): T1 — tek sabit sol panel (üstte ilçeler, altta liste) + sağda harita + ince üst bar ═════════ */
@media (min-width: 1024px) {
  body { overflow: hidden; }
  .band-slot { display: none; }
  .topbar { display: flex; position: fixed; left: 0; right: 0; top: 0; height: var(--bar-h); z-index: 20; align-items: center; gap: 14px; padding: 0 var(--s-xl); background: var(--header-bg); color: var(--white); }
  .topbar .brand__logo { width: 40px; height: 40px; }
  .topbar .brand__org small { font-size: 9.5px; }
  .topbar .brand__org b { font-size: 13.5px; }
  .topbar__sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .35); margin: 0 6px; }
  .topbar__title { font-size: 19px; font-weight: 700; margin: 0; white-space: nowrap; }
  /* Nöbet günü başlığın yanında hap (P1, #17): "… gecesi" — gece 02:00'de de "bugün" sanılmasın. */
  .topbar__day { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; padding: 6px 12px 6px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
  .topbar__day:empty { display: none; }
  .topbar__day .ico { width: 16px; height: 16px; }
  /* "Hata bildir" (Oda için önemli): üst barda her zaman, dolu beyaz — "Mobil uygulama"dan daha belirgin. */
  .topbar__report { margin-left: auto; height: 38px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--white); color: var(--red); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .topbar__report svg { width: 18px; height: 18px; }
  .topbar__report:hover { background: rgba(255, 255, 255, .88); }
  .topbar__report:focus-visible { outline-color: var(--white); }
  .topbar__app { margin-left: 6px; height: 38px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: var(--white); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .topbar__app svg { width: 18px; height: 18px; }
  .topbar__app:hover, .topbar__app[aria-pressed="true"] { background: var(--white); color: var(--red); border-color: var(--white); }
  .topbar__app:focus-visible { outline-color: var(--white); }
  .map-shell { display: block; top: var(--bar-h); left: var(--desk-panel-w); }
  .app { min-height: 0; }

  .dpanel { position: fixed; left: 0; top: var(--bar-h); bottom: 0; width: var(--desk-panel-w); z-index: 5; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line); }
  /* Üst bölme (P1): il + Yakınımdakiler, tek ilçe kutusu, "Son:" satırı. Kutu açılınca liste bölmesinin üstüne iner. */
  .dpick { flex: none; position: relative; z-index: 7; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
  .dpick__row { display: flex; gap: 8px; align-items: center; }
  .dpick .pill { height: 32px; padding: 0 14px; font-size: 12.5px; }
  .dnear { margin-left: auto; height: 34px; padding: 0 12px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .dnear .ico { width: 20px; height: 20px; }
  .dnear[aria-pressed="true"] { background: var(--blue); color: var(--white); }
  .dcombo { position: relative; }
  .dcombo__box { width: 100%; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 14px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-card); border: 2px solid transparent; text-align: left; }
  .dcombo__box > .ico { width: 20px; height: 20px; color: var(--red); flex: none; }
  .dcombo__box input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
  .dcombo__box input::placeholder { color: var(--muted-2); }
  .dcombo__box .search__clear { width: 40px; height: 40px; }
  .dcombo__box:focus-within, .dcombo--open .dcombo__box, .dpick--emph .dcombo__box { border-color: var(--red); }
  button.dcombo__box:hover { border-color: var(--border); }
  .dcombo__val { flex: 1; min-width: 0; line-height: 1.2; }
  .dcombo__val b { display: block; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dcombo__val small { display: block; color: var(--muted); font-size: 12px; }
  .dcombo__box > .dcombo__chev { width: 20px; height: 20px; margin-right: 6px; color: var(--muted); transform: rotate(90deg); flex: none; }
  .dcombo__pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: calc(100vh - var(--bar-h) - 200px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-modal); padding: 12px 14px 14px; }
  .dgrid__lbl { margin: 0 0 6px; }
  .dgrid { columns: 3; column-gap: 10px; }
  .dopt { display: block; width: 100%; padding: 6px 8px; border-radius: var(--r-sm); font-size: 13px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; break-inside: avoid; }
  .dopt em { font-style: normal; font-weight: 700; color: var(--red); }
  .dopt:hover { background: var(--idle); }
  .dopt[aria-current="true"] { color: var(--red); font-weight: 700; }
  .dopt[aria-selected="true"] { background: var(--red-soft); color: var(--red); font-weight: 700; }
  .dcombo__pop .dempty, .dlist__body .dempty { padding: 6px 2px; margin: 0; }
  .drecent { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); min-height: 20px; }
  .drecent .ico { width: 14px; height: 14px; margin-right: -4px; }
  .drecent__a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
  .drecent__a:hover { text-decoration-color: currentColor; }

  /* Alt bölme: liste (ya da konum durumu / ilçe seçilmemişken 3 sütun ilçe dizini). */
  .dlist { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  /* Yakınımdakiler yarıçapı: haritanın sol üstünde (mobildeki gibi harita üstü çip); menü aşağı açılır. */
  .dradius { position: fixed; z-index: 6; top: calc(var(--bar-h) + var(--s-md)); left: calc(var(--desk-panel-w) + var(--s-md)); }
  .dradius .radius__chip { height: 44px; font-size: 15px; }
  .dradius .radius__chip .ico { width: 20px; height: 20px; }
  .dradius .radius__menu { top: calc(100% + 8px); bottom: auto; }
  .dlist__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px 20px 20px; scrollbar-width: thin; }
  .dlist__body .plist { padding: 0; }
  .dlist__body .state { padding: 32px 16px; }
  .dnote { border-radius: var(--r-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; background: var(--white); box-shadow: var(--sh-card); margin-bottom: 12px; }
  .dnote--deny { box-shadow: none; border: 1.5px solid rgba(200, 12, 15, .28); }
  .dnote__ic { width: 36px; height: 36px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
  .dnote--deny .dnote__ic { background: var(--red-soft); color: var(--red); }
  .dnote b { display: block; font-size: 14px; font-weight: 600; }
  .dnote p { margin: 2px 0 0; color: var(--muted); }
  .dnote__acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .dnote__acts button { height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
  .dnote__acts .ico { width: 16px; height: 16px; }
  .dnote__pri { background: var(--red); color: var(--white); }
  .dnote__sec { border: 1px solid var(--border); background: var(--white); }
  .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(29, 112, 183, .25); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
  .dlist__body > .dgrid { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-list); padding: 8px; }
  /* Panelin altı: 48 px sabit şerit (QR · Paylaş · Hata bildir). */
  .dfoot { flex: none; height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-top: 1px solid var(--line); background: var(--white); }
  .dfoot__btn { height: 36px; padding: 0 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
  .dfoot__btn .ico { width: 16px; height: 16px; }
  .dfoot__btn:hover { background: var(--idle); color: var(--ink); }
  .dapp { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 14px; border-top: 1px solid var(--line); background: var(--white); }
  .dapp__t { flex: 1; min-width: 0; line-height: 1.25; }
  .dapp__t b { display: block; font-size: 13.5px; font-weight: 700; }
  .dapp__t small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dapp__go { height: 34px; padding: 0 16px; border-radius: var(--r-pill); background: var(--red); color: var(--white); font-size: 13px; font-weight: 600; }
  .dapp__go:hover { background: var(--hero-top); }
  .dapp__x { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
  .dapp__x .ico { width: 16px; height: 16px; }
  .dapp__x:hover { background: var(--idle); color: var(--ink); }
  .maphint { position: fixed; z-index: 4; top: 44%; left: calc(var(--desk-panel-w) + (100vw - var(--desk-panel-w)) / 2); transform: translate(-50%, -50%); margin: 0; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 10px 16px; font-size: 13px; color: var(--muted); box-shadow: var(--sh-soft); text-align: center; pointer-events: none; }
  .maphint b { display: block; color: var(--ink); font-size: 14px; }

  /* Seçili eczane: mobil alt kartı (kapat × ile). */
  /* Sol altta, panele yaslı (#17, kullanıcı): listeye en yakın yer; sağ alttaki Yandex logosu/sözleşmesi açıkta kalır, sol alttaki
     Yandex "Haritalar'da aç" bağlantısının (Yandex'in kendi öğesi, taşınmaz) üstünde durur. */
  .dsheet { position: fixed; left: calc(var(--desk-panel-w) + var(--s-md)); bottom: 52px; width: 380px; z-index: 6; }
  .dsheet .sheet { border-radius: var(--r-xl); box-shadow: 0 12px 36px rgba(0, 0, 0, .20); padding-top: var(--s-lg); }
  .dsheet .sheet__grip { display: none; }
  .app[data-enter~="sheet"] .dsheet .sheet { animation-name: appear; }
  .toast { left: calc(var(--desk-panel-w) + (100vw - var(--desk-panel-w)) / 2); }
  .ask { background: rgba(48, 48, 48, .12); top: var(--bar-h); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pencere dar ekranda tek sütun (QR penceresi masaüstünde açılır; bu yalnız güvenlik ağı). */
@media (max-width: 760px) {
  .modal__card, .modal__card--app { grid-template-columns: 1fr; padding: 32px var(--s-lg) var(--s-lg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
