*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; overflow: hidden; }

#map {
  position: fixed;
  inset: 3.25rem 0 0 0;
  z-index: 0;
}

.fab {
  position: fixed;
  right: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  transition: opacity 0.25s ease;
}
.fab--add    { bottom: calc(18vh + 4rem); background: #2563eb; }
.fab--locate { bottom: calc(18vh + 8rem); background: #fff; color: #374151; }

.bs {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  transition: height 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bs--minimized { height: 18vh; }
.bs--expanded  { height: 90vh; }
.bs--expanded ~ .fab { opacity: 0; pointer-events: none; }

.bs__handle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 0.75rem auto 0.5rem;
  cursor: grab;
}
.bs__content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

@media (min-width: 768px) {
  .bs {
    top: 3.25rem;
    bottom: 0;
    left: 0;
    width: 320px;
    height: 100% !important;
    border-radius: 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  }
  .bs__handle { display: none; }
  .fab--add    { bottom: 3rem; }
  .fab--locate { bottom: 7rem; }
}

/* ── Place list ────────────────────────────────────────────────────────────── */

.place-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.place-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  transition: background 0.15s;
}
.place-item__link:hover { background: #f9fafb; }
.place-item--highlighted .place-item__link { border-color: #2563eb; background: #eff6ff; }

.place-item__left     { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.place-item__name     { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-item__distance { font-size: 0.8rem; color: #6b7280; }

.place-item__icons    { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.place-item__type-icon { display: inline-flex; align-items: center; color: #9ca3af; }

/* ── Score icons ───────────────────────────────────────────────────────────── */

.score-icon          { display: inline-flex; align-items: center; }
.score-icon--red     { color: #ef4444; }
.score-icon--yellow  { color: #f59e0b; }
.score-icon--green   { color: #22c55e; }

/* ── Empty state ───────────────────────────────────────────────────────────── */

.empty-state { padding: 0 1rem; text-align: center; }
.empty-state__text { color: #6b7280; margin-bottom: 1.25rem; line-height: 1.5; }
.empty-state__cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #2563eb;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── App Nav ────────────────────────────────────────────────────────────────── */

.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.25rem;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.app-nav__brand {
  grid-column: 2;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #111827;
}

.app-nav__right {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.app-nav__signin {
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  transition: background 0.15s;
}
.app-nav__signin:hover { background: rgba(0, 0, 0, 0.05); }

.app-nav__dropdown { position: relative; }
.app-nav__dropdown summary { list-style: none; cursor: pointer; }
.app-nav__dropdown summary::-webkit-details-marker { display: none; }

.app-nav__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: block;
}

.app-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.app-nav__dropdown-greeting {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: -0.01em;
}

.app-nav__signout-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background 0.15s, color 0.15s;
}
.app-nav__signout-btn:hover { background: #fef2f2; color: #dc2626; }

/* ── Sign-in page ───────────────────────────────────────────────────────────── */

.signin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f9fafb;
}

.signin-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.signin-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111827;
}

.signin-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.signin-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.signin-btn-magic {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.signin-btn-magic:hover { background: #1d4ed8; }

/* ── Welcome page ───────────────────────────────────────────────────────────── */

.welcome-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f9fafb;
}

.welcome-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.welcome-card__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.25rem;
  border: 2px solid #e5e7eb;
}

.welcome-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #111827;
}

.welcome-card__subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── Place Details ───────────────────────────────────────────────────────────── */

.place-detail {
  position: fixed;
  inset: 3.25rem 0 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  padding-bottom: 5rem;
  background: #fff;
}

.place-not-found {
  padding: 4rem 1rem;
  text-align: center;
  color: #6b7280;
}

/* Hero */

.place-hero {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.place-hero__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.place-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.place-hero__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.place-hero__creator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.place-hero__creator strong {
  color: #374151;
}

.place-hero__creator-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* Quick Metrics */

.place-metrics {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.place-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.875rem 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  text-align: center;
}

.place-metric--red    { background: #fef2f2; border-color: #fca5a5; }
.place-metric--yellow { background: #fffbeb; border-color: #fcd34d; }
.place-metric--green  { background: #f0fdf4; border-color: #86efac; }

.place-metric__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.place-metric__classification {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.place-metric--red    .place-metric__classification { color: #dc2626; }
.place-metric--yellow .place-metric__classification { color: #d97706; }
.place-metric--green  .place-metric__classification { color: #16a34a; }

.place-metric__score {
  font-size: 0.75rem;
  font-weight: 600;
}

.place-metric--red    .place-metric__score { color: #ef4444; }
.place-metric--yellow .place-metric__score { color: #f59e0b; }
.place-metric--green  .place-metric__score { color: #22c55e; }

.place-metric__subtext {
  font-size: 0.625rem;
  line-height: 1.3;
  color: #9ca3af;
  margin-top: 0.1rem;
}

/* Location Card */

.place-location {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.place-location__address {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.place-location__route-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 1rem;
}

.place-location__route-btn:hover {
  text-decoration: underline;
}

.place-location__map {
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  pointer-events: none;
  touch-action: pan-y;
  /* Leaflet uses z-index 200–400 internally. Setting z-index here creates an
     isolated stacking context that keeps those values contained at level 0,
     below the review sheet at z-index 10. */
  position: relative;
  z-index: 0;
}

/* Override Leaflet's touch-action:none so vertical scroll still passes through the static mini-map */
.place-location__map * {
  touch-action: pan-y !important;
  pointer-events: none;
}

/* Reviews */

.place-reviews {
  padding: 1rem;
}

.place-reviews__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

.place-reviews__empty {
  padding: 2rem 0;
  text-align: center;
  color: #6b7280;
}

.place-reviews__empty-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.875rem;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.review-card__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  flex-shrink: 0;
}

.review-card__avatar--placeholder {
  background: #e5e7eb;
}

.review-card__username {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
}

.review-card__date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: auto;
}

.review-card__content {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
  margin: 0.6rem 0;
}

.review-card__ratings {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.review-card__rating {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.review-card__rating--red    { background: #fef2f2; color: #ef4444; }
.review-card__rating--yellow { background: #fffbeb; color: #f59e0b; }
.review-card__rating--green  { background: #f0fdf4; color: #22c55e; }

/* Load More */

.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.load-more-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Review CTA (sticky) */

.review-cta {
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.review-cta__btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
  box-sizing: border-box;
}

.review-cta__btn:hover {
  background: #1d4ed8;
}

/* Review Sheet (details/summary bottom sheet) */

.review-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.review-sheet__summary {
  list-style: none;
  display: block;
}

.review-sheet__summary::-webkit-details-marker {
  display: none;
}

/* Hide the sticky CTA bar while the panel is open */
.review-sheet[open] .review-sheet__summary {
  display: none;
}

.review-sheet:not([open]) .review-sheet__form-wrap {
  display: none;
}

.review-sheet[open] .review-sheet__form-wrap {
  display: flex;
  flex-direction: column;
}

/* Backdrop: fills viewport; sits below the panel (DOM order) */
.review-sheet__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

/* Panel: white modal sliding up from bottom */
.review-sheet__panel {
  position: relative; /* ensures it renders above the backdrop */
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  padding: 1.25rem 1rem 2rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  max-height: 85vh;
  overflow-y: auto;
}

.review-sheet__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-sheet__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.review-sheet__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.review-sheet__close:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Review Form */

.review-form__field {
  margin-bottom: 1.25rem;
}

.review-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.review-form__textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.review-form__textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Segmented Control */

.segmented-control {
  display: flex;
  gap: 0.5rem;
}

.segmented-control__option {
  flex: 1;
  cursor: pointer;
}

.segmented-control__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented-control__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.segmented-control__main {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
}

.segmented-control__sub {
  font-size: 0.65rem;
  color: #9ca3af;
  line-height: 1.3;
}

/* Selected states per variant */
.segmented-control__option--bad input:checked + .segmented-control__btn {
  background: #fef2f2;
  border-color: #ef4444;
}
.segmented-control__option--bad input:checked + .segmented-control__btn .segmented-control__main {
  color: #dc2626;
}

.segmented-control__option--medium input:checked + .segmented-control__btn {
  background: #fffbeb;
  border-color: #f59e0b;
}
.segmented-control__option--medium input:checked + .segmented-control__btn .segmented-control__main {
  color: #d97706;
}

.segmented-control__option--good input:checked + .segmented-control__btn {
  background: #f0fdf4;
  border-color: #22c55e;
}
.segmented-control__option--good input:checked + .segmented-control__btn .segmented-control__main {
  color: #16a34a;
}

.review-form__submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.review-form__submit:hover {
  background: #1d4ed8;
}

.review-form__error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
}

/* ── Register a Place ───────────────────────────────────────────────────────── */

.register-place {
  position: fixed;
  inset: 3.25rem 0 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  background: #fff;
  padding-bottom: 5rem;
}

.register-place__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  padding: 1.5rem 1rem 0;
  margin: 0;
}

.register-place__error {
  color: #dc2626;
  font-size: 0.875rem;
  margin: 0.75rem 1rem 0;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
}

.register-place__form {
  display: flex;
  flex-direction: column;
}

/* ── Register steps ────────────────────────────────────────────────────────── */

.register-step {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.register-step__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.register-step__hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin: -0.25rem 0 0.75rem;
  line-height: 1.5;
}

/* ── Generic form field ────────────────────────────────────────────────────── */

.form-field {
  margin-bottom: 1rem;
}

.form-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-field__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111827;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.form-field__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-field__error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #dc2626;
}

/* ── Pill radio (place type) ───────────────────────────────────────────────── */

.pill-radio {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-radio__option {
  cursor: pointer;
}

.pill-radio__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-radio__label {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.pill-radio__option input:checked + .pill-radio__label {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

/* ── Place picker map ──────────────────────────────────────────────────────── */

.place-picker {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.place-picker__map {
  width: 100%;
  height: 240px;
  display: block;
  position: relative;
  z-index: 0;
}

/* Crosshair: two lines drawn with ::before (vertical) and ::after (horizontal) */
.place-picker__crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  z-index: 1000;
  pointer-events: none;
}

.place-picker__crosshair::before,
.place-picker__crosshair::after {
  content: '';
  position: absolute;
  background: #111827;
  border-radius: 1px;
  opacity: 0.85;
}

.place-picker__crosshair::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.place-picker__crosshair::after {
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Locate FAB inside the picker: override .fab's fixed positioning */
.place-picker__locate-fab {
  position: absolute !important;
  bottom: 0.75rem;
  right: 0.75rem;
  top: auto;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
}

/* Edit-position FAB (pencil icon, bottom-right, visible when map is locked) */
.place-picker__edit-fab {
  position: absolute !important;
  bottom: 1.5rem;
  right: 0.75rem;
  top: auto;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  background: #2563eb;
}

/* Pan hint bar at the bottom edge of the map (visible when unlocked) */
.place-picker__pan-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  text-align: center;
  z-index: 1000;
  pointer-events: none;
}

/* ── Place autocomplete ────────────────────────────────────────────────────── */

.place-autocomplete {
  position: relative;
}

.place-autocomplete__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  z-index: 1100;
  max-height: 220px;
  overflow-y: auto;
}

.place-autocomplete__option {
  padding: 0.6rem 0.875rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  border-bottom: 1px solid #f3f4f6;
}

.place-autocomplete__option:last-child {
  border-bottom: none;
}

.place-autocomplete__option:hover {
  background: #f3f4f6;
}

.place-autocomplete__locked {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 0.5rem;
  min-height: 2.625rem;
}

.place-autocomplete__locked-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #166534;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-autocomplete__change {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ── Register place actions ────────────────────────────────────────────────── */

.register-place__actions {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.register-place__submit {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.register-place__submit:hover {
  background: #1d4ed8;
}

.register-place__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── Step navigation (Back / Next) ────────────────────────────────────────── */

.step-nav {
  display: flex;
  gap: 0.5rem;
}

.step-nav__back,
.step-nav__next {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.step-nav__back {
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  color: #374151;
}

.step-nav__back:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.step-nav__next {
  background: #2563eb;
  border: 1.5px solid #2563eb;
  color: #fff;
}

.step-nav__next:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
