:root {
  --bmd-primary: #087f8c;
  --bmd-primary-dark: #05616b;
  --bmd-accent: #10b981;
  --bmd-ink: #152536;
  --bmd-muted: #65758b;
  --bmd-line: #e4ebf2;
  --bmd-soft: #f4f9fb;
  --bmd-white: #fff;
  --bmd-shadow: 0 12px 38px rgba(27, 54, 75, .09);
}

.bmd-directory-slider,
.bmd-profile-page,
.bmd-profile-page * {
  box-sizing: border-box;
}

.bmd-top-directory-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 30px;
  clear: both;
}

.bmd-top-directory-wrap .bmd-directory-slider {
  margin-bottom: 0;
}

.bmd-directory-slider {
  position: relative;
  width: 100%;
  margin: 0 0 32px;
  padding: 24px;
  overflow: hidden;
  color: var(--bmd-ink);
  border: 1px solid #dcebf0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(16,185,129,.13), transparent 28%),
    linear-gradient(135deg, #f7fcfd 0%, #edf6fb 100%);
}

.bmd-slider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.bmd-slider-heading h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bmd-ink);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.5;
}

.bmd-slider-controls { display: flex; gap: 8px; }
.bmd-slider-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d8e5eb;
  border-radius: 50%;
  background: #fff;
  color: var(--bmd-primary);
  font: 700 24px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(40,72,94,.08);
  transition: .2s ease;
}
.bmd-slider-button:hover { color: #fff; border-color: var(--bmd-primary); background: var(--bmd-primary); }

.bmd-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c3d8df transparent;
}

.bmd-profile-card {
  position: relative;
  flex: 0 0 218px;
  min-height: 300px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(216,229,235,.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35,68,88,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bmd-profile-card:hover { transform: translateY(-4px); box-shadow: 0 15px 34px rgba(35,68,88,.14); }
.bmd-card-link { display: flex; height: 100%; padding: 22px 15px 17px; color: inherit !important; text-decoration: none !important; flex-direction: column; align-items: center; }
.bmd-vip-badge { position: absolute; z-index: 2; top: 0; right: 0; padding: 7px 14px 8px 18px; color: #0c7950; border-radius: 0 0 0 18px; background: #d9faeb; font-size: 12px; font-weight: 800; }
.bmd-card-photo-wrap { padding: 7px; border-radius: 50%; background: linear-gradient(145deg, #dff4f5, #f3fbfc); }
.bmd-card-photo { display: block; width: 92px; height: 92px; margin: 0; object-fit: cover; border: 4px solid #fff; border-radius: 50%; }
.bmd-card-placeholder { display: grid; place-items: center; color: var(--bmd-primary); background: #e8f5f6; font-size: 34px; }
.bmd-profile-card h3 { margin: 13px 0 5px !important; padding: 0 !important; color: var(--bmd-ink); text-align: center; font-size: 16px; line-height: 1.65; }
.bmd-verified-mark { display: inline-grid; width: 18px; height: 18px; margin-right: 5px; color: #fff; border-radius: 50%; background: var(--bmd-accent); place-items: center; font-size: 11px; }
.bmd-card-specialty { min-height: 42px; margin: 0 !important; color: var(--bmd-muted); text-align: center; font-size: 12px; line-height: 1.75; }
.bmd-card-location { margin: 8px 0 12px !important; color: #768799; font-size: 12px; }
.bmd-card-cta { width: 100%; margin-top: auto; padding: 8px 12px; color: var(--bmd-primary); border-radius: 10px; background: #edf8f8; text-align: center; font-size: 12px; font-weight: 700; }

.bmd-profile-page { min-height: 100vh; padding: 34px 18px 80px; color: var(--bmd-ink); background: #f5f8fa; font-family: inherit; }
.bmd-profile-shell { width: min(1180px, 100%); margin: 0 auto; }
.bmd-breadcrumb { display: flex; margin: 0 0 18px; color: #7a8899; font-size: 13px; align-items: center; gap: 9px; flex-wrap: wrap; }
.bmd-breadcrumb a { color: var(--bmd-primary); text-decoration: none; }

.bmd-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--bmd-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--bmd-shadow);
  align-items: center;
}
.bmd-profile-avatar { width: 138px; height: 138px; overflow: hidden; border: 7px solid #edf7f8; border-radius: 50%; background: #e6f2f4; }
.bmd-profile-avatar img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.bmd-profile-avatar > span { display: grid; width: 100%; height: 100%; color: var(--bmd-primary); place-items: center; font-size: 45px; }
.bmd-profile-labels { display: flex; min-height: 25px; gap: 8px; flex-wrap: wrap; }
.bmd-label { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.bmd-label-vip { color: #946200; background: #fff3cf; }
.bmd-label-verified { color: #08774f; background: #dbf9ec; }
.bmd-profile-intro h1 { margin: 7px 0 5px; color: var(--bmd-ink); font-size: clamp(25px, 3vw, 36px); line-height: 1.5; }
.bmd-profile-specialty { margin: 0 0 13px; color: var(--bmd-muted); font-size: 15px; }
.bmd-profile-facts { display: flex; color: #63758a; gap: 10px 20px; flex-wrap: wrap; font-size: 13px; }
.bmd-profile-facts span { position: relative; }
.bmd-rating-inline { color: #a26900 !important; }
.bmd-hero-actions { display: flex; width: 185px; flex-direction: column; gap: 10px; }

.bmd-button { display: inline-flex; min-height: 45px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; text-decoration: none !important; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; transition: .2s ease; }
.bmd-button-primary { color: #fff !important; background: var(--bmd-primary); }
.bmd-button-primary:hover { background: var(--bmd-primary-dark); }
.bmd-button-whatsapp { color: #fff !important; background: #16a86f; }
.bmd-button-whatsapp:hover { background: #0e8a5a; }
.bmd-button-outline { color: var(--bmd-primary) !important; border-color: #cce0e5; background: #fff; }
.bmd-button-outline:hover { border-color: var(--bmd-primary); background: #f1fafa; }

.bmd-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; margin-top: 24px; gap: 24px; align-items: start; }
.bmd-profile-main { min-width: 0; }
.bmd-profile-section,
.bmd-contact-card,
.bmd-map-card { margin-bottom: 22px; padding: 25px; border: 1px solid var(--bmd-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(27,54,75,.06); }
.bmd-profile-section h2,
.bmd-contact-card h2 { position: relative; margin: 0 0 20px; padding: 0 14px 12px 0; color: var(--bmd-ink); border-bottom: 1px solid #edf1f4; font-size: 20px; line-height: 1.6; }
.bmd-profile-section h2::before,
.bmd-contact-card h2::before { position: absolute; top: 6px; right: 0; width: 4px; height: 22px; border-radius: 5px; background: var(--bmd-primary); content: ""; }
.bmd-rich-content { color: #425466; font-size: 15px; line-height: 2.05; }
.bmd-rich-content p:last-child { margin-bottom: 0; }

.bmd-service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bmd-service-list > span { display: flex; padding: 13px 14px; border: 1px solid #e5edf1; border-radius: 12px; background: #fbfdfd; align-items: center; gap: 9px; }
.bmd-service-list i { display: grid; width: 22px; height: 22px; color: #fff; border-radius: 50%; background: var(--bmd-accent); place-items: center; font-style: normal; font-size: 12px; }
.bmd-check-list { margin: 0; padding: 0; list-style: none; }
.bmd-check-list li { position: relative; margin: 0; padding: 10px 28px 10px 0; color: #425466; border-bottom: 1px dashed #e7edf1; }
.bmd-check-list li:last-child { border-bottom: 0; }
.bmd-check-list li::before { position: absolute; top: 12px; right: 3px; color: var(--bmd-accent); content: "✓"; font-weight: 900; }
.bmd-chip-list { display: flex; gap: 9px; flex-wrap: wrap; }
.bmd-chip-list span { padding: 8px 13px; color: #365264; border: 1px solid #dce9ed; border-radius: 30px; background: #f6fafb; font-size: 13px; }

.bmd-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bmd-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 13px; background: #edf2f4; }
.bmd-gallery img { width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .25s ease; }
.bmd-gallery a:hover img { transform: scale(1.04); }
.bmd-video-wrap iframe,
.bmd-video-wrap video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

.bmd-profile-sidebar { position: sticky; top: 24px; }
.bmd-contact-card { padding: 22px; }
.bmd-contact-card h2 { font-size: 18px; }
.bmd-contact-row { display: flex; padding: 11px 0; border-bottom: 1px solid #edf1f4; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13px; }
.bmd-contact-row > span,
.bmd-contact-address > span { color: var(--bmd-muted); }
.bmd-contact-row a { color: var(--bmd-primary); text-decoration: none; direction: ltr; font-weight: 800; }
.bmd-contact-row strong { color: #35495a; text-align: left; font-size: 13px; }
.bmd-contact-address { padding: 14px 0 4px; }
.bmd-contact-address p { margin: 6px 0 12px; color: #3d5060; font-size: 13px; line-height: 1.9; }
.bmd-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bmd-social-links { display: flex; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf1f4; justify-content: center; gap: 22px; }
.bmd-social-links a { color: var(--bmd-primary); text-decoration: none; font-size: 13px; font-weight: 700; }
.bmd-map-card { overflow: hidden; height: 245px; padding: 0; }
.bmd-map-card iframe { width: 100%; height: 100%; border: 0; }

.bmd-comments-section .comment-list { margin: 0 0 26px; padding: 0; list-style: none; }
.bmd-comments-section .comment { margin: 0 0 13px; padding: 16px; border: 1px solid #e6edf1; border-radius: 13px; background: #fbfdfd; }
.bmd-comments-section .children { margin-top: 12px; }
.bmd-comments-section .comment-meta { margin-bottom: 9px; font-size: 12px; }
.bmd-comments-section .comment-author img { border-radius: 50%; }
.bmd-comment-score { margin: 0 0 7px; color: #e29a12; letter-spacing: 2px; direction: ltr; text-align: right; }
.bmd-comment-ratings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 18px; gap: 12px; }
.bmd-rating-help { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.bmd-comment-ratings label { display: flex; padding: 8px 11px; border: 1px solid #e3ebef; border-radius: 10px; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.bmd-comment-ratings select { min-width: 95px; padding: 6px; }
.bmd-comments-section input[type="text"],
.bmd-comments-section input[type="email"],
.bmd-comments-section input[type="url"],
.bmd-comments-section textarea { width: 100%; padding: 11px 13px; border: 1px solid #dbe5ea; border-radius: 10px; }
.bmd-comments-section input[type="submit"] { padding: 11px 22px; color: #fff; border: 0; border-radius: 10px; background: var(--bmd-primary); cursor: pointer; }

.bmd-mobile-sticky { display: none; }

@media (max-width: 900px) {
  .bmd-profile-hero { grid-template-columns: auto 1fr; }
  .bmd-hero-actions { grid-column: 1 / -1; width: 100%; flex-direction: row; }
  .bmd-hero-actions .bmd-button { flex: 1; }
  .bmd-profile-layout { grid-template-columns: 1fr; }
  .bmd-profile-sidebar { position: static; }
}

@media (max-width: 620px) {
  .bmd-top-directory-wrap { width: calc(100% - 20px); margin: 16px auto 22px; }
  .bmd-directory-slider { margin-bottom: 24px; padding: 18px 14px; border-radius: 17px; }
  .bmd-slider-heading { align-items: flex-start; }
  .bmd-slider-controls { display: none; }
  .bmd-profile-card { flex-basis: 79%; min-height: 292px; }
  .bmd-profile-page { padding: 20px 10px 88px; }
  .bmd-profile-hero { grid-template-columns: 1fr; padding: 21px 17px; text-align: center; }
  .bmd-profile-avatar { width: 116px; height: 116px; margin: 0 auto; }
  .bmd-profile-labels,
  .bmd-profile-facts { justify-content: center; }
  .bmd-profile-facts { flex-direction: column; gap: 6px; }
  .bmd-hero-actions { flex-direction: row; }
  .bmd-profile-section,
  .bmd-contact-card { padding: 19px 15px; border-radius: 16px; }
  .bmd-service-list { grid-template-columns: 1fr; }
  .bmd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmd-comment-ratings { grid-template-columns: 1fr; }
  .bmd-rating-help { grid-column: auto; }
  .bmd-mobile-sticky { position: fixed; z-index: 9999; right: 10px; bottom: 10px; left: 10px; display: flex; overflow: hidden; padding: 5px; border: 1px solid rgba(255,255,255,.28); border-radius: 15px; background: rgba(5,97,107,.96); box-shadow: 0 10px 35px rgba(12,43,56,.28); backdrop-filter: blur(8px); gap: 5px; }
  .bmd-mobile-sticky a { flex: 1; padding: 10px; color: #fff; border-radius: 11px; background: rgba(255,255,255,.1); text-align: center; text-decoration: none; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  .bmd-profile-card,
  .bmd-gallery img,
  .bmd-slider-button { transition: none; }
  .bmd-slider-track { scroll-behavior: auto; }
}
