/* Rize Yakınımda 4.5 */
.yk { position:relative; display:grid; grid-template-columns: 400px minmax(0,1fr); gap:0; height: calc(100vh - var(--ry-ust-h, 64px) - 7rem); min-height: 620px; border-radius: 24px; overflow:hidden; border:1px solid var(--ry-cizgi); background: var(--ry-yuzey); box-shadow: 0 20px 50px -30px rgba(14,42,28,.35); margin-bottom: 2rem; }
.yk-panel { display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--ry-cizgi); background: var(--ry-yuzey); }
.yk-bas { padding: 1.1rem 1.1rem .7rem; display:grid; gap:.7rem; background: linear-gradient(160deg, var(--ry-cay-800, #1f5132), var(--ry-cay-600, #2f7a4b)); color:#fff; }
.yk-baslik { display:flex; align-items:center; gap:.75rem; }
.yk-logo { width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:14px; background: rgba(255,255,255,.16); font-size:1.2rem; color:#d7f08a; }
.yk-baslik h1 { margin:0; font-size:1.35rem; font-weight:900; letter-spacing:-.03em; color:#fff !important; }
.yk-baslik p { margin:0; font-size:.82rem; color: rgba(255,255,255,.75); }
.yk-konum { display:flex; align-items:center; gap:.45rem; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); border-radius:14px; padding:.25rem .3rem .25rem .75rem; }
.yk-konum > i { color:#ffd36b; }
.yk-konum select { flex:1; min-width:0; background:transparent; border:0; color:#fff; font-weight:800; font-size:.95rem; padding:.35rem 0; cursor:pointer; }
.yk-konum select:focus { outline:none; }
.yk-konum select option { color:#14261b; }
.yk-konum-btn { display:inline-flex; align-items:center; gap:.4rem; border:0; border-radius:10px; background:#fff; color: var(--ry-cay-800, #1f5132); font-weight:800; font-size:.8rem; padding:.45rem .7rem; white-space:nowrap; }
.yk-konum-btn.yukleniyor i { animation: yk-don 1s linear infinite; }
@keyframes yk-don { to { transform: rotate(360deg); } }
.yk-ara { position:relative; }
.yk-ara i { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); color: var(--ry-soluk); font-size:.85rem; }
.yk-ara input { width:100%; height:42px; border:0; border-radius:12px; padding:0 .9rem 0 2.3rem; font: 600 .92rem var(--ry-font); background:#fff; color:#14261b; }
.yk-ara input:focus { outline: 3px solid rgba(215,240,138,.6); }

.yk-turler { display:flex; gap:.4rem; overflow-x:auto; padding:.75rem 1.1rem; border-bottom:1px solid var(--ry-cizgi); scrollbar-width:thin; flex:none; }
.yk-tur { flex:none; display:flex; flex-direction:column; align-items:center; gap:.25rem; width:68px; padding:.45rem .2rem .4rem; border:1px solid transparent; border-radius:14px; background:none; position:relative; cursor:pointer; transition: background .15s, border-color .15s, opacity .15s; }
.yk-tur span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background: color-mix(in srgb, var(--r) 13%, transparent); color: var(--r); font-size:.95rem; transition: transform .15s; }
.yk-tur b { font-size:.7rem; font-weight:700; color: var(--ry-metin); line-height:1.15; text-align:center; }
.yk-tur em { position:absolute; top:2px; right:6px; font-style:normal; font-size:.62rem; font-weight:800; background: var(--ry-murekkep, #14261b); color:#fff; border-radius:999px; padding:0 5px; min-width:16px; line-height:16px; text-align:center; }
.yk-tur em:empty { display:none; }
.yk-tur:hover { background: var(--ry-yuzey-2); }
.yk-tur:hover span { transform: translateY(-2px); }
.yk-tur.secili { background: var(--ry-yuzey-2); border-color: var(--ry-cizgi); }
.yk-tur.secili span { background: var(--r); color:#fff; }
.yk-tur.bos { opacity:.45; }

.yk-suzgec { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.65rem 1.1rem; flex:none; flex-wrap:wrap; }
.yk-km { display:flex; gap:2px; padding:3px; background: var(--ry-yuzey-2); border-radius:11px; }
.yk-km label { margin:0; cursor:pointer; }
.yk-km input { position:absolute; opacity:0; pointer-events:none; }
.yk-km span { display:block; padding:.3rem .55rem; border-radius:8px; font-size:.76rem; font-weight:800; color: var(--ry-soluk); }
.yk-km input:checked + span { background: var(--ry-yuzey); color: var(--ry-cay-800, #1f5132); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.yk-km input:focus-visible + span { outline:2px solid var(--ry-cay-600); }
.yk-anahtar { display:inline-flex; align-items:center; gap:.45rem; font-size:.84rem; font-weight:800; color: var(--ry-metin); cursor:pointer; margin:0; }
.yk-anahtar input { position:absolute; opacity:0; }
.yk-anahtar span { width:36px; height:21px; border-radius:99px; background: var(--ry-cizgi); position:relative; transition: background .2s; }
.yk-anahtar span::after { content:""; position:absolute; top:3px; left:3px; width:15px; height:15px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.yk-anahtar input:checked + span { background: #2f9e5b; }
.yk-anahtar input:checked + span::after { transform: translateX(15px); }
.yk-anahtar input:focus-visible + span { outline:2px solid var(--ry-cay-600); outline-offset:2px; }

.yk-ozet { padding:0 1.1rem .5rem; font-size:.8rem; color: var(--ry-soluk); flex:none; }
.yk-ozet b { color: var(--ry-murekkep); font-size:.9rem; }
.yk-ozet span { font-weight:700; }
.yk-liste { flex:1; min-height:0; overflow-y:auto; padding: 0 .7rem .8rem; display:grid; align-content:start; gap:.45rem; scrollbar-width:thin; }
.yk-kart { display:flex; gap:.75rem; padding:.8rem; border:1px solid var(--ry-cizgi); border-radius:16px; background: var(--ry-yuzey); cursor:pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.yk-kart:hover { border-color: var(--ry-cay-400, #6aa883); box-shadow: 0 8px 20px -14px rgba(14,42,28,.5); }
.yk-kart.secili { border-color: var(--ry-cay-600, #2f7a4b); box-shadow: 0 0 0 3px rgba(47,122,75,.15); }
.yk-kart:focus-visible { outline:2px solid var(--ry-cay-600); }
.yk-kart-ikon { width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:13px; background: color-mix(in srgb, var(--r) 13%, transparent); color: var(--r); font-size:1rem; }
.yk-kart-govde { flex:1; min-width:0; display:grid; gap:.2rem; }
.yk-kart-ust { display:flex; align-items:flex-start; justify-content:space-between; gap:.5rem; }
.yk-kart-ust b { font-size:.95rem; color: var(--ry-murekkep); line-height:1.25; }
.yk-mesafe { flex:none; font-size:.74rem; font-weight:800; color: var(--ry-cay-700, #276640); background: var(--ry-cay-50, #eef6f0); padding:.1rem .45rem; border-radius:99px; }
.yk-kart small { color: var(--ry-soluk); font-size:.78rem; }
.yk-kart small .fa-circle-check { color: #2f9e5b; }
.yk-kart p { margin:0; font-size:.8rem; color: var(--ry-soluk); line-height:1.35; }
.yk-durum { justify-self:start; font-size:.72rem; font-weight:800; padding:.1rem .5rem; border-radius:99px; background: var(--ry-yuzey-2); color: var(--ry-soluk); }
.yk-durum.acik { background:#e3f6ea; color:#1d7a43; }
.yk-durum.kapali { background:#fde8e4; color:#b23a24; }
.yk-kart-btn { display:flex; gap:.35rem; margin-top:.3rem; flex-wrap:wrap; }
.yk-kart-btn a { display:inline-flex; align-items:center; gap:.35rem; height:32px; padding:0 .7rem; border-radius:9px; font-size:.78rem; font-weight:800; border:1px solid var(--ry-cizgi); color: var(--ry-metin) !important; background: var(--ry-yuzey); }
.yk-kart-btn a.ana { background: var(--ry-cay-700, #276640); border-color: var(--ry-cay-700, #276640); color:#fff !important; }
.yk-kart-btn a:hover { filter: brightness(.96); }
.yk-iskelet { display:flex; gap:.75rem; padding:.8rem; border:1px solid var(--ry-cizgi); border-radius:16px; }
.yk-iskelet span { width:42px; height:42px; border-radius:13px; }
.yk-iskelet div { flex:1; display:grid; gap:.45rem; }
.yk-iskelet i { display:block; height:11px; border-radius:6px; }
.yk-iskelet i:last-child { width:55%; }
.yk-iskelet span, .yk-iskelet i { background: linear-gradient(90deg, var(--ry-yuzey-2) 25%, var(--ry-cizgi) 50%, var(--ry-yuzey-2) 75%); background-size:200% 100%; animation: yk-parla 1.2s infinite; }
@keyframes yk-parla { to { background-position: -200% 0; } }
.yk-bos { display:grid; justify-items:center; gap:.35rem; text-align:center; padding:2.2rem 1rem; color: var(--ry-soluk); }
.yk-bos i { font-size:1.8rem; color: var(--ry-cay-400, #6aa883); margin-bottom:.3rem; }
.yk-bos.hata i { color: #d0573f; }
.yk-bos b { color: var(--ry-murekkep); }
.yk-bos span { font-size:.85rem; }
.yk-bos .ry-btn { margin-top:.5rem; }
.yk-kaynak { flex:none; margin:0; padding:.55rem 1.1rem .7rem; border-top:1px solid var(--ry-cizgi); font-size:.7rem; color: var(--ry-soluk); }

.yk-harita-alan { position:relative; min-height: 420px; height: 100%; }
.yk-harita { position:absolute; inset:0; z-index:1; min-height: 420px; background:#d5e0d8; }
.yk-harita.leaflet-container { width: 100%; height: 100%; font-family: var(--ry-font); }
.yk-harita img.leaflet-tile { max-width: none !important; mix-blend-mode: normal !important; }
.yk-harita-btn { position:absolute; top:12px; right:12px; z-index:500; display:grid; gap:6px; }
.yk-harita-btn button { width:40px; height:40px; border:0; border-radius:12px; background:#fff; color:#1f5132; box-shadow: 0 4px 14px -4px rgba(0,0,0,.35); }
.yk-harita-btn button:hover { background:#f0f6f2; }
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom: 28px; border:0; box-shadow: 0 4px 14px -4px rgba(0,0,0,.35); border-radius:12px; overflow:hidden; }
.yk-isaret span { position:relative; display:grid; place-items:center; width:34px; height:34px; border-radius:50% 50% 50% 4px; transform: rotate(-45deg); background: var(--r); border:2.5px solid #fff; box-shadow: 0 6px 14px -4px rgba(0,0,0,.45); transition: transform .15s; }
.yk-isaret span i { transform: rotate(45deg); color:#fff; font-size:.8rem; }
.yk-isaret:hover span, .yk-isaret.secili span { transform: rotate(-45deg) scale(1.15); }
.yk-isaret.kapali span { filter: saturate(.35) brightness(1.05); }
.yk-ben span { display:block; width:22px; height:22px; border-radius:50%; background:#2563eb; border:3px solid #fff; box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: yk-nabiz 2s infinite; }
@keyframes yk-nabiz { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
.yk-pop { display:grid; gap:.2rem; font-family: var(--ry-font); }
.yk-pop b { font-size:.95rem; color:#14261b; }
.yk-pop small { color:#5c6b62; }
.yk-pop p { margin:.1rem 0 0 !important; font-size:.8rem; color:#5c6b62; }
.yk-pop > div { display:flex; gap:.4rem; margin-top:.4rem; }
.yk-pop a { display:inline-flex; align-items:center; gap:.3rem; padding:.3rem .6rem; border-radius:8px; background:#276640; color:#fff !important; font-weight:800; font-size:.76rem; }
.yk-pop a + a { background:#eef3ef; color:#1f5132 !important; }
.leaflet-popup-content-wrapper { border-radius:14px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }

.yk-mobil-gec { display:none; }
.yk-bildirim { position:absolute; left:50%; top:16px; transform:translateX(-50%); z-index:900; background:#14261b; color:#fff; padding:.6rem 1rem; border-radius:12px; font-size:.86rem; font-weight:600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: 90%; transition: opacity .4s, transform .4s; }
.yk-bildirim.git { opacity:0; transform: translate(-50%, -10px); }

.yk-kilit { position:absolute; inset:0; z-index:800; display:grid; place-items:center; padding:1rem; background: rgba(237,241,238,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.yk-kilit > div { max-width:440px; text-align:center; background: var(--ry-yuzey); border-radius:22px; padding:1.6rem 1.5rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.yk-kilit-ikon { display:inline-grid; place-items:center; width:54px; height:54px; border-radius:16px; background: var(--ry-cay-100, #dcefe2); color: var(--ry-cay-700, #276640); font-size:1.3rem; }
.yk-kilit h2 { font-size:1.35rem; font-weight:900; margin:.7rem 0 .4rem; }
.yk-kilit p { color: var(--ry-soluk); margin:0 0 .6rem; font-size:.92rem; }
.yk-kilit-kanit { font-weight:700; color: var(--ry-cay-700) !important; }
.yk-kilit-btn { display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap; margin-top:.8rem; }

[data-tema="karanlik"] .yk-durum.acik { background: rgba(47,158,91,.18); color:#8fe0ab; }
[data-tema="karanlik"] .yk-durum.kapali { background: rgba(208,87,63,.18); color:#f2a08e; }
[data-tema="karanlik"] .yk-mesafe { background: rgba(143,211,163,.12); color:#a8dcb8; }
[data-tema="karanlik"] .yk-kilit { background: rgba(11,21,16,.7); }

@media (max-width: 991px) {
  .yk { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: 20px; }
  .yk-panel { border-right:0; }
  .yk-liste { max-height: none; overflow: visible; }
  .yk-harita-alan { display:none; height: 70vh; }
  .yk[data-gorunum="harita"] .yk-harita-alan { display:block; }
  .yk[data-gorunum="harita"] .yk-liste, .yk[data-gorunum="harita"] .yk-ozet, .yk[data-gorunum="harita"] .yk-kaynak { display:none; }
  .yk-mobil-gec { display:flex; position:fixed; left:50%; bottom: calc(var(--ry-mobil-alt, 76px) + 8px); transform:translateX(-50%); z-index:1040; background:#14261b; border-radius:999px; padding:4px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
  .yk-mobil-gec button { border:0; background:none; color: rgba(255,255,255,.75); font-weight:800; font-size:.85rem; padding:.5rem 1rem; border-radius:999px; display:inline-flex; gap:.4rem; align-items:center; }
  .yk-mobil-gec button.secili { background:#fff; color:#14261b; }
  .yk-kilit { position: absolute; }
}
@media (max-width: 480px) {
  .yk-konum-btn span { display:none; }
  .yk-km span { padding:.3rem .45rem; }
}
.yk-konum select { width:0; flex:1 1 0; }
.yk-konum-btn { flex:none; }
@media (min-width: 992px) {
  .yk-turler { flex-wrap:wrap; overflow:visible; gap:.3rem; }
  .yk-tur { width: calc((100% - 5 * .3rem) / 6); }
}
.yk > * { min-width:0; }
@media (max-width: 991px) { .yk { grid-template-columns: minmax(0, 1fr); } }
