/* =============================================================
   SALON PROFILE
   ============================================================= */

.bk-salon { padding-block: var(--bk-space-6) var(--bk-space-12); }

/* Breadcrumb */
.bk-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--bk-text-muted); font-size: var(--bk-fs-sm); margin-bottom: var(--bk-space-5); }
.bk-crumb a:hover { color: var(--bk-primary); }
.bk-crumb i { font-size: 11px; opacity: 0.6; }
.bk-crumb span[aria-current] { color: var(--bk-text); font-weight: var(--bk-fw-medium); }

/* Layout */
.bk-salon__layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--bk-space-10); align-items: start; }
.bk-salon__main { min-width: 0; }

/* Gallery (item 6) — clean Fresha-style: ONE large lead image + two small stacked
   on the side, a single shared rounded frame, tight even gaps (no per-cell borders
   or wide gutters). "See all" button overlays the corner. */
.bk-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16/9; border-radius: var(--bk-radius-lg); overflow: hidden; }
.bk-gallery--single { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 21/9; }
.bk-gallery__cell { position: relative; overflow: hidden; background: var(--bk-surface-2); cursor: pointer; }
.bk-gallery__cell:first-child { grid-row: span 2; }
.bk-gallery__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--bk-dur-slow) var(--bk-ease); }
.bk-gallery__cell:hover img { transform: scale(1.04); }
.bk-gallery__all { position: absolute; bottom: var(--bk-space-4); inset-inline-start: var(--bk-space-4); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--bk-radius-pill); background: var(--bk-bg); color: var(--bk-text); font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-semibold); box-shadow: var(--bk-shadow-md); }
.bk-gallery__all:hover { box-shadow: var(--bk-shadow-lg); }
/* Mobile (item 6): just the lead photo full-width + the "see all" button. */
@media (max-width: 640px) {
  .bk-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4/3; gap: 0; }
  .bk-gallery__cell:not(:first-child) { display: none; }
  .bk-gallery__cell:first-child { grid-row: auto; }
}

/* Lightbox */
.bk-lightbox { position: fixed; inset: 0; z-index: var(--bk-z-modal); display: none; align-items: center; justify-content: center; }
.bk-lightbox.is-open { display: flex; }
.bk-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 9, 15, 0.92); }
.bk-lightbox__stage { position: relative; z-index: 1; max-width: 92vw; max-height: 86vh; margin: 0; }
.bk-lightbox__stage img { max-width: 92vw; max-height: 82vh; border-radius: var(--bk-radius-card); object-fit: contain; }
.bk-lightbox__counter { text-align: center; color: rgba(255,255,255,0.85); margin-top: var(--bk-space-3); font-size: var(--bk-fs-sm); }
.bk-lightbox__close { position: absolute; top: var(--bk-space-5); inset-inline-end: var(--bk-space-5); z-index: 2; background: rgba(255,255,255,0.14); color: #fff; box-shadow: none; }
.bk-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,0.14); color: #fff; box-shadow: none; width: 48px; height: 48px; }
.bk-lightbox__nav:hover, .bk-lightbox__close:hover { background: rgba(255,255,255,0.28); }
.bk-lightbox__nav--prev { inset-inline-end: var(--bk-space-5); }
.bk-lightbox__nav--next { inset-inline-start: var(--bk-space-5); }

/* Header */
.bk-salon__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--bk-space-4); padding-block: var(--bk-space-6); }
.bk-salon__title { font-size: var(--bk-fs-h1); font-weight: var(--bk-fw-extrabold); letter-spacing: -0.02em; }
.bk-salon__meta { display: flex; align-items: center; gap: var(--bk-space-3); flex-wrap: wrap; margin-top: var(--bk-space-3); font-size: var(--bk-fs-sm); }
.bk-salon__rating { display: inline-flex; align-items: center; gap: 6px; }
.bk-salon__rating strong { font-weight: var(--bk-fw-bold); }
.bk-salon__rating .bk-stars { font-size: var(--bk-fs-sm); }
.bk-salon__dot { color: var(--bk-border-strong); }
.bk-salon__open { color: var(--bk-success); font-weight: var(--bk-fw-medium); display: inline-flex; align-items: center; gap: 6px; }
.bk-salon__closed { color: var(--bk-error); font-weight: var(--bk-fw-medium); display: inline-flex; align-items: center; gap: 6px; }
.bk-salon__addr { color: var(--bk-text-muted); font-size: var(--bk-fs-sm); margin-top: var(--bk-space-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-salon__maplink { color: var(--bk-primary); font-weight: var(--bk-fw-semibold); }
.bk-salon__maplink:hover { text-decoration: underline; }
.bk-salon__actions { display: flex; gap: var(--bk-space-2); flex: 0 0 auto; }

.bk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bk-dot--green { background: var(--bk-success); box-shadow: 0 0 0 3px var(--bk-success-tint); }
.bk-dot--red { background: var(--bk-error); box-shadow: 0 0 0 3px var(--bk-error-tint); }

/* Sticky tabs */
.bk-salon-tabs { position: sticky; top: var(--bk-header-h); z-index: 20; background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); margin-bottom: var(--bk-space-6); }
.bk-salon-tabs__rail { display: flex; gap: var(--bk-space-2); overflow-x: auto; scrollbar-width: none; }
.bk-salon-tabs__rail::-webkit-scrollbar { display: none; }
.bk-salon-tabs__item { position: relative; padding: 16px 12px; font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-semibold); color: var(--bk-text-muted); white-space: nowrap; transition: color var(--bk-dur-fast) var(--bk-ease); }
.bk-salon-tabs__item:hover { color: var(--bk-text); }
.bk-salon-tabs__item.is-active { color: var(--bk-text); }
.bk-salon-tabs__item.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 2px; background: var(--bk-ink); border-radius: 2px; }

/* Sections */
.bk-salon__section { padding-block: var(--bk-space-6); scroll-margin-top: calc(var(--bk-header-h) + 64px); }
.bk-salon__section-title { font-size: var(--bk-fs-h3); font-weight: var(--bk-fw-bold); margin-bottom: var(--bk-space-5); }
.bk-empty { color: var(--bk-text-muted); padding: var(--bk-space-6); background: var(--bk-surface); border-radius: var(--bk-radius-card); text-align: center; }

/* Service chips + rows */
.bk-svc-chips { margin-bottom: var(--bk-space-5); }
.bk-svc-rows { display: flex; flex-direction: column; }
/* Grid rather than a flex row: the name/duration, the price and the booking
   button share the first line, and the note gets a full-width line of its own
   beneath them instead of being crammed into the name column. */
.bk-svc-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  column-gap: var(--bk-space-4); row-gap: 6px; padding: var(--bk-space-5);
  border-radius: var(--bk-radius-card); border: 1px solid transparent;
  transition: border-color var(--bk-dur-fast) var(--bk-ease), background var(--bk-dur-fast) var(--bk-ease); }
.bk-svc-row:not(:last-child) { border-bottom: 1px solid var(--bk-border); border-radius: 0; }
.bk-svc-row:hover { background: var(--bk-surface); border-color: var(--bk-border); border-radius: var(--bk-radius-card); }
.bk-svc-row__body { min-width: 0; }
.bk-svc-row__name { font-weight: var(--bk-fw-semibold); }
.bk-svc-row__meta { color: var(--bk-text-muted); font-size: var(--bk-fs-sm); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.bk-svc-row__star { color: var(--bk-primary); font-weight: 700; margin-inline-start: 4px; }
.bk-svc-row__note { grid-column: 1 / -1; color: var(--bk-primary-700, var(--bk-primary));
  font-size: 12px; line-height: 1.7; margin: 0; }
.bk-svc-row__price { font-weight: var(--bk-fw-bold); white-space: nowrap; }
.bk-svc-row__book { flex: 0 0 auto; white-space: nowrap; }

/* Team */
.bk-team { padding-bottom: 4px; }
.bk-team__card { width: 132px; text-align: center; }
.bk-team__avatar { width: 96px; height: 96px; border-radius: var(--bk-radius-circle); overflow: hidden; margin-inline: auto; margin-bottom: var(--bk-space-3); background: var(--bk-surface-2); display: flex; align-items: center; justify-content: center; }
.bk-team__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-team__avatar--any { background: var(--bk-primary-tint); color: var(--bk-primary-600); font-size: 28px; }
.bk-team__name { font-weight: var(--bk-fw-semibold); font-size: var(--bk-fs-sm); }
.bk-team__role { color: var(--bk-text-muted); font-size: var(--bk-fs-xs); margin-top: 2px; }
.bk-team__rating { margin-top: 4px; font-size: var(--bk-fs-xs); font-weight: var(--bk-fw-semibold); color: var(--bk-text); display: inline-flex; align-items: center; gap: 4px; }
.bk-team__rating i { color: #f5a623; }
.bk-team__rating span { color: var(--bk-text-muted); font-weight: var(--bk-fw-normal); }

/* Reviews */
.bk-reviews-summary { display: flex; align-items: center; gap: var(--bk-space-3); margin-bottom: var(--bk-space-5); font-size: var(--bk-fs-sm); }
.bk-reviews-summary__score { font-size: var(--bk-fs-h3); font-weight: var(--bk-fw-extrabold); }
.bk-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bk-space-4); }
.bk-review-card { border: 1px solid var(--bk-border); border-radius: var(--bk-radius-card); padding: var(--bk-space-5); }
.bk-review-card__head { display: flex; align-items: center; gap: 10px; }
.bk-review-card__avatar { width: 42px; height: 42px; border-radius: var(--bk-radius-circle); background: var(--bk-primary-tint); color: var(--bk-primary-700); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--bk-fw-bold); flex: 0 0 auto; }
.bk-review-card__meta { flex: 1; }
.bk-review-card__name { font-weight: var(--bk-fw-semibold); font-size: var(--bk-fs-sm); }
.bk-review-card__date { color: var(--bk-text-muted); font-size: var(--bk-fs-xs); }
.bk-review-card__stars { font-size: var(--bk-fs-xs); }
.bk-review-card__text { color: var(--bk-text); font-size: var(--bk-fs-sm); margin-top: var(--bk-space-3); line-height: var(--bk-lh-normal); }
@media (max-width: 600px) { .bk-reviews { grid-template-columns: 1fr; } }

/* About + hours + map */
.bk-about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bk-space-8); align-items: start; }
.bk-about__text p { color: var(--bk-text-muted); margin-bottom: var(--bk-space-3); line-height: var(--bk-lh-normal); }
.bk-about__sub { font-size: var(--bk-fs-h4); font-weight: var(--bk-fw-semibold); margin-block: var(--bk-space-5) var(--bk-space-3); }
.bk-hours { display: flex; flex-direction: column; }
.bk-hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bk-border); font-size: var(--bk-fs-sm); }
.bk-hours li.is-closed span:last-child { color: var(--bk-error); }
.bk-hours li.is-today { font-weight: var(--bk-fw-bold); }
.bk-about__map { position: sticky; top: calc(var(--bk-header-h) + 70px); }
@media (max-width: 768px) { .bk-about { grid-template-columns: 1fr; } .bk-about__map { position: static; } }

/* Map */
.bk-map__canvas { height: 280px; border-radius: var(--bk-radius-card); overflow: hidden; background: var(--bk-surface-2);
  /* Same reason as .bk-ct-map: Leaflet's panes sit at z-index 400–700 and would
     otherwise paint over the sticky header once the page scrolls. */
  position: relative; z-index: 0; isolation: isolate; }
.bk-map__fallback, .bk-map__empty { height: 220px; border-radius: var(--bk-radius-card); background: var(--bk-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--bk-text-muted); text-align: center; padding: var(--bk-space-5); }
.bk-map__fallback-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bk-primary-tint); color: var(--bk-primary-600); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.bk-map__fallback-address { font-weight: var(--bk-fw-medium); color: var(--bk-text); }

/* Written address under the map. Everything is a token, so dark.css recolours
   it without a second rule set. */
.bk-addr {
    /* Same `direction: rtl` as .bk-map-btn below it, and for the same reason:
       this corner of the page inherits an LTR flow, which put the pin on the
       left while the routing buttons underneath kept theirs on the right. */
    direction: rtl; text-align: right;
    display: flex; align-items: center; gap: var(--bk-space-3);
    margin-top: var(--bk-space-3); padding: var(--bk-space-4);
    background: var(--bk-surface); border-radius: var(--bk-radius-card);
    box-shadow: inset 0 0 0 1px var(--bk-border);
}
.bk-addr__pin {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: var(--bk-radius-circle);
    background: var(--bk-primary-tint); color: var(--bk-primary-600);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.bk-addr__text {
    flex: 1; min-width: 0; margin: 0;
    font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium);
    color: var(--bk-text); line-height: 1.9; overflow-wrap: anywhere;
}
@media (max-width: 480px) {
    .bk-addr { padding: var(--bk-space-3); gap: 10px; }
    .bk-addr__pin { flex: 0 0 32px; width: 32px; height: 32px; font-size: 13px; }
}
/* Sticky booking sidebar */
.bk-salon__aside { position: sticky; top: calc(var(--bk-header-h) + var(--bk-space-4)); }
.bk-book-card { border: 1px solid var(--bk-border); border-radius: var(--bk-radius-lg); overflow: hidden; box-shadow: var(--bk-shadow-md); background: var(--bk-bg); }
.bk-book-card__cover { aspect-ratio: 16/10; background: var(--bk-surface-2); }
.bk-book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.bk-book-card__inner { padding: var(--bk-space-5); }
.bk-book-card__name { font-size: var(--bk-fs-h4); font-weight: var(--bk-fw-bold); }
.bk-book-card__rating { display: flex; align-items: center; gap: 6px; margin-top: var(--bk-space-2); font-size: var(--bk-fs-sm); }
.bk-book-card__rating .bk-stars { font-size: var(--bk-fs-sm); }
.bk-book-card__status { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--bk-space-3); font-size: var(--bk-fs-sm); font-weight: var(--bk-fw-medium); }
.bk-book-card__status--open { color: var(--bk-success); }
.bk-book-card__status--closed { color: var(--bk-error); }
.bk-book-card__cta { margin-top: var(--bk-space-5); }
.bk-book-card__stats { display: flex; gap: var(--bk-space-4); margin-top: var(--bk-space-4); color: var(--bk-text-muted); font-size: var(--bk-fs-sm); }
.bk-book-card__stats i { color: var(--bk-primary); }
.bk-book-card__from { margin-top: var(--bk-space-3); font-weight: var(--bk-fw-bold); }
.bk-book-card__row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--bk-border); font-size: var(--bk-fs-sm); margin-top: var(--bk-space-3); }
.bk-book-card__row:not(.bk-book-card__row--link):not(.bk-book-card__row--muted) { margin-top: 0; }
.bk-book-card__row i:first-child { color: var(--bk-text-muted); width: 18px; }
.bk-book-card__row--link:hover { color: var(--bk-primary); }
.bk-book-card__row--muted { color: var(--bk-text-faint); }
.bk-book-card__row-arrow { margin-inline-start: auto; color: var(--bk-text-faint); }

/* Nearby */
.bk-salon__nearby { border-top: 1px solid var(--bk-border); margin-top: var(--bk-space-8); padding-top: var(--bk-space-10); }

/* Mobile sticky bar */
.bk-salon-mobilebar { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: none; align-items: center; justify-content: space-between; gap: var(--bk-space-4); padding: 12px var(--bk-container-pad); background: var(--bk-bg); border-top: 1px solid var(--bk-border); box-shadow: 0 -4px 16px rgba(21,19,31,0.08); transform: translateY(100%); transition: transform var(--bk-dur) var(--bk-ease); }
.bk-salon-mobilebar.is-visible { transform: translateY(0); }
.bk-salon-mobilebar__from { display: block; font-weight: var(--bk-fw-bold); font-size: var(--bk-fs-sm); }
.bk-salon-mobilebar__name { display: block; color: var(--bk-text-muted); font-size: var(--bk-fs-xs); }

/* Toast */
.bk-toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%) translateY(20px); background: var(--bk-ink); color: #fff; padding: 12px 20px; border-radius: var(--bk-radius-pill); font-size: var(--bk-fs-sm); box-shadow: var(--bk-shadow-lg); opacity: 0; transition: all var(--bk-dur) var(--bk-ease-out); z-index: var(--bk-z-toast); }
.bk-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .bk-salon__layout { grid-template-columns: 1fr; }
  .bk-salon__aside { display: none; }
  .bk-salon-mobilebar { display: flex; }
  /* room for the always-visible booking bar (item 25) so it never covers content */
  body.bk-has-mobilebar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .bk-salon-mobilebar { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* Item 15 — about text shown under the gallery (moved out of the tab menu). */
.bk-salon__intro { margin: var(--bk-space-4) 0 var(--bk-space-2); color: var(--bk-text); line-height: var(--bk-lh-relaxed, 1.9); }
.bk-salon__intro p { margin: 0 0 6px; }
.bk-salon__intro-exp { color: var(--bk-text-muted); font-size: var(--bk-fs-sm); }

/* Team section uses the existing .bk-team styles above + .bk-hscroll for layout. */

/* Mobile: salon meta (rating + open/closed) on ONE row — rating start, status end (item 24) */
@media (max-width: 600px) {
  .bk-salon__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; max-width: 100%; }
  .bk-salon__dot { display: none; }
  .bk-salon__rating, .bk-salon__open, .bk-salon__closed { white-space: nowrap; font-size: var(--bk-fs-xs); max-width: 100%; }
  .bk-salon__rating .bk-muted { display: none; }
}

/* Deposit shown under the full price on a popup service card. */
.bk-svc__deposit { display: block; font-size: var(--bk-fs-xs); color: var(--bk-text-muted); font-weight: 400; }
