/* Eleman düzenleme: kart, sürükleme tutamacı, tıklanabilir ölçüler, öneriler, yapı ağacı, oda eşyaları, kılavuz */
.olcu-et:not(.pasif) { pointer-events: auto; cursor: text; }
.olcu-et:not(.pasif) rect { stroke: rgba(216, 90, 48, .9); stroke-width: 1.4; }
.olcu-et:not(.pasif):hover rect { fill: #D85A30; }
.ws-olcu2 line.ince { stroke-width: 1; stroke-dasharray: 3 3; opacity: .85; }
.ws-olcu2 text { font-size: 11.5px; }

.e-tut { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #D85A30; color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); pointer-events: auto; cursor: ns-resize; touch-action: none; user-select: none; animation: eNabiz 1.8s ease-in-out infinite; }
.e-tut[data-eksen="x"] { cursor: ew-resize; }
.e-tut[hidden], .e-kart[hidden], .e-olcu-gir[hidden], .es-pop[hidden] { display: none !important; }
.surukleniyor .e-tut { animation: none; transform: scale(1.1); }
@keyframes eNabiz { 0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 0 rgba(216, 90, 48, .5); } 50% { box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 9px rgba(216, 90, 48, 0); } }

.e-kart { position: absolute; z-index: 9; width: 268px; max-width: calc(100% - 20px); pointer-events: auto; background: #FAF8F4; color: #1F1E1C; border-radius: 16px;
  padding: 14px 14px 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); border: 1px solid #E4E0D8; font-size: 13.5px; animation: eGir .18s ease-out; }
html[data-tema="koyu"] .e-kart { background: #282725; color: #FAF8F4; border-color: #3A3834; }
@keyframes eGir { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.e-kart h4 { margin: 0 26px 10px 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.e-kart h4 small { display: block; font-weight: 400; font-size: 11.5px; color: #6B6860; margin-top: 2px; }
html[data-tema="koyu"] .e-kart h4 small, html[data-tema="koyu"] .e-not { color: #A9A59C; }
.e-kapat { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.e-kapat:hover { background: rgba(0, 0, 0, .07); }
.e-sat { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; }
.e-gir { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #6B6860; }
.e-gir input, .e-blok select { width: 84px; padding: 7px 9px; border: 1px solid #DDD8CF; border-radius: 10px; font: inherit; font-weight: 600; background: #fff; color: #1F1E1C; text-align: right; }
.e-blok select { width: 100%; text-align: left; }
.e-gir input:focus, .e-blok select:focus { outline: 2px solid #D85A30; outline-offset: 0; border-color: transparent; }
.e-blok { margin: 10px 0; }
.e-blok > label { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #6B6860; margin-bottom: 6px; }
.e-seg { display: flex; flex-wrap: wrap; gap: 4px; background: #EFECE6; padding: 3px; border-radius: 12px; }
html[data-tema="koyu"] .e-seg { background: #1F1E1C; }
.e-seg button { flex: 1 1 auto; border: 0; background: transparent; padding: 7px 8px; border-radius: 9px; font: inherit; font-size: 12.5px; color: inherit; cursor: pointer; }
.e-seg button.secili { background: #1F1E1C; color: #FAF8F4; }
html[data-tema="koyu"] .e-seg button.secili { background: #D85A30; }
.e-renk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.e-renk button { aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; background: var(--c, #EFECE6); box-shadow: 0 0 0 1px #DDD8CF; cursor: pointer; font-weight: 700; color: #6B6860; padding: 0; }
.e-renk button.secili { box-shadow: 0 0 0 2px #D85A30; }
.e-satir { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.e-btn { border: 1px solid #DDD8CF; background: #fff; color: #1F1E1C; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; cursor: pointer; transition: .15s; }
.e-btn:hover { border-color: #1F1E1C; }
.e-btn.tehlike { color: #b3401b; }
.e-btn.tehlike:hover { border-color: #b3401b; background: #fbeee8; }
html[data-tema="koyu"] .e-btn { background: #1F1E1C; color: #FAF8F4; border-color: #3A3834; }
.e-not { font-size: 12px; color: #6B6860; margin: 6px 0; line-height: 1.4; }
.e-sayac { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #DDD8CF; border-radius: 999px; padding: 2px; }
.e-sayac button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; font-size: 16px; cursor: pointer; color: inherit; }
.e-sayac button:hover:not(:disabled) { background: #EFECE6; }
.e-sayac button:disabled { opacity: .3; cursor: default; }
.e-sayac b { min-width: 22px; text-align: center; }

.e-olcu-gir { position: absolute; z-index: 10; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; gap: 6px; background: #1F1E1C; color: #FAF8F4; border-radius: 999px; padding: 5px 12px 5px 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.e-olcu-gir input { width: 84px; border: 0; border-radius: 999px; padding: 7px 10px; font: 700 15px Outfit, sans-serif; text-align: center; }
.e-olcu-gir input:focus { outline: 2px solid #D85A30; }

/* öneriler */
.ws-oneri { margin: 10px 14px 0; padding: 12px; border-radius: 14px; background: #FDF1EC; border: 1px solid #F3CDBE; color: #1F1E1C; display: grid; gap: 8px; font-size: 13px; }
html[data-tema="koyu"] .ws-oneri, .ws .ws-oneri { background: rgba(216, 90, 48, .12); border-color: rgba(216, 90, 48, .4); color: inherit; }
.ws-oneri .oneri { display: flex; gap: 10px; align-items: center; justify-content: space-between; line-height: 1.4; }
.ws-oneri .oneri .btn { padding: 7px 14px; font-size: 12.5px; flex: none; }

/* yapı ağacı */
.e-ipucu { font-size: 13px; line-height: 1.5; opacity: .85; margin: 0 0 12px; }
.e-agac { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.e-agac-sutun { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); }
.e-agac-sutun.secili { border-color: #D85A30; }
.e-agac button { border: 0; text-align: left; font: inherit; font-size: 12.5px; color: inherit; cursor: pointer; border-radius: 8px; padding: 6px 8px; background: rgba(255, 255, 255, .06); }
.e-agac button:hover { background: rgba(216, 90, 48, .18); }
.e-agac button.secili { background: #D85A30; color: #fff; }
.e-agac-bas { display: flex; justify-content: space-between; gap: 6px; background: transparent !important; padding: 2px 4px 6px !important; }
.e-agac-bas span { opacity: .7; }
.e-agac-bol i { font-style: normal; display: inline-block; width: 16px; opacity: .8; }

/* oda eşyaları */
.es-pop { position: absolute; z-index: 8; left: 50%; bottom: 78px; transform: translateX(-50%); width: min(380px, calc(100% - 24px)); background: #FAF8F4; color: #1F1E1C; border-radius: 16px; padding: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
html[data-tema="koyu"] .es-pop { background: #282725; color: #FAF8F4; }
.es-menu > b { display: block; margin-bottom: 8px; }
.es-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.es-izgara button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; border: 1px solid #E4E0D8; background: #fff; font: inherit; font-size: 11.5px; cursor: pointer; color: #1F1E1C; }
.es-izgara button:hover { border-color: #D85A30; }
.es-izgara i { font-style: normal; font-size: 22px; }
.es-menu .link { margin-top: 8px; font-size: 12.5px; }
.e-esya { width: 240px; }

/* kılavuz */
.kv-perde { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.kv-delik { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(31, 30, 28, .55); transition: all .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; outline: 2px solid #D85A30; outline-offset: 2px; }
.kv-kart { position: fixed; z-index: 9001; width: min(340px, calc(100vw - 32px)); background: #FAF8F4; color: #1F1E1C; border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: all .35s cubic-bezier(.2, .8, .2, 1); font-family: Outfit, sans-serif; }
.kv-kart small { color: #D85A30; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.kv-kart h3 { margin: 6px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.kv-kart p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #45423D; }
.kv-alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv-alt .kv-noktalar { display: flex; gap: 5px; }
.kv-alt .kv-noktalar i { width: 6px; height: 6px; border-radius: 50%; background: #DDD8CF; }
.kv-alt .kv-noktalar i.on { background: #D85A30; width: 16px; border-radius: 3px; }
.kv-alt button { border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 500; cursor: pointer; }
.kv-ileri { background: #D85A30; color: #fff; }
.kv-gec { background: transparent; color: #6B6860; }
.kv-yardim { position: fixed; left: 18px; bottom: 18px; z-index: 800; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #1F1E1C; color: #FAF8F4; font: 800 20px Outfit, sans-serif; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .2s; }
.kv-yardim:hover { transform: scale(1.08); background: #D85A30; }
html[data-tema="koyu"] .kv-yardim { background: #FAF8F4; color: #1F1E1C; }
body:has(.ws) .kv-yardim { display: none; }
.ws-kilavuz-btn { font: 800 16px Outfit, sans-serif !important; }
@media (max-width: 600px) { .e-kart { width: calc(100% - 20px); left: 10px !important; top: auto !important; bottom: 86px; } .kv-yardim { bottom: 84px; left: 12px; width: 42px; height: 42px; } }
