/* ==========================================================================
   ProfessNow — public professional profile
   Consumes the shared design tokens from professnow/ui-chrome (tokens.css).
   ========================================================================== */

.pn-profile { background: var(--pn-surface); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.pn-profile-head {
  padding-block: var(--pn-s6) var(--pn-s8);
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(22, 163, 74, .08), transparent 60%),
    linear-gradient(180deg, #FBF8F2 0%, #F6F4EC 100%);
  border-bottom: 1px solid rgba(10, 10, 10, .07);
}

.pn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--pn-s6);
  font: var(--pn-caption);
  color: var(--pn-text-subtle);
}

.pn-breadcrumb a { color: var(--pn-text-muted); }
.pn-breadcrumb a:hover { color: var(--pn-green); }
.pn-breadcrumb .fa { font-size: .75rem; opacity: .55; }

.pn-profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pn-s8);
}

.pn-profile-id {
  display: flex;
  align-items: center;
  gap: var(--pn-s5);
  min-width: 0;
  flex: 1 1 420px;
}

.pn-profile-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: var(--pn-r-pill);
  overflow: hidden;
  background: linear-gradient(150deg, #2F6F4E 0%, #7FB289 100%);
  box-shadow: 0 0 0 4px var(--pn-white), var(--pn-shadow-card);
}

.pn-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pn-profile-avatar__initials {
  font: var(--pn-h2);
  font-family: var(--pn-font-display);
  font-size: 2.25rem;
  color: var(--pn-white);
  line-height: 1;
}

.pn-profile-id__text { min-width: 0; }

.pn-profile-name {
  margin: 0 0 6px;
  font: var(--pn-h1);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  color: var(--pn-text-strong);
  letter-spacing: var(--pn-tracking-tight);
}

.pn-profile-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--pn-s4);
  font: var(--pn-body-lg);
  color: var(--pn-text-muted);
}

.pn-profile-role a { color: var(--pn-green-deep); font-weight: 600; }
.pn-profile-role a:hover { color: var(--pn-green); }
.pn-profile-role__sep { color: var(--pn-gray-300); }
.pn-profile-role__place { display: inline-flex; align-items: center; gap: 6px; }
.pn-profile-role__place .fa { color: var(--pn-text-subtle); font-size: .9em; }

.pn-profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pn-s3);
}

.pn-profile-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: var(--pn-body-sm);
  color: var(--pn-text);
}

.pn-profile-rating strong { font-size: 1.05rem; color: var(--pn-text-strong); }
.pn-profile-rating__count { color: var(--pn-text-subtle); }

.pn-stars { display: inline-flex; gap: 2px; }
.pn-stars .fa { font-size: .95rem; }
.pn-stars__full { color: var(--pn-star); }
.pn-stars__half { color: var(--pn-star); opacity: .5; }
.pn-stars__empty { color: var(--pn-gray-300); }

.pn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--pn-r-pill);
  font: var(--pn-label);
}

.pn-badge--ok { background: var(--pn-green-soft-2); color: var(--pn-green-darker); }
.pn-badge--off { background: var(--pn-gray-100); color: var(--pn-text-muted); }
.pn-badge--quiet { background: var(--pn-gray-100); color: var(--pn-text-subtle); }

/* --------------------------------------------------------------------------
   Booking panel
   -------------------------------------------------------------------------- */
.pn-profile-book {
  flex: 0 1 300px;
  padding: var(--pn-s5);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface);
  box-shadow: var(--pn-shadow-card);
}

.pn-profile-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--pn-s4);
}

.pn-profile-price__value {
  font: var(--pn-h3);
  font-weight: 800;
  color: var(--pn-text-strong);
  font-variant-numeric: tabular-nums;
}

.pn-profile-price__basis { font: var(--pn-body-sm); color: var(--pn-text-subtle); }
.pn-profile-price--none { font: var(--pn-h4); color: var(--pn-text-muted); }

.pn-profile-book__note {
  margin: var(--pn-s4) 0 0;
  font: var(--pn-caption);
  color: var(--pn-text-subtle);
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */
.pn-profile-body { padding-block: var(--pn-s10) var(--pn-s16); }

.pn-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--pn-s10);
  align-items: start;
}

.pn-profile-block { margin-bottom: var(--pn-s10); }
.pn-profile-block[hidden] { display: none; }

.pn-profile-block__title {
  margin: 0 0 var(--pn-s4);
  padding-bottom: var(--pn-s3);
  border-bottom: 1px solid var(--pn-border);
  font: var(--pn-h3);
  color: var(--pn-text-strong);
  letter-spacing: var(--pn-tracking-tight);
}

/* ---- At a glance -------------------------------------------------------- */
.pn-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--pn-s3);
  margin: 0;
  padding: 0;
  list-style: none;
  /* Each card sizes to its own content. Without this the grid stretches every
     card in a row to match the tallest — one long service address made the
     Rate and Experience cards tall and hollow, with their text floating in the
     middle of an empty box. */
  align-items: start;
}

.pn-facts li {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  gap: 2px var(--pn-s3);
  padding: var(--pn-s4);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-md);
  background: var(--pn-surface-sunken);
  transition: border-color var(--pn-fast) var(--pn-ease-out),
              background var(--pn-fast) var(--pn-ease-out),
              transform var(--pn-fast) var(--pn-ease-out);
}

.pn-facts li:hover {
  border-color: var(--pn-green-border);
  background: var(--pn-green-soft);
  transform: translateY(-2px);
}

.pn-facts li > .fa {
  grid-row: 1 / -1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  /* Optically centres the icon against the two-line label+value block. */
  margin-top: 1px;
  border-radius: var(--pn-r-sm);
  background: var(--pn-green-soft-2);
  color: var(--pn-green-deep);
  transition: transform var(--pn-normal) var(--pn-ease-spring);
}

.pn-facts li:hover > .fa { transform: scale(1.08) rotate(-4deg); }

.pn-facts__label {
  font: var(--pn-caption);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--pn-tracking-eyebrow);
  color: var(--pn-text-subtle);
}

.pn-facts__value {
  font: var(--pn-body-sm);
  font-weight: 600;
  color: var(--pn-text-strong);
  /* A service address can run long; cap it so one card cannot set the height
     of the whole row. The full string stays in the element's title. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pn-facts__sub { font-weight: 400; color: var(--pn-text-subtle); }

.pn-profile-about {
  margin: 0;
  font: var(--pn-body-lg);
  color: var(--pn-text-muted);
  white-space: pre-line;
}

/* ---- Gallery ------------------------------------------------------------ */
.pn-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--pn-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The first upload leads at double size — it is the one a customer actually
   looks at. Only worth doing when there are enough tiles to fill the row. */
.pn-gallery__lead { grid-column: span 2; grid-row: span 2; }

/* A lone image has nothing to sit beside, so let it run wide instead of
   floating in a quarter of the row. */
.pn-gallery--solo { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

.pn-gallery--video {
  margin-top: var(--pn-s3);
  grid-auto-rows: auto;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.pn-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--pn-r-md);
  overflow: hidden;
  background: var(--pn-gray-100);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.pn-gallery__lead .pn-gallery__item { aspect-ratio: auto; }

.pn-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pn-slow) var(--pn-ease-out);
}

.pn-gallery__item:hover img,
.pn-gallery__item:focus-visible img { transform: scale(1.05); }

/* Magnifier badge — makes it obvious the tile opens rather than navigates. */
.pn-gallery__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--pn-r-pill);
  background: rgba(10, 10, 10, .55);
  color: var(--pn-white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--pn-normal) var(--pn-ease-out),
              transform var(--pn-normal) var(--pn-ease-out);
}

.pn-gallery__item:hover .pn-gallery__zoom,
.pn-gallery__item:focus-visible .pn-gallery__zoom { opacity: 1; transform: none; }

/* Gallery polish: a soft lift + gradient wash on hover so the tiles feel
   tactile and the zoom badge reads clearly. Append-only; the base layout,
   aspect ratios and the .pn-reveal entrance (staggered per tile) are untouched. */
.pn-gallery__item {
  box-shadow: 0 1px 2px rgba(16, 43, 35, .06);
  transition: transform var(--pn-normal) var(--pn-ease-out),
              box-shadow var(--pn-normal) var(--pn-ease-out);
}
.pn-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 43, 35, 0) 55%, rgba(16, 43, 35, .34));
  opacity: 0;
  transition: opacity var(--pn-normal) var(--pn-ease-out);
  pointer-events: none;
}
.pn-gallery__item:hover,
.pn-gallery__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(16, 43, 35, .55);
}
.pn-gallery__item:hover::after,
.pn-gallery__item:focus-visible::after { opacity: 1; }
.pn-gallery__zoom { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .pn-gallery__item:hover, .pn-gallery__item:focus-visible { transform: none; }
}

.pn-gallery--video li {
  border-radius: var(--pn-r-md);
  overflow: hidden;
  background: var(--pn-black);
  aspect-ratio: 16 / 9;
}

.pn-gallery--video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Reviews ------------------------------------------------------------ */
.pn-reviews { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--pn-s4); }

.pn-reviews li {
  padding: var(--pn-s4) var(--pn-s5);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface);
}

.pn-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pn-s2);
  margin-bottom: 6px;
}

.pn-review__name { font: var(--pn-h4); color: var(--pn-text-strong); }
.pn-review__date { font: var(--pn-caption); color: var(--pn-text-subtle); }
.pn-review__text { margin: 6px 0 0; font: var(--pn-body); color: var(--pn-text-muted); }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.pn-profile-side {
  position: sticky;
  top: calc(var(--pn-navbar-h-scrolled) + var(--pn-s5));
  display: grid;
  gap: var(--pn-s4);
}

.pn-side-card {
  padding: var(--pn-s5);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface-sunken);
}

.pn-side-card__title {
  margin: 0 0 var(--pn-s3);
  font: var(--pn-h4);
  color: var(--pn-text-strong);
}

.pn-side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.pn-side-list a,
.pn-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pn-s3);
  padding: 8px 10px;
  margin-inline: -10px;
  border-radius: var(--pn-r-sm);
  font: var(--pn-body-sm);
  color: var(--pn-text-muted);
  text-decoration: none;
}

.pn-side-list a:hover,
.pn-side-link:hover {
  background: var(--pn-green-soft);
  color: var(--pn-green-darker);
  text-decoration: none;
}

.pn-side-link { font-weight: 600; color: var(--pn-green-deep); }

/* --------------------------------------------------------------------------
   Mobile booking bar + lightbox
   -------------------------------------------------------------------------- */
.pn-profile-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: var(--pn-s4);
  padding: 10px var(--pn-gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--pn-border);
  box-shadow: 0 -4px 16px rgba(10, 10, 10, .06);
}

.pn-profile-bar__price { display: grid; line-height: 1.2; }
.pn-profile-bar__price strong { font-size: 1.05rem; color: var(--pn-text-strong); }
.pn-profile-bar__price span { font: var(--pn-caption); color: var(--pn-text-subtle); }

.pn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pn-s4);
  padding: var(--pn-s8);
  background: rgba(10, 10, 10, .90);
  animation: pn-lightbox-in 200ms var(--pn-ease-out);
}

@keyframes pn-lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.pn-lightbox[hidden] { display: none; }

.pn-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pn-s3);
  margin: 0;
  min-width: 0;
  max-height: 100%;
}

.pn-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: var(--pn-r-md);
  object-fit: contain;
}

.pn-lightbox__count {
  font: var(--pn-caption);
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}

.pn-lightbox__nav {
  flex: none;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--pn-r-pill);
  background: rgba(255, 255, 255, .14);
  color: var(--pn-white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--pn-fast) var(--pn-ease-out);
}

.pn-lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.pn-lightbox__nav[hidden] { display: none; }

.pn-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--pn-r-pill);
  background: rgba(255, 255, 255, .14);
  color: var(--pn-white);
  font-size: 1.2rem;
  cursor: pointer;
}

.pn-lightbox__close:hover { background: rgba(255, 255, 255, .26); }

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .pn-profile-grid { grid-template-columns: minmax(0, 1fr); gap: var(--pn-s8); }
  .pn-profile-side { position: static; }
}

@media (max-width: 720px) {
  .pn-profile-id { flex-direction: column; align-items: flex-start; gap: var(--pn-s4); }
  .pn-profile-avatar { width: 84px; height: 84px; }
  .pn-profile-avatar__initials { font-size: 1.7rem; }

  /* The header panel is replaced by the fixed bar, so it would be a
     duplicate control. */
  .pn-profile-book { display: none; }
  .pn-profile-bar { display: flex; }

  /* Reserve the bar's height on the BODY, not on .pn-profile: the footer sits
     after <main>, so padding inside main leaves the last strip of the footer
     underneath the bar at full scroll. Safe to target body unqualified —
     this stylesheet is only loaded by the profile page. */
  body { padding-bottom: 78px; }

  .pn-facts { grid-template-columns: minmax(0, 1fr); }
  .pn-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---- How booking works -------------------------------------------------- */
.pn-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--pn-s4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pn-step;
}

.pn-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--pn-s3);
  padding: var(--pn-s4);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface-sunken);
}

.pn-steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--pn-r-pill);
  background: var(--pn-green);
  color: var(--pn-white);
  font: var(--pn-label);
  font-weight: 700;
}

.pn-steps__body { display: grid; gap: 3px; font: var(--pn-body-sm); color: var(--pn-text-muted); }
.pn-steps__body strong { font: var(--pn-h4); color: var(--pn-text-strong); }

/* ==========================================================================
   Reviews summary, empty states, and "others in this city"
   ========================================================================== */

.pn-profile-block__title {
  display: flex;
  align-items: center;
  gap: var(--pn-s3);
}

.pn-profile-block__count {
  padding: 2px 10px;
  border-radius: var(--pn-r-pill);
  background: var(--pn-green-soft);
  color: var(--pn-green-darker);
  font: var(--pn-label);
  font-variant-numeric: tabular-nums;
}

/* ---- Review summary ----------------------------------------------------- */
.pn-review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pn-s3) var(--pn-s6);
  margin-bottom: var(--pn-s5);
  padding: var(--pn-s4) var(--pn-s5);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface-sunken);
}

.pn-review-summary__score {
  display: inline-flex;
  align-items: center;
  gap: var(--pn-s2);
  font: var(--pn-body-sm);
  color: var(--pn-text-subtle);
}

.pn-review-summary__score strong {
  font: var(--pn-h2);
  font-size: 2rem;
  color: var(--pn-text-strong);
  line-height: 1;
}

.pn-review-summary__note { margin: 0; font: var(--pn-body-sm); color: var(--pn-text-muted); }

/* ---- Empty state -------------------------------------------------------- */
.pn-empty {
  display: flex;
  align-items: flex-start;
  gap: var(--pn-s4);
  padding: var(--pn-s5) var(--pn-s6);
  border: 1px dashed var(--pn-border-strong);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface-sunken);
}

.pn-empty > .fa { font-size: 1.5rem; color: var(--pn-text-subtle); margin-top: 2px; }
.pn-empty strong { display: block; font: var(--pn-h4); color: var(--pn-text-strong); margin-bottom: 4px; }
.pn-empty p { margin: 0; font: var(--pn-body-sm); color: var(--pn-text-muted); max-width: 58ch; }

/* ---- Other professionals in this city ----------------------------------- */
.pn-peers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--pn-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pn-peer {
  display: flex;
  align-items: center;
  gap: var(--pn-s3);
  height: 100%;
  padding: var(--pn-s3) var(--pn-s4);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-r-card);
  background: var(--pn-surface);
  color: inherit;
  text-decoration: none;
  transition: transform var(--pn-normal) var(--pn-ease-out),
              box-shadow var(--pn-normal) var(--pn-ease-out),
              border-color var(--pn-normal) var(--pn-ease-out);
}

.pn-peer:hover,
.pn-peer:focus-visible {
  transform: translateY(-3px);
  border-color: var(--pn-green-border);
  box-shadow: var(--pn-shadow-hover);
  text-decoration: none;
}

.pn-peer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--pn-r-pill);
  overflow: hidden;
  background: linear-gradient(150deg, #2F6F4E 0%, #7FB289 100%);
}

.pn-peer__avatar img { width: 100%; height: 100%; object-fit: cover; }

.pn-peer__initials {
  font: var(--pn-h4);
  font-family: var(--pn-font-display);
  font-size: 1.25rem;
  color: var(--pn-white);
}

.pn-peer__body { display: grid; gap: 2px; min-width: 0; }

.pn-peer__name {
  font: var(--pn-h4);
  color: var(--pn-text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-peer:hover .pn-peer__name { color: var(--pn-green-darker); }

.pn-peer__role {
  font: var(--pn-caption);
  color: var(--pn-text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-peer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--pn-s3);
  margin-top: 3px;
  font: var(--pn-caption);
  color: var(--pn-text-muted);
}

.pn-peer__rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.pn-peer__rating .fa { color: var(--pn-star); }

.pn-peer__new {
  padding: 1px 8px;
  border-radius: var(--pn-r-pill);
  background: var(--pn-green-soft);
  color: var(--pn-green-darker);
  font-weight: 700;
  font-size: .7rem;
}

.pn-peer__price { font-weight: 600; color: var(--pn-text-strong); font-variant-numeric: tabular-nums; }
.pn-peer__off { font: var(--pn-caption); font-size: .72rem; color: var(--pn-text-subtle); }

.pn-peers__more { margin-top: var(--pn-s5); }

@media (max-width: 720px) {
  .pn-peers { grid-template-columns: minmax(0, 1fr); }
  .pn-review-summary { gap: var(--pn-s3); }
}

/* ==========================================================================
   Header motif + motion
   ========================================================================== */

/* The header band needs a positioning context for the motif. */
.pn-profile-head { position: relative; overflow: hidden; }
.pn-profile-head > .pn-container { position: relative; z-index: 1; }

/* City landmark line-art, decorative. Sits behind the content at low opacity
   and is clipped by the band, so it can never compete with the name. */
.pn-profile-head__motif {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  bottom: -18px;
  width: clamp(180px, 22vw, 300px);
  opacity: .10;
  pointer-events: none;
  animation: pn-motif-in 900ms var(--pn-ease-out) both;
}

.pn-profile-head__motif img { width: 100%; height: auto; display: block; }

@keyframes pn-motif-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: .10; transform: none; }
}

/* The booking panel is the page's one commercial action; a single settle-in
   draws the eye without nagging. */
.pn-profile-book { animation: pn-rise-in 620ms var(--pn-ease-out) both 120ms; }

@keyframes pn-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Stars fill left to right on arrival. */
.pn-profile-badges .pn-stars .fa {
  animation: pn-star-pop 420ms var(--pn-ease-spring) both;
}

.pn-profile-badges .pn-stars .fa:nth-child(1) { animation-delay: 160ms; }
.pn-profile-badges .pn-stars .fa:nth-child(2) { animation-delay: 220ms; }
.pn-profile-badges .pn-stars .fa:nth-child(3) { animation-delay: 280ms; }
.pn-profile-badges .pn-stars .fa:nth-child(4) { animation-delay: 340ms; }
.pn-profile-badges .pn-stars .fa:nth-child(5) { animation-delay: 400ms; }

@keyframes pn-star-pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: none; }
}

.pn-profile-avatar { animation: pn-avatar-in 700ms var(--pn-ease-spring) both; }

@keyframes pn-avatar-in {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: none; }
}

/* Micro-interactions on the things that are actually clickable. */
.pn-side-list a,
.pn-side-link { transition: background var(--pn-fast) var(--pn-ease-out),
                            color var(--pn-fast) var(--pn-ease-out),
                            padding-left var(--pn-fast) var(--pn-ease-out); }

.pn-side-list a:hover,
.pn-side-link:hover { padding-left: 14px; }

.pn-steps li { transition: transform var(--pn-normal) var(--pn-ease-out),
                           box-shadow var(--pn-normal) var(--pn-ease-out); }

.pn-steps li:hover { transform: translateY(-3px); box-shadow: var(--pn-shadow-card); }

.pn-steps__n { transition: transform var(--pn-normal) var(--pn-ease-spring); }
.pn-steps li:hover .pn-steps__n { transform: scale(1.12); }

/* Motion is decoration. Under prefers-reduced-motion every animation above
   collapses to its end state — nothing appears or disappears. */
@media (prefers-reduced-motion: reduce) {
  .pn-profile-head__motif,
  .pn-profile-book,
  .pn-profile-avatar,
  .pn-profile-badges .pn-stars .fa { animation: none; }

  .pn-facts li:hover,
  .pn-steps li:hover,
  .pn-peer:hover,
  .pn-spot:hover { transform: none; }

  .pn-side-list a:hover,
  .pn-side-link:hover { padding-left: 10px; }
}

/* ---- Other services: category thumbnails -------------------------------- */
.pn-side-services { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }

.pn-side-services a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pn-s3);
  padding: 7px 10px;
  margin-inline: -10px;
  border-radius: var(--pn-r-sm);
  color: var(--pn-text-muted);
  text-decoration: none;
  transition: background var(--pn-fast) var(--pn-ease-out),
              color var(--pn-fast) var(--pn-ease-out);
}

.pn-side-services a:hover {
  background: var(--pn-green-soft);
  color: var(--pn-green-darker);
  text-decoration: none;
}

.pn-side-services__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  border-radius: var(--pn-r-xs);
  overflow: hidden;
  background: var(--pn-gray-100);
  color: var(--pn-text-subtle);
}

.pn-side-services__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pn-slow) var(--pn-ease-out);
}

.pn-side-services a:hover .pn-side-services__art img { transform: scale(1.08); }

.pn-side-services__label {
  font: var(--pn-body-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-side-services a > .fa {
  color: var(--pn-gray-300);
  transition: transform var(--pn-fast) var(--pn-ease-out), color var(--pn-fast) var(--pn-ease-out);
}

.pn-side-services a:hover > .fa { color: var(--pn-green); transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .pn-side-services a:hover .pn-side-services__art img,
  .pn-side-services a:hover > .fa { transform: none; }
}

@media (max-width: 720px) {
  /* Two columns at phone width; a double-width lead would swallow the row. */
  .pn-gallery__lead { grid-column: span 2; grid-row: span 1; }
  .pn-gallery--solo { max-width: none; }

  .pn-lightbox { padding: var(--pn-s4); gap: var(--pn-s2); }
  .pn-lightbox__nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .pn-lightbox img { max-height: calc(100vh - 140px); }
}

@media (prefers-reduced-motion: reduce) {
  .pn-lightbox { animation: none; }
  .pn-gallery__item:hover img { transform: none; }
  .pn-gallery__zoom { transition: none; }
}
