.spots-database-page { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.spot-review-launcher {
  position: fixed;
  z-index: 19;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.spot-review-open {
  display: block;
  width: min(480px, 100%);
  min-height: 54px;
  margin-inline: auto;
  padding: 0 26px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: none;
}
.spot-review-open:hover { background: var(--soft); color: var(--blue-dark); }
.spot-review-open:disabled { cursor: wait; opacity: .65; }
.has-review-dialog .spot-review-launcher { display: none; }

.spot-review-submit-area button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(8, 120, 249, .22);
}
.spot-review-submit-area button:hover { background: var(--blue-dark); }
.spot-review-submit-area button:disabled { cursor: wait; opacity: .72; }

.spot-review-dialog {
  position: fixed;
  inset: 16px;
  width: min(820px, calc(100% - 32px));
  height: auto;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(16, 33, 58, .28);
}
.spot-review-dialog::backdrop { background: rgba(11, 29, 53, .62); backdrop-filter: blur(4px); }
.spot-review-modal { display: flex; height: 100%; flex-direction: column; overflow: hidden; }
.spot-review-form { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; }
.has-review-dialog { overflow: hidden; }

.spot-review-header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  min-height: 92px;
  padding: 14px 24px;
  border-bottom: 1px solid #dbe4ef;
  background: rgba(255, 255, 255, .96);
  text-align: center;
}
.spot-review-header > div { grid-column: 2; }
.site-interior .spot-review-header h2 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.spot-review-header p { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.spot-review-close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.spot-review-close::before,
.spot-review-close::after { content: ""; position: absolute; top: 21px; left: 8px; width: 29px; height: 2px; background: var(--ink); }
.spot-review-close::before { transform: rotate(45deg); }
.spot-review-close::after { transform: rotate(-45deg); }

.spot-review-body { display: grid; min-height: 0; flex: 1; gap: 16px; padding: 22px 32px 32px; overflow-y: auto; overscroll-behavior: contain; }
.spot-review-location {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #f1f7fd;
}
.spot-review-location svg { width: 36px; fill: var(--blue); }
.spot-review-location svg circle { fill: #fff; }
.spot-review-location div { display: grid; }
.spot-review-location span { color: var(--blue); font-size: 12px; font-weight: 700; }
.spot-review-location strong { font-size: 20px; font-weight: 700; line-height: 1.35; }
.spot-review-location small { color: var(--muted); font-size: 12px; }

.spot-review-section { min-width: 0; padding: 20px 22px; border: 1px solid rgba(6, 32, 77, .1); border-radius: 18px; background: #fff; }
.spot-review-section legend,
.spot-review-section-title,
.spot-review-section h3 { display: block; color: var(--blue); font-size: 16px; font-weight: 700; line-height: 1.5; }
.site-interior .spot-review-section-title,
.site-interior .spot-review-section h3 { font-weight: 700; }
.spot-review-visit { padding: 0; border: 0; background: transparent; }
.spot-review-visit legend { margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.spot-review-visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.spot-review-visit input,
.spot-review-visit select,
.spot-review-section textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #c9d4e2;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
.spot-review-section textarea { min-height: 88px; margin-top: 10px; resize: vertical; }
.spot-review-visit input:focus,
.spot-review-visit select:focus,
.spot-review-section textarea:focus { outline: 3px solid rgba(70, 199, 242, .35); border-color: var(--blue); }

.spot-review-conditions { padding-block: 20px 4px; }
.spot-review-rating-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e1e8f0; }
.spot-review-rating-row:last-of-type { border-bottom: 0; }
.spot-review-rating-row > div:first-child { display: grid; }
.spot-review-rating-label { font-size: 14px; font-weight: 700; }
.spot-review-error { margin-left: 7px; color: #c73535; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.spot-review-rating-row small { color: var(--muted); font-size: 11px; font-weight: 400; }
.spot-review-stars { display: flex; gap: 2px; }
.spot-review-star { width: 32px; height: 36px; padding: 0; border: 0; background: transparent; color: #d9e0ea; font-size: 28px; line-height: 1; cursor: pointer; }
.spot-review-star.is-active { color: var(--blue); }

.spot-review-help { margin: 2px 0 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.spot-review-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spot-review-levels input { position: absolute; opacity: 0; pointer-events: none; }
.spot-review-levels span { display: grid; place-items: center; min-height: 46px; border: 1px solid #c9d4e2; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.spot-review-levels input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.spot-review-levels input:focus-visible + span { outline: 4px solid rgba(70, 199, 242, .45); outline-offset: 3px; }
.spot-review-counter { color: var(--muted); font-size: 13px; text-align: right; }
.spot-review-section h3 span { color: var(--muted); font-size: 14px; font-weight: 400; }
.spot-review-photos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.spot-review-photo-add,
.spot-review-photo-preview { width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.spot-review-photo-add { position: relative; display: grid; place-items: center; align-content: center; gap: 7px; border: 0; background: #f5f8fc; color: #526481; cursor: pointer; }
.spot-review-photo-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.spot-review-photo-add img { width: 30px; height: 30px; opacity: .62; }
.spot-review-photo-add span { font-size: 12px; }
.spot-review-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.spot-review-photo-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.spot-review-submit-area { position: relative; z-index: 3; flex: 0 0 auto; padding: 0; background: #fff; text-align: center; }
.spot-review-submit-area button { width: 100%; border-radius: 0; box-shadow: none; }
.spot-review-status { margin: 0; padding: 8px 18px; color: var(--blue-dark); font-size: 12px; font-weight: 400; white-space: pre-line; }
.spot-review-status:empty { display: none; }

@media (max-width: 680px) {
  .spot-review-dialog { inset: 0; width: 100%; height: auto; max-height: none; margin: 0; border-radius: 0; }
  .spot-review-header { min-height: 76px; padding: 10px 12px; }
  .spot-review-header h2 { font-size: 18px; }
  .spot-review-body { gap: 14px; padding: 18px 18px 28px; }
  .spot-review-location { padding: 16px; }
  .spot-review-location strong { font-size: 18px; }
  .spot-review-section { padding: 18px 15px; }
  .spot-review-visit { padding: 0; }
  .spot-review-visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .spot-review-visit input,
  .spot-review-visit select { min-height: 46px; padding-inline: 8px; font-size: 12px; }
  .spot-review-rating-row { grid-template-columns: minmax(92px, 1fr) auto; gap: 5px; padding-block: 11px; }
  .spot-review-star { width: 26px; height: 32px; font-size: 24px; }
  .spot-review-levels { gap: 7px; }
  .spot-review-submit-area { padding: 0; }
}
