/* 3D fuar krokisi (/kroki/) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kroki { position: relative; height: calc(100vh - 68px); height: calc(100dvh - 68px); min-height: 440px; overflow: hidden;
  background: linear-gradient(180deg, #f6eef6 0%, var(--paper) 60%); color: var(--ink); }
.kroki__tuval { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.kroki__tuval:active { cursor: grabbing; }

/* Üst şerit: başlık + arama */
.kroki__ust { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.kroki__ust > * { pointer-events: auto; }
.kroki__baslik { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--purple-3); background: #ffffffe6; padding: 8px 14px; border-radius: 12px; box-shadow: 0 2px 10px #401f4f1a; }
.kroki__baslik small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.kroki__ara { position: relative; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.kroki__ara input { width: 100%; height: 48px; padding: 0 16px 0 44px; font: 500 16px/1 var(--sans); color: var(--ink);
  border: 2px solid transparent; border-radius: 24px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3689' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") 14px 50%/20px no-repeat;
  box-shadow: 0 2px 12px #401f4f26; -webkit-appearance: none; appearance: none; }
.kroki__ara input:focus { outline: none; border-color: var(--pink); }
.kroki__oneri { position: absolute; top: 54px; left: 0; right: 0; z-index: 5; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px #401f4f33; overflow: hidden auto; max-height: min(360px, 50vh); }
.kroki__oneri li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 48px; cursor: pointer; font-size: 16px; line-height: 1.25; border-top: 1px solid var(--line); }
.kroki__oneri li:first-child { border-top: 0; }
.kroki__oneri li[aria-selected="true"], .kroki__oneri li:hover { background: #f6eef6; }
.kroki__oneri b { flex: none; min-width: 36px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-1); color: #fff; font-size: 14px; }
.kroki__oneri b.bos { background: var(--line); color: var(--muted); }
.kroki__oneri small { display: block; color: var(--muted); font-size: 13px; }
.kroki__oneri .yok { color: var(--muted); cursor: default; }

/* Gün seçici */
.kroki__gunler { flex: 1 1 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.kroki__gunler::-webkit-scrollbar { display: none; }
.kroki__gunler[hidden] { display: none; }
.kroki__gunler button { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; padding: 4px 10px;
  border: 0; border-radius: 12px; background: #ffffffe6; color: var(--ink); font: 500 13px/1.1 var(--sans); box-shadow: 0 2px 8px #401f4f1a; cursor: pointer; }
.kroki__gunler button b { font-size: 17px; font-weight: 700; }
.kroki__gunler button small { font-size: 11px; color: var(--muted); }
.kroki__gunler button[aria-selected="true"] { background: var(--purple-3); color: #fff; }
.kroki__gunler button[aria-selected="true"] small { color: #ffffffcc; }

/* Lejant */
.kroki__lejant { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: min(560px, calc(100% - 84px));
  padding: 8px 12px; background: #ffffffe0; border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--ink); box-shadow: 0 2px 10px #401f4f14; pointer-events: none; }
.kroki__lejant li { display: flex; align-items: center; gap: 6px; }
.kroki__lejant i { width: 12px; height: 12px; border-radius: 3px; }
.l-yayinevi { background: #8a3689; } .l-dernek { background: #c73171; } .l-soylesi { background: #15395f; }
.l-imza { background: #b1234a; } .l-cafe { background: #b07a2a; } .l-yangin { background: #d62828; } .l-danisma { background: #ff7f0a; } .l-kapi { background: #1f9d55; }

/* Sağ alt araçlar */
.kroki__araclar { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.kroki__araclar button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; background: #fff; color: var(--purple-3);
  font: 600 26px/1 var(--sans); box-shadow: 0 2px 12px #401f4f26; cursor: pointer; }
.kroki__araclar button:hover { color: var(--pink); }
.kroki__araclar button[aria-pressed="true"] { background: var(--purple-3); color: #fff; }
.kroki__araclar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* Görünüm menüsü */
.kroki__gorunumler { position: absolute; right: 72px; bottom: 64px; z-index: 7; display: grid; min-width: 220px; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 10px 32px #401f4f40; animation: kart-gel .18s ease-out; }
.kroki__gorunumler[hidden] { display: none; }
.kroki__gorunumler button { min-height: 46px; padding: 0 14px; text-align: left; border: 0; border-radius: 11px; background: none; font: 500 15.5px var(--sans); color: var(--ink); cursor: pointer; }
.kroki__gorunumler button:hover { background: #f6eef6; }
.kroki__gorunumler button[aria-checked="true"] { background: var(--purple-3); color: #fff; }
@media (max-width: 700px) { .kroki__gorunumler { right: 64px; bottom: 60px; } }

/* Hareket rehberi */
.kroki__yardim { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(380px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 20px 20px 18px; box-shadow: 0 14px 44px #401f4f4d; animation: kart-gel .22s ease-out; }
.kroki__yardim[hidden] { display: none; }
.kroki__yardim h2 { font-size: 19px; color: var(--purple-3); line-height: 1.2; }
.yardim__liste { margin-top: 12px; display: grid; gap: 10px; }
.yardim__liste li { display: flex; align-items: center; gap: 14px; }
.yardim__liste svg { flex: none; width: 44px; height: 44px; padding: 4px; border-radius: 12px; background: #f6eef6; fill: none; stroke: var(--purple-1); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.yardim__liste svg circle { fill: #8a368926; }
.yardim__liste svg .ince { fill: none; stroke-dasharray: 3 3; stroke-width: 1.8; }
.yardim__liste svg .dolu { fill: #8a368955; }
.yardim__liste span { font-size: 14px; line-height: 1.3; color: var(--muted); }
.yardim__liste b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.yardim--fare { display: none; }
@media (hover: hover) and (pointer: fine) { .yardim--fare { display: grid; } .yardim--dokunma { display: none; } }
.yardim__not { margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.yardim__ikon { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: #f6eef6; color: var(--purple-3); font-weight: 700; }
.yardim__tamam { margin-top: 14px; width: 100%; height: 48px; border: 0; border-radius: 14px; background: var(--purple-3); color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.yardim__tamam:hover { background: var(--pink); }
.kroki__araclar button[data-is="yardim"] { font-size: 22px; }
.kroki__yukleniyor { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 16px; pointer-events: none; }
.kroki__yukleniyor[hidden] { display: none; }

/* Stant kartı */
.kroki__kart { position: absolute; right: 72px; bottom: 12px; width: min(400px, calc(100% - 84px)); background: #fff; border-radius: 18px;
  box-shadow: 0 10px 36px #401f4f40; padding: 16px 18px 18px; animation: kart-gel .22s ease-out; }
.kroki__kart[hidden] { display: none; }
@keyframes kart-gel { from { transform: translateY(16px); opacity: 0; } }
.kroki__kapat { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font: 400 30px/1 var(--sans); color: var(--muted); cursor: pointer; border-radius: 12px; }
.kroki__kapat:hover { color: var(--ink); }
.kart__ust { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.kart__no { flex: none; min-width: 52px; height: 52px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-1); color: #fff; font-weight: 700; font-size: 22px; line-height: 1; text-align: center; }
.kart__no small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .08em; opacity: .85; }
.kart__no.dernek { background: var(--pink); } .kart__no.danisma { background: var(--orange); }
.kart__no.soylesi { background: var(--navy); } .kart__no.imza { background: var(--burgundy); } .kart__no.cafe { background: #b07a2a; } .kart__no.karsilama { background: var(--purple-2); } .kart__no.kapi { background: #1f9d55; } .kart__no.koridor { background: #d62828; }
.kart__ad { font-size: 19px; font-weight: 700; line-height: 1.2; }
.kart__tur { font-size: 14px; color: var(--muted); margin-top: 2px; }
.kart__logo { margin-top: 12px; height: 64px; display: flex; align-items: center; }
.kart__logo img { max-height: 64px; max-width: 200px; width: auto; object-fit: contain; }
.kart__bilgi { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 15px; color: var(--ink); }
.kart__bilgi span { color: var(--muted); }
.kart__aciklama { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.kart__foto { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--burgundy); }
.kart__alt { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.kart__program { margin-top: 6px; max-height: min(260px, 34vh); overflow-y: auto; border-top: 1px solid var(--line); }
.kart__program a { display: grid; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 2px; min-height: 48px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.kart__program img, .kart__program .bos { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); }
.kart__program span { grid-row: 1 / 3; display: flex; flex-direction: column; font-size: 15px; line-height: 1.2; min-width: 0; }
.kart__program b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kart__program small { color: var(--muted); font-size: 12.5px; }
.kart__program time { font-weight: 700; font-size: 15px; text-align: right; }
.kart__program em { font-style: normal; font-size: 12px; color: var(--pink); text-align: right; }
.kart__program a:hover b { color: var(--pink); }
.kart__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 16px; border-radius: 22px; background: var(--purple-3); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.kart__link:hover { background: var(--pink); }

/* Stant listesi */
.kroki-liste { padding-block: 40px 56px; }
.kroki-liste h2 { font-size: 28px; color: var(--purple-3); }
.kroki-liste__not { color: var(--muted); font-size: 16px; margin-top: 4px; }
.kroki-liste__ol { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.kroki-liste__ol a, .kroki-liste__ol button { width: 100%; text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 500 16px/1.25 var(--sans); color: var(--ink); cursor: pointer; }
.kroki-liste__ol a:hover, .kroki-liste__ol button:hover { border-color: var(--purple-1); }
.kroki-liste__ol b { flex: none; min-width: 36px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-1); color: #fff; font-size: 14px; }
.kroki-liste__ol b.dernek { background: var(--pink); } .kroki-liste__ol b.danisma { background: var(--orange); } .kroki-liste__ol b.bos { background: var(--line); color: var(--muted); }

@media (max-width: 700px) {
  .kroki { height: calc(100vh - 68px - 96px); height: calc(100svh - 68px); }
  .kroki__ust { top: 8px; left: 8px; right: 8px; gap: 8px; }
  .kroki__baslik { display: none; }
  .kroki__ara { flex-basis: 100%; max-width: none; }
  .kroki__lejant { left: 8px; bottom: 8px; max-width: calc(100% - 72px); gap: 4px 10px; padding: 6px 10px; font-size: 12px; }
  .kroki__araclar { right: 8px; bottom: 8px; }
  .kroki__kart { left: 8px; right: 8px; bottom: 8px; width: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .kroki-liste { padding-block: 28px 40px; }
}
@media (prefers-reduced-motion: reduce) { .kroki__kart, .kroki__yardim { animation: none; } }

/* Şimdi düğmesi ve durum rozetleri */
.kroki__gunler button.simdi { color: #1f9d55; }
.kroki__gunler button.simdi b { font-size: 13px; }
.kroki__gunler button.simdi[aria-selected="true"] { background: #1f9d55; color: #fff; }
.kart__program li.simdi a { background: #e9f7ef; }
.kart__program .durum { font-style: normal; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; color: #fff; border-radius: 10px; padding: 1px 7px; justify-self: end; }
.durum--simdi { background: #1f9d55; } .durum--yakinda { background: var(--orange); }
.kart__program .yildiz { color: #e0a100; }

/* Arama: yazar sonuçları */
.kroki__oneri .oneri__foto { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* Kart eylemleri: listeme ekle, paylaş */
.kart__eylem { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.kart__eylem .kart__link { margin-top: 0; }
.kart__fav, .kart__paylas { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 14.5px var(--sans); cursor: pointer; }
.kart__fav[aria-pressed="true"] { border-color: #e0a100; background: #fff8e1; color: #8a5a00; }
.kart__paylas:hover, .kart__fav:hover { border-color: var(--purple-1); }
.kart__diger { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.kart__diger button { border: 0; background: #f6eef6; color: var(--purple-3); font: 600 13px var(--sans); border-radius: 10px; padding: 4px 9px; margin: 2px 2px 0 0; cursor: pointer; }

/* Listem */
.kart__no.liste { background: #e0a100; }
.kart__liste { margin-top: 6px; display: grid; gap: 6px; max-height: min(320px, 40vh); overflow-y: auto; }
.kart__liste li { display: flex; gap: 8px; align-items: center; }
.kart__liste li > button:first-child { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 8px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 500 15px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.kart__liste img, .kart__liste .bos { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); }
.kart__liste .no { flex: none; min-width: 36px; height: 28px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-1); color: #fff; font-size: 14px; }
.kart__liste span { display: flex; flex-direction: column; min-width: 0; }
.kart__liste span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kart__liste small { color: var(--muted); font-size: 12.5px; }
.kart__liste .kart__fav { min-height: 40px; padding: 0 10px; font-size: 13px; }
.kroki__araclar button[data-is="liste"] { color: #e0a100; font-size: 24px; }

.kroki__bildirim { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 8; margin: 0; padding: 10px 16px; border-radius: 20px; background: #401f4fe6; color: #fff; font-size: 14.5px; max-width: calc(100% - 32px); }
.kroki__bildirim[hidden] { display: none; }
@media (max-width: 700px) { .kroki__kart { max-height: calc(100% - 150px); overflow-y: auto; } }
