:root {
  --fmsl-primary: #2a6b78;
  --fmsl-primary-dark: #1e5560;
  --fmsl-teal: #18DEC5;
  --fmsl-text: #2a3b45;
  --fmsl-muted: #6b7c8f;
  --fmsl-bg: #f8f9fa;
  --fmsl-border: #e5eaef;
  --fmsl-container: 1140px;
}

body.fmclinic-single-listing-page .listing-detail-page,
body.fmclinic-single-listing-page .listing-detail-page + * { display: none !important; }

body.fmclinic-single-listing-page {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fmsl-text);
  background: #fff;
}

.fmsl-container { width: min(var(--fmsl-container), 94%); margin: 0 auto; }
.fmsl-page { padding: 28px 0 48px; background: #fff; }

.fmsl-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fmsl-primary);
  text-decoration: none;
}
.fmsl-back:hover { text-decoration: underline; }
.fmsl-top h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--fmsl-primary-dark);
  line-height: 1.15;
}
.fmsl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--fmsl-muted);
}
.fmsl-phone-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--fmsl-primary);
  font-weight: 600;
  cursor: pointer;
}
.fmsl-phone-btn:hover { text-decoration: underline; }
.fmsl-ico { margin-right: 6px; }

.fmsl-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--fmsl-border);
  margin-bottom: 32px;
}
.fmsl-tabs a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--fmsl-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.fmsl-tabs a.is-active,
.fmsl-tabs a:hover { color: var(--fmsl-primary-dark); border-bottom-color: var(--fmsl-primary); }

.fmsl-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.fmsl-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--fmsl-primary-dark);
}
.fmsl-heading span {
  display: block;
  width: 4px;
  height: 22px;
  background: var(--fmsl-teal);
  border-radius: 2px;
}
.fmsl-section { margin-bottom: 36px; }

.fmsl-treatments-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.fmsl-treatments { margin: 0; padding: 0; list-style: none; }
.fmsl-treatments li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fmsl-border);
}
.fmsl-treatments li div strong { display: block; font-size: 15px; color: var(--fmsl-text); }
.fmsl-treatments li div span { font-size: 14px; color: var(--fmsl-muted); font-weight: 600; }

.fmsl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--fmsl-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.fmsl-btn-primary:hover { background: var(--fmsl-primary-dark); color: #fff; }
.fmsl-btn-outline {
  display: inline-flex;
  padding: 8px 16px;
  border: 2px solid var(--fmsl-primary);
  border-radius: 4px;
  color: var(--fmsl-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  white-space: nowrap;
}
.fmsl-btn-outline:hover { background: #f0fdfb; }
.fmsl-btn-block { width: 100%; margin-bottom: 20px; }
.fmsl-btn-teal {
  padding: 10px 16px;
  background: var(--fmsl-teal);
  color: var(--fmsl-primary-dark);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.fmsl-gallery-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 180px;
}
.fmsl-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.fmsl-star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #f5c518;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
}
.fmsl-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.fmsl-thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.fmsl-thumb.is-active { border-color: var(--fmsl-teal); }
.fmsl-thumb img { width: 100%; height: 48px; object-fit: cover; display: block; }

.fmsl-about p { margin: 0 0 12px; line-height: 1.7; color: var(--fmsl-muted); font-size: 15px; }
.fmsl-readmore {
  border: none;
  background: none;
  padding: 0;
  color: var(--fmsl-primary);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.fmsl-review-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.fmsl-review-summary strong { font-size: 32px; font-weight: 800; }
.fmsl-review-summary span { color: #f5c518; font-size: 18px; }
.fmsl-review-summary p { margin: 0; font-size: 14px; color: var(--fmsl-muted); }
.fmsl-verified { color: #22c55e; font-weight: 700; }
.fmsl-review {
  padding: 18px 0;
  border-bottom: 1px solid var(--fmsl-border);
}
.fmsl-review time { font-size: 12px; color: var(--fmsl-muted); }
.fmsl-review h4 { margin: 6px 0; font-size: 14px; }
.fmsl-review h4 span { font-size: 11px; color: #22c55e; font-weight: 600; }
.fmsl-review strong { display: block; margin-bottom: 6px; font-size: 15px; }
.fmsl-stars { color: #f5c518; font-size: 14px; margin-bottom: 8px; }
.fmsl-review p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fmsl-muted); }
.fmsl-review-actions { display: flex; gap: 20px; align-items: center; margin-top: 20px; }
.fmsl-link { color: var(--fmsl-primary); font-weight: 700; text-decoration: none; }
.fmsl-staff-intro { color: var(--fmsl-muted); line-height: 1.6; }

.fmsl-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fmsl-check-grid li { font-size: 14px; color: var(--fmsl-muted); }
.fmsl-check { color: var(--fmsl-teal); font-weight: 700; margin-right: 8px; }

.fmsl-bottom-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--fmsl-border);
}

.fmsl-sidebar {
  background: var(--fmsl-bg);
  padding: 24px 20px;
  border-radius: 8px;
  position: sticky;
  top: 24px;
}
.fmsl-score-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.fmsl-score-card small { display: block; font-size: 11px; color: var(--fmsl-muted); }
.fmsl-score-card strong { display: block; font-size: 15px; color: var(--fmsl-primary-dark); }
.fmsl-score-card span { font-size: 11px; color: var(--fmsl-muted); }
.fmsl-score-badge {
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--fmsl-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 6px;
}
.fmsl-widget { margin-bottom: 20px; }
.fmsl-widget label,
.fmsl-widget h3 {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--fmsl-primary-dark);
}
.fmsl-widget form { display: flex; gap: 8px; margin-bottom: 10px; }
.fmsl-widget input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--fmsl-border);
  border-radius: 4px;
  font-size: 13px;
}
.fmsl-widget ul { margin: 0; padding: 0; list-style: none; }
.fmsl-widget li { margin-bottom: 6px; }
.fmsl-widget a { font-size: 13px; color: var(--fmsl-primary); font-weight: 600; text-decoration: none; }
.fmsl-widget table { width: 100%; font-size: 13px; }
.fmsl-widget td { padding: 4px 0; color: var(--fmsl-muted); }
.fmsl-widget td:first-child { font-weight: 600; color: var(--fmsl-text); width: 40%; }
.fmsl-sidebar-foot { font-size: 11px; color: var(--fmsl-muted); line-height: 1.5; margin: 0; }

.fmsl-owner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.fmsl-owner-box {
  background: var(--fmsl-bg);
  border: 1px solid var(--fmsl-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.fmsl-owner-box h3 { margin: 0 0 8px; font-size: 16px; }
.fmsl-owner-box p { margin: 0 0 16px; font-size: 14px; color: var(--fmsl-muted); }
.fmsl-legal {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--fmsl-muted);
}

@media (max-width: 992px) {
  .fmsl-layout { grid-template-columns: 1fr; }
  .fmsl-treatments-wrap { grid-template-columns: 1fr; }
  .fmsl-sidebar { position: static; }
  .fmsl-owner-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fmsl-tabs { gap: 14px; overflow-x: auto; }
  .fmsl-check-grid { grid-template-columns: 1fr; }
}

body.fmclinic-modal-open { overflow: hidden; }

.fmsl-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fmsl-modal[hidden] { display: none !important; }
.fmsl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.fmsl-modal-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.fmsl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.fmsl-modal h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
}
.fmsl-modal-sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fmsl-muted);
}
.fmsl-form-row { margin-bottom: 16px; }
.fmsl-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.fmsl-form-row input,
.fmsl-form-row select,
.fmsl-form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  color: var(--fmsl-text);
  background: #fff;
}
.fmsl-form-row textarea { resize: vertical; min-height: 110px; }
.fmsl-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fmsl-form-actions { margin-top: 8px; }
.fmsl-form-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.fmsl-form-status.is-success { color: #16a34a; }
.fmsl-form-status.is-error { color: #dc2626; }

@media (max-width: 600px) {
  .fmsl-form-row-2 { grid-template-columns: 1fr; }
  .fmsl-modal-dialog { padding: 24px 20px; }
}
