/* Doctor / facility public SEO pages. Scoped to html.medsahi-html-seo. */

html.medsahi-html-seo #medsahi-seo-profile {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ms-seo-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  box-sizing: border-box;
}

.ms-seo-loading {
  margin: 48px 0;
  text-align: center;
  color: #6b7280;
}

.ms-seo-unavailable {
  margin: 48px auto;
  max-width: 520px;
  text-align: center;
}

.ms-seo-unavailable h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

.ms-seo-unavailable p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.6;
}

.ms-seo-unavailable a {
  color: #059669;
}

.ms-seo-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.ms-seo-photo {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  background: #d1fae5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ms-seo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-seo-photo--empty {
  background:
    linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
}

.ms-seo-hero-text {
  min-width: 0;
}

.ms-seo-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
}

.ms-seo-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.ms-seo-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #4b5563;
}

.ms-seo-facts {
  margin: 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.ms-seo-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f3f4f6;
}

.ms-seo-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ms-seo-row:last-child {
  padding-bottom: 0;
}

.ms-seo-row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.ms-seo-row dd {
  margin: 0;
  font-size: 15px;
  color: #111827;
  line-height: 1.5;
}

.ms-seo-row a {
  color: #059669;
  text-decoration: none;
}

.ms-seo-row a:hover {
  text-decoration: underline;
}

.ms-seo-section {
  margin-top: 32px;
}

.ms-seo-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}

.ms-seo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ms-seo-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ms-seo-card:hover,
.ms-seo-card:focus-visible {
  transform: translateY(-1px);
  border-color: #059669;
}

.ms-seo-card .ms-seo-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.ms-seo-card-body h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
}

.ms-seo-card-body p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.ms-seo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ms-seo-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  background: #ecfdf5;
}

@media (max-width: 639px) {
  .ms-seo-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ms-seo-hero h1 {
    font-size: 26px;
  }

  .ms-seo-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ms-seo-cards,
  .ms-seo-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .ms-seo-loading,
  .ms-seo-lead,
  .ms-seo-unavailable p,
  .ms-seo-card-body p {
    color: #94a3b8;
  }

  .ms-seo-hero h1,
  .ms-seo-section h2,
  .ms-seo-row dd,
  .ms-seo-card-body h2 {
    color: #f1f5f9;
  }

  .ms-seo-facts,
  .ms-seo-card {
    background: #1e293b;
    border-color: #334155;
  }

  .ms-seo-row {
    border-top-color: #334155;
  }

  .ms-seo-row dt {
    color: #94a3b8;
  }

  .ms-seo-photo {
    background: #064e3b;
  }

  .ms-seo-kicker,
  .ms-seo-unavailable a,
  .ms-seo-row a {
    color: #34d399;
  }
}
