/* Share my spot — preview modal and entry points. Keep this file out of map.css
   so other map-layout work is less likely to collide. */

.rental-share-spot {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--teal-dk, #064e5c);
  color: var(--cream, #fffbf4);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  min-height: 48px;
  padding: 0 14px;
  font-family: inherit;
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.rental-share-spot svg { flex: none; color: var(--gold-hi, #f2e09c); }
.rental-share-spot:disabled { opacity: 0.7; cursor: wait; }
.rental-share-spot:active { transform: scale(0.97); }
.rental-share-spot:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold, #d6b03e), var(--shadow); }
.rental-share-hint {
  margin: -4px 2px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted, #4c5a6a);
}

.share-spot-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--teal-dk, #064e5c);
  color: var(--cream, #fffbf4);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  touch-action: manipulation;
}
.share-spot-btn:active { opacity: 0.9; }

.hb-loc-icon { cursor: pointer; }
.hb-loc-icon .hb-loc-dot {
  width: 18px;
  height: 18px;
}

.share-spot-modal[hidden] { display: none !important; }
.share-spot-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 21, 40, 0.55);
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 721px) {
  .share-spot-modal { align-items: center; padding: 24px; }
}
.share-spot-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: min(92dvh, 92svh, 100%);
  background: var(--cream, #fffbf4);
  color: var(--navy, #081528);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 32px rgba(8, 21, 40, 0.3);
  padding: 0 0 max(12px, var(--safe-bottom, 0px));
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 721px) {
  .share-spot-sheet { border-radius: 20px; max-height: min(90vh, 900px); }
}
.share-spot-head {
  position: relative;
  flex: none;
  padding: 16px 52px 8px 16px;
}
.share-spot-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-dk, #064e5c);
}
.share-spot-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #4c5a6a);
}
.share-spot-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy, #081528);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.share-spot-body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 8px;
  min-height: 0;
}
.share-spot-preview-wrap {
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #66a6a5;
  box-shadow: 0 4px 16px rgba(8, 21, 40, 0.18);
}
.share-spot-preview-wrap img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  background: #66a6a5;
}
.share-spot-status {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--navy, #081528);
}
.share-spot-status.is-error { color: var(--coral, #d65440); }
.share-spot-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.share-spot-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
  cursor: pointer;
}
.share-spot-toggle input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal, #0a7080); flex: none; }
.share-spot-formats {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.share-spot-formats button {
  appearance: none;
  flex: 1;
  min-height: 40px;
  border: 2px solid var(--teal-dk, #064e5c);
  border-radius: 10px;
  background: #fff;
  color: var(--teal-dk, #064e5c);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.share-spot-formats button[aria-pressed="true"] {
  background: var(--teal-dk, #064e5c);
  color: var(--cream, #fffbf4);
}
.share-spot-picks {
  margin: 0 0 12px;
  padding: 10px 10px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(8, 21, 40, 0.1);
}
.share-spot-picks h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dk, #064e5c);
}
.share-spot-picks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 2px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.share-spot-picks input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal, #0a7080); flex: none; }
.share-spot-caption {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--navy, #081528);
  white-space: pre-wrap;
  word-break: break-word;
}
.share-spot-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-spot-actions button,
.share-spot-actions a.share-spot-fb {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.share-spot-primary {
  background: var(--teal-dk, #064e5c);
  color: var(--cream, #fffbf4);
}
.share-spot-secondary {
  background: var(--sand, #f2e4c6);
  color: var(--navy, #081528);
}
.share-spot-fb,
a.share-spot-fb {
  background: #fff;
  color: var(--teal-dk, #064e5c);
  box-shadow: inset 0 0 0 2px var(--teal-dk, #064e5c);
}
.share-spot-actions button:disabled { opacity: 0.6; cursor: wait; }
.share-spot-actions button:active,
.share-spot-actions a:active { transform: scale(0.98); }

body.share-spot-open { overflow: hidden; }
