.stage { position: relative; min-height: 100vh; }
.leaflet-tile-pane { opacity: .55; }

.vignette {
  position: absolute; inset: 0;
  z-index: 1020;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 74% at 50% 50%,
    rgba(255,255,255,0) 52%,
    rgba(255,255,255,.92) 100%
  );
}

.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 1025;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
}

.top-link { color: var(--muted); font-size: .95rem; }
.top-link a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.top-link a:hover { text-decoration: underline; }

/* ---------- Popup (sağ taraf, form) ---------- */
.leaflet-popup, .leaflet-popup-content-wrapper, .leaflet-popup-tip { pointer-events: auto; }
.leaflet-popup { text-align: left; margin-bottom: 20px; }
.leaflet-popup-content-wrapper {
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(18, 49, 45, .25), 0 2px 6px rgba(18, 49, 45, .08);
}
.leaflet-popup-content {
  margin: 0 !important;
  width: min(360px, calc(100vw - 40px)) !important;
  line-height: 1.4;
}
.leaflet-container a.leaflet-popup-close-button { display: none; }

.leaflet-container a.btn-brand{
  color: white;
}
.leaflet-container a{
  color: rgba(255,255,255,.92) 100% !important;
}
.reg { padding: 22px 24px 20px; }
.reg-head { margin-bottom: 16px; }
.reg-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; margin: 0; line-height: 1.15;
}
.reg-sub { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

.reg .form-label { font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.reg .form-control {
  border-radius: 12px; border-color: #d5e0dd;
  padding: 9px 13px; font-size: .95rem;
}
.reg .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .22rem rgba(15, 107, 92, .16);
}
.reg .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.reg .form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(15, 107, 92, .16); border-color: var(--brand); }
.reg .form-check-label { font-size: .82rem; color: var(--muted); }
.reg .form-check-label a { color: var(--brand-dark); }
.reg .mb-field { margin-bottom: 12px; }

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 6px; top: 4px;
  border: 0; background: transparent; color: var(--muted);
  font-size: .8rem; font-weight: 600; padding: 6px 8px; border-radius: 8px;
}
.pw-toggle:hover { color: var(--ink); background: #eef4f2; }
.pw-wrap .form-control { padding-right: 64px; }
.reg-foot { text-align: center; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.reg-foot a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.reg-foot a:hover { text-decoration: underline; }

.reg-done { display: none; text-align: center; padding: 8px 4px 6px; }
.reg-done .badge-ok {
  width: 54px; height: 54px; border-radius: 50%;
  background: #e2f1ed; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.reg-done h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.35rem; margin: 0 0 6px; }
.reg-done p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.is-done .reg-form, .is-done .reg-head, .is-done .reg-foot { display: none; }
.is-done .reg-done { display: block; }