/* WoohooBook V43.5 · publikus szakemberprofil és referencia-galéria */
:root{--wb-purple:#6f2dbd;--wb-purple-dark:#4d1f82;--wb-ink:#172033;--wb-muted:#667085;--wb-surface:#fff;--wb-border:rgba(17,24,39,.1);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}

/* A vízszintes szakemberlista az első kártyánál kezdődik; nincs mesterséges kétoldali holttér. */
body.demo-public #booking .public-staff-profile-list{padding-inline:4px 12px;scroll-padding-inline:4px}
body.demo-public #booking .public-staff-profile-card{scroll-snap-align:start}
body.demo-public #booking .public-staff-profile-card__identity{position:relative;padding-right:48px}

/* A profiloldali információ-gomb és referencia-lightbox közös public staff komponens. */
.public-staff-profile-link{position:absolute;top:0;right:0;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(111,45,189,.2);border-radius:50%;background:rgba(255,255,255,.9);color:var(--wb-purple);font-size:17px;font-weight:900;font-family:Georgia,serif;text-decoration:none;box-shadow:0 8px 20px rgba(58,37,98,.1);transition:transform .18s ease,background .18s ease,border-color .18s ease}
.public-staff-profile-link:hover{transform:translateY(-1px);background:#f4edff;border-color:rgba(111,45,189,.42)}
.public-staff-profile-link:focus-visible{outline:3px solid rgba(111,45,189,.24);outline-offset:3px}
.public-staff-card__references a{cursor:zoom-in}

.wb-reference-lightbox{position:fixed;inset:0;z-index:5000;display:grid;grid-template-columns:minmax(44px,1fr) minmax(0,1100px) minmax(44px,1fr);align-items:center;padding:24px;background:rgba(12,8,20,.9);backdrop-filter:blur(14px)}
.wb-reference-lightbox[hidden]{display:none}
.wb-reference-lightbox__stage{position:relative;display:grid;place-items:center;min-width:0;max-height:calc(100vh - 48px)}
.wb-reference-lightbox__stage img{display:block;max-width:100%;max-height:calc(100vh - 110px);border-radius:18px;object-fit:contain;box-shadow:0 28px 90px rgba(0,0,0,.42)}
.wb-reference-lightbox__close,.wb-reference-lightbox__nav{border:0;color:#fff;background:rgba(255,255,255,.12);cursor:pointer;backdrop-filter:blur(8px)}
.wb-reference-lightbox__close{position:fixed;top:20px;right:20px;width:46px;height:46px;border-radius:50%;font-size:28px;line-height:1}
.wb-reference-lightbox__nav{justify-self:center;width:46px;height:62px;border-radius:16px;font-size:32px}
.wb-reference-lightbox__nav:disabled{visibility:hidden}
.wb-reference-lightbox__counter{margin:14px 0 0;color:rgba(255,255,255,.82);font-size:13px;font-weight:750;text-align:center}
.wb-reference-lightbox button:focus-visible{outline:3px solid #c6a8ff;outline-offset:3px}

.staff-profile-page{margin:0;min-height:100vh;color:var(--wb-ink);background:radial-gradient(circle at 12% 8%,rgba(111,45,189,.14),transparent 32%),linear-gradient(180deg,#fbfaff,#f5f2f8)}
.staff-profile-topbar{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:28px 0 18px}
.staff-profile-topbar img{display:block;width:min(220px,54vw);height:auto}
.staff-profile-shell{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:18px 0 72px}
.staff-profile-loading,.staff-profile-error{display:grid;place-items:center;align-content:center;gap:14px;min-height:420px;padding:32px;border:1px solid var(--wb-border);border-radius:30px;background:rgba(255,255,255,.82);text-align:center;box-shadow:0 24px 70px rgba(37,23,60,.1)}
.staff-profile-loading span{width:28px;height:28px;border:3px solid rgba(111,45,189,.18);border-top-color:var(--wb-purple);border-radius:50%;animation:wb-profile-spin .75s linear infinite}
.staff-profile-error p{max-width:560px;margin:0;color:var(--wb-muted)}
.staff-profile-error a,.staff-profile-booking-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:14px;background:linear-gradient(135deg,var(--wb-purple),#8257ea);color:#fff;font-weight:800;text-decoration:none;box-shadow:0 12px 28px rgba(111,45,189,.22)}
.staff-profile-hero{display:grid;grid-template-columns:180px minmax(0,1fr);gap:34px;align-items:center;padding:clamp(26px,5vw,52px);border:1px solid rgba(255,255,255,.86);border-radius:34px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,243,255,.8));box-shadow:0 28px 80px rgba(42,26,67,.12)}
.staff-profile-avatar{position:relative;display:grid;place-items:center;overflow:hidden;width:180px;height:180px;border-radius:32px;background:linear-gradient(145deg,#efe7ff,#ddd0ff);color:#5f42c7;font-size:42px;font-weight:900;box-shadow:0 18px 44px rgba(57,35,95,.18)}
.staff-profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.staff-profile-eyebrow{display:block;margin-bottom:8px;color:var(--wb-purple);font-size:12px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.staff-profile-copy h1{margin:0;font-size:clamp(34px,6vw,64px);line-height:1;letter-spacing:-.05em}
.staff-profile-title{margin:12px 0 0;color:#5d5265;font-size:clamp(18px,2.2vw,24px);font-weight:750}
.staff-profile-bio{max-width:760px;margin:24px 0 0;color:#5d5964;font-size:17px;line-height:1.75;white-space:pre-line}
.staff-profile-services{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 0;padding:0;list-style:none}
.staff-profile-services li{padding:8px 12px;border:1px solid rgba(111,45,189,.13);border-radius:999px;background:rgba(111,45,189,.07);color:#54367a;font-size:13px;font-weight:750}
.staff-profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.staff-profile-back-link{display:inline-flex;align-items:center;min-height:48px;padding:0 18px;border:1px solid var(--wb-border);border-radius:14px;background:#fff;color:#40364a;font-weight:750;text-decoration:none}
.staff-profile-gallery-section{margin-top:34px;padding:clamp(22px,4vw,38px);border:1px solid rgba(255,255,255,.86);border-radius:32px;background:rgba(255,255,255,.76);box-shadow:0 20px 58px rgba(42,26,67,.08)}
.staff-profile-gallery-head span{color:var(--wb-purple);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.staff-profile-gallery-head h2{margin:6px 0 5px;font-size:clamp(26px,4vw,38px);letter-spacing:-.035em}
.staff-profile-gallery-head p{margin:0 0 22px;color:var(--wb-muted)}
.staff-profile-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.staff-profile-gallery button{position:relative;display:block;overflow:hidden;width:100%;padding:0;border:0;border-radius:14px;aspect-ratio:1;background:#ebe7ef;cursor:zoom-in}
.staff-profile-gallery img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s ease,filter .22s ease}
.staff-profile-gallery button:hover img{transform:scale(1.025);filter:saturate(1.06)}
.staff-profile-gallery button:focus-visible{outline:4px solid rgba(111,45,189,.3);outline-offset:3px}
@keyframes wb-profile-spin{to{transform:rotate(1turn)}}

@media(max-width:760px){
  body.demo-public #booking .public-staff-profile-list{margin-inline:0;width:100%;padding-inline:0 10px;scroll-padding-inline:0}
  .staff-profile-topbar,.staff-profile-shell{width:min(100% - 22px,1120px)}
  .staff-profile-topbar{padding-top:18px}
  .staff-profile-hero{grid-template-columns:1fr;text-align:center}
  .staff-profile-avatar{width:142px;height:142px;margin:0 auto;border-radius:28px}
  .staff-profile-bio{font-size:15px}
  .staff-profile-services,.staff-profile-actions{justify-content:center}
  .staff-profile-gallery{gap:5px}
  .staff-profile-gallery-section{border-radius:24px}
  .wb-reference-lightbox{grid-template-columns:44px minmax(0,1fr) 44px;padding:12px}
  .wb-reference-lightbox__nav{width:38px;height:52px}
  .wb-reference-lightbox__close{top:12px;right:12px}
}

@media(prefers-reduced-motion:reduce){
  .staff-profile-loading span{animation:none}
  .public-staff-profile-link,.staff-profile-gallery img{transition:none}
}

/* WH_V46_27_2_P3_FIX1_PUBLIC_STAFF_COMPONENT_v001
   A foglalasi carousel szerkezetet tovabbra is a canonical booking CSS es a
   public-multi-location.js birtokolja. Ez a kozos staff komponens csak a
   megjelenitest, a viewport-aktiv kartyaallapotot es a carousel pontokat kezeli. */
body.demo-public #booking .public-staff-profile-list{
  padding-top:16px;
  padding-bottom:28px;
  padding-inline:max(8px,calc((100% - min(100%,380px))/2));
  scroll-padding-inline:max(8px,calc((100% - min(100%,380px))/2));
  scrollbar-width:none;
  -ms-overflow-style:none;
}
body.demo-public #booking .public-staff-profile-list::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}

body.demo-public #booking .public-staff-profile-card{
  scroll-snap-align:center;
  opacity:.76;
  transform:translateY(12px) scale(.945);
  transform-origin:center center;
  border-color:rgba(255,255,255,.82);
  background:
    linear-gradient(150deg,rgba(255,255,255,.78),rgba(246,241,255,.60)),
    rgba(255,255,255,.58);
  box-shadow:
    0 16px 38px rgba(55,38,83,.08),
    inset 0 1px 0 rgba(255,255,255,.82);
  -webkit-backdrop-filter:blur(22px) saturate(1.12);
  backdrop-filter:blur(22px) saturate(1.12);
  filter:saturate(.88);
  transition:
    transform .24s ease,
    opacity .24s ease,
    filter .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}
body.demo-public #booking .public-staff-profile-card.is-carousel-active{
  z-index:2;
  opacity:1;
  transform:translateY(0) scale(1);
  filter:none;
  border-color:rgba(133,91,236,.28);
  background:
    linear-gradient(150deg,rgba(255,255,255,.90),rgba(247,243,255,.70)),
    rgba(255,255,255,.68);
  box-shadow:
    0 26px 62px rgba(71,45,111,.14),
    0 8px 20px rgba(71,45,111,.06),
    inset 0 1px 0 rgba(255,255,255,.92);
}
body.demo-public #booking .public-staff-profile-card.is-preferred{
  border-color:rgba(116,79,229,.42);
}
body.demo-public #booking .public-staff-profile-card::before{
  opacity:.58;
}

/* Az eredeti kartya DOM-ja flex/grid contractot hasznal. Nem alakitjuk at banneres
   kartyanak: a profilfoto hangsulyos, de a nevvel egy identitas-blokkban marad. */
body.demo-public #booking .public-staff-profile-card__identity{
  position:relative;
  padding-right:46px;
}
@media (min-width:701px){
  body.demo-public #booking .public-staff-profile-card__identity{
    grid-template-columns:92px minmax(0,1fr);
    gap:18px;
  }
  body.demo-public #booking .public-staff-profile-card__avatar{
    width:92px;
    height:92px;
    border:1px solid rgba(255,255,255,.82);
    border-radius:28px;
    box-shadow:0 12px 28px rgba(57,37,91,.15);
  }
}
body.demo-public #booking .public-staff-profile-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
body.demo-public #booking .public-staff-profile-card__identity h3{
  color:#282131;
  letter-spacing:-.025em;
}
body.demo-public #booking .public-staff-profile-card__title{
  color:#7148be;
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
body.demo-public #booking .public-staff-profile-card__bio{
  color:#686170;
}
body.demo-public #booking .public-staff-profile-card__availability,
body.demo-public #booking .public-staff-card__references{
  border-top-color:rgba(77,56,101,.09);
}
body.demo-public #booking .public-staff-profile-card__availability h4,
body.demo-public #booking .public-staff-card__references h4{
  color:#8b8292;
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
body.demo-public #booking .public-staff-card__slot{
  border-color:rgba(118,78,196,.17);
  background:rgba(255,255,255,.58);
  color:#51485b;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.76);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transition:border-color .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.demo-public #booking .public-staff-card__slot:hover{
  border-color:rgba(111,74,246,.32);
  background:rgba(247,243,255,.88);
  color:#5f3ec0;
}
body.demo-public #booking .public-staff-card__slot.is-earliest{
  border-color:rgba(111,74,246,.42);
  background:linear-gradient(120deg,rgba(111,74,246,.16),rgba(255,255,255,.92) 48%,rgba(145,107,238,.14));
  background-size:220% 100%;
  color:#5e3ac2;
  box-shadow:0 4px 14px rgba(111,74,246,.10),inset 0 1px 0 rgba(255,255,255,.88);
  animation:wb-earliest-slot-sheen 4.2s ease-in-out infinite alternate;
}
body.demo-public #booking .public-staff-card__slot.is-earliest:hover{
  border-color:rgba(111,74,246,.62);
  background:linear-gradient(120deg,rgba(111,74,246,.22),rgba(255,255,255,.98) 48%,rgba(145,107,238,.20));
  background-size:220% 100%;
  color:#5030ad;
  box-shadow:0 8px 20px rgba(111,74,246,.16),inset 0 1px 0 rgba(255,255,255,.94);
  transform:translateY(-1px);
}
@keyframes wb-earliest-slot-sheen{
  from{background-position:0% 50%}
  to{background-position:100% 50%}
}
/* Single primary CTA - do not add another "Őt választom" button. */
body.demo-public #booking .public-staff-card__all-times{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  margin-top:12px;
  border:1px solid transparent;
  border-radius:13px;
  background:linear-gradient(135deg,var(--wb-purple),#8257ea);
  color:#fff;
  font:inherit;
  font-weight:800;
  box-shadow:0 12px 26px rgba(111,45,189,.22);
  transition:transform .18s ease,box-shadow .18s ease;
}
body.demo-public #booking .public-staff-card__all-times:hover{
  background:linear-gradient(135deg,var(--wb-purple),#8257ea);
  color:#fff;
  box-shadow:0 15px 30px rgba(111,45,189,.27);
  transform:translateY(-1px);
}
body.demo-public #booking .public-staff-card__all-times:focus-visible{
  outline:3px solid rgba(117,80,220,.3);
  outline-offset:3px;
}
@media (prefers-reduced-motion:reduce){
  body.demo-public #booking .public-staff-card__all-times{transition:none}
  body.demo-public #booking .public-staff-card__all-times:hover{transform:none}
}
body.demo-public #booking .public-staff-card__references > div{
  gap:8px;
}
body.demo-public #booking .public-staff-card__references a{
  border:1px solid rgba(112,78,156,.12);
  border-radius:13px;
  box-shadow:0 6px 16px rgba(55,39,75,.08);
}

.public-staff-carousel-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:24px;
  margin:8px auto 0;
}
.public-staff-carousel-dot{
  width:8px;
  height:8px;
  min-width:8px;
  min-height:8px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(105,85,133,.26);
  box-shadow:none;
  cursor:pointer;
  transition:width .2s ease,background-color .2s ease,transform .2s ease;
}
.public-staff-carousel-dot:hover{
  transform:scale(1.12);
  background:rgba(117,80,220,.48);
}
.public-staff-carousel-dot.is-active{
  width:24px;
  background:#7550dc;
}
.public-staff-carousel-dot:focus-visible{
  outline:3px solid rgba(117,80,220,.22);
  outline-offset:3px;
}

/* Csapat directory: ugyanazokat a publikus profiladatokat mutatjuk, amelyek a
   foglalasi szakemberkartyakon es a teljes profiloldalon mar publikusak. */
body.demo-public #v38PublicStaffGrid .v38-public-staff-card{
  position:relative;
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  grid-template-areas:
    "avatar copy"
    "bio bio"
    "refs refs"
    "action action";
  gap:0 16px;
  align-content:start;
  min-height:330px;
  padding:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.82);
  border-radius:26px;
  background:
    linear-gradient(150deg,rgba(255,255,255,.82),rgba(247,243,255,.64)),
    rgba(255,255,255,.60);
  box-shadow:0 18px 46px rgba(55,38,83,.09),inset 0 1px 0 rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(20px) saturate(1.1);
  backdrop-filter:blur(20px) saturate(1.1);
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__avatar{
  grid-area:avatar;
  width:82px;
  height:82px;
  border:1px solid rgba(255,255,255,.84);
  border-radius:25px;
  box-shadow:0 10px 24px rgba(56,37,88,.13);
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__copy{
  grid-area:copy;
  min-width:0;
  align-self:center;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__copy h3{
  margin:0;
  color:#292230;
  letter-spacing:-.025em;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__title{
  margin:6px 0 0;
  color:#7148be;
  font-size:.75rem;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__copy small{
  margin-top:5px;
  color:#8a8390;
  font-size:.76rem;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__bio{
  grid-area:bio;
  display:-webkit-box;
  margin:18px 0 0;
  overflow:hidden;
  color:#686170;
  font-size:.92rem;
  line-height:1.58;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__references{
  grid-area:refs;
  margin-top:18px;
  padding-top:15px;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__references > div{
  display:grid;
  grid-template-columns:repeat(3,56px);
  gap:9px;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__references a{
  width:56px;
  height:56px;
  aspect-ratio:1;
  border-radius:13px;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card__references img{
  width:100%;
  height:100%;
  object-fit:cover;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card .v38-public-page__card-action{
  grid-area:action;
  margin-top:18px;
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card.is-profile-loading::after{
  content:"";
  position:absolute;
  inset:auto 22px 18px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,rgba(117,80,220,.38),transparent);
  animation:wbPublicStaffDirectoryLoad 1.1s linear infinite;
}
@keyframes wbPublicStaffDirectoryLoad{
  from{transform:translateX(-30%);opacity:.25}
  50%{opacity:1}
  to{transform:translateX(30%);opacity:.25}
}

@media (max-width:700px){
  body.demo-public #booking .public-staff-profile-card{
    opacity:.9;
    transform:translateY(5px) scale(.985);
  }
  body.demo-public #booking .public-staff-profile-card.is-carousel-active{
    transform:none;
    opacity:1;
  }
  body.demo-public #v38PublicStaffGrid .v38-public-staff-card{
    grid-template-columns:70px minmax(0,1fr);
    padding:18px;
    border-radius:24px;
  }
  body.demo-public #v38PublicStaffGrid .v38-public-staff-card__avatar{
    width:70px;
    height:70px;
    border-radius:21px;
  }
}
@media (prefers-reduced-motion:reduce){
  body.demo-public #booking .public-staff-profile-card,
  .public-staff-carousel-dot{
    transition:none;
  }
  body.demo-public #v38PublicStaffGrid .v38-public-staff-card.is-profile-loading::after{
    animation:none;
  }
}

/* WH_V46_27_5_P3_FIX2_PUBLIC_STAFF_COMPOSITION_v001
 * Visual composition only. Existing booking card actions/data attributes remain
 * the canonical workflow contract; this layer aligns the live UI with the approved
 * public booking concept and keeps optional directory content from moving CTAs.
 */
@media (min-width: 901px) {
  html[data-public-booking-focus="true"] body.demo-public #booking #publicStaffStep {
    overflow: visible;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .v43-public-booking-mode {
    width: max-content;
    margin: 0 auto 18px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-picker {
    margin-top: 0;
    overflow: visible;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-picker__head {
    max-width: 780px;
    margin: 0 auto 18px;
    text-align: center;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-picker__head h2 {
    margin: 0 0 7px;
    color: #21183d;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-picker__head p {
    color: #7e7890;
    font-size: 15px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-quick-actions {
    grid-template-columns: minmax(0, 240px) minmax(0, 240px) !important;
    justify-content: center;
    gap: 14px !important;
    max-width: 520px;
    margin: 0 auto 22px !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-quick-actions__divider {
    display: none;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-quick-actions > button {
    min-height: 58px;
    padding: 10px 18px;
    border-color: rgba(91, 68, 132, .11);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 26px rgba(51,36,77,.07), inset 0 1px 0 rgba(255,255,255,.84);
    -webkit-backdrop-filter: blur(16px) saturate(118%);
    backdrop-filter: blur(16px) saturate(118%);
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-quick-actions > button span {
    font-size: 14px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-quick-actions > button small {
    margin-top: 2px;
    font-size: 11px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list {
    --wb-public-staff-card-width: clamp(300px, 27vw, 360px);
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: var(--wb-public-staff-card-width) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px max(14px, calc((100% - var(--wb-public-staff-card-width)) / 2)) 20px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-padding-inline: max(14px, calc((100% - var(--wb-public-staff-card-width)) / 2)) !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 590px !important;
    padding: 20px !important;
    overflow: hidden;
    border-radius: 28px !important;
    scroll-snap-align: center !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__identity {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding-right: 0 !important;
    text-align: left;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__avatar {
    width: 100% !important;
    height: 188px !important;
    border: 1px solid rgba(255,255,255,.86) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg,#f0e9ff,#e2d6ff);
    box-shadow: 0 14px 32px rgba(55,37,89,.14) !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__identity h3 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.08;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__title {
    margin-top: 5px;
    font-size: .72rem;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-link {
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__bio {
    display: -webkit-box;
    min-height: 68px;
    max-height: 68px;
    margin: 13px 0 0;
    overflow: hidden;
    font-size: .91rem;
    line-height: 1.52;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__availability {
    width: 100%;
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 0 !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__availability h4 {
    margin: 0 0 9px;
    font-size: .68rem;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-card__slots {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-card__slot {
    min-width: 0;
    min-height: 48px;
    padding: 7px 5px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-card__all-times {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:48px;
    margin:12px 0 0 !important;
    border-radius:13px;
    font:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
  }

  /* The booking card stays decision-focused. Reference photos remain one click
     away in the profile, while the directory below exposes their thumbnails. */
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-card__references {
    display: none !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(103,74,157,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #6942d2;
    box-shadow: 0 12px 28px rgba(55,38,83,.13);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(-50%);
    cursor: pointer;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-arrow.is-prev {
    left: 10px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-arrow.is-next {
    right: 10px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-arrow svg {
    width: 22px;
    height: 22px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-arrow:disabled {
    opacity: .28;
    cursor: default;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-arrow:focus-visible {
    outline: 3px solid rgba(117,80,220,.24);
    outline-offset: 3px;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-carousel-dots {
    margin-top: 2px;
  }
}

/* Directory cards keep a common footer baseline even when bio/reference content
 * is absent. The flexible middle track absorbs the difference and the CTA owns
 * the final row; no fake content or business-data branching is introduced. */
body.demo-public #v38PublicStaffGrid {
  align-items: stretch;
}

body.demo-public #v38PublicStaffGrid .v38-public-staff-card {
  grid-template-rows: 82px minmax(0, 1fr) auto minmax(50px, auto) !important;
  align-content: stretch !important;
  height: 100%;
  min-height: 440px !important;
}

body.demo-public #v38PublicStaffGrid .v38-public-staff-card__bio {
  align-self: start;
}

body.demo-public #v38PublicStaffGrid .v38-public-staff-card__references {
  align-self: start;
}

body.demo-public #v38PublicStaffGrid .v38-public-staff-card .v38-public-page__card-action {
  align-self: end;
  width: 100%;
  min-height: 50px;
  margin-top: 18px !important;
}

@media (max-width: 700px) {
  body.demo-public #v38PublicStaffGrid .v38-public-staff-card {
    grid-template-rows: 70px minmax(0, 1fr) auto minmax(50px, auto) !important;
    min-height: 410px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-staff-card__choose,
  .public-staff-carousel-arrow {
    transition: none !important;
  }
}


/* WH_V46_28_2_P3_FIX3_PUBLIC_STAFF_DRAG_v001
 * Native touch panning stays untouched. Mouse/pen dragging is handled by the
 * shared staff presentation controller and temporarily suspends snap while the
 * pointer owns the track, then settles smoothly onto the nearest centred card.
 */
@media (min-width: 901px) {
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list {
    cursor: grab;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list.is-pointer-dragging {
    cursor: grabbing;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    user-select: none;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list.is-pointer-settling {
    scroll-snap-type: none !important;
  }

  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list.is-pointer-dragging * {
    user-select: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list {
    scroll-behavior: auto !important;
  }
  body.demo-public #booking .public-staff-card__slot.is-earliest {
    animation: none !important;
  }
}

/* Owner-endorsed public profiles keep their badge even without daily availability. */
body.demo-public #booking .public-staff-profile-card.is-featured,
body.demo-public #v38PublicStaffGrid .v38-public-staff-card.is-featured,
.staff-profile-hero.is-featured {
  border-color: rgba(111,45,189,.28);
  background: linear-gradient(145deg,var(--wb-surface),rgba(111,45,189,.10));
}
.public-staff-featured-badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  max-width: 100%;
  padding: var(--wb-space-1,4px) var(--wb-space-3,12px);
  border: 1px solid rgba(111,45,189,.18);
  border-radius: var(--wb-radius-sm,8px);
  background: rgba(111,45,189,.08);
  color: var(--wb-purple-dark);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.demo-public .v38-public-staff-card__copy .public-staff-featured-badge {
  margin-top: var(--wb-space-2,8px);
}
.staff-profile-copy > .public-staff-featured-badge {
  margin-block: var(--wb-space-3,12px);
}

body.demo-public #booking .public-staff-profile-card__identity .public-staff-featured-badge {
  margin-top: var(--wb-space-2,8px);
}

/* The extra label must grow the identity track rather than overlap the bio. */
body.demo-public #booking .public-staff-profile-card.is-featured {
  grid-template-rows: minmax(104px,auto) 100px auto minmax(0,1fr);
}
body.demo-public #v38PublicStaffGrid .v38-public-staff-card.is-featured {
  grid-template-rows: minmax(82px,auto) minmax(0,1fr) auto minmax(50px,auto) !important;
}
@media (max-width:640px) {
  body.demo-public #booking .public-staff-profile-card.is-featured {
    grid-template-rows: minmax(84px,auto) 94px auto minmax(0,1fr);
  }
}
@media (max-width:700px) {
  body.demo-public #v38PublicStaffGrid .v38-public-staff-card.is-featured {
    grid-template-rows: minmax(70px,auto) minmax(0,1fr) auto minmax(50px,auto) !important;
  }
}

/* WH_P3_FEATURED_STAFF_GRADIENT_v001
 * A subtle, continuously drifting edge for featured booking staff only.
 * Keep the card's content, spacing, CTA and selection states unchanged.
 * The interior preserves the existing P3 featured-card gradient.
 */
@property --wb-featured-edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

body.demo-public #booking .public-staff-profile-card.is-featured {
  /* Slightly stronger premium emphasis: thicker edge and a more visible lilac-lavender drift. */
  border: 3px solid transparent;
  background:
    linear-gradient(145deg, #ffffff, #f3ecfb) padding-box,
    conic-gradient(
      from var(--wb-featured-edge-angle, 0deg),
      rgba(126, 76, 226, .92) 0deg,
      rgba(173, 129, 244, .88) 72deg,
      rgba(244, 233, 255, .95) 154deg,
      rgba(194, 156, 248, .86) 220deg,
      rgba(116, 71, 214, .94) 292deg,
      rgba(126, 76, 226, .92) 360deg
    ) border-box;
  box-shadow:
    0 26px 62px rgba(71,45,111,.14),
    0 10px 24px rgba(117,80,220,.10),
    inset 0 1px 0 rgba(255,255,255,.94);
  animation: wb-featured-edge-drift 15s linear infinite;
}

/* The canonical booking card has its own static 4px top stripe.
   It hides the animated ring on featured cards: remove it only there. */
body.demo-public #booking .public-staff-profile-card.is-featured::before {
  display: none;
}

@keyframes wb-featured-edge-drift {
  to { --wb-featured-edge-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  body.demo-public #booking .public-staff-profile-card.is-featured {
    animation: none;
  }
}

/* WH_V48_159: Mobile staff cards remain swipeable without trapping vertical page scroll. */
@media (max-width:760px){
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-list{
    grid-auto-columns:min(78vw,300px);
    touch-action:pan-x pan-y;
  }
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card{
    min-height:420px;
    grid-template-rows:74px 75px auto minmax(0,1fr);
    padding:18px;
    border-radius:23px;
  }
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__avatar{
    width:58px;height:58px;border-radius:18px;
  }
  html[data-public-booking-focus="true"] body.demo-public #booking .public-staff-profile-card__bio{margin-top:12px;}
}
