/* ==========================================================================
   Indiatutors Online — Marketplace: Tutor profiles, archive, city pages.
   Design system: same dark navy-purple gradient + Inter/Poppins as homepage.
   ========================================================================== */

html { scroll-behavior: smooth; }

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --mp-purple:       #1E40AF;
  --mp-purple-dark:  #1E40AF;
  --mp-purple-soft:  #F3F6FC;
  --mp-purple-mid:   #1E3A8A;
  --mp-navy:         #0B1220;
  --mp-heading:      #0B1220;
  --mp-body:         #3d3d4e;
  --mp-muted:        #6b7280;
  --mp-border:       #e8e8f0;
  --mp-bg-page:      #f9f9fc;
  --mp-bg-card:      #ffffff;
  --mp-green:        #16a34a;
  --mp-amber:        #f59e0b;
  --mp-red:          #ef4444;
  --mp-radius:       14px;
  --mp-radius-sm:    8px;
  --mp-shadow:       0 4px 24px rgba(30,64,175,.10);
  --mp-shadow-lg:    0 8px 40px rgba(30,64,175,.14);
  --mp-font-heading: "Poppins", system-ui, -apple-system, sans-serif;
  --mp-font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

/* ── Page shell ─────────────────────────────────────────────────────────── */
.ito-marketplace-page {
  font-family: var(--mp-font-body);
  font-size: 16px;
  color: var(--mp-body);
  line-height: 1.72;
  background: var(--mp-bg-page);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  box-sizing: border-box;
  overflow-x: hidden;
}

.ito-marketplace-page *, .ito-marketplace-page *::before, .ito-marketplace-page *::after {
  box-sizing: border-box;
}

.ito-marketplace-page .ito-mp-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Hero banner (shared across profile + city + archive) ───────────────── */
.ito-mp-hero {
  background: linear-gradient(145deg, var(--mp-navy) 0%, var(--mp-purple-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ito-mp-hero::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,64,175,.30) 0%, transparent 70%);
  pointer-events: none;
}

.ito-mp-hero::after {
  content: "";
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.16) 0%, transparent 70%);
  pointer-events: none;
}

.ito-mp-hero__inner { position: relative; z-index: 1; }

/* ── Badge chip ─────────────────────────────────────────────────────────── */
.ito-mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  font-family: var(--mp-font-heading);
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.ito-mp-badge--verified {
  background: rgba(22,163,74,.18);
  border-color: rgba(22,163,74,.40);
  color: #86efac;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ito-mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mp-font-heading);
  font-size: .88rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--mp-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  line-height: 1.2;
}

.ito-mp-btn--primary {
  background: var(--mp-purple);
  color: #fff;
  border-color: var(--mp-purple);
}
.ito-mp-btn--primary:hover {
  background: var(--mp-purple-mid);
  border-color: var(--mp-purple-mid);
  color: #fff;
  box-shadow: 0 4px 18px rgba(30,64,175,.35);
}

.ito-mp-btn--white {
  background: #fff;
  color: var(--mp-purple-dark);
  border-color: #fff;
}
.ito-mp-btn--white:hover {
  background: var(--mp-purple-soft);
  border-color: var(--mp-purple);
  color: var(--mp-purple);
}

.ito-mp-btn--ghost {
  background: transparent;
  color: var(--mp-purple);
  border-color: var(--mp-purple);
}
.ito-mp-btn--ghost:hover {
  background: var(--mp-purple-soft);
}

.ito-mp-btn--sm { font-size: .80rem; padding: 8px 16px; }
.ito-mp-btn--lg { font-size: 1rem; padding: 14px 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TUTOR PROFILE PAGE (single-ito_tutor.php)
   ══════════════════════════════════════════════════════════════════════════ */

/* Profile hero */
.ito-profile-hero { padding: 60px 0 0; }

.ito-profile-hero__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: end;
}

.ito-profile-hero__photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: rgba(255,255,255,.10);
}

.ito-profile-hero__photo-placeholder {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
}

.ito-profile-hero__info { padding-bottom: 32px; }

.ito-profile-hero__name {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.ito-profile-hero__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  margin: 0 0 20px;
  max-width: 620px;
}

.ito-profile-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ito-profile-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

.ito-profile-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats bar */
.ito-profile-stats {
  background: #fff;
  border-bottom: 1px solid var(--mp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.ito-profile-stats__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ito-profile-stats__inner::-webkit-scrollbar { display: none; }

.ito-profile-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  border-right: 1px solid var(--mp-border);
  white-space: nowrap;
  flex-shrink: 0;
}
.ito-profile-stats__item:last-child { border-right: none; }

.ito-profile-stats__val {
  font-family: var(--mp-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mp-purple);
  line-height: 1;
}

.ito-profile-stats__label {
  font-size: .72rem;
  color: var(--mp-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Body layout */
.ito-profile-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  column-gap: 40px;
  padding: 52px 0 96px;
  align-items: start;
}

.ito-profile-main { min-width: 0; }

/* Sections */
.ito-profile-section {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--mp-shadow);
}

.ito-profile-section__title {
  font-family: var(--mp-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ito-profile-section__title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--mp-purple);
  border-radius: 2px;
  flex-shrink: 0;
}

.ito-profile-section p { margin: 0 0 12px; font-size: .95rem; }
.ito-profile-section p:last-child { margin-bottom: 0; }

/* Subject tags */
.ito-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ito-subject-tag {
  background: var(--mp-purple-soft);
  color: var(--mp-purple-dark);
  font-size: .80rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(30,64,175,.18);
}

/* Availability grid */
.ito-avail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ito-avail-item {
  background: var(--mp-bg-page);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  padding: 14px 16px;
}

.ito-avail-item__label {
  font-size: .70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mp-muted);
  margin-bottom: 4px;
}

.ito-avail-item__val {
  font-size: .92rem;
  font-weight: 600;
  color: var(--mp-heading);
}

/* Demo video */
.ito-demo-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--mp-radius-sm);
}

.ito-demo-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--mp-radius-sm);
}

/* Sidebar */
.ito-profile-sidebar { position: sticky; top: 80px; }

.ito-profile-fee-card {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 24px;
  box-shadow: var(--mp-shadow);
  margin-bottom: 20px;
}

.ito-fee-highlight {
  text-align: center;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--mp-border);
  margin-bottom: 20px;
}

.ito-fee-highlight__amount {
  font-family: var(--mp-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mp-purple);
  line-height: 1;
}

.ito-fee-highlight__label {
  font-size: .78rem;
  color: var(--mp-muted);
  margin-top: 4px;
}

.ito-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--mp-border);
  font-size: .88rem;
}
.ito-fee-row:last-child { border-bottom: none; }
.ito-fee-row__label { color: var(--mp-muted); }
.ito-fee-row__val { font-weight: 600; color: var(--mp-heading); }

.ito-profile-cta { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ito-profile-cta .ito-mp-btn { width: 100%; justify-content: center; }

/* Contact form in sidebar */
.ito-contact-card {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 22px;
  box-shadow: var(--mp-shadow);
}

.ito-contact-card__title {
  font-family: var(--mp-font-heading);
  font-size: .88rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 0 0 16px;
}

.ito-mp-form-row { margin-bottom: 12px; }

.ito-mp-form-row label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--mp-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ito-mp-form-row input,
.ito-mp-form-row textarea,
.ito-mp-form-row select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  font-size: .88rem;
  font-family: var(--mp-font-body);
  color: var(--mp-heading);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.ito-mp-form-row input:focus,
.ito-mp-form-row textarea:focus,
.ito-mp-form-row select:focus {
  border-color: var(--mp-purple);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TUTOR ARCHIVE PAGE (archive-ito_tutor.php)
   ══════════════════════════════════════════════════════════════════════════ */

.ito-archive-hero { padding: 52px 0 44px; }

.ito-archive-hero__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}

.ito-archive-hero__lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin: 0 0 24px;
}

.ito-archive-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ito-archive-hero__stat { text-align: left; }
.ito-archive-hero__stat-val {
  font-family: var(--mp-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ito-archive-hero__stat-label {
  font-size: .76rem;
  color: rgba(255,255,255,.60);
  margin-top: 2px;
}

/* Filter bar */
.ito-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--mp-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ito-filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.ito-filter-bar__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--mp-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  margin-right: 4px;
}

.ito-filter-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  font-size: .84rem;
  font-family: var(--mp-font-body);
  color: var(--mp-heading);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s;
}
.ito-filter-select:focus {
  border-color: var(--mp-purple);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
  outline: none;
}

.ito-filter-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 14px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  font-size: .84rem;
  font-family: var(--mp-font-body);
}
.ito-filter-search:focus { border-color: var(--mp-purple); outline: none; box-shadow: 0 0 0 3px rgba(30,64,175,.12); }

.ito-filter-bar__submit {
  padding: 8px 20px;
  background: var(--mp-purple);
  color: #fff;
  border: none;
  border-radius: var(--mp-radius-sm);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--mp-font-heading);
  white-space: nowrap;
  transition: background .15s;
}
.ito-filter-bar__submit:hover { background: var(--mp-purple-mid); }

/* Archive body */
.ito-archive-body { padding: 48px 0 80px; }

/* Active filter chips */
.ito-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.ito-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mp-purple-soft);
  color: var(--mp-purple-dark);
  border: 1px solid rgba(30,64,175,.22);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
}

.ito-active-filter-chip a {
  color: var(--mp-purple);
  text-decoration: none;
  font-size: .85em;
  margin-left: 2px;
}

/* Tutor card grid */
.ito-tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Tutor Card ─────────────────────────────────────────────────────────── */
.ito-tutor-card {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, border-color .22s, transform .22s;
  box-shadow: var(--mp-shadow);
}
.ito-tutor-card:hover {
  box-shadow: var(--mp-shadow-lg);
  border-color: rgba(30,64,175,.28);
  transform: translateY(-3px);
}

.ito-tutor-card__header {
  background: linear-gradient(145deg, var(--mp-navy) 0%, var(--mp-purple-dark) 100%);
  padding: 20px 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding-bottom: 0;
  position: relative;
}

.ito-tutor-card__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.30);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.10);
  margin-bottom: -20px;
}

.ito-tutor-card__photo-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-bottom: -20px;
}

.ito-tutor-card__header-info { padding-bottom: 12px; }

.ito-tutor-card__name {
  font-family: var(--mp-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.ito-tutor-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ito-tutor-card__body {
  padding: 32px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ito-tutor-card__tagline {
  font-size: .86rem;
  color: var(--mp-body);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ito-tutor-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ito-tutor-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--mp-muted);
  font-weight: 500;
}

.ito-tutor-card__subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ito-tutor-card__subject {
  background: var(--mp-purple-soft);
  color: var(--mp-purple-dark);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.ito-tutor-card__footer {
  border-top: 1px solid var(--mp-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ito-tutor-card__fee {
  font-family: var(--mp-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-purple);
}

.ito-tutor-card__fee span {
  font-size: .72rem;
  font-weight: 500;
  color: var(--mp-muted);
}

/* No results */
.ito-no-results {
  text-align: center;
  padding: 72px 20px;
  color: var(--mp-muted);
}

.ito-no-results__icon { font-size: 3rem; margin-bottom: 16px; }

.ito-no-results__title {
  font-family: var(--mp-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 0 0 8px;
}

/* Pagination */
.ito-mp-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 48px;
}

.ito-mp-pagination a,
.ito-mp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--mp-radius-sm);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-body);
  transition: background .15s, color .15s, border-color .15s;
}

.ito-mp-pagination a:hover { background: var(--mp-purple-soft); border-color: var(--mp-purple); color: var(--mp-purple); }
.ito-mp-pagination .current { background: var(--mp-purple); color: #fff; border-color: var(--mp-purple); }

/* ═══════════════════════════════════════════════════════════════════════════
   CITY SEO PAGE (single-ito_city.php)
   ══════════════════════════════════════════════════════════════════════════ */

.ito-city-hero { padding: 56px 0 48px; }

.ito-city-hero__eyebrow {
  font-size: .78rem;
  color: rgba(255,255,255,.60);
  margin-bottom: 10px;
  letter-spacing: .04em;
}

.ito-city-hero__title {
  font-family: var(--mp-font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.ito-city-hero__lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,.72);
  max-width: 600px;
  margin: 0 0 32px;
  line-height: 1.65;
}

.ito-city-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--mp-radius);
  overflow: hidden;
  max-width: 560px;
}

.ito-city-hero__stat {
  flex: 1;
  min-width: 120px;
  padding: 18px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.ito-city-hero__stat:last-child { border-right: none; }

.ito-city-hero__stat-val {
  font-family: var(--mp-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.ito-city-hero__stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.58);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* City body */
.ito-city-body { padding: 56px 0 80px; }

.ito-city-section-title {
  font-family: var(--mp-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 0 0 8px;
}

.ito-city-section-lead {
  font-size: .95rem;
  color: var(--mp-muted);
  margin: 0 0 28px;
}

/* Locality quick links */
.ito-locality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.ito-locality-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  color: var(--mp-body);
  font-size: .84rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.ito-locality-chip:hover {
  background: var(--mp-purple-soft);
  border-color: var(--mp-purple);
  color: var(--mp-purple);
}

/* Subject quick links */
.ito-city-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 52px;
}

.ito-city-subject-link {
  display: inline-flex;
  align-items: center;
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-sm);
  padding: 10px 16px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--mp-heading);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  gap: 8px;
}
.ito-city-subject-link:hover {
  border-color: var(--mp-purple);
  background: var(--mp-purple-soft);
  color: var(--mp-purple);
  box-shadow: 0 2px 10px rgba(30,64,175,.12);
}

/* SEO content block */
.ito-city-content {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 36px 38px;
  margin-top: 56px;
  box-shadow: var(--mp-shadow);
  font-size: .95rem;
  line-height: 1.8;
  color: var(--mp-body);
}

.ito-city-content h2 {
  font-family: var(--mp-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mp-heading);
  margin: 28px 0 10px;
  border-left: 3px solid var(--mp-purple);
  padding-left: 12px;
}
.ito-city-content h2:first-child { margin-top: 0; }
.ito-city-content p { margin: 0 0 14px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ito-profile-body {
    grid-template-columns: 1fr;
  }
  .ito-profile-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ito-profile-sidebar .ito-profile-fee-card,
  .ito-profile-sidebar .ito-contact-card {
    margin-bottom: 0;
  }
  .ito-profile-hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ito-profile-hero__photo,
  .ito-profile-hero__photo-placeholder {
    width: 120px; height: 120px;
  }
}

@media (max-width: 720px) {
  .ito-marketplace-page .ito-mp-container { padding: 0 16px; }
  .ito-profile-stats__item { padding: 12px 18px; }
  .ito-profile-sidebar { grid-template-columns: 1fr; }
  .ito-filter-bar__inner { gap: 8px; }
  .ito-tutor-grid { grid-template-columns: 1fr; }
  .ito-city-hero__stats { max-width: 100%; }
  .ito-city-content { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .ito-archive-hero { padding: 36px 0 32px; }
  .ito-city-hero { padding: 36px 0 32px; }
  .ito-profile-hero { padding-top: 36px; }
  .ito-profile-section { padding: 20px 18px; }
  .ito-avail-grid { grid-template-columns: 1fr; }
}

/* ── Parent Reviews ────────────────────────────────────────────────────── */
.ito-stars { color: #f59e0b; letter-spacing: 1px; }
.ito-review-note { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.ito-review-note--ok { background: #dcfce7; color: #166534; }
.ito-review-note--err { background: #fee2e2; color: #991b1b; }
.ito-review-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ito-review-summary__avg { font-size: 2rem; font-weight: 800; color: var(--mp-heading, #0B1220); line-height: 1; }
.ito-review-summary .ito-stars { font-size: 1.2rem; }
.ito-review-summary__count { color: var(--mp-muted, #64748b); font-size: .9rem; }
.ito-review-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.ito-review { border: 1px solid var(--mp-line, #e6e8f0); border-radius: 12px; padding: 16px 18px; background: #fff; }
.ito-review__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ito-review__head strong { color: var(--mp-heading, #0B1220); }
.ito-review__date { margin: 2px 0 8px; font-size: .8rem; color: var(--mp-muted, #64748b); }
.ito-review__text { margin: 0; line-height: 1.6; color: var(--mp-body, #334155); }
.ito-review-empty { color: var(--mp-muted, #64748b); }
.ito-review-form { margin-top: 24px; border-top: 1px solid var(--mp-line, #e6e8f0); padding-top: 22px; }
.ito-review-form h3 { font-size: 1.1rem; margin: 0 0 14px; color: var(--mp-heading, #0B1220); }
/* CSS-only star rating input (radios reversed for left-fill hover/checked) */
.ito-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.ito-rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.ito-rate label { font-size: 1.8rem; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color .12s; }
.ito-rate input:checked ~ label,
.ito-rate label:hover,
.ito-rate label:hover ~ label { color: #f59e0b; }
.ito-rate input:focus-visible + label { outline: 2px solid #1E40AF; outline-offset: 2px; border-radius: 4px; }

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .ito-filter-bar, .ito-mp-hero::before, .ito-mp-hero::after { display: none; }
  .ito-mp-hero { background: #fff; color: #000; }
  .ito-profile-body { grid-template-columns: 1fr; }
}
