/* ==========================================================================
   ELITE TRIP - a Local Host's profile and the request card.

   A sticky page bar with the host's name and one gold action; the host on
   the left (a large rounded photograph, the name, a few lines in their own
   words, what we have checked, reviews); the request card on the right,
   sticky, so the next step stays in view. On a phone the request card
   follows the host and the bottom bar leads to it.
   ========================================================================== */

.pf-wrap { padding-top: clamp(28px, 4vw, 56px); }

.pf-loading { display: grid; justify-items: center; gap: 14px; padding: 96px 0; text-align: center; color: var(--c-muted); }
.pf-loading p { font-size: var(--t-body); }

.profile-grid.pf-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
    gap: clamp(24px, 4vw, 56px);
}
.pf-main { display: grid; gap: clamp(28px, 4vw, 48px); min-width: 0; }

/* --- the host -------------------------------------------------------------- */
.pf-intro {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 44px); align-items: start;
}
.pf-gallery .pf-photo-main { aspect-ratio: 4 / 5; box-shadow: var(--sh-2); }
.pf-gallery .pf-photo-main img { object-position: 50% 30%; }
.pf-photo-main .no-photo { background: var(--c-bg-alt); }
.pf-photo-main .no-photo .et-i { width: 3rem; height: 3rem; stroke-width: 1; }
.pf-photo-main .bcard-verify { top: 16px; left: 16px; }

/* The Concierge mark, top right, clear of the ID mark. */
.pf-premier {
    position: absolute; top: 16px; right: 16px; z-index: 1;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--r-pill);
    background: var(--c-espresso); color: var(--c-gold-light);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.6);
    font-size: var(--t-micro); font-weight: 600; letter-spacing: 0;
}
.pf-premier .et-i { color: var(--c-gold); }

.pf-who { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding-top: 6px; }
.pf-who .lvl-row { margin-bottom: 0; }
.pf-who .lvl-row:empty { display: none; }
.pf-name {
    margin: 0;
    font-size: var(--t-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.005em;
    overflow-wrap: anywhere;
}
.pf-rating { font-size: var(--t-body); }
.pf-rating .chip { font-size: var(--t-micro); }
.pf-langs { font-size: var(--t-body); color: var(--c-ink-2); }
.pf-langs .et-i { flex: none; margin-top: 5px; color: var(--c-bronze); }
.pf-bio {
    margin-top: 4px; font-size: var(--t-lead); line-height: 1.45; letter-spacing: 0.011em;
    color: var(--c-ink-2); white-space: pre-line;
}
.pf-bio:empty { display: none; }
.pf-who .stat-pills { margin: 0; }
.pf-who .stat-pills .chip { padding: 6px 14px; font-size: var(--t-small); font-weight: 400; background: var(--c-bg-alt); color: var(--c-ink); }
.pf-jump { margin-top: 6px; }
/* Beside the request card the jump link would point at something in view. */
@media (min-width: 861px) { .pf-jump { display: none; } }

.pf-video video { display: block; width: 100%; border-radius: var(--r-xl); background: #000; }

/* --- what we have checked, and reviews: two sand panels -------------------- */
.pf-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pf-card.pg-card { border: 0; border-radius: var(--r-xl); background: var(--c-bg-alt); padding: clamp(24px, 3.4vw, 40px); }
.pf-h2 { margin-bottom: 22px; font-size: var(--t-sub); font-weight: 600; line-height: 1.14; letter-spacing: 0.007em; color: var(--c-ink); }
.pf-card .trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.pf-card .trust-item .t-ico { font-size: 1rem; }
.pf-card .trust-item .t-ico.muted { background: var(--c-bg); }
.pf-card .review-card { background: var(--c-bg); }
.pf-card .review-card:first-child { margin-top: 0; }
.pf-card .review-card .stars { display: inline-flex; align-items: center; gap: 5px; }
.pf-muted { margin-top: 4px; font-size: var(--t-body); color: var(--c-muted); }

/* --- the request card ------------------------------------------------------ */
.profile-col-book .book-box {
    top: calc(var(--nav-h) + var(--local-h) + 20px);
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--c-line); border-radius: var(--r-lg);
    box-shadow: var(--sh-3);
}
.pf-book-title { margin-bottom: 8px; font-size: var(--t-sub); font-weight: 600; line-height: 1.14; color: var(--c-ink); }
.pf-book-level { margin-bottom: 10px; }
.pf-book-level:empty { display: none; }
.pf-rate { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); font-size: var(--t-small); color: var(--c-muted); }
.pf-rate b { font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.011em; color: var(--c-ink); }
.pf-label { display: block; margin-bottom: 8px; font-size: var(--t-small); font-weight: 600; letter-spacing: -0.01em; color: var(--c-ink); }
.pf-wa { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: var(--t-micro); line-height: 1.5; color: var(--c-muted); }
.pf-wa .et-i { flex: none; margin-top: 1px; color: var(--c-bronze); font-size: 1rem; }
.pf-go { margin-top: 16px; min-height: 54px; font-size: var(--t-body); }
.pf-health { margin-bottom: 14px; font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-2); }
.book-box #expContext .xp-note { margin: 0 0 12px; }
.book-box .protect-note b { display: inline-flex; align-items: center; gap: 6px; }
.book-box .protect-note .et-i { color: var(--c-bronze); }
/* Two short fields that belong together (plan and date, guests and place). */
.pf-fields { display: grid; grid-template-columns: minmax(0, 1fr); }


/* --- the phone bar (in the tab bar's place) -------------------------------- */
@media (max-width: 734px) {
    .m-tabbar.pf-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding-inline: var(--pad);
    }
    .pf-bar-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
    .pf-bar-price small { font-size: var(--t-micro); color: var(--c-muted); }
    .pf-bar-price b { font-size: var(--t-body); font-weight: 600; color: var(--c-ink); white-space: nowrap; }
    .pf-bar .pg-btn { flex: 0 0 auto; min-height: 44px; padding: 10px 20px; font-size: var(--t-small); }
    .pf-bar .pg-btn .et-i { display: none; }
}

@media (max-width: 1100px) {
    .pf-intro { grid-template-columns: minmax(0, 1fr); }
    .pf-gallery { max-width: 520px; }
    .pf-card .trust-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .profile-grid.pf-layout { grid-template-columns: minmax(0, 1fr); }
    .profile-col-book { grid-column: auto; }
    .profile-col-book .book-box { position: static; box-shadow: var(--sh-2); }
    .pf-gallery { max-width: none; }
    .pf-card .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* PHONE: the checks two to a row as small tiles, related fields side by
   side, calmer type. */
@media (max-width: 600px) {
    .pf-wrap { padding-top: 16px; }
    .pf-gallery .pf-photo-main { aspect-ratio: 1 / 1; }
    .pf-intro { gap: 16px; }
    .pf-who { gap: 8px; padding-top: 0; }
    .pf-name { font-size: 2rem; }
    .pf-bio { font-size: var(--t-body); }
    .pf-main { gap: 20px; }
    .pf-cards { gap: 12px; }
    .pf-card.pg-card { padding: 18px 14px; border-radius: var(--r-lg); }
    .pf-h2 { margin-bottom: 12px; font-size: 1.0625rem; }
    .pf-card .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pf-card .trust-item {
        flex-direction: column; gap: 6px;
        padding: 10px; border-radius: var(--r-sm); background: var(--c-bg);
    }
    .pf-card .trust-item .t-ico { width: 28px; height: 28px; font-size: 0.875rem; }
    .pf-card .trust-item h3 { font-size: var(--t-small); }
    .pf-card .trust-item p { font-size: var(--t-micro); line-height: 1.35; }
    .pf-muted { font-size: var(--t-small); }
    .pf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
    .pf-fields .field select, .pf-fields .field input { min-width: 0; }
    .book-box .price-row.total { font-size: 1.0625rem; align-items: baseline; }
    .book-box .price-row.total span:last-child { white-space: nowrap; }
}
