/* Замок карты спроса на сайте и вход в «Смайл Спрос» — см. spros-lock.js. */

.spl-locked #map canvas { filter: blur(7px) saturate(1.2); transform: scale(1.02); }
.spl-locked #map .mapboxgl-marker,
.spl-locked #map .mmrgl-marker,
.spl-locked .map-best-zone-marker,
.spl-locked .peak { display: none !important; }
.spl-locked #kefLabelsToggleBtn,
.spl-locked #numBtn { display: none !important; }
.spl-locked #mapPriceMin,
.spl-locked #mapPriceMax,
.spl-locked .map-top-zone-kef,
.spl-locked #stCells,
.spl-locked #stAvg,
.spl-locked #stMax { filter: blur(5px); user-select: none; }

.spl-veil {
  /* ⚠️ Ширина — не больше экрана: на телефоне блок #map у сайта шире экрана (1868 px при 390, раскладка
     страницы), и карточка по центру такого блока уезжала за край. */
  position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, calc(100vw - 36px)); z-index: 20;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(120% 90% at 50% 45%, rgba(255,255,255,.18), rgba(236,232,250,.55));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.spl-page-heat .spl-veil { position: fixed; width: 100%; z-index: 1000; }

.spl-card, .spl-modal-box {
  position: relative; width: 100%; max-width: 440px; box-sizing: border-box;
  background: #fff; color: #1c2333; border-radius: 26px; padding: 26px 26px 22px;
  box-shadow: 0 30px 80px -20px rgba(40,22,90,.35), 0 2px 6px rgba(20,20,40,.06);
  animation: spl-in .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes spl-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spl-card, .spl-modal-box { animation: none; } }

.spl-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.spl-brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.spl-brand small { display: block; font-size: 12.5px; color: #7b8194; margin-top: 1px; }
.spl-logo { width: 42px; height: 42px; border-radius: 12px; background: #ffc21a; display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); }
.spl-logo svg { width: 28px; height: 28px; }

.spl-card h3, .spl-modal-box h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.spl-card p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #535a6e; }

.spl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spl-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 700;
  border-radius: 15px; padding: 14px 22px; transition: transform .12s, box-shadow .2s, background .2s;
}
.spl-btn:active { transform: scale(.98); }
.spl-btn[disabled] { opacity: .6; cursor: default; }
.spl-btn-main { flex: 1 1 auto; background: #1c2333; color: #fff; box-shadow: 0 10px 24px -10px rgba(28,35,51,.7); }
.spl-btn-main:hover { background: #2a3350; }
.spl-btn-ghost { background: #f1f2f6; color: #1c2333; }
.spl-wide { width: 100%; margin-top: 4px; }

.spl-stores { display: flex; gap: 10px; margin-top: 12px; }
.spl-store {
  flex: 1 1 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px;
  background: #f4f5f8; color: #1c2333; text-decoration: none; border: 1px solid #eceef3; min-width: 0;
}
.spl-store:hover { background: #eceef4; }
.spl-store svg { width: 22px; height: 22px; flex: 0 0 auto; }
.spl-store small { display: block; font-size: 11px; color: #7b8194; line-height: 1.1; }
.spl-store b { display: block; font-size: 14.5px; line-height: 1.2; white-space: nowrap; }
.spl-soon { opacity: .75; }

.spl-pay-link {
  display: block; margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600;
  color: #6a3df0; text-decoration: none;
}
.spl-pay-link:hover { text-decoration: underline; }

.spl-qr { display: none; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eef0f4;
  font-size: 13px; line-height: 1.45; color: #6b7185; }
.spl-qr-img { width: 92px; height: 92px; flex: 0 0 auto; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #eceef3; box-sizing: border-box; }
.spl-qr-img svg { width: 100%; height: 100%; display: block; }
@media (min-width: 900px) and (hover: hover) { .spl-qr { display: flex; } }

/* строка «вы вошли» над открытой картой */
.spl-account {
  position: absolute; left: 12px; top: 12px; z-index: 6; max-width: min(calc(100% - 24px), calc(100vw - 60px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 6px;
  background: rgba(255,255,255,.94); border-radius: 15px; box-shadow: 0 8px 22px -12px rgba(40,22,90,.45); font-size: 13.5px; color: #3d4356;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.spl-page-heat .spl-account { position: fixed; top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 1000; }
.spl-account .spl-logo { width: 30px; height: 30px; border-radius: 9px; }
.spl-account .spl-logo svg { width: 20px; height: 20px; }
.spl-account-who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spl-account-who b { color: #1c2333; }
.spl-account button { appearance: none; border: 0; background: #f1f2f6; color: #1c2333; font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 7px 13px; border-radius: 11px; cursor: pointer; }

/* окно входа */
.spl-modal {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(20,18,40,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.spl-modal[hidden] { display: none; }
.spl-modal-open { overflow: hidden; }
.spl-modal-box { max-width: 400px; }
.spl-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f2f6;
  color: #1c2333; font-size: 22px; line-height: 1; cursor: pointer; }
.spl-sub { margin: 0 0 16px; font-size: 14.5px; color: #535a6e; line-height: 1.45; }

.spl-tabs { display: flex; gap: 4px; padding: 4px; background: #f1f2f6; border-radius: 13px; margin: 14px 0 14px; }
.spl-tabs button { flex: 1; appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600;
  color: #6b7185; padding: 8px; border-radius: 10px; cursor: pointer; }
.spl-tabs button.on { background: #fff; color: #1c2333; box-shadow: 0 2px 6px rgba(20,20,40,.08); }

.spl-field { display: block; margin-bottom: 6px; }
.spl-field > span { display: block; font-size: 12.5px; font-weight: 600; color: #7b8194; margin: 0 0 6px 2px; }
.spl-field input, .spl-phone {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; font-weight: 600; color: #1c2333;
  border: 1.5px solid #e3e5ec; border-radius: 14px; padding: 13px 14px; background: #fff; outline: none;
}
.spl-field input:focus, .spl-phone:focus-within { border-color: #7c4dff; box-shadow: 0 0 0 4px rgba(124,77,255,.14); }
.spl-phone { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.spl-phone em { font-style: normal; color: #7b8194; }
.spl-phone input { border: 0; box-shadow: none !important; padding: 13px 0; }
.spl-code { letter-spacing: .5em; text-align: center; font-size: 24px !important; }
.spl-hint { display: block; font-size: 12.5px; color: #7b8194; margin: 2px 2px 0; }
.spl-err { min-height: 20px; margin: 4px 2px 6px; font-size: 13.5px; color: #e0314b; }
.spl-fine { display: block; margin-top: 14px; font-size: 12px; line-height: 1.5; color: #8a90a2; }
.spl-fine a { color: inherit; }
.spl-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.spl-link { appearance: none; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #6a3df0; cursor: pointer; padding: 4px 2px; }
.spl-link[disabled] { color: #9aa0b2; cursor: default; font-weight: 500; }

@media (max-width: 520px) {
  .spl-veil { align-items: flex-end; padding: 10px; }
  .spl-card { padding: 20px 18px 16px; border-radius: 22px; }
  .spl-card h3 { font-size: 20px; }
  .spl-card p { font-size: 14px; margin-bottom: 14px; }
  /* Окно входа — по центру экрана, как на компьютере (владелец 16.09.2026: «форма не по центру»). */
  .spl-modal { align-items: center; padding: 12px; }
  .spl-modal-box { max-width: 400px; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 24px; padding: 22px 18px 18px; }
}

/* закрытые блоки под картой (map-extras.js сайта) */
.v2-dmx-lock { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 10px; font-size: 13.5px; line-height: 1.45; color: #535a6e; }
.v2-dmx-lock-ico { width: 30px; height: 30px; border-radius: 10px; background: #f1ecff; color: #6a3df0; display: grid; place-items: center; flex: 0 0 auto; }
.v2-dmx-lock-ico svg { width: 17px; height: 17px; }
.v2-dmx-lock-btn { display: inline-block; width: auto; align-self: flex-start; appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700;
  background: #1c2333; color: #fff; border-radius: 12px; padding: 9px 14px; text-decoration: none; }
.v2-dmx-lock-btn:hover { background: #2a3350; color: #fff; }
.spl-fake { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }

/* флаги стран в окне входа */
.spl-flag { width: 22px; height: 15px; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(20,20,40,.12); vertical-align: -2px; }
.spl-tabs .spl-flag { margin-right: 7px; width: 19px; height: 13px; }
