/* ═══════════════════════════════════════════════════════════════════════════
   provider.css: public provider profile (provider.php)
   Desktop/tablet (≥ 769px): cover band, profile header card, sections stacked in
   the main column, sticky side card. Phone (≤ 768px): app profile screen with
   segmented tabs and a sticky action bar above the tab bar.
   ═══════════════════════════════════════════════════════════════════════════ */

.pv { background: var(--surface-2); padding-bottom: 64px; }

.pv-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Cover ───────────────────────────────────────────────────────────────── */
.pv-cover {
    position: relative;
    background: var(--grad-hero);
    color: #fff;
    padding-top: calc(var(--header-h, 68px) + 22px);
    height: calc(var(--header-h, 68px) + 170px);
    overflow: hidden;
}
.pv-cover::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent);
}
.pv-breadcrumb { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.pv-breadcrumb a { color: rgba(255,255,255,.85); transition: color .15s; }
.pv-breadcrumb a:hover { color: #fff; }
.pv-breadcrumb-sep { color: rgba(255,255,255,.45); }
.pv-breadcrumb [aria-current] { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pv-wrap { position: relative; z-index: 2; margin-top: -112px; }

.pv-notice {
    margin-bottom: 16px; padding: 12px 16px;
    background: #FFF8E6; border: 1px solid #F5D98B; color: #7A5A00;
    border-radius: var(--r-md); font-size: 14px; line-height: 1.6;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pv-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.pv-card {
    background: var(--surface);
    border: 1px solid rgba(13,55,64,.07);
    border-radius: var(--r-lg);
    box-shadow: var(--e1);
    padding: 24px;
}
.pv-card-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.pv-card-title small {
    min-width: 24px; padding: 1px 8px; border-radius: 99px;
    background: var(--teal-50); color: var(--teal-600); font-size: 12px; font-weight: 700; text-align: center;
}
.pv-empty { font-size: 14px; color: #6B7A80; }

/* ── Identity header ─────────────────────────────────────────────────────── */
.pv-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "av text" "stats stats" "chips chips";
    column-gap: 22px; row-gap: 18px; align-items: center;
    background: var(--surface);
    border: 1px solid rgba(13,55,64,.07);
    border-radius: var(--r-xl);
    box-shadow: var(--e2);
    padding: 26px;
}
.pv-head:not(:has(.pv-chips)) { grid-template-areas: "av text" "stats stats"; }
.pv-avatar {
    grid-area: av;
    width: 116px; height: 116px; flex-shrink: 0;
    border-radius: 32px; overflow: hidden;
    display: grid; place-items: center;
    background: var(--grad-brand); color: #fff;
    font-size: 42px; font-weight: 800;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(13,55,64,.18);
}
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-avatar--premium { box-shadow: 0 0 0 3px var(--orange), 0 8px 24px rgba(217,112,61,.25); }
.pv-head-text { grid-area: text; min-width: 0; }
.pv-name {
    font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--ink);
    line-height: 1.25; letter-spacing: -.3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pv-badges:empty { display: none; }
.pv-badge {
    display: inline-flex; align-items: center; gap: 5px;
    height: 26px; padding: 0 10px; border-radius: 8px;
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.pv-badge svg { width: 14px; height: 14px; }
.pv-badge--premium  { background: var(--grad-warm); color: #fff; }
.pv-badge--business { background: var(--grad-brand); color: #fff; }
.pv-badge--verified { background: var(--teal-50); color: var(--teal-600); }
.pv-badge--top      { background: var(--orange-50); color: var(--orange-d); }
.pv-badge--off      { background: #F1F3F4; color: #5E6E74; }

.pv-team-of { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: #5E6E74; }
.pv-team-of svg { width: 16px; height: 16px; color: var(--teal-500); }
.pv-team-of a { color: var(--teal-600); font-weight: 700; }
.pv-team-of a:hover { text-decoration: underline; }

.pv-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: #5E6E74; }
.pv-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.pv-meta-item svg { width: 16px; height: 16px; color: #8A979C; }
.pv-meta-cat { color: var(--teal-700); font-weight: 700; }
a.pv-meta-cat:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Stats row */
.pv-stats { grid-area: stats; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: var(--r-md); }
.pv-stats li + li { border-inline-start: 1px solid rgba(13,55,64,.08); }
.pv-stats a, .pv-stats div {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 12px 8px; height: 100%; text-align: center; border-radius: var(--r-md);
    transition: background .15s;
}
.pv-stats a:hover { background: var(--teal-50); }
.pv-stats a:focus-visible { outline: 2px solid var(--teal-500); outline-offset: -2px; }
.pv-stats b { display: inline-flex; align-items: center; gap: 5px; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.pv-stats b svg { width: 18px; height: 18px; color: #F59E0B; }
.pv-stats .pv-stat-new { font-size: 16px; color: var(--teal-600); }
.pv-stats span { font-size: 12.5px; color: #6B7A80; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pv-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; }
.pv-chip {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
    border-radius: 10px; background: var(--teal-50); color: var(--teal-700);
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: background .15s;
}
.pv-chip:hover { background: var(--teal-100); }

/* Tabs and the action bar are phone-only */
.pv-tabs, .pv-actionbar { display: none; }

/* ── Services ────────────────────────────────────────────────────────────── */
.pv-services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-services li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--r-md);
    background: var(--surface-2); border: 1px solid rgba(13,55,64,.05);
    font-size: 14.5px; color: var(--ink); line-height: 1.5;
}
.pv-tick { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; background: var(--teal-500); color: #fff; margin-top: 1px; }
.pv-tick svg { width: 13px; height: 13px; }

/* ── About ───────────────────────────────────────────────────────────────── */
.pv-bio { font-size: 15px; line-height: 1.9; color: #33454B; white-space: normal; overflow-wrap: anywhere; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.pv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.pv-gallery-item {
    position: relative; padding: 0; border: 0; cursor: zoom-in;
    border-radius: var(--r-md); overflow: hidden; background: var(--surface-3);
}
.pv-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.pv-gallery--few .pv-gallery-item:first-child { grid-column: auto; grid-row: span 2; }
.pv-gallery--few { grid-template-columns: repeat(2, 1fr); }
.pv-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.pv-gallery-item:hover img { transform: scale(1.04); }
.pv-gallery-item:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* ── Team ────────────────────────────────────────────────────────────────── */
.pv-team { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pv-team-card {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
    transition: border-color .15s, box-shadow .2s, transform .2s;
}
.pv-team-card:hover { border-color: var(--teal-200); box-shadow: var(--e1); transform: translateY(-1px); }
.pv-team-avatar {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; overflow: hidden;
    display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 18px;
}
.pv-team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-team-text { min-width: 0; display: flex; flex-direction: column; }
.pv-team-text strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-team-text span { font-size: 12.5px; color: #6B7A80; }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.pv-stars { color: #F59E0B; letter-spacing: 1px; }
.pv-rsum { display: flex; align-items: center; gap: 28px; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 18px; }
.pv-rsum-score { text-align: center; flex-shrink: 0; min-width: 110px; }
.pv-rsum-num { font-size: 42px; font-weight: 800; color: var(--ink); line-height: 1; }
.pv-rsum-score .pv-stars { font-size: 17px; margin: 6px 0 2px; }
.pv-rsum-count { font-size: 12.5px; color: #6B7A80; }
.pv-rsum-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pv-rsum-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #5E6E74; }
.pv-rsum-label { width: 30px; flex-shrink: 0; white-space: nowrap; }
.pv-rsum-bar { flex: 1; height: 8px; border-radius: 99px; background: #E3EAEC; overflow: hidden; }
.pv-rsum-bar span { display: block; height: 100%; background: linear-gradient(90deg, #F59E0B, #F7B53B); border-radius: 99px; }
.pv-rsum-n { width: 24px; text-align: end; flex-shrink: 0; }
.pv-rsum-empty { flex: 1; font-size: 14px; color: #5E6E74; line-height: 1.7; }

.pv-review-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; margin-bottom: 18px; }
.pv-review-form-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.pv-star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0 0 10px; }
.pv-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pv-star-input label { font-size: 32px; line-height: 1; color: #D1D5DB; cursor: pointer; transition: color .12s, transform .12s; }
.pv-star-input label:active { transform: scale(.9); }
.pv-star-input label:hover,
.pv-star-input label:hover ~ label,
.pv-star-input input:checked ~ label { color: #F59E0B; }
.pv-star-input input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.pv-review-form textarea {
    width: 100%; min-height: 96px; resize: vertical;
    border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px;
    font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
    transition: border-color .15s;
}
.pv-review-form textarea:focus { outline: none; border-color: var(--teal-500); }
.pv-review-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pv-counter { font-size: 12px; color: #6B7A80; }
.pv-form-msg { margin: 10px 0 0; font-size: 13px; color: #B91C1C; }
.pv-form-msg.is-ok { color: #047857; }

.pv-hint { font-size: 14px; color: #4B5E64; line-height: 1.7; padding: 12px 16px; border-radius: var(--r-md); background: var(--teal-50); margin-bottom: 18px; }
.pv-hint a { color: var(--teal-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pv-hint--ok { background: #ECFDF5; color: #065F46; }

.pv-reviews { list-style: none; display: flex; flex-direction: column; }
.pv-review { padding: 16px 0; border-top: 1px solid rgba(13,55,64,.07); }
.pv-review-head { display: flex; align-items: center; gap: 12px; }
.pv-review-avatar {
    width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; overflow: hidden;
    display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); font-weight: 800;
}
.pv-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-review-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-review-who strong { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-review-who time { font-size: 12px; color: #8A979C; }
.pv-review-stars { font-size: 14px; flex-shrink: 0; }
.pv-review-body { margin-top: 10px; font-size: 14.5px; line-height: 1.8; color: #33454B; overflow-wrap: anywhere; }
.pv-review-reply { margin-top: 10px; margin-inline-start: 18px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border-inline-start: 3px solid var(--teal-200); }
.pv-review-reply strong { font-size: 12.5px; color: var(--teal-700); }
.pv-review-reply p { font-size: 14px; color: #33454B; line-height: 1.7; margin-top: 2px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.pv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap;
    transition: filter .15s, transform .12s, background .15s, box-shadow .2s;
}
.pv-btn:active { transform: scale(.97); }
.pv-btn:focus-visible { outline: 3px solid var(--teal-200); outline-offset: 2px; }
.pv-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.pv-btn--primary { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 20px rgba(217,112,61,.32); }
.pv-btn--primary:hover { filter: brightness(1.05); }
.pv-btn--primary:disabled { opacity: .7; cursor: default; }
.pv-btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.pv-btn--icon { width: 50px; padding: 0; background: var(--teal-50); color: var(--teal-700); box-shadow: none; }
.pv-btn--icon:hover { background: var(--teal-100); }

/* ── Side card ───────────────────────────────────────────────────────────── */
.pv-side { position: sticky; top: calc(var(--header-h, 68px) + 16px); }
.pv-side-card { padding: 22px; border-radius: var(--r-xl); box-shadow: var(--e2); }
.pv-side-id { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(13,55,64,.07); }
.pv-avatar--sm { width: 56px; height: 56px; border-radius: 17px; font-size: 22px; border-width: 0; box-shadow: none; }
.pv-avatar--sm.pv-avatar--premium { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.pv-side-id > div { min-width: 0; display: flex; flex-direction: column; }
.pv-side-id strong { font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-side-id span { font-size: 13px; color: #6B7A80; }
.pv-side-actions { display: flex; gap: 8px; }
.pv-side-actions .pv-btn--primary { flex: 1; }
.pv-side-note { margin-top: 10px; font-size: 12.5px; color: #6B7A80; line-height: 1.6; text-align: center; }
.pv-side-title { font-size: 13px; font-weight: 700; color: #6B7A80; margin: 18px 0 6px; }
.pv-facts { list-style: none; display: flex; flex-direction: column; }
.pv-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13.5px; border-bottom: 1px dashed rgba(13,55,64,.08); }
.pv-facts li:last-child { border-bottom: 0; }
.pv-facts svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; }
.pv-facts span { color: #6B7A80; }
.pv-facts strong { margin-inline-start: auto; color: var(--ink); font-weight: 700; text-align: end; }
.pv-side-team { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: var(--r-md); background: var(--teal-50); font-size: 13.5px; color: var(--teal-900); }
.pv-side-team-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--teal-600); flex-shrink: 0; }
.pv-side-team-ico svg { width: 18px; height: 18px; }
.pv-side-team a { color: var(--teal-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── Share toast ─────────────────────────────────────────────────────────── */
.pv-toast {
    position: fixed; z-index: 10060; left: 50%; bottom: 28px;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 10px 18px; border-radius: 12px; background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 600; box-shadow: var(--e3);
    transition: opacity .2s, transform .25s var(--ease);
}
.pv-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Show number or message ──────────────────────────────────────────────── */
.pv-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.pv-btn--ghost { background: var(--teal-50); color: var(--teal-700); box-shadow: none; height: 44px; padding: 0 16px; font-size: 14px; }
.pv-btn--ghost:hover { background: var(--teal-100); }
.pv-contact { position: fixed; inset: 0; z-index: 10040; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pv-contact[hidden] { display: none; }
.pv-contact-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 18, .55); }
.pv-contact-card {
    position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-xl, 22px);
    box-shadow: 0 24px 60px rgba(8,15,18,.3); padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.pv-contact-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; font-size: 26px; line-height: 1; color: #6B7A80; cursor: pointer; }
.pv-contact-x:hover { background: var(--teal-50); }
.pv-contact-id { display: flex; align-items: center; gap: 12px; padding-inline-end: 36px; }
.pv-contact-id > div { min-width: 0; display: flex; flex-direction: column; }
.pv-contact-id strong { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.pv-contact-id span { font-size: 13px; color: #6B7A80; }
.pv-contact-note { margin: 0; font-size: 14.5px; line-height: 1.7; color: #33454B; }
.pv-contact-note[hidden], .pv-contact-phone[hidden], .pv-contact-actions [hidden] { display: none; }
.pv-contact-num {
    display: block; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .5px;
    color: var(--teal-700); text-decoration: none; padding: 12px; border-radius: 14px; background: var(--teal-50);
    unicode-bidi: isolate;
}
.pv-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pv-contact-actions .pv-btn { flex: 1 1 0; min-width: 0; }
.pv-contact-chat { width: 100%; }
.pv-contact-hint { margin: 0; font-size: 12.5px; color: #6B7A80; text-align: center; line-height: 1.6; }
body.pv-contact-open { overflow: hidden; }
@media (max-width: 768px) {
    .pv-contact { align-items: flex-end; padding: 0; }
    .pv-contact-card { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.pv-lightbox {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(8, 15, 18, .94);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 64px;
    animation: pv-fade .2s ease both;
}
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
.pv-lightbox[hidden] { display: none; }
.pv-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pv-lb-figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pv-lb-figure figcaption { color: rgba(255,255,255,.7); font-size: 13px; }
.pv-lb-close, .pv-lb-nav {
    position: absolute; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1;
    transition: background .15s;
}
.pv-lb-close:hover, .pv-lb-nav:hover { background: rgba(255,255,255,.25); }
.pv-lb-close:focus, .pv-lb-nav:focus { outline: none; }
.pv-lb-close:focus-visible, .pv-lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pv-lb-close { top: 14px; inset-inline-end: 14px; font-size: 32px; }
.pv-lb-prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
.pv-lb-next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
.pv-lb-nav[hidden] { display: none; }
body.pv-lb-open { overflow: hidden; }
.pv-lb-figure img { cursor: zoom-in; }
.pv-lb-figure.is-zoomed { overflow: auto; width: 100%; height: calc(100vh - 120px); display: block; -webkit-overflow-scrolling: touch; }
.pv-lb-figure.is-zoomed img { max-width: none; max-height: none; width: 200%; height: auto; cursor: zoom-out; border-radius: 0; }
.pv-lb-figure.is-zoomed figcaption { display: none; }
/* The photo always fills the frame (cropped, never stretched or spilling over). */
.pv-avatar { position: relative; isolation: isolate; }
.pv-avatar-zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; border-radius: inherit; overflow: hidden; cursor: zoom-in; }
.pv-avatar > img, .pv-avatar-zoom img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: inherit; }
.pv-avatar-zoom:focus-visible { outline: 3px solid var(--teal-200, #A9D7DC); outline-offset: 3px; }

/* ══════════════════════════════════════════════════════════════════════════
   TABLET (769px to 1023px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1023px) {
    .pv-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
    .pv-head { padding: 22px; column-gap: 18px; }
    .pv-avatar { width: 96px; height: 96px; border-radius: 28px; font-size: 34px; }
    .pv-avatar--sm { width: 48px; height: 48px; border-radius: 15px; font-size: 19px; }
    .pv-services { grid-template-columns: minmax(0, 1fr); }
    .pv-card { padding: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHONE (≤ 768px): app profile screen
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .pv { padding-bottom: 120px; }

    .pv-cover { height: calc(var(--appbar-h) + 96px); padding-top: 0; border-radius: 0 0 28px 28px; }
    .pv-breadcrumb { display: none; }
    .pv-wrap { margin-top: -62px; }
    .pv-notice { margin-top: 74px; }

    .pv-layout { display: block; }
    .pv-main { gap: 12px; }

    /* Centered identity block, avatar overlapping the cover */
    .pv-head {
        display: flex; flex-direction: column; align-items: center; text-align: center;
        gap: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0;
    }
    .pv-avatar { width: 112px; height: 112px; border-radius: 34px; font-size: 42px; }
    .pv-head-text { width: 100%; margin-top: 12px; }
    .pv-name { font-size: 23px; letter-spacing: 0; }
    .pv-badges { justify-content: center; margin-top: 8px; }
    .pv-badge { height: 24px; font-size: 12px; }
    .pv-team-of { justify-content: center; font-size: 13.5px; }
    .pv-meta { justify-content: center; font-size: 13px; gap: 4px 12px; margin-top: 8px; }

    .pv-stats { width: 100%; margin-top: 16px; background: var(--surface); border: 1px solid rgba(13,55,64,.07); border-radius: 18px; box-shadow: var(--e1); }
    .pv-stats a, .pv-stats div { padding: 12px 6px; min-height: 64px; }
    .pv-stats b { font-size: 18px; }
    .pv-stats span { font-size: 11.5px; }

    .pv-chips {
        width: calc(100% + 32px); margin: 14px -16px 0; padding: 0 16px 2px;
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start;
    }
    .pv-chips::-webkit-scrollbar { display: none; }
    .pv-chip { flex-shrink: 0; height: 34px; background: var(--surface); border: 1px solid var(--teal-100); border-radius: 999px; }

    /* Segmented tabs, sticky under the app bar */
    .pv-tabs {
        display: flex; gap: 4px;
        position: sticky; top: calc(var(--appbar-h) + 6px); z-index: 40;
        margin-top: 6px; padding: 4px;
        background: rgba(233,241,242,.92);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-radius: 14px; box-shadow: 0 0 0 6px var(--surface-2);
        overflow-x: auto; scrollbar-width: none;
    }
    .pv-tabs::-webkit-scrollbar { display: none; }
    .pv-tab {
        flex: 1 1 0; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
        min-height: 40px; padding: 0 8px; border: 0; border-radius: 11px; cursor: pointer;
        background: transparent; color: #4B5E64;
        font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap;
        transition: background .2s, color .2s, box-shadow .2s;
    }
    .pv-tab small { min-width: 20px; padding: 0 6px; border-radius: 99px; background: rgba(13,55,64,.08); font-size: 11px; line-height: 18px; }
    .pv-tab.is-active { background: var(--surface); color: var(--teal-700); box-shadow: 0 2px 8px rgba(13,55,64,.12); }
    .pv-tab.is-active small { background: var(--teal-500); color: #fff; }
    .pv-tab:focus-visible { outline: 2px solid var(--teal-500); outline-offset: -2px; }

    /* Only the active tab's sections show */
    .pv-sec { display: none; }
    .pv[data-tab="services"] .pv-sec[data-sec="services"],
    .pv[data-tab="gallery"]  .pv-sec[data-sec="gallery"],
    .pv[data-tab="reviews"]  .pv-sec[data-sec="reviews"],
    .pv[data-tab="about"]    .pv-sec[data-sec="about"] { display: block; animation: pv-tab-in .25s var(--ease) both; }
    @keyframes pv-tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    .pv-side { position: static; margin-top: 12px; }

    .pv-card { padding: 18px 16px; border-radius: 20px; }
    .pv-card-title { font-size: 16px; margin-bottom: 12px; }
    .pv-services { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .pv-services li { font-size: 14.5px; padding: 12px; }

    /* Gallery: swipeable two-row grid */
    .pv-gallery {
        grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, 128px); grid-auto-columns: 40%;
        grid-auto-rows: auto; gap: 8px;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 -16px; padding: 0 16px;
    }
    .pv-gallery::-webkit-scrollbar { display: none; }
    .pv-gallery-item { scroll-snap-align: start; border-radius: 14px; }
    .pv-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
    .pv-gallery--few { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; grid-template-rows: 200px; overflow: visible; margin: 0; padding: 0; }
    .pv-gallery--few .pv-gallery-item:first-child { grid-column: auto; grid-row: auto; }
    .pv-gallery--few .pv-gallery-item:only-child { grid-column: 1 / -1; }

    .pv-rsum { gap: 16px; padding: 14px; }
    .pv-rsum-score { min-width: 86px; }
    .pv-rsum-num { font-size: 34px; }
    .pv-review-reply { margin-inline-start: 0; }
    .pv-team { grid-template-columns: minmax(0, 1fr); }

    /* Side card becomes the facts card of the About tab */
    .pv-side-card { padding: 18px 16px; border-radius: 20px; box-shadow: var(--e1); }
    .pv-side-id, .pv-side-actions, .pv-side-note { display: none; }
    .pv-side-title { margin-top: 0; font-size: 16px; color: var(--ink); font-weight: 800; }

    /* Sticky action bar above the tab bar */
    .pv-actionbar {
        display: flex; gap: 10px;
        position: fixed; inset-inline: 0; z-index: 997;
        bottom: calc(var(--tabbar-h) + var(--safe-b));
        padding: 10px 16px 30px; /* the tab bar's raised button sits in the bottom padding */
        background: rgba(255,255,255,.94);
        backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
        border-top: 1px solid rgba(13,55,64,.08);
        box-shadow: 0 -6px 18px rgba(13,55,64,.06);
    }
    .pv-actionbar .pv-btn--primary { flex: 1; height: 48px; }
    .pv-actionbar .pv-btn--icon { width: 48px; height: 48px; }
    .pv-toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 104px); }

    .pv-lightbox { padding: 56px 8px; }
    .pv-lb-nav { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pv-sec, .pv-lightbox { animation: none !important; }
    .pv-gallery-item img, .pv-toast, .pv-tab { transition: none; }
}
