/* PJCC Tools - the Trip Pricer results page ([pjcc_trip_pricer])
 *
 * Scoped under .pjcc-tp. The colours are custom properties on .pjcc-tp, so the
 * theme can restyle the whole page from one place. Values follow the live PJCC
 * theme (charter-site/BRAND.md): square panels, 4px controls, the PJCC greens
 * for filters, and the orange Brett asked for on the Trip Pricer's call to
 * action (Aug 20, 2026), so it is the one thing on the page that stands out.
 * Fonts are inherited; headings use Petrona where the theme loads it.
 */
.pjcc-tp {
  --pjcc-tp-ink: #1f2a2a;
  --pjcc-tp-muted: #586663;
  --pjcc-tp-green: #6b7c35;
  --pjcc-tp-green-dark: #56690d;
  --pjcc-tp-green-soft: #eef4e6;
  /* Oct 12, 2026 (Brett: "mild contrast ... the filter bar on the left or anywhere else"):
     a soft green tint for the panels and a firmer edge for the buttons on it */
  /* duller on Brett's second look (Oct 12: "slightly more dull"), then a step lighter in
     the same muted green on his third ("a little lighter again") */
  --pjcc-tp-tint: #f5f7f2;
  --pjcc-tp-control-line: #b3bca7;
  --pjcc-tp-accent-line: #a0a98f;
  --pjcc-tp-accent-line-light: #b9c0ac;
  --pjcc-tp-line: #c4ceb2;
  --pjcc-tp-panel: #ffffff;
  --pjcc-tp-cta: #ea5b3a;
  --pjcc-tp-cta-dark: #c9472a;
  --pjcc-tp-cta-soft: #fff3ef;
  --pjcc-tp-warn: #8a5a3b;
  --pjcc-tp-serif: 'Petrona', Georgia, 'Times New Roman', serif;
  color: var(--pjcc-tp-ink);
  line-height: 1.5;
}
.pjcc-tp *, .pjcc-tp *::before, .pjcc-tp *::after { box-sizing: border-box; }
.pjcc-tp [hidden] { display: none !important; }
.pjcc-tp button, .pjcc-tp input { font: inherit; }

/* ---- the page --------------------------------------------------------------
   The shortcode lays its own page out, as the dashboard preview shows it: a
   centred column up to 1180px with the theme's side padding, 14px text in
   PJCC's ink. So it looks the same in a full-width block with no wrapper. */
.pjcc-tp-page {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px var(--layout-x-padding, 18px) 48px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2a2a;
  text-align: left;
}

/* The PJCC theme starts from a reset that unsets every element's browser
   styles (all: unset). The dashboard preview has no such reset, so these
   restate the browser defaults this page relies on; with them the two match. */
.pjcc-tp b { font-weight: 700; }
.pjcc-tp em { font-style: italic; }
.pjcc-tp button { text-align: center; }
/* focus rings: the reset removes the browser's, so every control gets one */
.pjcc-tp button:focus-visible, .pjcc-tp a:focus-visible, .pjcc-tp summary:focus-visible {
  outline: 2px solid var(--pjcc-tp-ink);
  outline-offset: 2px;
}
.pjcc-tp .pjcc-tp-name-input:focus,
.pjcc-tp .pjcc-tp-email-input:focus {
  outline: 2px solid var(--pjcc-tp-green);
  outline-offset: 1px;
  border-color: var(--pjcc-tp-green);
}

/* ---- the results page's own search form ----------------------------------
   trip-pricer-form.css lays the form out (one row on a wide page, one field
   per row on a phone). Here it only gets its space, and keeps the Type of
   Aircraft buttons on phones too: on this page the cabin decides the answer.
   Oct 14, 2026: no title or dark band of our own; the site's page header
   names the page (Brett: "the live site will have a similar header already").
   The extra room below the form (Oct 12, "add more space") stays. */
.pjcc-tp-page form.pjcc-tpf { margin: 0 0 32px; }
.pjcc-tp-page form.pjcc-tpf .pjcc-tpf-cabin { display: block; }
@media (max-width: 720px) {
  .pjcc-tp-page form.pjcc-tpf { margin-bottom: 24px; }
}

/* ---- the route, like Jettly's "PHX ....... SMO" line -------------------- */
.pjcc-tp .pjcc-tp-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin: 0 0 22px;
  background: var(--pjcc-tp-tint);
  border: 1px solid var(--pjcc-tp-line);
}
.pjcc-tp .pjcc-tp-end { display: flex; flex-direction: column; min-width: 0; }
.pjcc-tp .pjcc-tp-end.is-arr { text-align: right; align-items: flex-end; }
.pjcc-tp .pjcc-tp-code { font-size: 1.6em; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.pjcc-tp .pjcc-tp-place { color: var(--pjcc-tp-muted); font-size: 0.9em; }
.pjcc-tp .pjcc-tp-abroad {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0 6px;
  font-size: 0.72em;
  font-weight: 700;
  color: #fff;
  background: var(--pjcc-tp-warn);
  border-radius: 4px;
}
.pjcc-tp .pjcc-tp-end.is-arr .pjcc-tp-abroad { align-self: flex-end; }
.pjcc-tp .pjcc-tp-leg { position: relative; text-align: center; min-width: 0; }
.pjcc-tp .pjcc-tp-line {
  display: block;
  height: 0;
  margin: 10px 0 8px;
  border-top: 2px dashed var(--pjcc-tp-green);
  opacity: 0.6;
}
.pjcc-tp .pjcc-tp-leg-text { font-size: 0.85em; font-weight: 600; color: var(--pjcc-tp-muted); white-space: nowrap; }
.pjcc-tp .pjcc-tp-warn { grid-column: 1 / -1; margin: 0; color: var(--pjcc-tp-warn); font-weight: 600; font-size: 0.9em; }

/* ---- layout: filters left, answer right --------------------------------- */
.pjcc-tp .pjcc-tp-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.pjcc-tp .pjcc-tp-filters-toggle { display: none; }

/* ---- filters ------------------------------------------------------------- */
.pjcc-tp .pjcc-tp-filters {
  padding: 18px;
  background: var(--pjcc-tp-tint);
  border: 1px solid var(--pjcc-tp-line);
  border-top: 4px solid var(--pjcc-tp-accent-line);
}
.pjcc-tp .pjcc-tp-filters-title { margin: 0 0 12px; font-family: var(--pjcc-tp-serif); font-size: 1.2em; font-weight: 600; }
.pjcc-tp .pjcc-tp-frow { padding: 12px 0; border-top: 1px solid var(--pjcc-tp-line); }
.pjcc-tp .pjcc-tp-frow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pjcc-tp .pjcc-tp-frow-label { font-size: 0.85em; font-weight: 700; }
.pjcc-tp .pjcc-tp-info {
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0.72em;
  font-weight: 700;
  font-style: italic;
  line-height: 18px;
  color: var(--pjcc-tp-green);
  background: #fff;
  border: 1px solid var(--pjcc-tp-control-line);
  border-radius: 50%;
  cursor: pointer;
}
.pjcc-tp .pjcc-tp-note { margin: 0 0 8px; font-size: 0.82em; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pjcc-tp .pjcc-tp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--pjcc-tp-ink);
  background: #fff;
  border: 1px solid var(--pjcc-tp-control-line);
  border-radius: 4px;
  cursor: pointer;
}
.pjcc-tp .pjcc-tp-pill:hover { border-color: var(--pjcc-tp-green); }
.pjcc-tp .pjcc-tp-pill.is-on { color: #fff; background: var(--pjcc-tp-green); border-color: var(--pjcc-tp-green); }
.pjcc-tp .pjcc-tp-pill.is-locked { color: var(--pjcc-tp-muted); background: #fbfcf8; border-style: dashed; cursor: help; }
.pjcc-tp .pjcc-tp-pill:focus-visible, .pjcc-tp .pjcc-tp-info:focus-visible, .pjcc-tp .pjcc-tp-sort:focus-visible {
  outline: 2px solid var(--pjcc-tp-ink);
  outline-offset: 2px;
}

/* ---- the answer ---------------------------------------------------------- */
.pjcc-tp .pjcc-tp-main { min-width: 0; }
.pjcc-tp .pjcc-tp-status { color: var(--pjcc-tp-muted); font-style: italic; }
.pjcc-tp .pjcc-tp-status:empty { display: none; }
.pjcc-tp.is-busy .pjcc-tp-answer { opacity: 0.55; transition: opacity 0.2s; }
.pjcc-tp .pjcc-tp-headline h2 {
  margin: 0 0 8px;
  font-family: var(--pjcc-tp-serif);
  font-size: 1.55em;
  font-weight: 600;
  line-height: 1.3;
}
.pjcc-tp .pjcc-tp-caveat { margin: 0 0 16px; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-hint { margin: 1em 0; font-weight: 600; color: var(--pjcc-tp-green-dark); }

/* The call to action: the one loud thing on the page (Brett, Sep 28: "make
   sure the CTA on the trip pricer is easy to see - we want people to convert") */
.pjcc-tp .pjcc-tp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 0 0 20px;
  padding: 18px 20px;
  background: var(--pjcc-tp-cta-soft);
  border: 1px solid #f6c9bb;
  border-left: 5px solid var(--pjcc-tp-cta);
}
.pjcc-tp .pjcc-tp-cta-text { flex: 1 1 280px; margin: 0; font-weight: 600; }
/* the stop sign and the bold lead (Brett, Oct 12, 2026: "get someone's attention") */
.pjcc-tp .pjcc-tp-cta.has-stop { flex-wrap: nowrap; }
.pjcc-tp .pjcc-tp-cta.has-stop .pjcc-tp-cta-text { font-weight: 500; }
.pjcc-tp .pjcc-tp-stop { flex: 0 0 46px; display: block; width: 46px; height: 46px; }
.pjcc-tp .pjcc-tp-stop svg { display: block; width: 46px; height: 46px; }
.pjcc-tp .pjcc-tp-cta-lead { font-weight: 700; font-size: 1.08em; color: var(--pjcc-tp-ink); }
@media (max-width: 720px) {
  .pjcc-tp .pjcc-tp-cta.has-stop { flex-wrap: wrap; }
}
.pjcc-tp .pjcc-tp-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 1.05em;
  color: #fff;
  text-decoration: none;
  background: var(--pjcc-tp-cta);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(234, 91, 58, 0.35);
}
.pjcc-tp .pjcc-tp-cta-button:hover { background: var(--pjcc-tp-cta-dark); color: #fff; }
.pjcc-tp .pjcc-tp-cta-button:focus-visible { outline: 3px solid var(--pjcc-tp-ink); outline-offset: 2px; }
.pjcc-tp .pjcc-tp-cta.is-nudged { animation: pjcc-tp-pulse 0.9s ease-out 2; }
@keyframes pjcc-tp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 91, 58, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(234, 91, 58, 0); }
}

.pjcc-tp .pjcc-tp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.pjcc-tp .pjcc-tp-stat { padding: 12px 14px; background: var(--pjcc-tp-panel); border: 1px solid var(--pjcc-tp-line); border-top: 3px solid var(--pjcc-tp-accent-line-light); }
.pjcc-tp .pjcc-tp-stat b { display: block; font-size: 1.2em; }
.pjcc-tp .pjcc-tp-stat span { display: block; font-size: 0.78em; font-weight: 700; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-stat em { display: block; margin-top: 4px; font-size: 0.76em; font-style: normal; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-note-line { margin: 8px 0; font-size: 0.85em; color: var(--pjcc-tp-muted); }
/* the count of programs the page can price, at the top as on the dashboard page */
.pjcc-tp .pjcc-tp-hero { margin: 0 0 14px; }
.pjcc-tp .pjcc-tp-population { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font-size: 0.95em; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-population b { color: var(--pjcc-tp-ink); }
.pjcc-tp .pjcc-tp-population .pjcc-tp-info { margin-left: 4px; }
.pjcc-tp .pjcc-tp-hero .pjcc-tp-note { margin: 6px 0 0; }
.pjcc-tp .pjcc-tp-muted { color: var(--pjcc-tp-muted); font-size: 0.85em; }

/* ---- the subscriber table ------------------------------------------------ */
.pjcc-tp .pjcc-tp-table-wrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--pjcc-tp-line); }
/* the confidentiality notice, joined to the table's top edge (its words come from the pricing service) */
.pjcc-tp .pjcc-tp-notice { margin: 16px 0 0; padding: 10px 12px; border: 1px solid var(--pjcc-tp-line); border-left: 4px solid var(--pjcc-tp-warn); background: var(--pjcc-tp-tint); font-size: 0.85em; line-height: 1.5; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-notice-label { color: var(--pjcc-tp-ink); font-weight: 700; letter-spacing: 0.02em; }
.pjcc-tp .pjcc-tp-notice + .pjcc-tp-table-wrap { margin-top: 0; border-top: 0; }
.pjcc-tp .pjcc-tp-table { width: 100%; margin: 0; border-collapse: collapse; background: var(--pjcc-tp-panel); font-size: 0.9em; }
.pjcc-tp .pjcc-tp-table th, .pjcc-tp .pjcc-tp-table td { padding: 9px 12px; text-align: left; border: 0; border-bottom: 1px solid var(--pjcc-tp-line); }
.pjcc-tp .pjcc-tp-table th { background: var(--pjcc-tp-green-soft); white-space: nowrap; border-bottom: 2px solid var(--pjcc-tp-control-line); }
.pjcc-tp .pjcc-tp-table tbody tr:nth-child(even) td { background: #f8f9f5; }
.pjcc-tp .pjcc-tp-table td.is-money { font-weight: 700; white-space: nowrap; }
.pjcc-tp .pjcc-tp-sort { padding: 0; font-weight: 700; font-size: 1em; color: var(--pjcc-tp-ink); background: none; border: 0; cursor: pointer; }

/* ---- which airport did you mean ------------------------------------------ */
.pjcc-tp .pjcc-tp-pick { margin: 0 0 16px; padding: 16px; background: var(--pjcc-tp-panel); border: 1px solid var(--pjcc-tp-line); }
.pjcc-tp .pjcc-tp-pick-q { margin: 0 0 10px; font-weight: 700; }
.pjcc-tp .pjcc-tp-choice { display: flex; width: 100%; margin: 0 0 6px; text-align: left; }

/* ---- email me these results ---------------------------------------------- */
.pjcc-tp .pjcc-tp-email { margin: 18px 0; padding: 18px 20px; background: var(--pjcc-tp-panel); border: 1px solid var(--pjcc-tp-line); }
/* jet sharing on this route (the by-the-seat operators that fly it): the email box's look */
.pjcc-tp .pjcc-tp-seats { margin: 18px 0; padding: 18px 20px; background: var(--pjcc-tp-panel); border: 1px solid var(--pjcc-tp-line); }
.pjcc-tp .pjcc-tp-seats h3 { margin: 0 0 10px; font-family: var(--pjcc-tp-serif); font-size: 1.15em; font-weight: 600; }
.pjcc-tp .pjcc-tp-seats-line { margin: 4px 0; }
.pjcc-tp .pjcc-tp-seats-list { margin: 8px 0 0; padding-left: 18px; }
.pjcc-tp .pjcc-tp-seats-list li { margin: 4px 0; }
.pjcc-tp .pjcc-tp-email h3 { margin: 0 0 10px; font-family: var(--pjcc-tp-serif); font-size: 1.15em; font-weight: 600; }
.pjcc-tp .pjcc-tp-email-line { display: flex; flex-wrap: wrap; gap: 8px; }
.pjcc-tp .pjcc-tp-name-input,
.pjcc-tp .pjcc-tp-email-input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c9d1c0;
  border-radius: 4px;
}
.pjcc-tp .pjcc-tp-email-button {
  min-height: 44px;
  padding: 8px 20px;
  font-weight: 700;
  color: #fff;
  background: var(--pjcc-tp-green);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.pjcc-tp .pjcc-tp-email-button:hover { background: var(--pjcc-tp-green-dark); }
.pjcc-tp .pjcc-tp-fine { margin: 8px 0 0; font-size: 0.8em; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-email-msg { margin: 6px 0 0; font-weight: 600; }
.pjcc-tp .pjcc-tp-email-msg:empty { display: none; }
.pjcc-tp .pjcc-tp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pjcc-tp .pjcc-tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pjcc-tp .pjcc-tp-share { margin: 12px 0; }
.pjcc-tp .pjcc-tp-notes { margin: 18px 0 0; padding: 14px 16px; background: var(--pjcc-tp-panel); border: 1px solid var(--pjcc-tp-line); }
.pjcc-tp .pjcc-tp-notes summary { display: list-item; list-style: none; font-weight: 700; cursor: pointer; }
.pjcc-tp .pjcc-tp-notes summary::-webkit-details-marker { display: none; }
/* the open/closed triangle, drawn here so it shows the same on every theme */
.pjcc-tp .pjcc-tp-notes summary::before {
  content: '';
  display: inline-block;
  margin: 0 8px 1px 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.15s;
}
.pjcc-tp .pjcc-tp-notes[open] > summary::before { transform: rotate(90deg); }
.pjcc-tp .pjcc-tp-notes dl { margin: 1em 0; }
.pjcc-tp .pjcc-tp-notes-lead { margin: 6px 0 0; font-size: 0.85em; color: var(--pjcc-tp-muted); }
.pjcc-tp .pjcc-tp-notes dt { margin-top: 10px; font-weight: 700; font-size: 0.9em; }
.pjcc-tp .pjcc-tp-notes dd { margin: 2px 0 0; font-size: 0.85em; color: var(--pjcc-tp-muted); }

/* ---- phones: filters fold away, the call to action stays in reach ------- */
.pjcc-tp .pjcc-tp-sticky { display: none; }
@media (max-width: 900px) {
  .pjcc-tp .pjcc-tp-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pjcc-tp .pjcc-tp-filters-toggle {
    display: block;
    justify-self: start;
    min-height: 40px;
    padding: 6px 16px;
    font-weight: 700;
    color: var(--pjcc-tp-ink);
    background: #fff;
    border: 1px solid var(--pjcc-tp-line);
    border-radius: 4px;
    cursor: pointer;
  }
  .pjcc-tp .pjcc-tp-filters { display: none; }
  .pjcc-tp .pjcc-tp-filters.is-open { display: block; }
}
@media (max-width: 720px) {
  /* room for the fixed call-to-action bar under the whole page, so the
     theme's footer can still be scrolled clear of it */
  body.pjcc-tp-has-sticky { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .pjcc-tp .pjcc-tp-route { grid-template-columns: 1fr 1fr; padding: 14px; }
  .pjcc-tp .pjcc-tp-leg { grid-column: 1 / -1; grid-row: 2; }
  .pjcc-tp .pjcc-tp-sticky {
    display: block;
    position: fixed;
    /* above the page, below the theme's open phone menu (z-index 402) */
    z-index: 300;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(31, 42, 42, 0.14);
  }
  .pjcc-tp .pjcc-tp-sticky .pjcc-tp-cta-button { display: flex; width: 100%; }
  /* iPhone Safari zooms the page into any field under 16px */
  .pjcc-tp .pjcc-tp-name-input, .pjcc-tp .pjcc-tp-email-input { font-size: 16px; }
  .pjcc-tp .pjcc-tp-headline h2 { font-size: 1.3em; }
}

/* The (i) beside the search form's Type of Aircraft label (the form sits
   above .pjcc-tp, so these two carry the form's class; the look matches the
   filter notes). */
.pjcc-tpf .pjcc-tp-info {
  width: 20px;
  height: 20px;
  margin: 0 0 0 6px;
  padding: 0;
  font-size: 0.72em;
  font-weight: 700;
  font-style: italic;
  font-family: inherit;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
  color: #6b7c35;
  background: #fff;
  border: 1px solid #d9e2c8;
  border-radius: 50%;
  cursor: pointer;
}
.pjcc-tpf .pjcc-tp-info:focus-visible { outline: 2px solid #1f2a2a; outline-offset: 2px; }
.pjcc-tpf .pjcc-tp-cabin-note { margin: 8px 0 0; font-size: 0.82em; color: #586663; }
.pjcc-tpf .pjcc-tp-cabin-note[hidden] { display: none; }
