/* Customize Your Booking Site — full-width profile carousel */

.bm-cs-section {
  overflow: visible !important;
  background: #fff !important;
  background-image: none !important;
  /* Match existing pt-16 / lg:pt-24 so bottom = top */
  padding-bottom: 4rem !important; /* = pt-16 */
}

@media (min-width: 1024px) {
  .bm-cs-section {
    padding-bottom: 6rem !important; /* = lg:pt-24 */
  }
}

.bm-cs-host,
.bm-cs-host-owned {
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Break out of section padding → true full bleed */
.bm-cs {
  --bm-navy: #00112e;
  /* Average modern phone ~19.5:9 (≈2.1) including chrome */
  --phone-w: 248px;
  --phone-h: 520px;
  --gap: 1.1rem;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2.25rem;
  margin-bottom: 0;
  /* Room above/below so soft phone shadows aren't clipped by overflow */
  padding: 28px 0 40px;
  overflow: hidden;
  user-select: none;
}

@media (min-width: 1024px) {
  .bm-cs {
    --phone-w: 300px;
    --phone-h: 628px;
    --gap: 1.35rem;
    margin-top: 3rem;
    padding: 32px 0 48px;
  }
}

.bm-cs__track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--gap);
  height: var(--phone-h);
  width: max-content;
  padding: 0;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.bm-cs__track.is-jumping {
  transition: none;
}

.bm-cs__viewport {
  width: 100%;
  overflow: hidden;
}

/* Dots: hidden on desktop by default */
.bm-cs-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.bm-cs-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 17, 46, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.bm-cs-dot.is-active {
  width: 18px;
  background: #0165a3;
}

@media (max-width: 767px) {
  .bm-cs {
    --phone-w: min(276px, calc(100vw - 56px));
    --phone-h: 578px;
    --gap: 1.25rem;
    padding: 22px 0 18px;
    touch-action: pan-y;
    /* Don't clip the dots under the phones */
    overflow: visible;
  }

  .bm-cs__viewport {
    touch-action: pan-y;
    overflow: hidden;
    width: 100%;
  }

  .bm-cs-dots {
    display: flex !important;
    pointer-events: auto;
    margin-top: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .bm-cs-dot {
    pointer-events: auto;
  }
}

.bm-cs-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex: 0 0 var(--phone-w);
  width: var(--phone-w);
  height: var(--phone-h);
  position: relative;
  z-index: 1;
  transform: scale(0.72);
  transform-origin: center center;
  opacity: 0.72;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  filter: saturate(0.9);
  /* No bottom clip — keep full phone border visible on side cards */
  clip-path: none;
}

.bm-cs-card.is-active {
  z-index: 5;
  transform: scale(1);
  opacity: 1;
  filter: none;
  clip-path: none;
}

/* Gray phone shell (matches provided mock — not PNG frame) */
.bm-cs-phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: #dcdddf;
  padding: 11px;
  box-sizing: border-box;
  /* Soft, short shadow — less spread so it doesn’t look cut off */
  box-shadow:
    0 10px 24px -12px rgba(14, 23, 38, 0.22),
    0 4px 10px -6px rgba(14, 23, 38, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

/* Side phones: lighter gray outline chrome */
.bm-cs-card:not(.is-active) .bm-cs-phone {
  padding: 8px;
  border-radius: 40px;
  background: #e4e5e7;
  box-shadow:
    0 8px 18px -10px rgba(14, 23, 38, 0.18),
    0 3px 8px -4px rgba(14, 23, 38, 0.1);
  outline: 6px solid rgba(129, 138, 152, 0.28);
  outline-offset: -1px;
}

.bm-cs-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #f4f3ef;
}

.bm-cs-card:not(.is-active) .bm-cs-phone__screen {
  border-radius: 32px;
}

/* Status bar — time / Dynamic Island / signal+battery */
.bm-cs-statusbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 11px 16px 6px;
  background: #f4f3ef;
  color: #9aa0a6;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.35s ease;
}

.bm-cs-statusbar__time {
  min-width: 42px;
}

.bm-cs-statusbar__pill {
  width: 62px;
  height: 18px;
  border-radius: 999px;
  background: #d8d9dc;
  justify-self: center;
  transition: background-color 0.35s ease;
}

.bm-cs-statusbar__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: inherit;
}

.bm-cs-statusbar__icons svg {
  display: block;
}

/* Active / center phone: status time + icons turn black */
.bm-cs-card.is-active .bm-cs-statusbar {
  color: #0a0a0a;
}

.bm-cs-card.is-active .bm-cs-statusbar__pill {
  background: #1a1a1a;
}

/* ===== Profile screens (basic-card + design-card formats) ===== */
.bm-cs-screen {
  --page-bg: #f4f3ef;
  --card-bg: #101a2c;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --ink: #171712;
  --ink-soft: #6e6c64;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: #e7e3d8;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--page-bg);
}

.bm-cs-img-fallback {
  display: block;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.bm-cs-page {
  /* Extra bottom/side padding so service-card shadows aren't clipped */
  padding: 6px 14px 22px;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.bm-cs-page::-webkit-scrollbar {
  display: none;
}

/* Shared profile card shell */
.bm-cs-prof-card {
  position: relative;
  border-radius: 22px;
  overflow: visible;
  box-shadow: 0 14px 32px rgba(16, 26, 44, 0.16);
}

.bm-cs-share {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 26, 44, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.bm-cs-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  /* Character cutouts are waist-up — keep face + hair inside the circle */
  object-position: center 18%;
  display: block;
  background: #2a2a2a;
}

.bm-cs-identity {
  padding: 12px 18px 0;
}

.bm-cs-identity--center {
  text-align: center;
}

.bm-cs-identity--left {
  text-align: left;
  padding: 12px 0 0;
}

.bm-cs-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.bm-cs-line {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.bm-cs-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.bm-cs-socials--left {
  justify-content: flex-start;
}

.bm-cs-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.bm-cs-divider {
  height: 1px;
  background: var(--line-dark);
  margin: 10px 18px 0;
}

.bm-cs-bio {
  margin: 0;
  padding: 8px 18px 12px;
  color: var(--white);
  font-size: 0.64rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bm-cs-bio strong {
  font-weight: 700;
}

.bm-cs-more {
  display: inline;
  margin-left: 3px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  pointer-events: none;
}

.bm-cs-gallery-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: -20px;
  margin-bottom: 26px;
  min-height: 40px;
  pointer-events: none;
}

.bm-cs-gallery {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 16px;
  border-radius: 999px;
  overflow: hidden;
  border: 2.5px solid var(--page-bg);
  box-shadow: 0 0 0 1px rgba(23, 23, 18, 0.12), 0 3px 10px rgba(0, 0, 0, 0.12);
  background: #e5e7eb;
  flex-shrink: 0;
}

.bm-cs-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.bm-cs-services-section {
  margin-top: 0;
  padding: 2px 2px 8px;
}

.bm-cs-services-title {
  margin: 0 0 6px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.bm-cs-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Keep last card shadow inside the scrollable page */
  padding: 1px 1px 6px;
}

.bm-cs-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--white);
  border-radius: 12px;
  padding: 7px 8px;
  /* Softer, shorter blur so it fits inside the phone screen */
  box-shadow:
    0 1px 2px rgba(23, 23, 18, 0.05),
    0 3px 6px rgba(23, 23, 18, 0.06);
  border: 1px solid rgba(23, 23, 18, 0.06);
}

.bm-cs-service__info {
  min-width: 0;
  flex: 1;
}

.bm-cs-service-title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-cs-service-desc {
  margin: 1px 0 0;
  font-size: 0.54rem;
  line-height: 1.25;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bm-cs-price-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.bm-cs-price {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
}

.bm-cs-price span {
  font-weight: 400;
  color: var(--ink-soft);
}

.bm-cs-tag {
  font-size: 0.48rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3c6e5d;
  background: #e3efe9;
  padding: 2px 6px;
  border-radius: 999px;
}

.bm-cs-service-thumb {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3efe9, #d9e4df);
}

.bm-cs-service-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- BASIC: taller hero + bold color card --- */
.bm-cs-screen--basic {
  --card-bg: #E8B923;
  --card-ink: #171712;
  --card-muted: rgba(23, 23, 18, 0.72);
}

.bm-cs-prof-card--basic {
  background: var(--card-bg);
  overflow: visible;
  isolation: isolate;
}

.bm-cs-cover {
  position: relative;
  width: 100%;
  height: 118px;
  overflow: hidden;
  background: #334155;
  border-radius: 22px 22px 0 0;
}

@media (min-width: 1024px) {
  .bm-cs-cover {
    height: 132px;
  }
}

.bm-cs-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.bm-cs-avatar-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  margin: -31px auto 4px;
  z-index: 3;
  border-radius: 999px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 0 0 3px var(--card-bg);
}

.bm-cs-prof-card--basic .bm-cs-avatar {
  border: 0;
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: -2px;
}

.bm-cs-prof-card--basic .bm-cs-identity {
  padding-top: 4px;
}

.bm-cs-prof-card--basic .bm-cs-name {
  color: var(--card-ink);
}

.bm-cs-prof-card--basic .bm-cs-line,
.bm-cs-prof-card--basic .bm-cs-more {
  color: var(--card-muted);
}

.bm-cs-prof-card--basic .bm-cs-bio {
  color: var(--card-ink);
  border-radius: 0 0 22px 22px;
  /* Room so the overlapping gallery bubble doesn't cover the copy */
  padding: 6px 14px 26px;
  font-size: 0.58rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.bm-cs-prof-card--basic .bm-cs-divider {
  background: color-mix(in srgb, var(--card-ink) 22%, transparent);
}

/* --- DESIGN: industry wallpaper (assets/Backgrounds) + soft readability wash --- */
.bm-cs-prof-card--design {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, var(--d1, #0f2e52) 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 15%, var(--d2, #123a4f) 0%, transparent 50%),
    radial-gradient(100% 80% at 50% 100%, var(--d3, #0a5c73) 0%, transparent 55%),
    radial-gradient(70% 60% at 70% 60%, var(--d4, #1c6d8f) 0%, transparent 60%),
    linear-gradient(160deg, var(--d5, #050b18) 0%, var(--d6, #0a1730) 55%, var(--d7, #071022) 100%);
}

.bm-cs-prof-card--design.has-wallpaper {
  background-color: #0a1220;
  background-image:
    linear-gradient(
      185deg,
      rgba(8, 16, 32, 0.28) 0%,
      rgba(8, 16, 32, 0.42) 45%,
      rgba(8, 16, 32, 0.72) 100%
    ),
    var(--design-bg);
  background-size: cover;
  background-position: center;
}

.bm-cs-prof-card--design::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(120, 210, 255, 0.5) 0, transparent 60%),
    radial-gradient(1px 1px at 75% 20%, rgba(120, 210, 255, 0.35) 0, transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(120, 210, 255, 0.3) 0, transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.bm-cs-prof-card--design.has-wallpaper::before {
  opacity: 0.35;
}

.bm-cs-prof-card--design .bm-cs-share {
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.bm-cs-card-inner {
  position: relative;
  z-index: 2;
  margin: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px 14px 12px;
}

.bm-cs-avatar--design {
  width: 58px;
  height: 58px;
  border: 2.5px solid rgba(10, 20, 40, 0.4);
  outline: 1.5px solid rgba(255, 255, 255, 0.9);
  outline-offset: -1.5px;
  object-position: center 18%;
}

.bm-cs-prof-card--design .bm-cs-divider {
  margin: 14px 0 0;
}

.bm-cs-prof-card--design .bm-cs-bio {
  padding: 12px 0 0;
}


/* Mobile: one phone at a time (must follow base .bm-cs-card rules) */
@media (max-width: 767px) {
  .bm-cs-card {
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    filter: none;
    cursor: default;
  }

  .bm-cs-card.is-active {
    transform: scale(1);
    opacity: 1;
    pointer-events: none; /* swipe on viewport, not card links */
    filter: none;
  }

  .bm-cs-card:not(.is-active) .bm-cs-phone {
    outline: none;
    box-shadow: none;
  }

  .bm-cs a {
    pointer-events: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-cs__track,
  .bm-cs-card {
    transition: none !important;
  }
}
