:root {
  --lacivert: #12233b; --lacivert2: #1c3555; --krem: #f6f1e7; --kart: #ffffff;
  --altin: #d9a531; --altin-koyu: #a87a12; --metin: #1b2433; --soluk: #6b7686; --cizgi: #e4dccb;
  --sekme-y: calc(60px + env(safe-area-inset-bottom));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0b1626; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--metin); overscroll-behavior: none; }
#uyg { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--krem); overflow: hidden; }
h1 { font-size: 26px; margin: 0 0 14px; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 15px; margin: 0; }
p { margin: 0 0 10px; line-height: 1.4; }
.gizli { display: none !important; }
.soluk { color: var(--soluk); font-size: 14px; }
.kucuk { font-size: 12px; }

.sekme { position: absolute; inset: 0 0 var(--sekme-y) 0; display: none; }
.sekme.aktif { display: block; }
.kaydir { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sekme.kaydir { padding: calc(18px + env(safe-area-inset-top)) 16px 24px; }

#sekmeler { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sekme-y); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--lacivert); z-index: 1200; }
#sekmeler button { flex: 1; background: none; border: 0; color: #8fa3bd; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#sekmeler button.aktif { color: var(--altin); }
#sekmeler svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

#harita-alan { position: absolute; inset: 0; background: #dfe6da; }
.ust-rozet { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 1000; background: rgba(18, 35, 59, .92); color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 14px; text-align: center; }
.fab { position: absolute; z-index: 1000; left: 50%; transform: translateX(-50%); bottom: 18px; background: var(--altin); color: var(--lacivert); font-weight: 700; font-size: 16px; border: 0; padding: 14px 24px; border-radius: 28px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); white-space: nowrap; }
.ben-nokta { width: 18px; height: 18px; border-radius: 50%; background: #2f7df6; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(47, 125, 246, .35); }
.sandik-igne { width: 34px; height: 34px; border-radius: 50%; background: var(--lacivert); border: 2px solid var(--altin); background-size: cover; background-position: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.sandik-igne.benim { border-color: #fff; }

.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 700; margin-top: 10px; }
.btn.ana { background: var(--altin); color: var(--lacivert); }
.btn.ana:disabled { background: #d8d2c4; color: #8b8676; }
.btn.duz { background: transparent; color: var(--lacivert2); font-weight: 600; }
.btn.acik { background: rgba(255, 255, 255, .16); color: #fff; }

.alt-kart { position: absolute; left: 8px; right: 8px; bottom: calc(var(--sekme-y) + 8px); z-index: 1500; background: var(--kart); border-radius: 20px; padding: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-height: 72%; overflow-y: auto; }
.alt-kart .kapat { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; color: var(--soluk); }
.kart-ust { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.kart-ust img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.ipucu { background: var(--krem); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.ipucu-foto { display: block; width: 100%; max-height: 34dvh; object-fit: contain; border-radius: 12px; margin-bottom: 10px; background: #12233b; }
.mesafe { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--soluk); }
.mesafe b { font-size: 22px; color: var(--metin); }
.sicak-cubuk { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #facc15, #ef4444); position: relative; margin: 8px 0 4px; }
.sicak-cubuk i { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--lacivert); transition: left .4s; }

.tam-ekran { position: absolute; inset: 0; z-index: 2000; background: var(--krem); display: flex; flex-direction: column; }
.tam-ekran.koyu { background: radial-gradient(120% 80% at 50% 30%, #2a4a73, #0d1a2c); color: #fff; }
.tam-ekran header { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.tam-ekran header.seffaf { position: absolute; top: 0; left: 0; right: 0; z-index: 3; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.geri { border: 0; background: none; font-size: 34px; line-height: 1; color: inherit; padding: 0 10px 4px 2px; }
.tam-ekran .ic { flex: 1; padding: 6px 16px 24px; }

#kamera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
#sahne-ekran.kamerali #kamera { display: block; }
#sahne-yuva { position: absolute; inset: 0; z-index: 1; }
.sahne-tuval { width: 100%; height: 100%; display: block; touch-action: none; }
#sahne-alt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(6, 14, 26, .85) 45%); text-align: center; }
#sahne-alt p { color: #e6edf7; font-size: 15px; }
#ara-foto { position: absolute; z-index: 3; top: calc(58px + env(safe-area-inset-top)); right: 12px; width: 30%; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transition: width .2s; }
#ara-foto.buyuk { width: 72%; }
.iki { display: flex; gap: 10px; }
.sonuc { background: #fff; color: var(--metin); border-radius: 18px; padding: 16px; }
.sonuc h2 { font-size: 21px; margin-bottom: 6px; }
#sahne-alt .sonuc p { color: var(--soluk); font-size: 14px; }

.rozet { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: #e6e9ee; color: #4a5565; }
.rozet.efsanevi { background: #f6e3a6; color: #7a5600; }

.set { background: var(--kart); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.set-ust { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hucre { aspect-ratio: 1; border-radius: 12px; background: #efe9db; border: 0; padding: 0; position: relative; overflow: hidden; color: #b9b09a; font-size: 13px; font-weight: 700; }
.hucre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hucre.var { box-shadow: 0 0 0 2px var(--altin); }

.satir { display: flex; align-items: center; gap: 12px; background: var(--kart); border-radius: 16px; padding: 10px; margin-bottom: 10px; width: 100%; border: 0; text-align: left; font-size: 15px; color: inherit; }
.satir img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.satir .adet { margin-left: auto; font-weight: 700; font-size: 17px; padding-right: 6px; }
.satir:disabled { opacity: .45; }
.sayilar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sayi { background: var(--kart); border-radius: 16px; padding: 14px; }
.sayi b { display: block; font-size: 26px; }
.onay { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0 12px; }
.onay input { width: 20px; height: 20px; }
textarea { width: 100%; border: 1px solid var(--cizgi); border-radius: 14px; padding: 12px; font: inherit; font-size: 16px; background: #fff; resize: none; }
#ipucu-foto { display: block; width: 100%; max-height: 46dvh; object-fit: contain; border-radius: 14px; background: #12233b; }

#vitrin-yuva { flex: 1; background: radial-gradient(90% 70% at 50% 40%, #ffffff, #e9e0cc); min-height: 0; }
.vitrin-alt { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.vitrin-alt p { margin: 6px 0 0; }

#bildirim { position: absolute; left: 16px; right: 16px; top: calc(60px + env(safe-area-inset-top)); z-index: 3000; background: rgba(18, 35, 59, .96); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.leaflet-control-attribution { font-size: 9px; }

.hucre.var { position: relative; }
.hucre-adet { position: absolute; right: 4px; bottom: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lacivert); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.hucre-adet.yok { background: #9aa3b0; }
.hucre.yok img { filter: grayscale(1); opacity: .45; }
.hucre-no { position: absolute; left: 6px; top: 5px; color: #8f876f; font-size: 12px; font-weight: 700; }
.dil-sec { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; font-weight: 600; }
.dil-sec select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid #d8d2c4; background: #fff; }

.kucuk-btn { font-size: 13px; padding: 8px; margin-top: 4px; color: var(--soluk); }
.tam-ekran.ust { z-index: 2100; }
.satir.secim { padding: 14px 12px; gap: 10px; }
.satir.secim input { width: 20px; height: 20px; flex: none; }
#sikayet textarea { margin-top: 4px; }

/* Sakladığın sandık bulundu */
.perde { position: absolute; inset: 0; z-index: 2500; background: rgba(13, 26, 44, .62); display: flex; align-items: center; justify-content: center; padding: 24px; }
.odul-kart { width: 100%; max-width: 340px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.odul-kart p { font-size: 14px; margin-bottom: 14px; }
#odul-gorseller img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; margin: 0 4px 10px; }
