/* ============================================================================
 * MyGrow Plant Sitters — scoped to .mgc-sitters
 *
 * Directory + profile + opt-in form + booking flow + dashboard views.
 * Stays inside the app-shell grid (no 100vh/100vw leaks). Reuses the
 * warm/earthy palette + global section padding defuse.
 * ============================================================================ */

.mgc-sitters {
  padding: 92px 1.5rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--text-dark, #2a2118);
}
.mgc-sitters .hero { min-height: 0; }
.mgc-sitters section { padding: 0; } /* defuse global section { padding: 6rem 4rem } */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.mgc-sitters .ps-hero {
  background: linear-gradient(135deg, #eef3df 0%, #e0ecc8 100%);
  border: 1px solid rgba(60, 90, 40, 0.1);
  border-radius: 24px;
  padding: 2.6rem 2.2rem;
  margin-bottom: 1.8rem;
}
.mgc-sitters .ps-hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  color: #2f5b1f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}
.mgc-sitters .ps-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.18;
  margin: 0 0 0.7rem;
  color: #2c3d18;
}
.mgc-sitters .ps-hero-sub {
  font-size: 1.02rem;
  max-width: 700px;
  color: #4a5a32;
  margin: 0 0 1.3rem;
  line-height: 1.55;
}
.mgc-sitters .ps-hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ── Search ───────────────────────────────────────────────────────────── */
.mgc-sitters .ps-search { margin-bottom: 1.8rem; }
.mgc-sitters .ps-search-form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: end;
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(90, 60, 40, 0.1);
}
.mgc-sitters .ps-search-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 130px;
}
.mgc-sitters .ps-search-field span {
  font-size: 0.78rem;
  color: #6b7b4a;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.mgc-sitters .ps-search-field input,
.mgc-sitters .ps-search-field select {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(90, 60, 40, 0.18);
  border-radius: 10px;
  font-size: 0.95rem;
}
.mgc-sitters .ps-clear { color: #6b7b4a; font-size: 0.85rem; align-self: center; }

/* ── Directory grid ───────────────────────────────────────────────────── */
.mgc-sitters .ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}
.mgc-sitters .ps-card {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.15s;
}
.mgc-sitters .ps-card:hover {
  border-color: rgba(60, 110, 60, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60, 90, 40, 0.1);
}
.mgc-sitters .ps-card-link {
  display: block;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
}
.mgc-sitters .ps-card-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}
.mgc-sitters .ps-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mgc-sitters .ps-avatar-fallback {
  background: #cfe0b8;
  color: #2f5b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}
.mgc-sitters .ps-avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.mgc-sitters .ps-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2c3d18;
}
.mgc-sitters .ps-card-loc {
  font-size: 0.82rem;
  color: #6b7b4a;
  margin-top: 0.15rem;
}
.mgc-sitters .ps-card-rate {
  background: #f5edd5;
  color: #6b4f2a;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}
.mgc-sitters .ps-card-services {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.mgc-sitters .ps-pill {
  font-size: 0.74rem;
  background: #f1f5e6;
  color: #2f5b1f;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  font-weight: 500;
}
.mgc-sitters .ps-card-plants {
  font-size: 0.84rem;
  color: #5c5040;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}
.mgc-sitters .ps-card-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(90, 60, 40, 0.08);
  font-size: 0.82rem;
  color: #6b7b4a;
}
.mgc-sitters .ps-rating { font-weight: 600; color: #6b4f2a; }
.mgc-sitters .ps-cta { margin-left: auto; font-weight: 600; color: #2f5b1f; }

.mgc-sitters .ps-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 1px dashed rgba(90, 60, 40, 0.18);
  border-radius: 16px;
  margin-bottom: 2rem;
}
.mgc-sitters .ps-empty-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.mgc-sitters .ps-empty h2 { margin: 0 0 0.4rem; color: #2c3d18; }
.mgc-sitters .ps-empty p { margin: 0; color: #6b7b4a; }

.mgc-sitters .ps-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: #6b7b4a;
  max-width: 760px;
  margin: 2rem auto 0;
  line-height: 1.55;
}

/* ── Sitter detail ────────────────────────────────────────────────────── */
.mgc-sitters .ps-crumbs { font-size: 0.85rem; color: #6b7b4a; margin-bottom: 1rem; }
.mgc-sitters .ps-crumbs a { color: #2f5b1f; text-decoration: none; }
.mgc-sitters .ps-crumbs .sep { margin: 0 0.4rem; opacity: 0.5; }

.mgc-sitters-detail .ps-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.mgc-sitters .ps-detail-main {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(90, 60, 40, 0.1);
}
.mgc-sitters .ps-detail-head {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(90, 60, 40, 0.1);
}
.mgc-sitters .ps-detail-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mgc-sitters .ps-detail-head h1 {
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  color: #2c3d18;
}
.mgc-sitters .ps-detail-loc {
  font-size: 0.92rem;
  color: #6b7b4a;
  margin-bottom: 0.6rem;
}
.mgc-sitters .ps-detail-trust {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mgc-sitters .ps-trust-pill {
  background: #f1f5e6;
  color: #2f5b1f;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}
.mgc-sitters .ps-section {
  margin-bottom: 1.5rem;
}
.mgc-sitters .ps-section h2 {
  font-size: 1.15rem;
  color: #2c3d18;
  margin: 0 0 0.6rem;
}
.mgc-sitters .ps-section p { color: #3d2b14; line-height: 1.6; margin: 0 0 0.6rem; }
.mgc-sitters .ps-services {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mgc-sitters .ps-services li {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(90, 60, 40, 0.05);
  color: #3d2b14;
  font-size: 0.95rem;
}
.mgc-sitters .ps-services li:first-child { border-top: none; }
.mgc-sitters .ps-detail-plants,
.mgc-sitters .ps-detail-radius {
  background: #f1f5e6;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin: 0.6rem 0;
  font-size: 0.88rem;
  color: #2f5b1f;
}
.mgc-sitters .ps-review {
  background: #f9f6ee;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
}
.mgc-sitters .ps-review-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.mgc-sitters .ps-review-head a { color: #2f5b1f; font-weight: 600; text-decoration: none; }
.mgc-sitters .ps-review-stars { color: #d8a02e; letter-spacing: 0.05em; }
.mgc-sitters .ps-review-date { color: #6b7b4a; margin-left: auto; font-size: 0.78rem; }
.mgc-sitters .ps-review p { margin: 0; color: #3d2b14; }

.mgc-sitters .ps-detail-cta {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  position: sticky;
  top: 110px;
}
.mgc-sitters .ps-cta-rate {
  font-size: 1.3rem;
  font-weight: 700;
  color: #6b4f2a;
  background: #fff8eb;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  text-align: center;
  margin-bottom: 0.4rem;
}
.mgc-sitters .ps-cta-rate-sub { font-size: 0.78rem; color: #6b7b4a; margin: 0 0 1rem; text-align: center; }
.mgc-sitters .ps-cta-btn { display: block; text-align: center; margin-bottom: 0.5rem; width: 100%; }
.mgc-sitters .ps-cta-trust {
  border-top: 1px solid rgba(90, 60, 40, 0.08);
  padding-top: 0.85rem;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #6b7b4a;
}

/* ── Form pages (become / book) ──────────────────────────────────────── */
.mgc-sitters-form { max-width: 760px; }
.mgc-sitters-form h1 { font-size: 1.7rem; color: #2c3d18; margin: 0 0 0.5rem; }
.mgc-sitters .ps-lede { color: #5c4527; font-size: 0.98rem; line-height: 1.55; margin-bottom: 1.4rem; }
.mgc-sitters .ps-rate-banner {
  background: #fff8eb;
  border: 1px solid #f3e3b8;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.2rem;
  color: #6b4f2a;
}
.mgc-sitters .ps-form {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1.7rem;
}
.mgc-sitters .ps-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}
.mgc-sitters .ps-label {
  font-weight: 600;
  color: #2c3d18;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.mgc-sitters .ps-field input,
.mgc-sitters .ps-field select,
.mgc-sitters .ps-field textarea {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(90, 60, 40, 0.18);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}
.mgc-sitters .ps-field textarea { resize: vertical; }
.mgc-sitters .ps-hint { color: #6b7b4a; font-size: 0.8rem; margin-top: 0.3rem; }
.mgc-sitters .ps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mgc-sitters .ps-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: #3d2b14;
}
.mgc-sitters .ps-fieldset {
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin: 0 0 1.1rem;
}
.mgc-sitters .ps-fieldset legend {
  font-weight: 600;
  color: #2c3d18;
  font-size: 0.92rem;
  padding: 0 0.5rem;
}
.mgc-sitters .ps-form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.mgc-sitters .ps-deactivate {
  background: none;
  border: 1px solid #e6b8b8;
  color: #9b2c2c;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  font-size: 0.88rem;
  cursor: pointer;
  margin-left: auto;
}
.mgc-sitters .ps-fine-print {
  font-size: 0.78rem;
  color: #6b7b4a;
  line-height: 1.55;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(90, 60, 40, 0.08);
}

/* ── Dashboards (owner + sitter views) ───────────────────────────────── */
.mgc-sitters .ps-bookings { display: flex; flex-direction: column; gap: 1rem; }
.mgc-sitters .ps-booking {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
}
.mgc-sitters .ps-booking-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.mgc-sitters .ps-booking-info { flex: 1; min-width: 0; }
.mgc-sitters .ps-booking-title { font-weight: 600; color: #2c3d18; margin-bottom: 0.2rem; }
.mgc-sitters .ps-booking-title a { color: #2f5b1f; text-decoration: none; }
.mgc-sitters .ps-booking-dates,
.mgc-sitters .ps-booking-rate,
.mgc-sitters .ps-booking-meta {
  font-size: 0.85rem;
  color: #5c5040;
  margin-bottom: 0.15rem;
}
.mgc-sitters .ps-booking-details {
  background: #f9f6ee;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin: 0.5rem 0;
  font-size: 0.88rem;
  color: #3d2b14;
  line-height: 1.5;
}
.mgc-sitters .ps-booking-address {
  background: #e9f3df;
  border: 1px solid #b6d8a0;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  margin: 0.6rem 0;
  font-size: 0.9rem;
  color: #2f5b1f;
}
.mgc-sitters .ps-booking-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.mgc-sitters .ps-status {
  flex-shrink: 0;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mgc-sitters .ps-status-ok      { background: #e9f3df; color: #2f5b1f; }
.mgc-sitters .ps-status-warn    { background: #fff8eb; color: #6b4f2a; }
.mgc-sitters .ps-status-muted   { background: #f0e8da; color: #6b4f2a; }
.mgc-sitters .ps-status-danger  { background: #fbe9e9; color: #9b2c2c; }

.mgc-sitters .ps-review-form {
  background: #f9f6ee;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-top: 0.6rem;
}
.mgc-sitters .ps-review-form summary {
  cursor: pointer;
  font-weight: 600;
  color: #2c3d18;
}
.mgc-sitters .ps-review-form form { margin-top: 0.8rem; }
.mgc-sitters .ps-review-done {
  color: #2f5b1f;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  font-weight: 500;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mgc-sitters { padding: 88px 1rem 3rem; }
  .mgc-sitters .ps-hero { padding: 1.8rem 1.4rem; border-radius: 18px; }
  .mgc-sitters .ps-detail-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .mgc-sitters .ps-detail-cta { position: static; }
  .mgc-sitters .ps-detail-main { padding: 1.4rem 1.4rem; }
  .mgc-sitters .ps-row { grid-template-columns: 1fr; }
  .mgc-sitters .ps-detail-head { flex-direction: column; align-items: flex-start; }
}
