/* Demir Konut v12.2 – Şantiye Haritası (js/pages-map.js). Tüm sınıflar mp- önekli. */
.mp-page { padding: 0 !important; max-width: none !important; }
.mp-bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; }
.mp-proj { flex: none; max-width: 42%; }
.mp-search { position: relative; flex: 1; min-width: 0; }
.mp-search input { width: 100%; padding: 10px 36px 10px 38px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.mp-s-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.mp-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; }
.mp-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1200; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3, 0 10px 30px rgba(0,0,0,.25)); max-height: 50vh; overflow: auto; }
.mp-r { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; }
.mp-r small { display: block; color: var(--muted); font-size: 12px; } .mp-r-msg { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.mp-stage { position: relative; height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - var(--safe-t, 0px) - var(--safe-b, 0px) - 64px); min-height: 380px; border-top: 1px solid var(--line); overflow: hidden; background: #dfe5ea; }
@media (min-width: 1024px) { .mp-stage { height: calc(100dvh - var(--topbar-h) - 64px); } }
.mp-map { position: absolute; inset: 0; z-index: 0; }
.mp-stage.mp-full { position: fixed; inset: 0; height: auto; z-index: 900; border: 0; } body.mp-noscroll { overflow: hidden; }
.mp-stage.mp-crosshair .leaflet-container { cursor: crosshair; }
.mp-dark-filter .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
.mp-bar-l, .mp-bar-r { position: absolute; top: 10px; z-index: 800; display: flex; flex-direction: column; gap: 6px; }
.mp-bar-l { left: 10px; } .mp-bar-r { right: 10px; }
.mp-bar-l button, .mp-bar-r button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 22px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
.mp-bar-l button.on, .mp-bar-r button.on { background: var(--accent); color: #1B2A41; border-color: var(--accent); }
.mp-ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-hint { position: absolute; left: 62px; right: 62px; top: 10px; z-index: 810; background: var(--ink, #1B2A41); color: #fff; padding: 9px 12px; border-radius: 12px; font-size: 13px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.mp-hint button { border: 0; border-radius: 8px; padding: 3px 10px; margin-left: 4px; font-weight: 700; background: #fff; color: #1B2A41; }
.mp-coord { position: absolute; left: 10px; bottom: 34px; z-index: 800; background: rgba(255,255,255,.9); color: #1B2A41; font: 600 11.5px/1 ui-monospace, Menlo, monospace; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.mp-status { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 800; display: flex; gap: 6px; align-items: center; border: 0; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 650; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-status i { width: 9px; height: 9px; border-radius: 50%; background: #2E8B62; flex: none; } .mp-status.busy i { background: #E8A33D; } .mp-status.bad i { background: #C0453B; } .mp-status small { color: var(--muted); font-weight: 500; }
.mp-legend { position: absolute; right: 62px; bottom: 34px; z-index: 790; max-width: 46%; }
.mp-lg { background: rgba(255,255,255,.93); color: #1B2A41; border-radius: 12px; padding: 8px 10px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); position: relative; }
.mp-lg > div { display: flex; gap: 7px; align-items: center; padding: 2px 0; } .mp-lg i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; flex: none; }
.mp-lg-x, .mp-lg-toggle { border: 0; background: none; font-size: 16px; position: absolute; right: 6px; top: 2px; } .mp-lg-toggle { position: static; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.mp-drawer { position: absolute; z-index: 850; background: var(--surface); box-shadow: -6px 0 24px rgba(0,0,0,.25); display: flex; flex-direction: column; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); }
.mp-drawer[hidden] { display: none; }
@media (max-width: 700px) { .mp-drawer { left: 0; right: 0; top: auto; width: auto; height: 58%; border-radius: 18px 18px 0 0; } .mp-hint { left: 58px; right: 58px; } .mp-legend { display: none; } }
@media (min-width: 701px) { .mp-d-open .mp-bar-r { right: calc(min(400px, 92vw) + 10px); } .mp-d-open .mp-legend { right: calc(min(400px, 92vw) + 62px); } }
.mp-d-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 0 10px; border-bottom: 1px solid var(--line); } .mp-tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mp-tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 650; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; } .mp-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.mp-d-body { flex: 1; overflow: auto; padding: 12px; overscroll-behavior: contain; } .mp-d-sec { margin-bottom: 14px; } .mp-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.mp-catchips .chip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; } .mp-catchips .chip.on { border-color: var(--cc, var(--accent)); }
.mp-list { display: grid; gap: 4px; } .mp-li { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.mp-li-m { flex: 1; min-width: 0; } .mp-li-m b, .mp-li-m small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-li-m small { color: var(--muted); font-size: 12px; } .mp-li-d { font-size: 12px; color: var(--muted); }
.mp-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 16px; flex: none; }
.mp-lyrs { display: grid; gap: 4px; margin-top: 6px; } .mp-lg-h { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.mp-lyr { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; } .mp-lyr.on { border-color: var(--accent); background: var(--accent-soft, rgba(232,163,61,.12)); } .mp-lyr.off { opacity: .55; }
.mp-lyr-m { flex: 1; min-width: 0; } .mp-lyr-m small { display: block; color: var(--muted); font-size: 11.5px; } .mp-lyr-b { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .mp-lyr-b em { font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); } .mp-lyr-b .free, .mp-lyr-b .okb { background: rgba(46,139,98,.18); } .mp-lyr-b .badb { background: rgba(192,69,59,.18); }
.mp-ov { padding: 6px 0; border-bottom: 1px solid var(--line); } .mp-ov input[type=range] { width: 100%; } .mp-ov small { display: block; color: var(--muted); }
.mp-draw { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; } .mp-draw button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 6px; font: inherit; font-size: 12.5px; color: inherit; cursor: pointer; } .mp-draw button span { display: block; font-size: 20px; }
.mp-m-k { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; } .mp-m-k > div { flex: 1; min-width: 90px; background: var(--surface-2, var(--surface-3)); border-radius: 10px; padding: 8px 10px; } .mp-m-k small { display: block; color: var(--muted); font-size: 11px; } .mp-m-k b { font-size: 15px; }
.mp-prof { width: 100%; height: 90px; display: block; background: var(--surface-2, var(--surface-3)); border-radius: 10px; }
.mp-sv { width: 100%; height: 280px; border: 0; border-radius: 12px; background: #000; } .mp-sv-empty { padding: 14px; border-radius: 12px; background: var(--surface-2, var(--surface-3)); font-size: 13px; color: var(--muted); } .mp-sv-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .mp-sv-links a { padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: 12px; font-weight: 650; font-size: 13px; }
.mp-pin-w, .mp-me-w, .mp-cl-w, .mp-cam-w { background: none !important; border: 0 !important; }
.mp-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); display: grid; place-items: center; } .mp-pin span { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.mp-lab { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: -2px; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: #1B2A41; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
.mp-cl { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.3); } .mp-cl-att { background: #2E8B62; } .mp-cl-ph { background: #3A78C2; }
.mp-me { width: 22px; height: 22px; border-radius: 50%; background: rgba(58,120,194,.25); display: grid; place-items: center; } .mp-me i { width: 12px; height: 12px; border-radius: 50%; background: #3A78C2; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(58,120,194,.6); animation: mpPulse 1.8s infinite; } @keyframes mpPulse { 70% { box-shadow: 0 0 0 12px rgba(58,120,194,0); } 100% { box-shadow: 0 0 0 0 rgba(58,120,194,0); } }
.mp-cam { width: 14px; height: 14px; background: #D81B60; border: 2px solid #fff; border-radius: 50% 50% 50% 0; }
.mp-ml { background: #3A78C2; color: #fff; border: 0; font-weight: 700; padding: 2px 6px; } .mp-ml:before { display: none; } .mp-tt { font-weight: 650; }
.mp-popup .leaflet-popup-content { margin: 10px 12px; min-width: 220px; } .mp-pop-h { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; } .mp-pop-h small { display: block; color: #64748B; font-size: 11.5px; }
.mp-pop-r { font-size: 12.5px; margin: 3px 0; } .mp-pop-n { margin: 4px 0; font-size: 13px; } .mp-pop-c { font: 11.5px ui-monospace, Menlo, monospace; color: #475569; margin: 4px 0; } .mp-pop-img { max-width: 220px; border-radius: 8px; display: block; margin-bottom: 4px; }
.mp-pop-b { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .mp-pop-b a, .mp-pop-b button { border: 1px solid #cbd5e1; background: #f8fafc; color: #1B2A41; border-radius: 8px; padding: 4px 9px; font: 600 12px inherit; text-decoration: none; cursor: pointer; }
.mp-set-tabs { overflow-x: auto; flex-wrap: nowrap; margin-bottom: 10px; } .mp-set-tabs button { white-space: nowrap; flex: none; } .mp-key { padding: 10px 0; border-bottom: 1px solid var(--line); } .mp-key-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .mp-key-h .btn { margin-left: auto; }
.mp-cu { padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; } .mp-cat { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; } .mp-cat input[type=color] { width: 42px; height: 38px; padding: 2px; flex: none; } .mp-cat input:not([type=color]) { flex: 1; min-width: 0; } .mp-pc { padding: 4px 0; }

/* =====================================================================
   ŞANTİYE HARİTASI ÇOKLU CİHAZ (TELEFON, TABLET, LAPTOP) UYUMLULUK
   ===================================================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .mp-stage { height: calc(100dvh - var(--topbar-h, 54px) - 56px); }
  .mp-drawer { width: 360px !important; }
  .mp-d-open .mp-bar-r { right: 370px !important; }
  .mp-d-open .mp-legend { right: 420px !important; }
}

/* Telefon & Tablet Yatay (Landscape: yükseklik <= 580px) */
@media (orientation: landscape) and (max-height: 580px) {
  .mp-bar { padding: 3px 8px; gap: 6px; }
  .mp-proj { max-width: 32%; }
  .mp-bar select, .mp-bar input { height: 32px !important; font-size: 12.5px !important; }
  .mp-search input { padding: 5px 28px 5px 30px !important; font-size: 12.5px !important; }
  .mp-s-ico { left: 9px; }
  .mp-x { right: 4px; padding: 4px; }
  .mp-stage { height: calc(100dvh - var(--topbar-h, 46px) - 40px) !important; min-height: 240px !important; }
  .mp-bar-l, .mp-bar-r { top: 6px; gap: 4px; }
  .mp-bar-l button, .mp-bar-r button { width: 32px !important; height: 32px !important; font-size: 15px !important; border-radius: 8px !important; }
  .mp-ico { width: 16px !important; height: 16px !important; }
  .mp-hint { top: 6px; padding: 5px 8px; font-size: 11px; }
  .mp-status { bottom: 4px; padding: 3px 8px; font-size: 11px; max-width: 50%; }
  .mp-coord { bottom: 4px; padding: 3px 6px; font-size: 10px; }
  .mp-legend { bottom: 28px; right: 44px; }
  .mp-drawer {
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: min(320px, 45vw) !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: -4px 0 20px rgba(0,0,0,.25) !important;
  }
  .mp-d-open .mp-bar-r { right: calc(min(320px, 45vw) + 8px) !important; }
  .mp-d-open .mp-legend { right: calc(min(320px, 45vw) + 50px) !important; }
  .mp-d-head { padding: 4px 6px 0 8px; }
  .mp-tabs button { padding: 6px 8px; font-size: 12px; }
  .mp-d-body { padding: 8px 10px; }
}

