/* The company page (/provider/<slug> of a business with linked boats, villas or priced services), company-page.js. 2026-11-13.
   Ported from the approved mockup (Caribbein vault, _landing-mockups/company-pages/assets/company.css) onto the site's listing shell: it is loaded AFTER /assets/listing-page.css,
   reads the same tokens (chrome.css({ base: true }): --teal, --ink, --line, --sand, --display, --ui ...) and is scoped under body.cpg, so no other page can be touched by it.
   The card rules (.card .ph .badge .cb .chips .cta) are the hub cards' own (hubs.js CSS), so a boat or a villa looks the same here as on its hub. */

/* ---- breadcrumbs (the hubs' look) */
body.cpg .crumbs{font-size:13px;color:var(--muted);padding:0 0 4px}
body.cpg .crumbs a{color:var(--teal-deep);font-weight:600;display:inline-block;padding:8px 2px;margin:-8px -2px;text-decoration:none}
body.cpg .crumbs a:hover{text-decoration:underline}
body.cpg .crumbs span{margin:0 6px;opacity:.5}

/* ---- the company band: the company leads (not one listing) */
body.cpg .cband{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);grid-template-areas:"id stats" "desc stats";gap:8px 36px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-sm);padding:26px 30px;margin:8px 0 22px}
body.cpg .cb-id{grid-area:id;display:flex;gap:18px;align-items:center;min-width:0}
body.cpg .cb-av{position:relative;width:88px;height:88px;border-radius:50%;overflow:hidden;flex:none;box-shadow:0 0 0 3px #fff,0 0 0 4px var(--line),var(--shadow);background:linear-gradient(135deg,var(--teal),var(--gold));display:grid;place-items:center;color:#fff;font-family:var(--display);font-size:38px;font-weight:600}
body.cpg .cb-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}
body.cpg .cb-av.logo img{object-fit:contain;padding:9px}
body.cpg .cb-kind{font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--teal-deep);margin-bottom:2px}
body.cpg .cband h1.ltitle{font-size:clamp(28px,3.6vw,40px);overflow-wrap:anywhere}
body.cpg .cband .lsub{margin:8px 0 0}
body.cpg .cb-desc{grid-area:desc;font-size:16px;line-height:1.7;color:#41454f;margin:6px 0 0;max-width:64ch;white-space:pre-line}
body.cpg .cb-stats{grid-area:stats;display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px}
body.cpg .cb-stat{background:var(--sand);border:1px solid var(--line);border-radius:16px;padding:14px 8px 12px;text-align:center;min-width:0}
body.cpg .cb-stat b{display:block;font-family:var(--display);font-size:22px;font-weight:600;line-height:1.15;color:var(--ink);overflow-wrap:anywhere}
body.cpg .cb-stat span{display:block;font-size:12.5px;color:var(--muted);font-weight:600;margin-top:2px;line-height:1.3}
@media(max-width:980px){
  body.cpg .cband{grid-template-columns:minmax(0,1fr);grid-template-areas:"id" "desc" "stats";padding:20px 18px;gap:10px}
  body.cpg .cb-av{width:68px;height:68px;font-size:30px}
  body.cpg .cb-stats{margin-top:6px}
}
@media(max-width:420px){body.cpg .cb-stat b{font-size:19px}body.cpg .cb-id{gap:12px}}

/* ---- the mosaic: one equal, captioned tile per item */
body.cpg .fleet{margin:0 0 4px}
body.cpg .sec-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}
body.cpg .sec-hd h2{font-family:var(--display);font-size:22px;font-weight:600;margin:0;color:var(--ink)}
body.cpg .sec-hd .fine{font-size:13px;color:var(--muted)}
body.cpg .fleetgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:220px;gap:10px;border-radius:22px;overflow:hidden}
body.cpg .fleetgrid.few{grid-auto-rows:260px}
body.cpg .fleetgrid .gi{position:relative;display:block;overflow:hidden;background:var(--sand-2);color:#fff;min-width:0;text-decoration:none}
body.cpg .fleetgrid .gi img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
body.cpg .fleetgrid .gi:hover img{transform:scale(1.06)}
body.cpg .fleetgrid .cap{position:absolute;left:0;right:0;bottom:0;padding:40px 16px 13px;background:linear-gradient(to top,rgba(12,20,24,.82),rgba(12,20,24,0));font-weight:800;font-size:15px;line-height:1.25}
body.cpg .fleetgrid .cap small{display:block;font-weight:600;font-size:12.5px;opacity:.92;margin-top:1px}
body.cpg .fleetgrid .gi:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
body.cpg .fleetgrid .gi.more img{filter:brightness(.5)}
body.cpg .fleetgrid .gi.more .morelbl{position:absolute;inset:0;display:grid;place-content:center;text-align:center;font-family:var(--display);font-size:32px;font-weight:600;line-height:1.1}
body.cpg .fleetgrid .gi.more .morelbl small{display:block;font-family:var(--ui);font-size:13.5px;font-weight:700;margin-top:4px}
body.cpg .fleet .lgal{margin:0}
body.cpg .fleet .lgallery{height:340px}
body.cpg .fleet .lgallery.solo{height:300px}
@media(max-width:980px){body.cpg .fleetgrid,body.cpg .fleetgrid.few{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:150px}}
@media(max-width:480px){body.cpg .fleetgrid,body.cpg .fleetgrid.few{grid-auto-rows:118px}body.cpg .fleetgrid .cap{padding:26px 10px 9px;font-size:13px}body.cpg .fleetgrid .cap small{font-size:11.5px}}
@media(prefers-reduced-motion:reduce){body.cpg .fleetgrid .gi img{transition:none}body.cpg .fleetgrid .gi:hover img{transform:none}}

/* ---- the catalogue: "What they offer" */
body.cpg .cat{margin:0 0 8px;scroll-margin-top:84px}
body.cpg .cat-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.cpg .cat-hd h2{margin:0}
body.cpg .cat .count{margin:0;font-size:14px;color:var(--muted);font-weight:600}
body.cpg .cat .osub{color:var(--muted);font-size:13.5px;margin:2px 0 0}
body.cpg .tools{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 16px;align-items:center}
body.cpg .tools .lbl{font-size:13px;font-weight:700;color:var(--muted);margin:0 2px 0 6px;text-transform:uppercase;letter-spacing:.06em}
body.cpg .tools .lbl:first-child{margin-left:0}
body.cpg .fchip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font-size:13.5px;font-weight:600;cursor:pointer;color:var(--ink);font-family:inherit;min-height:36px}
body.cpg .fchip:hover{border-color:var(--teal-light)}
body.cpg .fchip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
body.cpg .fchip:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
body.cpg .fchip i{font-style:normal;opacity:.65;font-weight:500;margin-left:4px}
body.cpg .pager{display:flex;margin:0 0 26px}
body.cpg .catgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:12px 0 28px}
body.cpg .catgrid.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1180px){body.cpg .catgrid.c3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body.cpg .catgrid,body.cpg .catgrid.c3{grid-template-columns:minmax(0,1fr)}}
/* the hub card (hubs.js CSS), scoped */
body.cpg .card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
body.cpg .card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
body.cpg .card .ph{position:relative;display:block;aspect-ratio:16/10;background:linear-gradient(135deg,var(--teal-wash),var(--sand-2));overflow:hidden}
body.cpg .card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
body.cpg .card:hover .ph img{transform:scale(1.04)}
body.cpg .card .badge{position:absolute;top:10px;left:10px;background:#fff;border-radius:999px;font-size:11.5px;font-weight:700;padding:4px 10px;box-shadow:var(--shadow-sm);color:var(--teal-deep)}
body.cpg .card .cb{padding:15px 17px 17px;display:flex;flex-direction:column;gap:6px;flex:1}
body.cpg .card .cb h3{font-family:var(--display);font-weight:600;font-size:20px;line-height:1.2;letter-spacing:-.2px;margin:0}
body.cpg .card .cb h3 a{color:var(--ink);text-decoration:none}
body.cpg .card .cb h3 a:hover{text-decoration:underline;text-decoration-color:var(--teal-light)}
body.cpg .card .cb .sub{font-size:13px;color:var(--teal-deep);font-weight:600}
body.cpg .card .chips{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 2px}
body.cpg .card .chips span{font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--sand-2);color:#55506a}
body.cpg .card .chips span.hl{background:var(--teal-wash);color:var(--teal-deep)}
body.cpg .card .trips{font-size:13px;color:#4d5366;line-height:1.5;margin-top:2px}
body.cpg .card .trips b{font-weight:700;color:var(--ink)}
body.cpg .card .trips em{font-style:normal;color:var(--muted)}
body.cpg .card .price{font-family:var(--display);font-size:23px;font-weight:600;line-height:1.1;margin-top:8px;color:var(--ink)}
body.cpg .card .price small{font-family:var(--ui);font-size:12.5px;font-weight:600;color:var(--muted)}
body.cpg .card .price.onreq{font-family:var(--ui);font-size:15px;color:var(--muted)}
body.cpg .card .cta{margin-top:auto;padding-top:12px;display:flex;gap:8px}
body.cpg .card .cta a{flex:1;text-align:center;font-weight:700;font-size:13.5px;padding:10px 12px;border-radius:12px;text-decoration:none}
body.cpg .card .cta .main{background:var(--teal);color:#fff}
body.cpg .card .cta .main:hover{background:var(--teal-deep)}
body.cpg .card .cb h3 a:focus-visible,body.cpg .card a.ph:focus-visible,body.cpg .card .cta a:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
body.cpg .bcard{scroll-margin-top:84px}
body.cpg .bcard:target{box-shadow:0 0 0 3px var(--gold),var(--shadow)}
body.cpg .bcard.hide,body.cpg .bcard.xtra{display:none}
body.cpg .cat.all .bcard.xtra{display:flex}
body.cpg .cat.all .bcard.xtra.hide{display:none}
@media(prefers-reduced-motion:reduce){body.cpg .card,body.cpg .card .ph img{transition:none}body.cpg .card:hover,body.cpg .card:hover .ph img{transform:none}}

/* ---- priced services (the engine's block) and the about facts */
body.cpg .csvc{margin:0 0 8px}
body.cpg .cabout{margin:30px 0 0}
body.cpg .cfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:10px}
body.cpg .cfact{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:var(--shadow-sm);min-width:0}
body.cpg .cfact span{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
body.cpg .cfact b{display:block;font-family:var(--display);font-size:20px;font-weight:600;margin-top:2px;overflow-wrap:anywhere}

/* ---- the side card: about the COMPANY (choose the item first) */
body.cpg .svcside .askt{font-family:var(--display);font-size:25px;font-weight:600;line-height:1.15;color:var(--ink);margin:2px 0 4px;overflow-wrap:anywhere}
body.cpg .ask .svc-compact{position:relative}
body.cpg .ask .sf-l{display:block;font-size:12.5px;font-weight:700;color:var(--muted);margin:16px 0 6px;text-transform:uppercase;letter-spacing:.04em}
body.cpg .ask select{width:100%;border:1px solid #c9d6da;border-radius:10px;padding:11px 10px;font:inherit;background:#fff;color:var(--ink)}
body.cpg .ask select:focus-visible{outline:2px solid #12333a;outline-offset:2px}
body.cpg .ask .svc-btn{margin-top:14px;width:100%}
body.cpg .ask .askhint{font-size:12.5px;color:var(--muted);margin:8px 0 0}
body.cpg .ask .askhint.warn{color:#8a5408;font-weight:700}
body.cpg .askfacts{margin:18px 0 0;padding:14px 0 0;border-top:1px solid var(--line);display:grid;gap:8px;font-size:14px}
body.cpg .askfacts div{display:flex;justify-content:space-between;gap:14px}
body.cpg .askfacts dt{color:var(--muted)}
body.cpg .askfacts dd{font-weight:700;color:var(--ink);text-align:right;margin:0}
body.cpg .ask .svc-cb{margin-top:14px}
body.cpg .sheetx{display:none}
@media(max-width:980px){
  body.cpg .svcside--open .sheetx{display:grid;place-items:center;position:absolute;top:10px;right:12px;width:40px;height:40px;border-radius:50%;border:0;background:#f1ede2;font-size:24px;line-height:1;cursor:pointer;color:var(--ink)}
  body.cpg .lp-main{padding-bottom:110px}
}
/* the claim box and the nearby links of a directory provider, under the about facts */
body.cpg .cdr{max-width:none;margin:26px 0 0}
body.cpg .cdr .dr-near h2{font-family:var(--display);font-size:22px;font-weight:600;margin:22px 0 8px}
