/**
 * /css/watch-villa.css — Phase 5y.
 * "Watch this villa" widget in the sticky sidebar. Same cream + gold
 * palette as the booking-manage and confirmation email templates.
 */

.mps-watch-villa {
  border-top: 1px solid var(--color-border, #e6e0d3);
  padding-top: 16px;
  margin-top: 16px;
}
.mps-watch-title {
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink, #1c1c1c);
}
.mps-watch-lede {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted, #6b6656);
}
.mps-watch-form {
  position: relative;
}
.mps-watch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.mps-watch-row input[type="email"] {
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e6e0d3);
  border-radius: 6px;
  background: white;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-ink, #1c1c1c);
  transition: border-color 160ms ease;
  min-width: 0; /* prevents grid overflow */
}
.mps-watch-row input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-gold-strong, #8f7a56);
}
.mps-watch-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: var(--color-gold-strong, #8f7a56);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}
.mps-watch-btn:hover:not(:disabled) {
  background: var(--color-ink, #1c1c1c);
}
.mps-watch-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mps-watch-status {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.mps-watch-status.is-error {
  background: #fbe5e2;
  border: 1px solid #f0c0b8;
  color: #b23a2d;
}
.mps-watch-status.is-info {
  background: #f5f0e4;
  border: 1px solid var(--color-border, #e6e0d3);
  color: var(--color-muted, #6b6656);
}
.mps-watch-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Success state — replaces the form entirely. */
.mps-watch-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #e7f2ec;
  border: 1px solid #c5e0d0;
  border-radius: 6px;
}
.mps-watch-success-tick {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2e7d5b;
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}
.mps-watch-success-msg {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1c1c1c;
}

@media (max-width: 640px) {
  .mps-watch-row {
    grid-template-columns: 1fr;
  }
}
