/* ============ Cover + identity ============ */
  .profile-cover {
    height: 240px;
    background-image: linear-gradient(to bottom, oklch(20% 0.01 60 / 0.15) 30%, oklch(20% 0.010 60 / 0.55)),
                      var(--cover-img);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
  }
  .profile-id {
    background: transparent;
    padding: 0 0 18px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
  }
  .profile-id-row {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-2);
  }
  @media (max-width: 640px) {
    .profile-id-row { grid-template-columns: 64px 1fr; gap: 14px; }
    .profile-id-row .actions { grid-column: 1 / -1; }
    .profile-id-row .actions .btn-cart { width: 100%; justify-content: center; }
  }
  .profile-id .avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 3px solid var(--paper);
    box-shadow: var(--shadow-1);
    overflow: hidden;
  }
  @media (max-width: 640px) { .profile-id .avatar { width: 64px; height: 64px; } }
  .profile-id .avatar svg { width: 100%; height: 100%; display: block; }
  .profile-id .avatar .vinyl-spin {
    transform-origin: 44px 44px;
    animation: vinyl-rotate 8s linear infinite;
  }
  @keyframes vinyl-rotate { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .profile-id .avatar .vinyl-spin { animation: none; } }
  .profile-id .name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .profile-id h1 { font-size: 28px; line-height: 1.1; }
  .id-rating {
    display: inline-flex; align-items: baseline; gap: 5px;
    font-size: 14px; color: var(--ink-2); white-space: nowrap;
  }
  .id-rating .val { color: var(--accent); font-weight: 800; font-size: 15px; }
  .id-rating .stars { color: var(--accent); letter-spacing: 1px; }
  .profile-id .who { font-size: 14px; color: var(--ink-2); margin-top: 5px; }
  .profile-id .meta {
    margin-top: 9px; font-size: 13.5px; color: var(--ink-2);
    display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center;
  }
  .profile-id .meta a { color: var(--ink); font-weight: 600; }
  .profile-id .meta a:hover { color: var(--accent); }

  /* ============ Main scroll sections ============ */
  .profile-grid { padding: 28px 0 64px; }
  .profile-main { min-width: 0; }
  .psection { padding: 26px 0; border-bottom: 1px solid var(--rule); }
  .psection:first-child { padding-top: 0; }
  .psection:last-child { border-bottom: none; }
  .psection > h2 { font-size: 22px; line-height: 1.15; margin-bottom: 4px; }
  .psection .sub {
    font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  }
  .psection p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 10px; }
  .psection p:last-child { margin-bottom: 0; }
  /* About extras: service area, event-type pills, association badges */
  .svc-line { font-size: 14.5px; color: var(--ink-2); margin-top: 16px; line-height: 1.55; }
  .svc-line .svc-label {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--ink-2); margin-right: 9px;
  }
  .tag-group { margin-top: 18px; }
  .tag-group .tg-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--ink-2); margin-bottom: 9px;
  }
  .pill-row, .assoc-row { display: flex; flex-wrap: wrap; gap: 7px; }
  .assoc-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
    background: var(--bg-2); border: 1px solid var(--rule);
    border-radius: 99px; padding: 5px 13px;
  }
  .assoc-badge::before { content: "✓"; color: var(--live); font-weight: 800; }

  /* Rich vendor bio (sanitized HTML from portal / legacy Domino) */
  .bio-rich { margin-top: 12px; }
  .bio-rich :last-child { margin-bottom: 0; }
  .bio-rich p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 10px; }
  .bio-rich strong, .bio-rich b { color: var(--ink); font-weight: 700; }
  .bio-rich ul, .bio-rich ol { margin: 0 0 10px; padding-left: 22px; }
  .bio-rich li { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 4px; }
  .bio-rich a { color: var(--accent); text-decoration: underline; }
  .bio-rich h3 { font-size: 17px; margin: 16px 0 8px; }
  .bio-rich blockquote { margin: 0 0 10px; padding-left: 14px; border-left: 3px solid var(--rule); color: var(--ink-2); }

  /* ============ Photo gallery (inline, click → lightbox) ============ */
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 6px;
  }
  @media (max-width: 600px) { .photo-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } }
  .pg-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
    border-radius: 6px;
    cursor: zoom-in;
    overflow: hidden;
    border: none;
    padding: 0;
  }
  .pg-item::after {
    content: "";
    position: absolute; inset: 0;
    background: oklch(20% 0.01 60 / 0);
    transition: background .15s ease-out;
  }
  .pg-item:hover::after { background: oklch(20% 0.01 60 / 0.18); }
  .pg-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .pg-big { grid-column: span 2; grid-row: span 2; }
  .pg-more {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 2px;
    background: var(--bg-2); color: var(--ink-2);
    font-weight: 800; font-size: 18px; cursor: pointer;
    border-radius: 6px; border: 1px solid var(--rule);
  }
  .pg-more small { font-size: 11px; font-weight: 600; color: var(--ink-2); }

  /* ============ Lightbox ============ */
  .lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: oklch(12% 0.01 60 / 0.92);
    display: none; align-items: center; justify-content: center;
  }
  .lightbox.open { display: flex; }
  .lb-img {
    max-width: 92vw; max-height: 86vh;
    border-radius: 6px; box-shadow: var(--shadow-2);
    object-fit: contain; background: var(--bg-2);
  }
  .lb-btn {
    position: absolute; background: oklch(100% 0 0 / 0.12); color: #fff;
    border: none; cursor: pointer; border-radius: 50%;
    width: 46px; height: 46px; font-size: 24px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s;
  }
  .lb-btn:hover { background: oklch(100% 0 0 / 0.25); }
  .lb-close { top: 18px; right: 18px; font-size: 28px; }
  .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
  .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
  .lb-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 13px; font-weight: 700;
    background: oklch(0% 0 0 / 0.4); padding: 5px 12px; border-radius: 99px;
  }
  @media (max-width: 600px) { .lb-prev { left: 6px; } .lb-next { right: 6px; } }

  /* ============ Video gallery (poster → click loads iframe) ============ */
  .video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  .vid-card { min-width: 0; }
  .vid-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-2) var(--vid-thumb) center/cover no-repeat;
    border: 1px solid var(--rule);
  }
  .vid-card.portrait .vid-frame { aspect-ratio: 9 / 16; max-width: 300px; }
  .vid-poster {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .vid-poster::before {
    content: ""; position: absolute; inset: 0;
    background: oklch(20% 0.01 60 / 0.28);
    transition: background .15s ease-out;
  }
  .vid-poster:hover::before { background: oklch(20% 0.01 60 / 0.12); }
  .vid-play {
    position: relative; z-index: 1;
    width: 64px; height: 64px; border-radius: 50%;
    background: oklch(100% 0 0 / 0.92); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; padding-left: 5px;
    box-shadow: var(--shadow-2);
    transition: transform .15s ease-out;
  }
  .vid-poster:hover .vid-play { transform: scale(1.08); }
  .vid-poster:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .vid-title {
    font-size: 13.5px; color: var(--ink-2); margin-top: 8px;
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ============ Tabbed module (Reviews + optional Booking) ============ */
  .profile-tabs { border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
  .ptabs { display: flex; gap: 4px; }
  .ptab {
    padding: 13px 18px; font-size: 14px; font-weight: 700;
    color: var(--ink-2); background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    cursor: pointer; user-select: none;
  }
  .ptab.active { color: var(--ink); border-bottom-color: var(--accent); }
  .ptab:hover { color: var(--ink); }
  .tab-pane { display: none; padding-top: 24px; }
  .tab-pane.active { display: block; }
  .reviews-summary {
    font-size: 13px; color: var(--ink-2); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .reviews-summary .big { color: var(--accent); font-weight: 800; font-size: 18px; }
  .reviews-summary .stars { color: var(--accent); letter-spacing: 1px; }

  /* Reviews list */
  .review { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .review:last-of-type { border-bottom: none; }
  .review .head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
  .review .av {
    width: 38px; height: 38px; border-radius: 50%;
    background-size: cover; background-position: center; background-color: var(--bg-2);
    flex-shrink: 0;
  }
  .review .who2 { min-width: 0; }
  .review .name { font-weight: 700; font-size: 14px; }
  .review .stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
  .review .when { font-size: 11px; color: var(--ink-2); margin-left: auto; white-space: nowrap; }
  .review p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 4px 0 0; }
  .review .src {
    display: inline-block; margin-top: 8px; font-size: 11px; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  }
  .review .src a { color: var(--ink-2); text-decoration: underline; }

  /* Reviews pager — mirrors the listing-page .pagination component */
  .pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 28px 0 4px; flex-wrap: wrap; }
  .pagination a, .pagination span {
    padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px;
    font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper);
    text-decoration: none; cursor: pointer; user-select: none;
  }
  .pagination a:hover { background: var(--bg-2); }
  .pagination .now { background: var(--ink); color: var(--paper); border-color: var(--ink); cursor: default; }
  .pagination .disabled { color: var(--ink-2); background: var(--bg-2); opacity: 1; cursor: default; }
  .pagination .gap { border: none; background: transparent; color: var(--ink-2); padding: 8px 2px; cursor: default; }

  /* Reviews header (summary + write-a-review button) */
  .reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .reviews-head .reviews-summary { margin-bottom: 0; }
  .btn-review-open {
    font-size: 13px; font-weight: 700; color: var(--accent);
    background: var(--paper); border: 1px solid var(--accent);
    border-radius: 8px; padding: 8px 15px; cursor: pointer; white-space: nowrap;
    transition: background .12s;
  }
  .btn-review-open:hover { background: var(--accent-soft); }

  /* Write-a-review <dialog> */
  .review-dialog {
    position: fixed; inset: 0; margin: auto;
    border: none; border-radius: 14px; padding: 0; max-width: 480px; width: 92vw;
    max-height: min(88vh, 720px); overflow: auto;
    background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2);
  }
  .review-dialog::backdrop { background: oklch(12% 0.01 60 / 0.55); }
  .rd-form { padding: 24px 24px 22px; position: relative; display: flex; flex-direction: column; gap: 13px; }
  .rd-form h3 { font-size: 20px; line-height: 1.2; padding-right: 28px; }
  .rd-sub { font-size: 13px; color: var(--ink-2); margin-top: -6px; }
  .rd-close {
    position: absolute; top: 14px; right: 16px; border: none; background: none;
    font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; padding: 0;
  }
  .rd-close:hover { color: var(--ink); }
  .rd-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
  .rd-form label .opt { font-weight: 500; color: var(--ink-2); }
  .rd-form select, .rd-form input, .rd-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 7px;
    background: var(--paper); font-family: inherit; font-size: 14px; font-weight: 400;
    color: var(--ink); outline: none; transition: border-color .12s;
  }
  .rd-form select:focus, .rd-form input:focus, .rd-form textarea:focus { border-color: var(--accent); }
  .rd-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
  .rd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
  .rd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
  .rd-msg { font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 7px; background: var(--bg-2); color: var(--ink-2); }
  .rd-msg.ok { background: var(--live-soft); color: var(--live); font-weight: 600; }
  .rd-msg.err { background: oklch(95% 0.03 22); color: var(--accent); }

  /* Write a review */
  .review-form {
    background: var(--bg-2); border: 1px solid var(--rule);
    border-radius: 8px; padding: 18px 20px; margin-top: 18px;
  }
  .rf-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .rf-row:last-child { margin-bottom: 0; }
  .rf-row > label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
  .review-form input, .review-form select, .review-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--rule);
    border-radius: 6px; background: var(--paper); font-family: inherit;
    font-size: 14px; color: var(--ink); outline: none; transition: border-color .12s;
  }
  .review-form input:focus, .review-form select:focus, .review-form textarea:focus { border-color: var(--accent); }
  .review-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
  .rf-3col { flex-direction: row; gap: 8px; }
  .rf-3col input { flex: 1; }
  @media (max-width: 720px) { .rf-3col { flex-direction: column; } }
  .rf-submit { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
  .rf-helper { font-size: 12px; color: var(--ink-2); }

  /* Booking — check availability (mockup; backend AJAX wired later) */
  .avail-intro { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; max-width: 60ch; }
  .avail-form { max-width: 460px; }
  .avail-form > label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
  .avail-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .avail-row input[type="date"] {
    flex: 1; min-width: 160px; padding: 11px 13px; border: 1px solid var(--rule);
    border-radius: 8px; background: var(--paper); font-family: inherit;
    font-size: 15px; color: var(--ink); outline: none;
  }
  .avail-row input[type="date"]:focus { border-color: var(--accent); }
  .avail-result {
    margin-top: 16px; padding: 14px 16px; border-radius: 8px;
    font-size: 14.5px; line-height: 1.5; border: 1px solid var(--rule);
    background: var(--bg-2); color: var(--ink-2);
  }
  .avail-result.yes { background: var(--live-soft); border-color: var(--live); color: var(--live); font-weight: 600; }
  .avail-result.no { background: oklch(95% 0.03 22); border-color: var(--accent); color: var(--accent); }
  .avail-result .lead { font-weight: 800; display: block; margin-bottom: 2px; }
