/* Profile photography: cropped listing image, square thumbs, frameless full-screen viewer. */
.profile-info { display: grid; align-content: start; gap: 14px; min-width: 0; }
.profile-info > section { margin: 0; }
.profile-intro-panel, .profile-details-panel, .profile-contact-panel { min-width: 0; padding: 18px; border: 1px solid var(--line,#e9deda); border-radius: 12px; background: #fff; }
.profile-intro-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 4px 16px; }
.profile-name-meta { display: grid; justify-items: start; align-content: start; gap: 2px; min-width: 0; }
.profile-info .profile-name { margin: 0; color: var(--ink,#352d31); font: 600 clamp(26px,3vw,34px)/1.15 Georgia,serif; overflow-wrap: break-word; }
.profile-info .profile-age { margin: 0; color: var(--muted,#786d72); font-size: 13px; }
.profile-info .profile-location { margin: 4px 0 0; color: var(--muted,#786d72); font-size: 13px; text-align: right; }
.profile-info .profile-location a { color: var(--accent,#ad496b); text-decoration: none; }
.profile-info .profile-location a:hover { text-decoration: underline; }
.profile-intro-panel .profile-bio { margin-top: 12px; color: var(--ink,#352d31); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.profile-intro-panel .profile-bio p { margin: 0; }
.profile-intro-panel .profile-bio p + p { margin-top: 8px; }
.profile-info > section > h2 { margin: 0 0 12px; color: var(--space-accent,#ad496b); font: 600 22px Georgia,serif; }
.profile-info .detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin: 0; }
.profile-info .detail-list > div { display: grid; grid-template-columns: minmax(90px,.8fr) minmax(0,1.2fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line,#e9deda); }
.profile-info .detail-list dt { color: var(--muted,#786d72); font-size: 12px; }
.profile-info .detail-list dd { min-width: 0; margin: 0; color: var(--ink,#352d31); font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.profile-contact-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.profile-contact-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line,#e9deda); border-radius: 8px; background: var(--page,#faf6f3); }
.profile-contact-phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; min-width: 0; }
.profile-contact-phone > span { color: var(--muted,#786d72); font-size: 12px; }
.profile-contact-phone > a { color: var(--ink,#352d31); font-size: 14px; font-weight: 600; text-decoration: none; }
.profile-contact-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border-radius: 8px; background: #e8f1eb; color: #416b53; font-size: 12px; font-weight: 650; text-decoration: none; }
.profile-contact-whatsapp:hover { background: #dcebe1; }
.profile-contact-warning { margin: 12px 0 0; padding: 12px 14px; border: 1px solid #ead7b7; border-radius: 8px; background: #fff8ed; color: #63533f; font-size: 12px; line-height: 1.5; }
.profile-contact-warning strong { display: block; margin-bottom: 3px; color: #735625; }
.profile-bio p { margin: 0 0 12px; }
.profile-bio-expanded[hidden], .profile-bio-preview[hidden] { display: none !important; }
.profile-bio-toggle { display: inline; margin: 0 0 0 4px; padding: 0; border: 0; color: var(--accent,#ad496b); background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.profile-bio-toggle:hover { text-decoration: underline; }
.profile-bio-toggle:focus-visible { outline: 2px solid var(--accent,#ad496b); outline-offset: 3px; border-radius: 2px; }
.profile-rate-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; }
.profile-rate-group { min-width: 0; padding: 14px; border-radius: 8px; background: #fff; }
.profile-rate-group h3 { margin: 0 0 8px; color: var(--ink,#352d31); font: 600 16px Inter,Arial,sans-serif; }
.profile-rate-group dl { display: grid; gap: 0; margin: 0; }
.profile-rate-group dl>div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line,#e9deda); }
.profile-rate-group dt, .profile-rate-group dd { margin: 0; font-size: 13px; }
.profile-rate-group dd { font-weight: 650; text-align: right; }
.profile-services { display: grid; gap: 14px; margin: 0; padding: 18px; border: 1px solid var(--line,#e9deda); border-radius: 12px; background: var(--soft,#f5e9e7); }
.profile-services > h2 { margin: 0 0 12px; color: var(--space-accent,#ad496b); font: 600 22px Georgia,serif; }
.profile-services-group { min-width: 0; }
.profile-services-group h3 { margin: 0 0 8px; color: var(--muted,#786d72); font: 600 12px Inter,Arial,sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.profile-services-group ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.profile-services-group li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line,#e9deda); border-radius: 8px; background: #fff; color: var(--ink,#352d31); font-size: 13px; }
.profile-services-group li strong { flex: 0 0 auto; color: var(--accent,#ad496b); font-weight: 650; }
.public-schedule { margin: 0; padding: 18px; border: 1px solid var(--line,#e9deda); border-radius: 12px; background: var(--soft,#f5e9e7); }
.public-schedule h2 { margin: 0 0 12px; color: var(--space-accent,#ad496b); font: 600 22px Georgia,serif; }
.public-schedule ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.public-schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line,#e9deda); font-size: 13px; }
.public-schedule small { display: block; margin-top: 10px; color: var(--muted,#786d72); }
.profile-layout > div:first-child { min-width: 0; }

/* Keep public profile geometry independent from catalogue and SPA layout rules. */
#main > .content.profile-page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px clamp(18px, 4vw, 72px) 60px;
}
#main > .content.profile-page-content > .profile-layout {
  display: grid;
  width: min(100%, 1320px);
  max-width: 1320px;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  margin: 24px auto 0;
}
#main > .content.profile-page-content > .profile-layout > .profile-info {
  min-width: 0;
}
.profile-photo-trigger {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
.profile-photo-trigger:focus-visible,
.profile-gallery-thumb:focus-visible,
.profile-lightbox button:focus-visible {
  outline: 3px solid #c7798e;
  outline-offset: 3px;
}
.profile-photo-trigger .profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 592;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  cursor: zoom-in;
}
.profile-gallery-view {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.profile-gallery-thumb {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
.profile-gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}
dialog.profile-lightbox[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, auto) minmax(48px, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-sizing: border-box;
}
dialog.profile-lightbox::backdrop { background: rgb(8 7 9 / 82%); }
.profile-lightbox-image {
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: auto;
  max-width: min(86vw, 72vh);
  max-height: 90vh;
  max-height: 90dvh;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.profile-lightbox button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 28%);
  font: 300 42px/1 Arial, sans-serif;
  cursor: pointer;
}
.profile-lightbox button:hover { background: rgb(0 0 0 / 54%); }
.profile-lightbox-close {
  position: absolute !important;
  top: max(16px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 48px !important;
  height: 48px !important;
  font-size: 36px !important;
}
.profile-lightbox-prev { grid-column: 1; grid-row: 1; }
.profile-lightbox-next { grid-column: 3; grid-row: 1; }
@media (max-width: 600px) {
  .profile-intro-panel, .profile-details-panel, .profile-contact-panel { padding: 14px; }
  .profile-intro-heading { grid-template-columns: minmax(0,1fr); }
  .profile-info .profile-location { grid-column: 1; grid-row: auto; width: 100%; margin-top: 4px; text-align: left; }
  .profile-info .detail-list { grid-template-columns: minmax(0,1fr); }
  .public-schedule ul { grid-template-columns: minmax(0,1fr); }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-photo-trigger { max-width: 400px; margin-inline: auto; }
  .profile-gallery-view { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  dialog.profile-lightbox[open] {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0;
    padding: 12px 4px;
  }
  .profile-lightbox-image { max-width: 100%; max-height: 84vh; max-height: 84dvh; }
  .profile-lightbox button { width: 40px; height: 44px; font-size: 34px; background: rgb(0 0 0 / 24%); }
  .profile-lightbox-close { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
}
@media (min-width: 601px) and (max-width: 850px) {
  #main > .content.profile-page-content > .profile-layout {
    grid-template-columns: minmax(230px, 34%) minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 600px) {
  #main > .content.profile-page-content {
    box-sizing: border-box;
    min-width: 0;
    padding: 24px 16px 40px;
  }
  #main > .content.profile-page-content > .profile-layout {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
  }
  #main > .content.profile-page-content > .profile-layout > div:first-child,
  #main > .content.profile-page-content > .profile-layout > .profile-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #main > .content.profile-page-content > .profile-layout > div:first-child .profile-photo-trigger {
    width: 100%;
    max-width: 400px;
  }
}
