/* Coming to Jamaica pages. Sits on top of /groups/assets/groups.css and /staycations/assets/stay.css. */
.jam { --ph-d: #2A2C29; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); background: #F5C55C; }
.g-nav-links a[aria-current="page"] { color: var(--gold-txt); }
.inline-link { text-decoration: underline; font-weight: 700; white-space: nowrap; }
.inline-link:hover { color: var(--gold-txt); }

/* hero: full photo, words on a dark fade */
.jhero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); min-height: 560px; display: flex; align-items: flex-end; }
.jhero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.jhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.72) 72%, rgba(0,0,0,.86) 100%); }
.jhero-in { display: flex; flex-direction: column; gap: 12px; padding-top: 120px; padding-bottom: 32px; }
.jhero .kicker { color: var(--gold); }
.jhero-h { font-size: 44px; line-height: 1; letter-spacing: -0.035em; font-weight: 900; font-stretch: 110%; }
.jhero-sub { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 620px; }
.jhero-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jhero-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.jhero-chips svg { color: var(--gold); }
.jhero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.jhero-short { min-height: 440px; }

/* the trust band */
.jwhy { background: var(--ink); color: #fff; padding: 18px 0; }
.jwhy ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.jwhy li { display: flex; flex-direction: column; gap: 2px; }
.jwhy b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.jwhy span { font-size: 13px; color: var(--gold); font-weight: 700; }
.jwhy-light { background: var(--alt); color: var(--ink); }
.jwhy-light span { color: var(--gold-txt); }

/* sections */
.jsec { padding: 44px 0; }
.jsec-gold { background: var(--gold); }
.jsec-gold .kicker { color: var(--ink); opacity: .75; }
.jsec-gold .lead { color: rgba(14,15,14,.8); }
.jsec-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin-bottom: 18px; }
.jsec .h2 { font-size: 30px; font-weight: 900; font-stretch: 110%; letter-spacing: -0.035em; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* deal card: the photo fills the tile, the name on a gold tag and the price on a black one, both turned a little like stickers */
.dc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--ph-d); color: #fff; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.dc:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,15,14,.22); }
.dc-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dc:hover .dc-img { transform: scale(1.04); }
.dc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 36%, rgba(0,0,0,.82) 70%, rgba(0,0,0,.9) 100%); pointer-events: none; }
/* the small labels (Getaway, 2 kids free, Ends 21 Dec) sit together just above the name, so nothing fights the price tag */
.dc-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dc-flag { font-size: 12px; font-weight: 800; background: var(--white); color: var(--ink); padding: 3px 10px; border-radius: 999px; }
.dc-flag.dc-offer { background: var(--gold); color: var(--ink); }
.dc-price { position: absolute; right: 12px; top: 14px; display: inline-flex; align-items: baseline; gap: 5px; background: var(--ink); color: #fff; padding: 6px 12px 7px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.3); transform: rotate(3deg); }
.dc-price small { font-size: 12px; font-weight: 700; }
.dc-price b { font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.dc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.dc-type { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(14,15,14,.6); padding: 4px 10px; border-radius: 999px; }
.dc-name { align-self: flex-start; max-width: calc(100% - 8px); margin: 2px 0 8px 2px; padding: 8px 14px 9px; border-radius: 12px; background: var(--gold); color: var(--ink); font-size: 21px; line-height: 1.15; letter-spacing: -.02em; box-shadow: 0 8px 18px rgba(0,0,0,.3); transform: rotate(-2.5deg); transform-origin: left bottom; overflow-wrap: anywhere; }
.dc-sub { font-size: 14px; font-weight: 800; color: var(--gold); }
.dc-text { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.88); }
.dc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-chips span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; }
.dc-foot { margin-top: 2px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; }
.dc-foot b:empty { display: none; }
.dc-go { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 800; }
.dc-price-ask b { font-size: 14px; letter-spacing: 0; }
.dc-kick:empty { display: none; }
.dc-door .dc-foot b:empty + .dc-go, .dc-tour .dc-foot b:empty + .dc-go { margin-left: 0; }

/* airport pickup prices under the land cards */
.pick-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--alt); }
.pick-line { font-size: 14px; line-height: 1.6; color: var(--body); }
.pick-line > span { display: block; font-size: 13px; color: var(--muted); }
.pick-line b { white-space: nowrap; color: var(--ink); }
.pick-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; text-decoration: underline; }

/* numbered points and steps */
.points, .jsteps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.points li, .jsteps li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--alt); }
.points b, .jsteps b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.points li > span:last-child, .jsteps li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--body); }
.pt-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 14px; }

/* the plan form */
.plan { background: var(--alt); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.plan-copy { display: flex; flex-direction: column; gap: 10px; }
.plan-ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-ticks li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--body); }
.plan-ticks svg { color: var(--green); flex: none; margin-top: 3px; }
.jform { max-width: 560px; width: 100%; }
.jform a.btn-outline { background: transparent !important; color: var(--ink) !important; }
.needs { border: 0; margin: 0; padding: 0; min-width: 0; }
.needs legend { font-size: 12px; font-weight: 800; margin-bottom: 6px; padding: 0; }
.need-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.need { position: relative; }
.need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.need span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 13px; font-weight: 700; cursor: pointer; }
.need input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.need input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* questions */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 2px 18px; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 720px; }
.faq a { text-decoration: underline; font-weight: 700; }

/* phones: the long rows swipe sideways */
@media (max-width: 699px) {
  .dgrid-4 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 10px; scrollbar-width: none; }
  .dgrid-4::-webkit-scrollbar { display: none; }
  .dgrid-4 > .dc { flex: 0 0 80%; scroll-snap-align: start; }
  .dc-stay { aspect-ratio: 3 / 4; }
  .dgrid-3 .dc { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 359px) { .dgrid-4 > .dc { flex-basis: 90%; } .dc-chips { display: none; } }
@media (min-width: 700px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jwhy ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .dgrid-3, .dgrid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .jhero { min-height: 640px; }
  .jhero-in { padding-top: 160px; padding-bottom: 56px; }
  .jhero-h { font-size: 76px; }
  .jhero-sub { font-size: 20px; }
  .jhero::after { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.05) 80%), linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 100%); }
  .jhero-short { min-height: 520px; }
  .jsec { padding: 72px 0; }
  .jsec .h2 { font-size: 46px; }
  .jsec-head { margin-bottom: 26px; }
  .jwhy { padding: 22px 0; }
  .plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
  .plan-copy { position: sticky; top: 96px; }
  .dgrid-3 .dc { aspect-ratio: 4 / 4.4; }
}
@media (min-width: 1200px) {
  .dgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dgrid-4 .dc-name { font-size: 19px; }
}
/* this month's deals: two go side by side as wide cards, three or four as a row */
.jdeals { padding-bottom: 12px; }
@media (max-width: 699px) {
  .dgrid-deals:not(.n1) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 10px; scrollbar-width: none; }
  .dgrid-deals:not(.n1)::-webkit-scrollbar { display: none; }
  .dgrid-deals:not(.n1) > .dc { flex: 0 0 84%; scroll-snap-align: start; aspect-ratio: 3 / 4; }
}
@media (min-width: 1000px) {
  .dgrid-deals.n1, .dgrid-deals.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid-deals.n1 .dc, .dgrid-deals.n2 .dc { aspect-ratio: 16 / 10; }
  .dgrid-deals.n1 .dc-name, .dgrid-deals.n2 .dc-name { font-size: 24px; }
  .dgrid-deals.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .dgrid-deals.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 399px) { .dgrid-3 .dc { aspect-ratio: 3 / 4; } .dgrid-deals:not(.n1) > .dc { aspect-ratio: 3 / 4.4; } .dc-stay { aspect-ratio: 3 / 4.3; } }
@media (max-width: 359px) { .dgrid-deals:not(.n1) > .dc { aspect-ratio: 3 / 4.9; } }

/* the £ / C$ / US$ switch (UK & Canada, Coming home) */
.cur-switch { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.16); margin-top: 4px; }
.cur-switch span { font-size: 12px; font-weight: 800; padding: 0 8px 0 6px; color: rgba(255,255,255,.85); }
.cur-switch button { border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 800; min-width: 48px; height: 36px; padding: 0 10px; border-radius: 999px; cursor: pointer; }
.cur-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.cur-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.jsec-gold .cur-switch { background: rgba(14,15,14,.1); }
.jsec-gold .cur-switch span, .jsec-gold .cur-switch button { color: var(--ink); }
.jsec-gold .cur-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
