/* =============================================
   Directory card additions + mohel profile pages
   ============================================= */

/* ---- card: location + phone + profile link ---- */
.mohel-card { position: relative; }
.mohel-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.mohel-location .pin { font-size: 0.85rem; opacity: 0.75; }
.mohel-location.is-unknown { color: var(--gray-400); font-weight: 500; }
.mohel-card .mohel-contact { margin-top: auto; }
.mohel-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
}
.mohel-profile-link::after { content: '\2192'; transition: transform var(--transition); }
.mohel-card:hover .mohel-profile-link::after { transform: translateX(3px); }
.mohel-card-link { position: absolute; inset: 0; z-index: 1; }
.mohel-card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mohel-card a:not(.mohel-card-link) { position: relative; z-index: 2; }

/* ---- breadcrumbs ---- */
.pf-crumbs {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--gray-700);
}
.pf-crumbs .section-inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-crumbs span { color: var(--gray-400); }
.pf-crumb-current { color: var(--gray-700); font-weight: 600; }

/* ---- profile header ---- */
.pf-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white;
  padding: 48px 24px 40px;
}
.pf-header h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.2; }
.pf-location { margin-top: 10px; font-size: 1.05rem; opacity: 0.9; }
.pf-tags { margin-top: 18px; }
.pf-tags .tag-state {
  background: rgba(255,255,255,0.16);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.pf-tags .tag-state:hover { background: rgba(255,255,255,0.28); color: white; }
.pf-alias { margin-top: 14px; font-size: 0.82rem; opacity: 0.7; }

/* ---- body ---- */
.pf-main { padding: 48px 24px 56px; background: var(--off-white); }
.pf-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 28px; align-items: start; }
.pf-card, .pf-map, .pf-near {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.pf-side { display: flex; flex-direction: column; gap: 24px; }
.pf-card h2, .pf-map h2, .pf-near h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.pf-rows { display: flex; flex-direction: column; }
.pf-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.94rem;
}
.pf-row:last-child { border-bottom: none; }
.pf-label { color: var(--gray-400); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.pf-value { color: var(--gray-900); word-break: break-word; }
.pf-value a { font-weight: 600; }

.pf-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pf-cta .btn { padding: 12px 20px; font-size: 0.9rem; }
.pf-verify {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

/* ---- map ---- */
.pf-map-frame {
  position: relative;
  width: 100%;
  padding-bottom: 68%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.pf-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-map-note { margin-top: 12px; font-size: 0.78rem; color: var(--gray-400); line-height: 1.5; }

/* ---- nearby ---- */
.pf-near-list { display: flex; flex-direction: column; }
.pf-near-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.pf-near-list li:last-child { border-bottom: none; }
.pf-near-list a { font-weight: 600; }
.pf-near-list span { color: var(--gray-400); font-size: 0.82rem; text-align: right; white-space: nowrap; }
.pf-more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 0.86rem; }

.pf-back { background: white; padding: 32px 24px 48px; text-align: center; }

/* ---- profile index ---- */
.idx-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.idx-block { background: white; border: 1px solid var(--gray-200); border-radius: 12px; padding: 22px; }
.idx-block h2 { font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-100); }
.idx-list li { padding: 7px 0; font-size: 0.88rem; border-bottom: 1px solid var(--gray-100); }
.idx-list li:last-child { border-bottom: none; }
.idx-list span { display: block; color: var(--gray-400); font-size: 0.78rem; }

@media (max-width: 860px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 1fr; gap: 2px; }
  .pf-label { padding-top: 0; }
  .pf-cta .btn { width: 100%; justify-content: center; }
}

/* Optional bio, edited by admins in Appwrite */
.pf-bio { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.pf-bio p { font-size: 0.95rem; line-height: 1.7; color: var(--gray-700); margin: 0 0 10px; }
