:root {
  --bg: #fff8f1;
  --bg-soft: #fdf3e6;
  --card: #ffffff;
  --text: #2b1d12;
  --text-soft: #4a3a2a;
  --muted: #7a6856;
  --primary: #c0392b;
  --primary-dark: #962d22;
  --primary-soft: #fde6e2;
  --accent: #f39c12;
  --accent-dark: #d97706;
  --accent-soft: #fff4dc;
  --gold: #d4a017;
  --gold-soft: #fef3c7;
  --saffron: #ff7518;
  --saffron-soft: #ffedd5;
  --border: #efe2d1;
  --border-strong: #e0cdb1;
  --success: #2e7d32;
  --success-soft: #e6f5e7;
  --error: #c62828;
  --error-soft: #fdecea;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --shadow-sm: 0 2px 6px rgba(120, 60, 20, 0.06);
  --shadow: 0 8px 28px rgba(120, 60, 20, 0.10);
  --shadow-lg: 0 16px 48px rgba(120, 60, 20, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,117,24,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(212,160,23,0.06) 0%, transparent 40%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 14px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid rgba(212,160,23,0.4);
}
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 10px;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--gold-soft));
  color: var(--primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 0 2px rgba(212,160,23,0.6), 0 4px 10px rgba(0,0,0,0.15);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(212,160,23,0.6), 0 4px 10px rgba(0,0,0,0.15); }
  50%      { box-shadow: 0 0 0 2px rgba(212,160,23,1), 0 6px 16px rgba(212,160,23,0.4); }
}
.brand small { display: block; font-weight: 400; font-size: 12px; opacity: 0.9; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #fff; padding: 8px 14px; border-radius: 999px;
  font-weight: 500; opacity: 0.92; transition: var(--transition);
}
.nav a:hover { background: rgba(255,255,255,0.15); text-decoration: none; opacity: 1; }
.nav a.active { background: rgba(255,255,255,0.22); }

/* Language switcher */
.lang-switch {
  display: inline-flex; background: rgba(255,255,255,0.16);
  border-radius: 999px; padding: 3px; margin-left: 8px;
}
.lang-switch button {
  background: transparent; color: #fff; border: none;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.lang-switch button.active { background: #fff; color: var(--primary-dark); }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 {
  margin: 0 0 14px; font-size: 38px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero::before {
  content: '🕉';
  display: block;
  font-size: 38px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--gold), var(--accent-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: omFloat 4s ease-in-out infinite;
}
@keyframes omFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.hero p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 17px; }

/* ─── Card / Section ─────────────────────────────────────────── */
.section { padding: 24px 0; }
.section h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card + .card { margin-top: 18px; }
.card.compact { padding: 18px; }
.card.tinted { background: var(--bg-soft); border-color: var(--border-strong); }

/* ─── Form controls ─────────────────────────────────────────── */
.form-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: 13.5px; color: var(--text-soft);
}
.form-row .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none;
  font-family: inherit; transition: var(--transition);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.input.input-readonly, .input[readonly] {
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: default;
}
textarea.input { resize: vertical; min-height: 84px; }

/* OTP digit-style input */
.otp-input {
  width: 100%; padding: 16px; text-align: center;
  font-size: 26px; font-weight: 700; letter-spacing: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: var(--transition);
}
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }

/* Chips (multi-select) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: var(--transition); user-select: none;
}
.chip:hover { border-color: var(--primary); }
.chip.active {
  background: linear-gradient(135deg, var(--saffron), var(--primary));
  color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(192,57,43,0.30), 0 0 0 2px rgba(255,255,255,0.6) inset;
}

/* File upload tile */
.upload-tile {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px; text-align: center;
  cursor: pointer; background: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.upload-tile:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-tile.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.upload-tile input[type="file"] { display: none; }
.upload-tile .label { font-weight: 600; font-size: 14px; }
.upload-tile .file-name { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.upload-tile .icon { font-size: 26px; margin-bottom: 4px; opacity: 0.7; }

/* Step 1 — circular profile photo (MNC-style) */
.avatar-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.avatar-upload {
  display: block;
  cursor: pointer;
  position: relative;
  width: 168px;
  height: 168px;
  -webkit-tap-highlight-color: transparent;
}
.avatar-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 4;
  font-size: 0;
}
.avatar-upload__ring {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, var(--gold) 0%, var(--primary) 45%, var(--saffron) 100%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.35) inset;
  transition: transform var(--transition), box-shadow var(--transition);
}
.avatar-upload:hover .avatar-upload__ring {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.45) inset;
}
.avatar-upload:active .avatar-upload__ring {
  transform: scale(0.98);
}
.avatar-upload__disk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #faf6f0 0%, #efe8dc 100%);
  border: 2px solid rgba(255,255,255,0.85);
}
.avatar-upload__disk img.tile-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  background: #f5f0e8;
}
.avatar-upload__disk img.tile-preview:not([src]) {
  opacity: 0;
  visibility: hidden;
}
.avatar-upload__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.avatar-upload.has-file .avatar-upload__placeholder {
  opacity: 0;
  visibility: hidden;
}
.avatar-upload__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(120, 60, 20, 0.12);
}
.avatar-upload__icon {
  width: 26px;
  height: 26px;
}
.avatar-upload__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.25;
}
.avatar-upload__formats {
  font-size: 11px;
  line-height: 1.3;
  max-width: 130px;
}
.avatar-upload__cam {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 0 0 1px var(--border);
  z-index: 3;
  pointer-events: none;
}
.avatar-upload__cam svg {
  width: 20px;
  height: 20px;
}
.avatar-upload__hint {
  font-size: 12.5px;
  text-align: center;
  max-width: 280px;
  margin: 0;
  line-height: 1.45;
}

.upload-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: none;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(192,57,43,0.20);
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(192,57,43,0.28); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn.secondary {
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--primary-soft); }
.btn.ghost { background: transparent; color: var(--muted); border: none; box-shadow: none; padding: 10px 14px; }
.btn.ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn.full { width: 100%; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .input { flex: 1 1 160px; }

.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--error); font-size: 13.5px; margin-top: 6px; min-height: 18px; }
.success { color: var(--success); font-size: 14px; margin-top: 6px; font-weight: 500; }

.hidden { display: none !important; }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.5;
  border: 1px solid;
}
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #fdba74; }
.alert.info { background: var(--accent-soft); color: var(--warn); border-color: #fbd38d; }
.alert.error { background: var(--error-soft); color: var(--error); border-color: #fca5a5; }

/* ─── Stepper ─────────────────────────────────────────────── */
.stepper {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 8px; margin-bottom: 6px;
  overflow-x: auto;
}
.stepper::-webkit-scrollbar { display: none; }
.step-dot {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 4px;
}
.step-dot .num {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--border-strong);
  font-weight: 700; transition: var(--transition);
}
.step-dot.done .num { background: var(--success); color: #fff; border-color: var(--success); }
.step-dot.current { color: var(--primary); }
.step-dot.current .num { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.step-line { flex: 1; height: 2px; background: var(--border-strong); border-radius: 2px; min-width: 12px; }
.step-line.done { background: var(--success); }

/* ─── Slide animations ────────────────────────────────────── */
.fade-in { animation: fadeIn 280ms ease-out; }
.slide-in { animation: slideIn 320ms ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Spinner */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin 0.7s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Pandit grid (community) ─────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  /* Perf: skip painting offscreen cards on long lists */
  content-visibility: auto;
  contain-intrinsic-size: 320px 360px;
}
.pcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--primary));
  opacity: 0; transition: var(--transition); z-index: 2;
}
.pcard:hover,
.pcard:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow), 0 0 24px rgba(212,160,23,0.18);
  transform: translateY(-3px);
}
.pcard:hover::before,
.pcard:focus-within::before { opacity: 1; }
.pcard:active { transform: translateY(-1px) scale(0.99); }
.pcard-photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fdf3e6, #fff8f1);
  overflow: hidden;
}
.pcard-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
  background: #f3ece2;
}
.pcard:hover .pcard-photo img { transform: scale(1.06); filter: saturate(1.06); }
.pcard-photo-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, rgba(20,10,5,0) 0%, rgba(20,10,5,0.55) 60%, rgba(20,10,5,0.85) 100%);
  color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.pcard-photo-name {
  font-weight: 700; font-size: 16px; line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-photo-loc {
  font-size: 12.5px; opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-photo-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
}
.pcard-photo-online {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,0.92); border-radius: 999px;
  padding: 2px 8px; backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.pcard-body {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px;
}
.pcard .name { font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--text); }
.pcard .sub { color: var(--text-soft); font-size: 13px; }
.pcard .sub-soft { color: var(--muted); font-size: 12.5px; }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .tag {
  background: #fef0e2; color: var(--primary-dark);
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap;
}
.pcard .meta {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px;
  padding-top: 8px; border-top: 1px dashed var(--border); margin-top: 2px;
}
.pcard-cta {
  font-weight: 700; color: var(--primary-dark);
  letter-spacing: 0.2px;
}
.pcard .badge-online {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--success); font-weight: 600;
}
.pcard .badge-online::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block;
}
.pcard .badge-verified, .badge-verified {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: linear-gradient(90deg, #1a7f4b, #27ae60);
  color: #fff; border-radius: 20px; padding: 3px 10px;
  letter-spacing: .3px; box-shadow: 0 4px 10px rgba(26,127,75,.3);
}
.pcard .badge-pending, .badge-pending {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: #fff8e1; color: #b8860b;
  border: 1px solid #ffe082; border-radius: 20px; padding: 2px 9px;
  letter-spacing: .3px;
}

.filter-bar .row { gap: 8px; flex-wrap: wrap; }
.filter-bar .input { min-width: 140px; flex: 1 1 140px; }

/* Primary search row */
.filter-bar__primary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.search-field {
  position: relative; flex: 1 1 280px; min-width: 0;
}
.search-field__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: inline-flex;
}
.search-field__input {
  width: 100%; padding-left: 42px !important;
  font-size: 15px;
}
.search-field__input:focus { box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }

.filter-bar__search-btn { white-space: nowrap; }
.filter-bar__toggle {
  display: none; /* mobile only — see media query */
  position: relative; white-space: nowrap;
  padding: 10px 14px;
}
.filter-bar__toggle.is-open svg { transform: rotate(180deg); transition: transform .25s ease; }
.filter-bar__toggle svg { transition: transform .25s ease; }
.filter-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px;
  padding: 0 5px; text-align: center;
  box-shadow: 0 2px 6px rgba(192,57,43,0.30);
}

/* Advanced filters block */
.filter-bar__extra {
  margin-top: 10px;
}
.filter-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.filter-bar__row-bottom {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--border);
}
.filter-bar__reset { margin-left: auto; }
.check-inline--card {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 999px;
  transition: var(--transition);
}
.check-inline--card:hover { background: var(--primary-soft); border-color: var(--primary); }

@keyframes filterSlideDown {
  from { opacity: 0; transform: translateY(-6px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0);  max-height: 600px; }
}
.check-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--text-soft); cursor: pointer; user-select: none;
}
.check-inline input { accent-color: var(--primary); }
.btn.ghost {
  background: transparent; color: var(--primary-dark);
  border: 1px solid var(--border-strong); box-shadow: none;
}
.btn.ghost:hover { background: var(--primary-soft); }
.hero-badges {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px;
}

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 22px; align-items: center; }
.pagination .page-info { color: var(--muted); font-size: 14px; }

/* ─── Detail modal ─────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,10,5,0.55);
  z-index: 100; display: flex; align-items: flex-end;
  justify-content: center; padding: 0;
  animation: fadeIn 180ms ease-out;
}
@media (min-width: 700px) {
  .modal-backdrop { align-items: center; padding: 24px; }
}
.modal {
  background: #fff;
  width: 100%; max-width: 560px;
  border-radius: 20px 20px 0 0;
  max-height: 92vh; overflow-y: auto;
  animation: slideUp 280ms cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
@media (min-width: 700px) {
  .modal { border-radius: var(--radius-lg); }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.06); border: none; color: var(--text);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 20px; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }

.detail-hero {
  padding: 36px 24px 22px; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,160,23,0.18), transparent 70%),
    linear-gradient(135deg, var(--saffron-soft) 0%, #fff 70%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '🕉'; position: absolute; top: 14px; right: 18px;
  font-size: 26px; opacity: 0.20; color: var(--saffron);
}
.detail-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.detail-hero img {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--gold), 0 12px 24px rgba(212,160,23,0.25);
}
.detail-hero h2 {
  margin: 14px 0 4px; font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--primary-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.detail-hero .loc { color: var(--muted); font-size: 14px; }
.detail-hero .verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--success); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  margin-top: 10px; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(46,125,50,0.25);
}

/* Quick stats strip */
.detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  margin: 0; padding: 0;
}
.detail-stats .stat {
  background: #fff; padding: 14px 8px; text-align: center;
}
.detail-stats .stat .num {
  font-size: 18px; font-weight: 800; color: var(--primary-dark);
}
.detail-stats .stat .lbl {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px;
}

.detail-body { padding: 22px 24px 28px; }
.detail-section { margin-bottom: 20px; }
.detail-section h4 {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 700;
  color: var(--saffron); text-transform: uppercase; letter-spacing: 0.6px;
  display: flex; align-items: center; gap: 6px;
}
.detail-section h4::before {
  content: ''; width: 14px; height: 2px;
  background: var(--saffron); border-radius: 2px;
}
.detail-section p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }
.detail-section .pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-section .pill {
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-soft); padding: 4px 12px; border-radius: 999px;
  font-size: 13px;
}
.detail-section .pill.gold {
  background: var(--gold-soft); border-color: #fcd34d; color: var(--accent-dark);
}
.detail-section .pill.primary {
  background: var(--primary-soft); border-color: #fbb8b3; color: var(--primary-dark);
}

.detail-mini-map {
  height: 160px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-soft);
}

.detail-cta {
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, transparent, #fff 30%);
  padding: 16px 24px 20px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.detail-cta .btn { flex: 1; }

/* ─── Map (Leaflet container override) ─────────────────────── */
.map-container {
  height: 340px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1.5px solid var(--border);
  position: relative; background: var(--bg-soft);
}
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row .input { flex: 1; }

/* ─── Step 4: Use-current-location action row ───────────── */
.loc-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 4px 0 14px;
}
.loc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--primary) 100%);
  color: #fff; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 18px rgba(192,57,43,0.25);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.loc-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(192,57,43,0.35); filter: brightness(1.04); }
.loc-btn:active { transform: scale(0.97); }
.loc-btn.is-loading .loc-btn__icon svg { animation: spin 1s linear infinite; }
.loc-btn__icon { display: inline-flex; align-items: center; }
.loc-status {
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: var(--bg-soft);
  border: 1px dashed var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.loc-status--ok   { background: var(--success-soft); color: var(--success); border-style: solid; border-color: #a5d6a7; }
.loc-status--err  { background: var(--error-soft);   color: var(--error);   border-style: solid; border-color: #fca5a5; }
.loc-status--load { background: var(--accent-soft);  color: var(--warn);    border-style: solid; border-color: #fbd38d; }

/* ─── Step 4: Pro map shell ─────────────────────────────── */
.map-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}
.map-container--rich {
  height: 420px;
  border: none; border-radius: 0;
  background: linear-gradient(180deg, #eef5fb 0%, #f7eedf 100%);
}
.map-container--rich.map-dragging { cursor: grabbing; }

/* Floating overlay search box */
.map-search {
  position: absolute; top: 14px; left: 14px; right: 14px;
  z-index: 600; max-width: 540px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(40,30,20,0.18);
  display: flex; align-items: center; gap: 0;
  padding: 4px 6px 4px 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.map-search:focus-within { border-color: var(--primary); box-shadow: 0 10px 30px rgba(192,57,43,0.20); }
.map-search__icon { color: var(--muted); display: inline-flex; }
.map-search__input {
  flex: 1; border: 0; outline: none; background: transparent;
  padding: 12px 10px; font-size: 15px; color: var(--text);
  font-family: inherit;
}
.map-search__clear {
  background: var(--bg-soft); color: var(--muted); border: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.map-search__clear:hover { background: var(--primary-soft); color: var(--primary); }
.map-search__spinner { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }

/* Search dropdown */
.map-search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(40,30,20,0.18);
  max-height: 320px; overflow: auto;
  animation: fadeIn 200ms ease;
}
.map-search__item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition);
}
.map-search__item:hover { background: var(--primary-soft); }
.map-search__item-icon {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: var(--saffron-soft); color: var(--saffron);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.map-search__item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.map-search__item-text strong { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-search__item-text small { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-search__empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* Floating FAB stack (locate / 3D toggle / compass) */
.map-fab-stack {
  position: absolute; right: 14px; bottom: 18px; z-index: 600;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.map-fab {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, #fdfaf3);
  border: 1.5px solid var(--border);
  box-shadow: 0 6px 18px rgba(40,30,20,0.20);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--primary);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
}
.map-fab--alt { color: var(--text-soft); }
.map-fab--active {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--primary) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 24px rgba(192,57,43,0.40);
}
.map-fab__label { font-weight: 800; font-size: 13px; letter-spacing: 0.5px; }
.map-fab:hover { transform: translateY(-2px) scale(1.05); color: var(--primary-dark); box-shadow: 0 10px 24px rgba(192,57,43,0.30); }
.map-fab--active:hover { color: #fff; }
.map-fab:active { transform: scale(0.95); }
.map-fab.is-loading svg { animation: spin 1s linear infinite; }
.map-fab__pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(255,117,24,0.30);
  animation: pulse-ring 1.6s cubic-bezier(0,0.4,0.6,1) infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Map hint pill (bottom-left) */
.map-hint {
  position: absolute; left: 14px; bottom: 18px; z-index: 500;
  background: rgba(255,255,255,0.95);
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 12px; color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  max-width: calc(100% - 80px);
}
.map-hint__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--saffron); box-shadow: 0 0 0 4px rgba(255,117,24,0.20);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

/* Custom marker */
.ss-pin {
  position: relative; background: transparent !important; border: none !important;
}
.ss-pin svg { display: block; filter: drop-shadow(0 4px 6px rgba(40,30,20,0.30)); animation: pinDrop 360ms cubic-bezier(0.34,1.56,0.64,1); }
.ss-pin__shadow {
  position: absolute; left: 50%; bottom: -2px;
  width: 20px; height: 6px; border-radius: 50%;
  background: rgba(40,30,20,0.30);
  transform: translateX(-50%);
  filter: blur(3px);
}
.ss-pin__pulse {
  position: absolute; left: 50%; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,117,24,0.45);
  transform: translate(-50%, -50%) scale(1);
  animation: pulse-ring 1.8s cubic-bezier(0,0.4,0.6,1) infinite;
  z-index: -1;
}
@keyframes pinDrop {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Detected address card */
.addr-card {
  margin-top: 16px; background: var(--card);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 16px 8px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 220ms ease;
}
.addr-card__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.addr-card__pin {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--saffron-soft); color: var(--saffron);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.addr-card__title { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.addr-card__title strong { font-weight: 700; font-size: 15px; }
.addr-card__sub { font-size: 12px; }
.addr-card__chip {
  background: var(--success-soft); color: var(--success);
  border: 1px solid #a5d6a7; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  animation: fadeIn 220ms ease;
}
.addr-card__chip--load { background: var(--accent-soft); color: var(--warn); border-color: #fbd38d; }
.addr-card__chip--err { background: var(--error-soft); color: var(--error); border-color: #fca5a5; }
.addr-card__coords { font-size: 12px; padding: 6px 0 4px; font-family: monospace; }

.radius-row { display: flex; align-items: center; gap: 10px; }
.radius-row .input { width: 90px; flex: 0 0 auto; }
.radius-row__slider { flex: 1; accent-color: var(--primary); height: 2px; }

/* Leaflet small overrides */
.leaflet-control-zoom a {
  color: var(--text) !important; background: #fff !important;
  border: 1px solid var(--border) !important; box-shadow: var(--shadow-sm) !important;
}
.leaflet-control-zoom a:hover { background: var(--bg-soft) !important; color: var(--primary) !important; }
.leaflet-control-attribution { font-size: 10px !important; opacity: 0.7; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Done screen */
.done-card {
  text-align: center; padding: 44px 24px 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,160,23,0.20), transparent 60%),
    linear-gradient(135deg, #fff, var(--success-soft));
  border-color: #a5d6a7;
  position: relative; overflow: hidden;
}
.done-card::before {
  content: '🕉'; position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  font-size: 32px; opacity: 0.18; color: var(--saffron);
}
.done-card .check {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, var(--success));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 40px; margin-bottom: 18px;
  animation: pop 360ms cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 0 6px rgba(46,125,50,0.15), 0 12px 24px rgba(46,125,50,0.30);
}
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.done-card h2 { margin: 0 0 8px; font-size: 24px; }
.done-card .id-pill {
  display: inline-block; margin-top: 12px;
  background: #fff; border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 999px; font-family: monospace; font-size: 13px;
}

/* ─── Legal acceptance gate ─────────────────────────────── */
.stepper-note {
  text-align: center; font-size: 13px; padding: 6px 0 12px;
}
.legal-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.legal-row {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); padding: 14px 16px; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.legal-row.accepted { border-color: #a5d6a7; background: linear-gradient(180deg, #fff, var(--success-soft)); }
.legal-row.expanded { box-shadow: var(--shadow-sm); }
.legal-row__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.legal-row__check {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; min-width: 220px;
}
.legal-row__check input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--success); cursor: pointer; flex: 0 0 auto;
}
.legal-row__title {
  font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.legal-row__req { color: var(--primary); font-weight: 700; }
.legal-row__badge {
  background: var(--success-soft); color: var(--success); border: 1px solid #a5d6a7;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.legal-row__view {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.legal-row__view:hover { background: var(--primary-soft); color: var(--primary); }
.legal-row.expanded .legal-row__view { background: var(--primary-soft); color: var(--primary); }
.legal-row__meta { font-size: 12px; margin-top: 4px; padding-left: 30px; }
.legal-row__body {
  margin-top: 10px; padding: 12px 14px; background: var(--bg-soft);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  max-height: 320px; overflow: auto;
}
.legal-row__content {
  margin: 0; white-space: pre-wrap; font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; line-height: 1.55; color: var(--text-soft);
}
.legal-accept-all {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; background: var(--accent-soft); border: 1.5px solid #fbd38d;
  border-radius: var(--radius-sm); margin-top: 6px; font-weight: 600; color: var(--text);
}
.legal-accept-all input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 60px; padding: 24px 0; text-align: center;
  color: var(--muted); border-top: 1px solid var(--border);
  font-size: 13px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 32px 0 16px; }
  .hero h1 { font-size: 28px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .brand { font-size: 17px; }
  .card { padding: 18px; }
  .btn { padding: 12px 18px; }
  .stepper { padding: 8px 0; gap: 4px; }
  .step-dot .num { width: 26px; height: 26px; font-size: 12px; }
  .step-dot { font-size: 11px; }
  .map-container { height: 280px; }
  .map-container--rich { height: 340px; }
  .map-fab { width: 42px; height: 42px; }
}

/* ─── Mobile-first responsive polish (community + global) ─── */
@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .hero { padding: 22px 0 10px; }
  .hero h1 { font-size: 22px; line-height: 1.25; }
  .hero p { font-size: 13.5px; }

  /* Two cards per row on small phones for more density */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .pcard { border-radius: 14px; }
  .pcard-photo { aspect-ratio: 1 / 1; }
  .pcard-photo-overlay { padding: 18px 10px 9px; }
  .pcard-photo-name { font-size: 14px; }
  .pcard-photo-loc { font-size: 11.5px; }
  .pcard-body { padding: 10px 11px 12px; gap: 6px; }
  .pcard .tag { font-size: 11px; padding: 2px 7px; }
  .pcard .meta { font-size: 12px; padding-top: 6px; }
  .pcard-photo-badge .badge-verified { font-size: 10px; padding: 2px 7px; }
  .pcard-photo-online { padding: 1px 6px; font-size: 10px; }
  .pcard-photo-online .badge-online { font-size: 10px; }

  /* Filter bar — single column, easier to tap */
  .filter-bar .row { gap: 8px; }
  .filter-bar { padding: 12px; }

  /* Primary row: search input + Search btn side-by-side, then Filters btn */
  .filter-bar__primary { gap: 8px; }
  .search-field { flex: 1 1 100%; min-width: 0; order: 1; }
  .search-field__input { padding: 12px 14px 12px 40px !important; font-size: 15px; }
  .search-field__icon { left: 12px; }
  .filter-bar__search-btn {
    flex: 1 1 auto; order: 2;
    padding: 12px 16px; font-size: 14px;
  }
  .filter-bar__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; order: 3;
    padding: 12px 14px; font-size: 14px;
  }

  /* Hide advanced filters by default; show when toggled */
  .filter-bar__extra { display: none; margin-top: 12px; }
  .filter-bar__extra.is-open {
    display: block;
    animation: filterSlideDown .22s ease both;
  }
  .filter-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .filter-bar__grid .input {
    min-width: 0; padding: 11px 12px; font-size: 14px;
  }
  .filter-bar__row-bottom {
    flex-direction: column; align-items: stretch; gap: 10px;
  }
  .check-inline--card { justify-content: center; padding: 10px 12px; font-size: 13.5px; }
  .filter-bar__reset { margin-left: 0; width: 100%; padding: 11px 14px; font-size: 14px; }

  .check-inline { font-size: 13px; }

  /* Modal — full-height bottom sheet on phones */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 22px 22px 0 0;
    max-height: 96vh;
    width: 100%;
  }
  .modal-close {
    top: 10px; right: 10px;
    width: 38px; height: 38px;
    background: rgba(0,0,0,0.55); color: #fff;
  }
  .detail-hero { padding: 28px 18px 18px; }
  .detail-hero img { width: 96px; height: 96px; border-width: 3px; }
  .detail-hero h2 { font-size: 20px; }
  .detail-stats .stat { padding: 12px 6px; }
  .detail-stats .stat .num { font-size: 16px; }
  .detail-stats .stat .lbl { font-size: 10px; }
  .detail-body { padding: 18px 18px 28px; }
  .detail-section { margin-bottom: 16px; }
  .detail-section h4 { font-size: 11.5px; }
  .detail-section p, .detail-section .pill { font-size: 13.5px; }
  .detail-mini-map { height: 180px; }
  .detail-cta { padding: 12px 18px 18px; }
  .detail-cta .btn { padding: 13px 16px; font-size: 14.5px; }

  /* Pagination — friendlier tap targets */
  .pagination { gap: 8px; }
  .pagination .btn { padding: 10px 14px; font-size: 14px; min-width: 88px; }
  .pagination .page-info { font-size: 13px; }

  /* Header — keep brand visible, allow nav to wrap */
  .site-header .container { gap: 10px; }
  .nav { gap: 4px; }
  .nav a { padding: 6px 8px; font-size: 13.5px; }
  .lang-switch button { padding: 4px 8px; font-size: 12px; }
  .brand small { display: none; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .grid { gap: 10px; }
  .pcard-photo-name { font-size: 13px; }
  .pcard-body { padding: 8px 9px 10px; }
}

/* ─── Boot / resume splash ─────────────────────────────── */
.boot-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at top, #fff7e6 0%, #fdeede 45%, #f8d6a8 100%);
  animation: bootFade 220ms ease;
}
.boot-splash.hidden { display: none; }
.boot-splash.is-leaving {
  animation: bootLeave 320ms ease forwards;
  pointer-events: none;
}
.boot-splash__card {
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 38px 44px 30px;
  box-shadow: 0 28px 80px rgba(192,57,43,0.18), 0 8px 24px rgba(40,30,20,0.10);
  min-width: 280px; max-width: 92vw;
}
.boot-splash__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
  font-size: 22px; font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.boot-splash__lotus {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(192,57,43,0.30));
  animation: bootLotus 2.4s ease-in-out infinite;
  display: inline-block;
}
.boot-splash__title { letter-spacing: 0.3px; }
.boot-splash__spinner {
  position: relative; width: 56px; height: 56px;
  margin: 4px auto 16px;
}
.boot-splash__spinner span {
  position: absolute; inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--saffron);
  border-radius: 50%;
  animation: bootSpin 1.1s cubic-bezier(0.5, 0.1, 0.4, 1) infinite;
}
.boot-splash__spinner span:nth-child(2) { animation-delay: -0.15s; opacity: 0.7; transform: scale(0.78); }
.boot-splash__spinner span:nth-child(3) { animation-delay: -0.30s; opacity: 0.5; transform: scale(0.58); }
.boot-splash__spinner span:nth-child(4) { animation-delay: -0.45s; opacity: 0.3; transform: scale(0.40); }
.boot-splash__msg {
  margin: 4px 0 6px; font-size: 15px; font-weight: 600;
  color: var(--text);
}
.boot-splash__hint {
  margin: 0; font-size: 12.5px;
}
@keyframes bootFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bootLeave {
  to { opacity: 0; transform: scale(1.03); }
}
@keyframes bootSpin {
  to { transform: rotate(360deg); }
}
@keyframes bootLotus {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.05); }
}

/* Skeleton input shimmer used while resuming */
.input.is-loading,
.input--skeleton {
  background: linear-gradient(90deg, #f3ece2 0%, #fbf6ec 50%, #f3ece2 100%);
  background-size: 200% 100%;
  animation: skel 1.2s linear infinite;
  color: transparent;
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── MapLibre GL polish ─────────────────────────────────── */
.map-container--rich .maplibregl-canvas { outline: none; }
.map-container--rich .maplibregl-ctrl-bottom-left { left: 12px; bottom: 56px; }
.map-container--rich .maplibregl-ctrl-bottom-right { right: 12px; bottom: 4px; }
.map-container--rich .maplibregl-ctrl-group {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(40,30,20,0.18);
  border: 1.5px solid var(--border);
}
.map-container--rich .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.map-container--rich .maplibregl-ctrl-attrib {
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
}
.map-container--rich .maplibregl-marker { will-change: transform; }
.ss-pin--ml {
  width: 36px; height: 46px;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: auto; cursor: grab;
}
.ss-pin--ml:active { cursor: grabbing; }
