.profile-view {
  --plum: #321d34;
  --blush: #ffb4a8;
  --surface: #fcf8f6;
  background: #fffdfc;
}
.profile-view .mast { background: white; border-bottom: 1px solid var(--rule); }
.profile-view .mast-inner, .profile-page { width: min(68rem, calc(100% - clamp(2rem, 7vw, 6rem))); }
.profile-page .crumb { font-size: .88rem; margin: .45rem 0; }
.profile-page [id] { scroll-margin-top: 1rem; }

.profile-overview {
  display: grid;
  grid-template: "gallery title" auto "gallery contact" auto / minmax(0, .92fr) minmax(0, 1fr);
  align-content: center;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1rem, 2.8vw, 2.25rem);
  border: 1px solid #e6dcd9;
  border-radius: 1.4rem;
  background: linear-gradient(115deg, #f5ebe6, #fffaf7 60%, #faf0ef);
}
.profile-title { grid-area: title; align-self: end; min-width: 0; }
.profile-id { margin: 0 0 .75rem; color: #695363; font-size: .76rem; letter-spacing: .05em; }
.profile-id strong { font-variant-numeric: tabular-nums; }
.profile-title h1 {
  margin: 0; color: var(--plum); font-weight: 760; font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1; letter-spacing: -.065em; overflow-wrap: anywhere;
}
.profile-title h1 + p { margin: .65rem 0 0; color: var(--muted); }
.profile-title h1 + p a { color: var(--link); font-weight: 700; }
.profile-highlights {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem;
  margin: clamp(1rem, 2.5vw, 1.8rem) 0 .75rem; padding: .85rem 0;
  border-block: 1px solid #deced4;
}
.profile-highlights div + div { padding-left: .65rem; border-left: 1px solid #deced4; }
.profile-highlights dt, .profile-contact dt { font-size: .8rem; font-weight: 650; }
.profile-highlights dt { color: var(--muted); }
.profile-highlights dd { margin: .15rem 0 0; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.listing-jumps { display: flex; flex-wrap: wrap; gap: .15rem .4rem; }
.listing-jumps a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .8rem;
  border-radius: .5rem; color: var(--link); font-size: .88rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: .23em; text-decoration-color: #c1a3b3;
}
.listing-jumps a:hover { background: #f0e5e9; }

.profile-gallery { grid-area: gallery; min-width: 0; align-self: center; }
.gallery-stage { position: relative; }
.gallery-track {
  display: flex; aspect-ratio: 1 / 1.08; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  border-radius: .95rem; background: #2f2430;
}
.gallery-stage:has(.gallery-controls:not([hidden])) .gallery-track { scrollbar-width: none; }
.gallery-slide {
  container-type: size; display: grid; flex: 0 0 100%; place-items: center;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.gallery-frame { width: min(100cqw, calc(100cqh * var(--photo-ratio))); aspect-ratio: var(--photo-ratio); overflow: hidden; }
.gallery-frame img { display: block; width: 100%; height: auto; }
.gallery-controls {
  position: absolute; bottom: .8rem; right: .8rem; display: flex; align-items: center;
  border-radius: 3rem; background: #2d202ded; color: white;
}
.gallery-controls button {
  width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: white; font-size: 1.15rem; cursor: pointer;
}
.gallery-controls button:hover { background: #523b4e; }
.gallery-controls button[aria-disabled="true"] { color: #b8aeb5; cursor: default; }
.gallery-controls output { min-width: 3.2rem; text-align: center; font-size: .85rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: .48rem .12rem .2rem; scrollbar-width: thin; scrollbar-color: #bb9fac transparent; }
.gallery-thumbs button {
  flex: 0 0 3.2rem; height: 3.4rem; padding: 2px; background: transparent;
  border: 2px solid transparent; border-radius: .6rem; cursor: pointer;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--link); }
.gallery-thumbs img { display: block; width: 100%; height: 100%; border-radius: .32rem; object-fit: cover; }
.profile-gallery :focus-visible { outline: 3px solid #ab5085; outline-offset: -3px; }

.profile-contact {
  grid-area: contact; align-self: start; min-width: 0; margin-top: clamp(.9rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2vw, 1.55rem); border-radius: 1rem; background: var(--plum); color: #fff;
}
.profile-contact h2 { color: white; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.profile-contact dl { margin: .85rem 0 .65rem; }
.profile-contact dt { margin-bottom: .35rem; color: #f1e0e8; }
.profile-contact dd { margin: 0; }
.contact-reveal, .contact-revealed {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem .75rem;
  width: 100%; min-height: 48px; padding: .65rem .95rem; border: none; border-radius: .55rem;
  background: var(--blush); color: #321d34; text-align: left; font-weight: 750; cursor: pointer;
}
.contact-action { text-decoration: underline; text-underline-offset: .2em; }
.contact-reveal:hover, .contact-revealed:hover { background: #ffcdc4; }
.contact-reveal:disabled { cursor: wait; }
.contact-status, .profile-contact p { font-size: .87rem; color: #f1e0e8; }
.profile-contact p { margin: 0; }
.contact-status:not(:empty) { display: block; margin-top: .4rem; }
.profile-contact :focus-visible { outline-color: white; }

.listing-section {
  display: grid; grid-template-columns: minmax(8rem, .32fr) minmax(0, 1fr);
  gap: .75rem clamp(1rem, 3vw, 3rem); align-items: start;
  margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--rule);
}
.listing-section h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.05em; line-height: 1.12; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem clamp(.85rem, 2vw, 2rem); }
.profile-facts dl, .profile-facts dd { margin: 0; }
.profile-facts dl div { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.profile-facts dl div:last-child { border-bottom: 0; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.listing-rates { border: 0; padding-bottom: 3rem; }
.listing-rates .profile-facts { gap: .85rem; }
.listing-rates .profile-facts > div { background: var(--surface); border: 1px solid var(--rule); border-radius: .85rem; padding: 1rem; }
.listing-rates h3 { padding-bottom: .6rem; border-bottom: 1px solid #d7c9d0; margin: 0; font-size: 1.15rem; color: var(--link); }
.listing-rates dl div { grid-template-columns: minmax(0, 1fr) auto; }
.listing-rates dd { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 54rem) {
  .listing-section { grid-template-columns: 1fr; }
  .profile-overview { column-gap: 1.3rem; }
}
@media (max-width: 43rem) {
  .profile-page { width: min(100% - 1.5rem, 33rem); }
  .profile-page .crumb { font-size: .78rem; }
  .profile-page .crumb ol { gap: 0 .35rem; }
  .profile-page .crumb li + li::before { margin-right: .4rem; }
  .profile-overview { grid-template: "title" "gallery" "contact" / minmax(0, 1fr); gap: .8rem; padding: .85rem; border-radius: 1rem; }
  .profile-title { padding: .25rem .12rem 0; }
  .profile-id { margin-bottom: .35rem; }
  .profile-highlights { margin: .85rem 0 .15rem; padding: .6rem 0; font-size: .93rem; }
  .listing-jumps { gap: 0; justify-content: space-between; }
  .listing-jumps a { padding: .25rem .55rem; }
  .gallery-track { aspect-ratio: 1 / 1.03; }
  .profile-contact { margin: 0; }
  .listing-section { padding-inline: .25rem; }
  .profile-facts { grid-template-columns: 1fr; gap: 0; }
  .listing-details dl + dl { border-top: 1px solid var(--rule); }
  .listing-rates .profile-facts { gap: .65rem; }
}
