/* ==========================================================================
   BEST DEALS JANET FOUND — destination page deal panel

   Sits directly under the destination hero, above the editorial guide, so a
   visitor who came for a price sees one before the prose. Uses the premium
   tokens; every pair below is --jp-text or --jp-text-2 on --jp-raised.
   ========================================================================== */

.jdd {
  margin-block: clamp(1.5rem, 3vw, 2.4rem);
}

.jdd__head { margin-block-end: clamp(.8rem, 2vw, 1.1rem); }

.jdd__h {
  margin: 0 0 .35rem;
  font: 800 clamp(1.3rem, 3.2vw, 2rem)/1.15 var(--font-display, "Frank Ruhl Libre", serif);
  color: var(--jp-text, #F4F1EA);
}

.jdd__sub {
  margin: 0;
  max-inline-size: 70ch;
  font: 500 .9rem/1.55 var(--font, "Assistant", sans-serif);
  color: var(--jp-text-2, #C6CCD8);
}

.jdd__grid {
  display: grid;
  gap: clamp(.7rem, 1.6vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.jdd-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: clamp(.85rem, 1.8vw, 1.1rem);
  border: 1px solid var(--jp-line, rgba(232,201,137,.16));
  border-radius: var(--jp-r, 18px);
  background: var(--jp-raised, #0E131D);
  box-shadow: var(--jp-e2, 0 4px 16px rgba(0,0,0,.45));
}

/* The tint is layered ON the raised surface rather than replacing it. As a
   bare `rgba(255,255,255,.025)` this card had no opaque background of its own,
   so it inherited whatever was behind it — and on the guide pages that is a
   cream band, which put champagne text on cream at 1.16:1. Only the empty
   cards were affected, which is why it showed on Athens (two empty windows)
   and not on Rome (none). */
.jdd-card--empty {
  background: linear-gradient(rgba(255, 255, 255, .025), rgba(255, 255, 255, .025)), var(--jp-raised, #0E131D);
  border-style: dashed;
}

.jdd-card__win {
  align-self: flex-start;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(232, 201, 137, .13);
  border: 1px solid var(--jp-line-strong, rgba(232,201,137,.34));
  color: var(--jp-gold-deep, #F6E7C4);
  font: 800 .7rem/1 var(--font, "Assistant", sans-serif);
}

/* Each date is its own labelled item, so "יציאה"/"חזרה" travel with the value
   and the reader never has to infer direction from where a bidi run landed. */
.jdd-card__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font: 700 .95rem/1.3 var(--font, "Assistant", sans-serif);
  color: var(--jp-text, #F4F1EA);
}
.jdd-date { white-space: nowrap; }
.jdd-date b {
  font-weight: 700;
  font-size: .74em;
  letter-spacing: .04em;
  color: var(--jp-text-3, #949CAB);
  margin-inline-end: 4px;
}
.jdd-card__dates small { font-weight: 600; color: var(--jp-text-3, #949CAB); }

.jdd-card__price {
  font: 800 clamp(1.5rem, 3.4vw, 1.95rem)/1 var(--font, "Assistant", sans-serif);
  color: var(--jp-gold-deep, #F6E7C4);
  font-variant-numeric: tabular-nums;
}

.jdd-card__pp,
.jdd-card__facts {
  font: 600 .8rem/1.4 var(--font, "Assistant", sans-serif);
  color: var(--jp-text-2, #C6CCD8);
}

.jdd-claims {
  margin: .2rem 0 0;
  padding-inline-start: 1.05rem;
  display: grid;
  gap: .15rem;
}
.jdd-claims li {
  font: 600 .8rem/1.45 var(--font, "Assistant", sans-serif);
  /* A literal from the dark design: #A7E9C4 on the white card is 1.39:1. The
     token carries the light theme's "good" ink and the literal stays as the
     fallback, so an un-themed render is byte-identical. */
  color: var(--jp-ok, #A7E9C4);
}

.jdd-card__when {
  font: 600 .74rem/1.4 var(--font, "Assistant", sans-serif);
  color: var(--jp-text-3, #949CAB);
}

.jdd-empty {
  margin: 0;
  font: 600 .88rem/1.5 var(--font, "Assistant", sans-serif);
  color: var(--jp-text-2, #C6CCD8);
}

.jdd-cta {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding-inline: 1rem;
  border-radius: var(--jp-r-sm, 12px);
  background: linear-gradient(135deg, var(--jp-gold, #E8C989), var(--jp-gold-warm, #D9B36A));
  color: #12161F;
  font: 800 .9rem/1 var(--font, "Assistant", sans-serif);
  text-decoration: none;
}
.jdd-cta:hover { filter: brightness(1.08); }

.jdd-note,
.jdd__foot {
  margin: 0;
  font: 500 .74rem/1.45 var(--font, "Assistant", sans-serif);
  color: var(--jp-text-3, #949CAB);
}

.jdd__foot { margin-block-start: .8rem; }

/* ── Favorite toggle on the dark deal cards (shared janet_favorites.js) ──── */
.jdd-card{position:relative}
.jdd-card .jfav{
  position:absolute;top:10px;inset-inline-end:10px;z-index:2;
  /* 44px, not 38: the project's own tap-target floor, applied here after the
     visual gate found this control 6px short. It is a real control on a card,
     and it is the one people press on a phone. */
  width:44px;height:44px;border-radius:50%;
  border:1px solid var(--jp-line, rgba(232,201,137,.16));
  background:var(--jp-overlay, #141B28);color:var(--jp-text-3, #949CAB);
  font-size:1.1rem;line-height:1;cursor:pointer;display:grid;place-items:center;
  transition:transform .15s,color .15s
}
.jdd-card .jfav:hover{transform:scale(1.08)}
.jdd-card .jfav:focus-visible{outline:3px solid var(--jp-gold, #E8C989);outline-offset:2px}
.jdd-card .jfav.jfav--on{color:var(--jp-gold, #E8C989)}

/* ── Dates with measured inventory (#jfw, janet_flight_windows.js) ────────
   Same dark surface language as .jdd-card, because these sit in the same band
   and a second visual system there would read as a different product. Each card
   carries its own opaque background — the lesson from .jdd-card--empty, which
   inherited a cream band and put champagne text on cream at 1.16:1. */
.jfw { margin-block-start: 1.1rem; }
.jfw__head { margin-block-end: .7rem; }
.jfw__h {
  font: 700 clamp(1.05rem, 2.4vw, 1.35rem)/1.25 var(--font-display, "Frank Ruhl Libre", serif);
  color: var(--jp-gold-deep, #F6E7C4); margin: 0 0 .3rem;
}
.jfw__sub {
  font: 400 .88rem/1.6 var(--font, "Assistant", sans-serif);
  color: var(--jp-gold-warm, #D9C39A); margin: 0; max-width: 68ch;
}
.jfw__grid {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.jfw-c {
  display: flex; flex-direction: column; gap: .3rem;
  padding: clamp(.85rem, 1.8vw, 1.05rem);
  border: 1px solid var(--jp-line, rgba(232,201,137,.16));
  border-radius: var(--jp-r, 18px);
  background: var(--jp-raised, #0E131D);
  box-shadow: var(--jp-e2, 0 4px 16px rgba(0,0,0,.45));
  text-decoration: none; min-height: 44px;
  transition: border-color .15s ease, transform .15s ease;
}
.jfw-c:hover { border-color: var(--jp-line-strong, rgba(232,201,137,.34)); transform: translateY(-2px); }
.jfw-c:focus-visible { outline: 3px solid var(--jp-gold, #E8C989); outline-offset: 2px; }
.jfw-c__dates { display: flex; flex-wrap: wrap; gap: .1rem .7rem; }
.jfw-c__leg {
  font: 500 .82rem/1.5 var(--font, "Assistant", sans-serif);
  color: var(--jp-gold-warm, #D9C39A);
}
.jfw-c__leg b { font-weight: 700; color: var(--jp-gold-deep, #F6E7C4); }
.jfw-c__p {
  font: 800 1.25rem/1.15 var(--font-display, "Frank Ruhl Libre", serif);
  color: var(--jp-gold, #E8C989); margin-block-start: .15rem;
}
.jfw-c__b {
  font: 500 .75rem/1.45 var(--font, "Assistant", sans-serif);
  color: var(--jp-gold-warm, #D9C39A);
}
.jfw-c__go {
  font: 700 .82rem/1.4 var(--font, "Assistant", sans-serif);
  color: var(--jp-gold-deep, #F6E7C4); margin-block-start: .35rem;
}
.jfw__foot {
  font: 400 .78rem/1.6 var(--font, "Assistant", sans-serif);
  color: var(--jp-gold-warm, #D9C39A); margin: .8rem 0 0;
}

/* == TRAILING CTA TAP TARGET =============================================
   The flight destination pages load THIS sheet and not janet_ds.css, so the
   floor added there never reached them and the `.tip` call-to-action stayed
   at 183x24. The comment in janet_editorial.css calls janet_ds.css the
   site-wide floor; it is not, because several pages never load it, and this
   duplicate exists for exactly that reason rather than by oversight.
   ======================================================================== */
.tip a { display:inline-flex; align-items:center; min-height:44px; }
