/* Pasabuy — reusable components: filters, avatars/badges/chips, hero, tabs, stepper, "what happens next",
   offers, photos, contact rows, misc. Ported from the prototype. */

/* the browse pages' filter panel (find/travelers/pabili): below lg it's a real Bootstrap offcanvas-bottom
   sheet (its own header with a close button + a sticky "Apply Filters" footer), triggered by a "Filters"
   button — needs Bootstrap's own `position: fixed` left completely alone here, which is why this no longer
   sets `position: static` on narrow screens the way the old `.filter-card` rule it replaces used to (that
   was fighting the offcanvas for control of `position` and pinning it to the page instead of the viewport).
   At lg+ this same markup — same fields, nothing duplicated — is forced back into the normal sticky sidebar
   card it always was: no fixed position, no backdrop, no close/apply chrome. */
.filter-sheet { border-radius: 20px 20px 0 0; }
/* the richer mobile-only filter sheet (Find Padala): section headers, route pickers, tile/pill quick picks */
.fsheet { --bs-offcanvas-height: 92vh; --bs-offcanvas-bg: #fff; border-radius: 22px 22px 0 0; }
.fsheet .offcanvas-header { justify-content: space-between; }
.fsheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d5deee; margin: 10px auto 0; }
.fsec { padding: 1.1rem 0; border-bottom: 1px solid var(--pb-border); }
.fsec-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; color: var(--pb-navy); margin-bottom: .8rem; }
.fsec-title i { font-size: 1.15rem; }
.fpick { position: relative; display: flex; align-items: center; gap: .85rem; border: 1px solid #d5deee; border-radius: 14px; background: #fff; padding: .6rem 1rem; margin: 0; cursor: pointer; }
.fpick > .bi { color: var(--pb-muted); font-size: 1.15rem; }
.fpick small { display: block; color: var(--pb-muted); font-size: .75rem; line-height: 1.2; }
.fpick-val { font-weight: 500; color: var(--pb-text); }
.fpick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ftiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.ftile, .fpill { border: 1px solid transparent; background: var(--pb-bg); color: var(--pb-text); transition: background .12s, border-color .12s; }
.ftile { border-radius: 14px; padding: .75rem .25rem; font-size: .76rem; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.ftile i { font-size: 1.3rem; color: var(--pb-muted); }
.fpills { display: flex; flex-wrap: wrap; gap: .5rem; }
.fpill { border-radius: 12px; padding: .5rem .85rem; font-size: .88rem; }
.ftile.active, .fpill.active { background: var(--pb-primary-soft); border-color: var(--pb-primary); color: var(--pb-primary); }
.ftile.active i { color: var(--pb-primary); }
.fdate { display: flex; align-items: center; gap: .55rem; border: 1px solid #d5deee; border-radius: 14px; background: #fff; padding: .6rem .85rem; }
.fdate i { color: var(--pb-muted); }
.fdate input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: .92rem; color: var(--pb-text); }
.fswitch { display: flex; align-items: center; gap: .8rem; padding-left: 0; }
.fswitch .form-check-input { width: 3rem; height: 1.65rem; margin: 0; float: none; }
@media (min-width: 992px) {
  .filter-sheet.offcanvas.offcanvas-bottom { position: sticky; top: 84px; right: auto; bottom: auto; left: auto; width: auto; height: auto; max-height: none; visibility: visible; transform: none; box-shadow: none; border-radius: var(--pb-radius); }
  .filter-sheet .offcanvas-header .btn-close, .filter-sheet > .p-3.border-top { display: none; }
}

/* avatars, badges, chips */
.pb-avatar { width: var(--sz); height: var(--sz); border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--sz) * .38); flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--pb-border); }
.pb-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.pb-badge.upper { text-transform: uppercase; letter-spacing: .03em; font-size: .68rem; }
.tone-primary { background: var(--pb-primary-soft); color: var(--pb-primary-dark); }
.tone-success { background: var(--pb-success-soft); color: #15803d; }
.tone-warning { background: var(--pb-warning-soft); color: var(--pb-warning); }
.tone-danger { background: var(--pb-danger-soft); color: #b91c1c; }
.tone-info { background: var(--pb-info-soft); color: var(--pb-info); }
.tone-secondary { background: #eef1f6; color: #475569; }
/* verification chips: plain coloured icon + text, no pill background */
.vchip { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; padding: .15rem 0; margin-right: .45rem; }
.vchip.ok { color: #15803d; }
.vchip.pending { color: var(--pb-warning); }
.vchip.no { color: #64748b; }
.vchip.brand { color: #0b4a8f; }
.rating { font-weight: 700; color: var(--pb-navy); }
.rating i { color: #f59e0b; }
.tag { display: inline-block; background: var(--pb-bg); border: 1px solid var(--pb-border); border-radius: 8px; padding: .12rem .5rem; font-size: .75rem; margin: 0 .25rem .25rem 0; color: var(--pb-text); }

/* hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, #3b82f6 0%, transparent 60%), linear-gradient(135deg, #0b1f44 0%, #123a7a 100%); color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; }
.hero p.lead { color: #c9d9f7; max-width: 34rem; }
.hero .btn-light { color: var(--pb-navy); }
.hero-card { background: rgba(255, 255, 255, .97); border-radius: 22px; color: var(--pb-text); box-shadow: 0 30px 60px rgba(0, 0, 0, .28); padding: 1.25rem; max-width: 380px; margin-left: auto; transform: rotate(1.5deg); }
.hero-plane { position: absolute; right: -40px; top: 30px; font-size: 14rem; color: rgba(255, 255, 255, .05); transform: rotate(-12deg); }
.stat-strip { margin-top: -2.4rem; position: relative; z-index: 2; }
.stat-strip .pb-card { padding: 1.1rem 1.25rem; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--pb-navy); line-height: 1; }
.route-pill { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; }
.route-pill .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--pb-primary-soft); color: var(--pb-primary); display: grid; place-items: center; }
.how-step { text-align: center; padding: 1.1rem .75rem; height: 100%; }
.how-step .n { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto .6rem; background: var(--pb-primary-soft); color: var(--pb-primary); display: grid; place-items: center; font-size: 1.3rem; }
.how-step h6 { margin-bottom: .2rem; }
.quote { font-size: 1.02rem; color: var(--pb-navy); font-weight: 500; }

/* filters: positioning now lives on .filter-sheet above (superseded the old .filter-card rules, which were
   fighting the offcanvas-bottom sheet for control of `position` on narrow screens) */
.chip-check { display: inline-flex; margin: 0 .3rem .3rem 0; }
.chip-check input { display: none; }
.chip-check span { border: 1px solid #d5deee; border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; cursor: pointer; user-select: none; background: #fff; }
.chip-check input:checked + span { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; }

/* tabs */
.pb-tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; margin-bottom: 1.25rem; border-bottom: 1px solid var(--pb-border); }
.pb-tabs button, .pb-tabs a { border: 0; background: transparent; padding: .6rem .95rem; font-weight: 600; color: var(--pb-muted); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pb-tabs button.active, .pb-tabs a.active { color: var(--pb-primary); border-color: var(--pb-primary); }
.pb-tabs .n { background: #eef1f6; color: #475569; border-radius: 999px; font-size: .7rem; padding: .05rem .45rem; margin-left: .3rem; }
.pb-tabs button.active .n { background: var(--pb-primary-soft); color: var(--pb-primary); }

/* transaction: stepper */
.pb-steps { list-style: none; margin: 0; padding: 0; }
.pb-steps li { position: relative; display: flex; gap: .85rem; padding-bottom: 1.1rem; }
.pb-steps li:last-child { padding-bottom: 0; }
.pb-steps li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--pb-border); }
.pb-steps li:last-child::before { display: none; }
.pb-steps li.done::before { background: var(--pb-success); }
.pb-steps .dot { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--pb-border); color: #a3b0c7; font-size: .9rem; z-index: 1; }
.pb-steps li.done .dot { background: var(--pb-success); border-color: var(--pb-success); color: #fff; }
.pb-steps li.current .dot { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; box-shadow: 0 0 0 5px rgba(37, 99, 235, .18); animation: pulse 1.8s infinite; }
.pb-steps li.stop .dot { background: var(--pb-danger); border-color: var(--pb-danger); color: #fff; }
.pb-steps .lbl { padding-top: .25rem; font-weight: 600; color: var(--pb-navy); }
.pb-steps li.todo .lbl { color: #94a3b8; font-weight: 500; }
.pb-steps .lbl small { display: block; font-weight: 400; color: var(--pb-muted); font-size: .76rem; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); } 50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, .06); } }
.mini-progress { height: 6px; border-radius: 99px; background: #e8edf6; overflow: hidden; }
.mini-progress > div { height: 100%; background: linear-gradient(90deg, #2563eb, #38bdf8); border-radius: 99px; }
.mini-progress.done > div { background: var(--pb-success); }

/* "what happens next" */
.next-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pb-muted); margin-bottom: .4rem; }
.next-card { display: flex; gap: 1rem; padding: 1.25rem 1.35rem; border-radius: var(--pb-radius); border: 1px solid; align-items: flex-start; }
.next-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; flex: none; background: #fff; }
.next-card .lab { font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.next-card h5 { margin: .1rem 0 .2rem; font-size: 1.15rem; }
.next-card.action { background: #eef4ff; border-color: #b9d0fb; } .next-card.action .ico, .next-card.action .lab { color: var(--pb-primary); }
.next-card.waiting { background: var(--pb-warning-soft); border-color: #f6d8ac; } .next-card.waiting .ico, .next-card.waiting .lab { color: var(--pb-warning); }
.next-card.info { background: var(--pb-info-soft); border-color: #b5e2ec; } .next-card.info .ico, .next-card.info .lab { color: var(--pb-info); }
.next-card.success { background: var(--pb-success-soft); border-color: #b9e5c8; } .next-card.success .ico, .next-card.success .lab { color: var(--pb-success); }
.next-card.danger { background: var(--pb-danger-soft); border-color: #f5bcbc; } .next-card.danger .ico, .next-card.danger .lab { color: var(--pb-danger); }

/* offer-detail.js: one card per traveler offer, left accent shows status at a glance */
.offer-item { border: 1px solid var(--pb-border); border-left: 4px solid var(--pb-border); border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: .75rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.offer-item:last-child { margin-bottom: 0; }
.offer-item.needs-action { border-left-color: var(--pb-warning); box-shadow: 0 2px 10px rgba(194, 97, 12, .08); }
.offer-item.is-accepted { border-left-color: var(--pb-success); }
.offer-item.is-resolved { border-left-color: var(--pb-border); background: var(--pb-bg); }
.offer-item .fee { font-size: 1.3rem; }

/* photos */
.photo-tile { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, #dbeafe, #f0f9ff); border: 1px solid var(--pb-border); display: grid; place-items: center; color: #7c93bd; font-size: 1.6rem; position: relative; overflow: hidden; }
.photo-tile span { position: absolute; bottom: 4px; left: 8px; font-size: .62rem; color: #64748b; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-drop { border: 2px dashed #c3cde2; border-radius: 14px; padding: 1.25rem; text-align: center; background: #fafbfe; cursor: pointer; display: block; }
.upload-drop:hover { border-color: var(--pb-primary); background: var(--pb-primary-soft); }

/* contact & social: locked rows show a blurred mask (never the real value) until the viewer's tier allows it */
.contact-row .blur-val { filter: blur(4.5px); user-select: none; pointer-events: none; }
.contact-row.is-locked > .flex-grow-1 { color: var(--pb-muted, #64748b); }
.view-toggle .btn { padding: .35rem .6rem; }
.stat-tile { text-align: center; padding: 1rem .5rem; }
.stat-tile .num { font-size: 1.6rem; font-weight: 800; color: var(--pb-navy); line-height: 1.1; }
.stat-tile .lbl { font-size: .75rem; color: var(--pb-muted); font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #d3dbe9; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }

.copy-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--pb-bg); border: 1px solid var(--pb-border); border-radius: 8px; padding: .1rem .5rem; font-weight: 700; color: var(--pb-navy); }

.route-pill { flex-wrap: wrap; }
.route-pill > span:first-child { min-width: 0; flex: 1 1 auto; }

.flow-row { row-gap: .25rem; }
.flow-arrow { color: var(--pb-primary); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }

/* register: role pick cards */
.role-pick { cursor: pointer; }
.role-pick .form-check-input { width: 1.25rem; height: 1.25rem; margin: 0; }
.role-pick:has(.form-check-input:checked) { border-color: var(--pb-primary); box-shadow: 0 0 0 3px var(--pb-primary-soft); }

/* whole-card links (data-href, see app.js) */
[data-href] { cursor: pointer; }

/* "Request this traveler" modal (trip detail) */
.tr-modal { border-radius: 22px; }
.tr-modal .modal-header, .tr-modal .modal-body { padding-left: 1.75rem; padding-right: 1.75rem; }
.tr-modal .modal-header { padding-top: 1.5rem; }
.tr-modal .modal-footer { padding: .9rem 1.75rem 1.1rem; border-top: 1px solid var(--pb-border); }
.tr-trip { display: flex; align-items: center; gap: 1rem; background: var(--pb-primary-soft); border-radius: 14px; padding: 1rem 1.15rem; }
.tr-trip-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #d7e4fc; color: var(--pb-primary); display: grid; place-items: center; font-size: 1.3rem; }
.tr-step { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.tr-num { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--pb-primary-soft); color: var(--pb-primary); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.tr-soft, .tr-soft[readonly] { background: var(--pb-bg); }
.tr-pin { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-size: 1.15rem; }
.tr-pin a { margin: 0 !important; }
.handover-card { display: flex; align-items: flex-start; gap: .75rem; border: 1px solid var(--pb-border); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; margin: 0; }
.handover-card .form-check-input { margin-top: .2rem; flex: none; width: 1.25rem; height: 1.25rem; }
.handover-card:has(input:checked) { border-color: var(--pb-primary); background: var(--pb-primary-soft); }
.handover-card:has(input:focus-visible) { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25); }
@media (min-width: 576px) { .tr-dialog { max-width: 620px; } }
.handover-card .form-check-input:not(:checked) { background-color: #fff; border-color: #c3cde2; }

/* infinite scroll skeletons (includes/infinite_sentinel.html) */
.sk { display: block; background: linear-gradient(90deg, #e8edf5 25%, #f3f6fb 50%, #e8edf5 75%); background-size: 200% 100%; animation: sk-shimmer 1.2s ease-in-out infinite; border-radius: 8px; }
.sk-line { height: .8rem; }
.sk-circle { --sz: 44px; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none; }
.sk-card { box-shadow: none; }
@keyframes sk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
/* match the skeleton to the card/list view the visitor picked (filters.js sets data-viewmode on <html>) */
.sk-rows, [data-viewmode="list"] .sk-cards { display: none; }
[data-viewmode="list"] .sk-rows { display: block; }
/* real ?page= links stay as the fallback; hidden once HTMX is running */
.htmx-ready [data-pager] { display: none; }

/* Settings → Profile card */
.pf-head-ico { width: 48px; height: 48px; border-radius: 50%; background: #eef1f6; color: #475569; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.pf-photo-panel { background: var(--pb-bg); border-radius: 16px; padding: 1.25rem; height: 100%; }
.pf-avatar-wrap { position: relative; width: 160px; height: 160px; }
.pf-avatar-wrap .pb-avatar { --sz: 160px !important; font-size: 3rem; }
.pf-cam { position: absolute; right: 4px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--pb-primary); color: #fff; display: grid; place-items: center; border: 3px solid #fff; cursor: pointer; margin: 0; }
.pf-cam:hover { background: var(--pb-primary-dark); }
.pf-status { display: flex; gap: .75rem; align-items: flex-start; border-radius: 12px; padding: .85rem 1rem; }
.pf-status > .bi { font-size: 1.4rem; line-height: 1; }
.pf-status.ok { background: var(--pb-success-soft); color: #166534; }
.pf-status.no { background: var(--pb-warning-soft); color: var(--pb-warning); }
.pf-card .input-group-text { background: #fff; color: var(--pb-muted); }

/* Manage Trip */
.mt-table { --bs-table-bg: #fff; }  /* white table (header included) */
.mt-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: var(--pb-bg); border-radius: 12px; padding: .75rem 1rem; }
.mt-detail { display: flex; gap: .85rem; padding: .45rem 0; }
.mt-detail > .bi { font-size: 1.1rem; color: var(--pb-muted); width: 20px; flex: none; margin-top: .1rem; }
.mt-detail .k { font-size: .8rem; color: var(--pb-muted); font-weight: 400; }
.mt-detail .v { font-weight: 500; }
/* ---- Transaction page: payment total + collapsed "fold" sections (payment activity, activity log) ---- */
.pay-total { background: var(--pb-bg); border-radius: 12px; padding: .75rem 1rem; }
.pay-total > div + div { margin-top: .15rem; }
.fold-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.fold > .fold-toggle > span:first-child { font-weight: 600; font-size: .9rem; }
.fold-hint { color: var(--bs-primary); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.fold-hint .bi { transition: transform .2s; display: inline-block; }
.fold-toggle[aria-expanded="true"] .fold-hint .bi { transform: rotate(180deg); }
.fold-toggle[aria-expanded="true"] .when-closed, .fold-toggle[aria-expanded="false"] .when-open { display: none; }
.fold + .fold, #panel-payment .fold { border-top: 1px solid var(--pb-border, #e5e7eb); padding-top: .75rem; }

/* ---- Transaction page: package handover steps (inspect & accept → received) ---- */
.handover-steps { border-top: 1px solid var(--pb-border); margin-top: 1rem; padding-top: 1rem; display: grid; gap: 1rem; }
.hstep { display: flex; gap: .75rem; align-items: flex-start; }
.hstep-n { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  border: 2px solid var(--pb-border); color: #94a3b8; background: #fff; }
.hstep.current .hstep-n { border-color: var(--bs-primary); color: var(--bs-primary); }
.hstep.done .hstep-n { border-color: #16a34a; background: #16a34a; color: #fff; }

/* ---- Transaction page: collapsible sections (stable order; current step open, the rest folded) ---- */
.sec-toggle { display: flex; width: 100%; align-items: center; gap: .6rem; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.sec-toggle h5 { flex: 1 1 auto; min-width: 0; }
.sec-chip { flex: 0 0 auto; }
.sec-chev { flex: 0 0 auto; color: #94a3b8; transition: transform .2s; }
.sec-toggle[aria-expanded="true"] .sec-chev { transform: rotate(180deg); }
.sec-toggle:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 4px; border-radius: 6px; }

/* ---- My Padala / My Trips: table (≥ md) / cards (phone) ---- */
.mylist-search { flex: 0 1 340px; min-width: 220px; }
.mylist-table tbody tr[data-href] { cursor: pointer; }
.mylist-table { --bs-table-bg: #fff; } /* white cells (Bootstrap tables otherwise take the page's tinted background) */
.mylist-table tbody tr[data-href]:hover > td { background-color: #f8fafc; }
.mylist-table .dropdown > .btn { background: transparent; }
.mylist-table th { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: #64748b; font-weight: 600; }
.mylist-table td, .mylist-table th { padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 767.98px) { .mylist-search { flex: 1 1 100%; } }
.mylist-ico { display: inline-flex; align-items: flex-start; gap: .5rem; }
.mylist-ico > .bi { color: #94a3b8; font-size: 1rem; line-height: 1.4; flex: 0 0 auto; }
div.mylist-ico { display: flex; }
.mylist-table th:last-child { position: relative; } /* keeps the visually-hidden "More" label inside the table's scroll box */
@media (max-width: 1199.98px) { .mylist-table td, .mylist-table th { padding-left: .5rem; padding-right: .5rem; } }
.route-flags { display: inline-flex; align-items: center; gap: .45rem; }
.route-flags .fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); flex: 0 0 auto; }

/* ---- Pasabuy Verified ✓ next to a name (like Facebook) ---- */
.pv-check { display: inline-block; margin-left: .3em; color: #0866ff; font-size: .9em; line-height: 1; vertical-align: .02em; cursor: pointer; border-radius: 50%; }
.pv-check:focus-visible { outline: 2px solid #0866ff; outline-offset: 2px; }

/* ---- Send Padala page: "Already saved this package?" — each saved Padala is one clear, selectable card ---- */
.saved-pkg { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--pb-border); border-radius: 14px; background: #fff;
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s, box-shadow .15s; }
.saved-pkg:hover, .saved-pkg:focus-visible { border-color: var(--bs-primary); background: var(--pb-primary-soft); box-shadow: 0 4px 14px rgba(37, 99, 235, .12); }
.saved-pkg:hover .saved-pkg-btn { background: var(--bs-primary); color: #fff; }
.saved-pkg-ico { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--pb-primary-soft); color: var(--bs-primary); font-size: 1.15rem; }
.saved-pkg-btn { flex: 0 0 auto; white-space: nowrap; }
.saved-or { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; color: #94a3b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.saved-or::before, .saved-or::after { content: ""; flex: 1; border-top: 1px solid var(--pb-border); }
@media (max-width: 575.98px) { .saved-pkg { flex-wrap: wrap; } .saved-pkg > .flex-grow-1 { flex: 1 1 0; } .saved-pkg-btn { width: 100%; text-align: center; } }

/* ---- Settings: Profile & Verification ---- */
.set-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.set-nav a { font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--pb-border); color: var(--pb-navy, #0b1f44); text-decoration: none; }
.set-nav a:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.set-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.set-rows { border-top: 1px solid var(--pb-border); }
.set-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--pb-border); }
@media (max-width: 575.98px) { .set-row { grid-template-columns: 70px minmax(0, 1fr) auto; } .set-row > :last-child { grid-column: 1 / -1; text-align: left !important; } .set-row > :last-child:empty { display: none; } }
.tv-list li { padding: .2rem 0; color: #64748b; }
.tv-list li .bi { color: #cbd5e1; }
.tv-list li.done { color: inherit; }
.tv-list li.done .bi { color: #16a34a; }
#account, #identity, #address, #profile, #traveler { scroll-margin-top: 90px; }
/* Account information: email / phone with their status inside the field */
.acc-field .form-control[readonly] { background: #f8fafc; color: var(--pb-navy, #0b1f44); }
.acc-field .input-group-text { background: #fff; color: #94a3b8; }
.acc-field .acc-status { font-size: .8rem; font-weight: 600; gap: .3rem; }
.acc-field .acc-status.ok { color: #15803d; }
.acc-field .acc-status.no { color: #b45309; }
@media (max-width: 575.98px) {
  .acc-field > .input-group-text:first-child { display: none; }  /* more room for the address/number */
  .acc-field .acc-status .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* icon only, still read out */
  .acc-field > .form-control { border-top-left-radius: var(--bs-border-radius) !important; border-bottom-left-radius: var(--bs-border-radius) !important; }
}
@media (max-width: 575.98px) { .acc-actions > * { flex: 1 1 0; white-space: nowrap; padding-left: .5rem; padding-right: .5rem; } }
/* Account information: public-name choice (John C. / John Cruzado) */
.pubname-opt { display: flex; align-items: flex-start; gap: .55rem; padding: .6rem .85rem; border: 1px solid var(--pb-border); border-radius: 12px; cursor: pointer; background: #fff; flex: 1 1 180px; margin: 0; }
.pubname-opt input { margin-top: .25rem; }
.pubname-opt:has(input:checked) { border-color: var(--bs-primary); background: var(--pb-primary-soft); }

/* ---- Public profile ---- */
.prof-h { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .75rem; }
.prof-h > .bi { color: var(--bs-primary); }
.prof-trip { display: flex; flex-direction: column; border: 1px solid var(--pb-border); border-radius: 14px; padding: 1rem; background: #fff; }
.prof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--pb-border); }
.prof-stats .k { font-size: .8rem; color: #64748b; }
.prof-stats .v { font-weight: 700; white-space: nowrap; }
.prof-summary li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--pb-border); color: #64748b; }
.prof-summary li:last-child { border-bottom: 0; }
.prof-summary li.done { color: inherit; }
.prof-summary li .bi { color: #cbd5e1; }
.prof-summary li.done .bi { color: #16a34a; }
.prof-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: var(--pb-bg); border-radius: 12px; padding: .75rem 1rem; }
@media (max-width: 400px) { .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.see-more[aria-expanded="true"] .when-closed, .see-more[aria-expanded="false"] .when-open { display: none; }
/* Continue with Google (includes/google_button.html) */
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; background: #fff; border: 1px solid var(--pb-border); color: var(--pb-text); font-weight: 600; }
.btn-google:hover, .btn-google:focus { background: var(--pb-bg); border-color: #c6cfdc; color: var(--pb-text); }
.or-divider { display: flex; align-items: center; gap: .75rem; color: #8a97ad; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--pb-border); }
/* Privacy Policy / Terms of Service (core/privacy.html, core/terms.html) */
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .6rem; color: var(--pb-navy); }
.legal h3 { font-size: .98rem; font-weight: 700; margin: 1.1rem 0 .4rem; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
/* Deliver to (includes/deliver_to.html) */
.deliver-to { padding: .85rem 1rem; border-radius: 12px; background: var(--pb-bg); }
.deliver-to .small { margin-top: .2rem; }
/* sub-group headings inside one form card (pasabuy/_route_section.html) */
.fgroup { font-size: .95rem; font-weight: 700; color: var(--pb-navy); margin: .75rem 0 0; padding-top: 1rem; border-top: 1px solid var(--pb-border); }
.fgroup.first { margin-top: 0; padding-top: 0; border-top: 0; }
.fgroup .bi { color: var(--pb-primary); }
/* Trip Manager · Customers & Bookings: a table on desktop, one compact card per booking on phones and tablets (same markup, so
   search / status filter / checkboxes / bulk actions keep working) */
@media (max-width: 991.98px) {
  .mt-tools > * { max-width: none !important; flex: 1 1 100%; }
  #bookingsTable { overflow: visible; }
  .mt-table, .mt-table tbody { display: block; }
  .mt-table thead { display: none; }
  .mt-table tr { display: grid; grid-template-columns: 26px auto 1fr auto; grid-template-areas: "sel cust cust act" ". pkg pkg fee" ". pay status status";
                 align-items: center; gap: .45rem .5rem; padding: .85rem .25rem; border-bottom: 1px solid var(--pb-border); }
  .mt-table tr:last-child { border-bottom: 0; }
  .mt-table td { display: block; border: 0; padding: 0; background: none; }
  .mt-table .c-sel { grid-area: sel; } .mt-table .c-cust { grid-area: cust; min-width: 0; } .mt-table .c-act { grid-area: act; }
  .mt-table .c-pkg { grid-area: pkg; font-size: .9rem; } .mt-table .c-fee { grid-area: fee; text-align: right; }
  .mt-table .c-pay { grid-area: pay; } .mt-table .c-status { grid-area: status; }
}
@media (min-width: 992px) { .mt-table .pkg-cat { display: block; font-size: .85em; } .mt-table .pkg-dot { display: none; } }
/* confirm modal (app.js — every data-confirm) */
.pb-confirm .modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); }
.pb-confirm .modal-dialog { max-width: 420px; }
.pb-confirm-ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
                  background: var(--pb-primary-soft); color: var(--pb-primary); }
.pb-confirm-ico.danger { background: #fdecec; color: var(--bs-danger); }
.pb-confirm-title { font-weight: 700; color: var(--pb-navy); }
.pb-confirm-text { font-size: .95rem; }
/* Trip Manager · Trip Summary: compact tiles — 4 in a row, 2 × 2 on phones */
.sum-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.sum-tiles > div { background: var(--pb-bg); border-radius: 12px; padding: .6rem .75rem; min-width: 0; }
@media (max-width: 767.98px) { .sum-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* steps side by side on phones (wrap the include in .steps-h-sm) — Travel updates */
@media (max-width: 767.98px) {
  .steps-h-sm .pb-steps { display: flex; }
  .steps-h-sm .pb-steps li { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding-bottom: 0; }
  .steps-h-sm .pb-steps li::before { left: calc(50% + 18px); right: calc(-50% + 18px); top: 15px; bottom: auto; width: auto; height: 2px; }
  .steps-h-sm .pb-steps .lbl { padding-top: 0; font-size: .85rem; }
  .steps-h-sm .pb-steps .lbl small { font-size: .7rem; }
}
.is-locked-card .pb-steps, .is-locked-card .steps-h-sm { opacity: .45; filter: grayscale(1); }  /* Travel updates before the package is received */
/* trip page: the trip at a glance — row 1 (.top): departure | airline / flight (one line), row 2: available | rate | minimum fee */
.trip-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem 1rem; }
.trip-stats.top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.trip-stats .k { white-space: nowrap; }
@media (min-width: 1200px) {  /* desktop: all five in one row (the two inner grids flow into one, no divider) */
  .trip-glance { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
  .trip-glance > .trip-stats { display: contents; }
  .trip-glance > hr { display: none; }
}
@media (max-width: 575.98px) {  /* phones: departure / airline stacked (airline on one line), smaller labels so 3 fit below */
  .trip-stats.top { grid-template-columns: 1fr; gap: .6rem; }
  .trip-stats { gap: .6rem .75rem; }
  .trip-stats .k { font-size: .68rem; letter-spacing: .02em; }
}
.trip-stats .fs-5 { font-size: 1.05rem !important; }  /* a step down from fs-5 — calmer card */
.trip-stats .fee { font-size: 1.15rem; }
/* trip page, stacked (< lg): the side box sits right above the stats card — no doubled gap */
@media (max-width: 991.98px) {
  .trip-cols { --bs-gutter-y: 1rem; }
  .trip-cols > .col-lg-4 > .pb-card:last-child { margin-bottom: 0 !important; }
  .trip-cols > .col-lg-8 > .pb-card, .trip-cols > .col-lg-8 > section { margin-bottom: 1rem !important; }  /* same 16 px between every card */
}
.trip-stats > div > div:nth-child(2) { font-weight: 500 !important; color: var(--pb-text); }  /* values slightly bolder than their labels */  /* values: plain body text, like "Not accepted: …" */
.trip-stats .fee { color: var(--pb-primary) !important; }  /* the rate keeps its blue */
.trip-stats .k { text-transform: none !important; font-weight: 400 !important; letter-spacing: 0 !important; font-size: .8333rem !important; }  /* labels like "Not accepted:" — plain, grey */
/* contact rows: label small + grey (like "Not accepted:"), value dark and readable */
.contact-row .contact-val { color: var(--pb-text); font-weight: 400; }
.contact-row .contact-val a { color: var(--pb-primary); }
/* trip page · Accepted items: addresses not bold */
.trip-accepted .point-val { color: var(--pb-text); font-weight: 400; font-size: .95rem; }
/* trip page: label and value the same size everywhere (only the colour differs) — stats, contact & social, accepted items */
.trip-stats .k, .trip-stats > div > div:nth-child(2), .trip-stats .fee, .trip-stats .fs-5,
.trip-accepted .text-muted.mb-1, .trip-accepted .point-val, .trip-accepted > .small,
.trip-cols .contact-row .small.text-muted, .trip-cols .contact-row .contact-val { font-size: .9rem !important; }
@media (max-width: 575.98px) { .trip-stats .k { font-size: .9rem !important; } }
/* Padala page: the same type as the trip page — labels plain grey, label and value the same size, values regular weight */
.info-type .k { text-transform: none !important; font-weight: 400 !important; letter-spacing: 0 !important; font-size: .9rem !important; }
.info-type .pd-stats .row > div > div:nth-child(2) { font-size: .9rem !important; font-weight: 500 !important; color: var(--pb-text); }
.info-type .pd-stats .fee { color: var(--pb-primary) !important; }
.pkg-info .small, .pkg-info ul, .pkg-info p { font-size: .9rem !important; }  /* package details (Padala + transaction): one size for labels and values */
.info-type .contact-row .small.text-muted, .info-type .contact-row .contact-val { font-size: .9rem !important; }
@media (max-width: 991.98px) {  /* Padala page stacked: even 16 px between cards, like the trip page */
  .info-type { --bs-gutter-y: 1rem; }
  .info-type > .col-lg-4 > .pb-card:last-child { margin-bottom: 0 !important; }
  .info-type > .col-lg-8 > .pb-card, .info-type > .col-lg-8 > section { margin-bottom: 1rem !important; }
}
/* Labels above user-entered values: small, grey, normal case, regular weight (like "Mobile" in Contact & social).
   Section captions that name a card (TRAVELER, CUSTOMER, CONTACT & SOCIAL) keep their uppercase style. */
