/* =========================================================
   Qurikvoy — Packages listing page
   desktop ≥1024 · tablet 768–1023 · mobile ≤767
   ========================================================= */
.page-pkg {
  --p-ink: #1c1b1b;
  --p-text: #414751;
  --p-muted: #717782;
  --p-blue: #005a9a;
  --p-navy: #286197;
  --p-rust: #bf4b0e;
  --p-ember: #9a3800;
  --p-sand: #f6f3f2;
  --p-soft: #f0eded;
  --p-border: rgba(193, 199, 210, 0.35);
  background: #fcf9f8;
}

/* ---------- buttons ---------- */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.24px; white-space: nowrap; color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.pbtn img { flex: none; transition: transform 0.25s var(--ease); }
.pbtn:hover { transform: translateY(-1px); }
.pbtn:hover img { transform: translate(1px, -1px); }
.pbtn--blue { background: var(--p-blue); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); }
.pbtn--blue:hover { background: #004a80; box-shadow: 0 8px 18px -8px rgba(0, 90, 154, 0.6); }
.pbtn--soft { background: var(--p-soft); color: var(--p-ink); }
.pbtn--soft:hover { background: #e5e2e1; }
.pbtn--wa { background: var(--c-wa); }
.pbtn--wa:hover { box-shadow: 0 12px 22px -10px rgba(37, 211, 102, 0.7); }
.pbtn--white { background: #fff; color: var(--p-blue); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.pbtn--sm { padding: 8px 12px; }
.pbtn--xl { padding: 14px 24px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: 0.14px; }
.pbtn--block { width: 100%; padding: 12px 24px; border-radius: 12px; }

/* =========================================================
   1. HERO + FILTERS
   ========================================================= */
.phero { position: relative; padding: 24px 0 36px; background: linear-gradient(180deg, var(--p-sand) 0%, #fcf9f8 100%); overflow: hidden; }
.phero__glow { position: absolute; right: -160px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 194, 253, 0.28) 0%, rgba(143, 194, 253, 0) 68%); pointer-events: none; }
.phero > .container { position: relative; }

.pcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 16px; color: var(--p-text); }
.pcrumbs li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pcrumbs a:hover { color: var(--p-blue); }
.pcrumbs span { font-weight: 600; color: var(--p-ink); }
.pcrumbs strong { font-weight: 700; color: var(--p-blue); }

.phero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: 20px; }
.phero__copy { max-width: 760px; min-width: 0; }
.phero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 90, 154, 0.1); border: 1px solid rgba(0, 90, 154, 0.18);
  font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.88px; text-transform: uppercase; color: var(--p-blue);
}
.phero__title { margin: 18px 0 0; font-size: 52px; line-height: 62px; font-weight: 800; letter-spacing: -1.3px; color: var(--p-ink); }
.phero__title span { background: linear-gradient(90deg, #005a9a 0%, #286197 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero__text { margin-top: 12px; max-width: 640px; font-size: 18px; line-height: 29px; color: var(--p-text); }

.phero__stat {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px;
  background: #fff; border: 1px solid var(--p-border); box-shadow: 0 10px 24px -12px rgba(28, 27, 27, 0.18);
}
.phero__avatars { display: flex; }
.phero__avatar {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2px;
}
.phero__avatar + .phero__avatar { margin-left: -9px; }
.phero__avatar--blue { background: #d2e4ff; color: #004a80; }
.phero__avatar--sky { background: #e3efff; color: var(--p-navy); }
.phero__avatar--peach { background: #ffdbcc; color: #9a3800; }
.phero__stat > div:last-child strong { display: block; font-size: 20px; line-height: 26px; font-weight: 800; color: var(--p-ink); }
.phero__stat > div:last-child span { display: block; font-size: 11px; line-height: 14px; color: var(--p-text); }

.pfilter {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: end; margin-top: 32px; padding: 20px;
  border-radius: 16px; background: #fff; border: 1px solid var(--p-border); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}
.pfilter__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pfilter__label { font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.55px; text-transform: uppercase; color: var(--p-text); }
.pfilter__control {
  position: relative; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 14px; border-radius: 10px;
  background: var(--p-sand); border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pfilter__control:focus-within { background: #fff; border-color: rgba(0, 90, 154, 0.35); box-shadow: 0 0 0 3px rgba(0, 90, 154, 0.12); }
.pfilter__control img { flex: none; }
.pfilter__control input, .pfilter__control select {
  width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font: 500 14px/20px var(--font); color: var(--p-ink); text-overflow: ellipsis; -webkit-appearance: none; appearance: none;
}
.pfilter__control input::placeholder { color: #8a9099; }
.pfilter__control input::-webkit-search-cancel-button { display: none; }
.pfilter__control select { cursor: pointer; padding-right: 22px; }
.pfilter__control--select::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23414751' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
}
.pfilter__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 12px;
  background: var(--p-blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 90, 154, 0.25); transition: background 0.25s, transform 0.25s var(--ease);
}
.pfilter__btn:hover { background: #004a80; transform: translateY(-1px); }
.pfilter__btn b { font-weight: 700; }

.pchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pchips__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 9px 16px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid var(--p-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 13px; font-weight: 600; line-height: 18px; color: var(--p-ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.pchips__chip span { font-size: 14px; line-height: 1; }
.pchips__chip b { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--p-soft); font-size: 11px; line-height: 16px; font-weight: 700; color: var(--p-text); text-align: center; }
.pchips__chip:hover { border-color: rgba(0, 90, 154, 0.4); transform: translateY(-1px); }
.pchips__chip.is-active { background: var(--p-blue); border-color: var(--p-blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 90, 154, 0.6); }
.pchips__chip.is-active b { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* =========================================================
   2. CATALOGUE
   ========================================================= */
.pcat { padding: 24px 0 16px; }
.pcat__status {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; padding: 12px 16px;
  border-radius: 12px; background: rgba(0, 90, 154, 0.07); font-size: 14px; font-weight: 600; line-height: 20px; color: var(--p-ink);
}
.pcat__status[hidden] { display: none; }
.pcat__clear { font-size: 13px; font-weight: 700; color: var(--p-blue); }
.pcat__clear:hover { text-decoration: underline; }

.preg { margin-bottom: 48px; }
.preg[hidden] { display: none; }
.preg__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 20px; }
.preg__kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--p-blue); }
.preg__kicker--rust { color: var(--p-rust); }
.preg__kicker--navy { color: var(--p-navy); }
.preg__title { margin: 4px 0 0; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.72px; color: var(--p-ink); }
.preg__link { display: inline-flex; align-items: center; gap: 4px; padding-bottom: 4px; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.24px; color: var(--p-blue); white-space: nowrap; }
.preg__link img { transition: transform 0.25s var(--ease); }
.preg__link:hover img { transform: translateX(3px); }

.pslider--wide:not(.slider--mobile) { --per: 2; }
/* Filtered view: every matching card in a plain grid (the slider switches off via .slider--mobile) */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pgrid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid > [hidden] { display: none; }

/* ---------- card ---------- */
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
  background: #fff; border: 1px solid var(--p-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(28, 27, 27, 0.3); }
.pcard__media { position: relative; flex: none; height: 240px; overflow: hidden; background: #e5e2e1; }
.pcard--compact .pcard__media { height: 224px; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pcard:hover .pcard__img { transform: scale(1.05); }
.pcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.pcard--wide .pcard__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 35%); }

.pbadge {
  position: absolute; left: 12px; top: 12px; z-index: 1; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.44px; color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbadge img { flex: none; }
.pbadge--rust { background: var(--p-rust); }
.pbadge--ember { background: var(--p-ember); }
.pbadge--amber { background: #f59e0b; color: #0f172a; }
.pbadge--blue { background: var(--p-blue); }
.pbadge--navy { background: var(--p-navy); }
.pbadge--sky { background: #8fc2fd; color: #0b4f84; }

.pcard__chips { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Card photos: small overlapping thumbnails (caption on hover) — never cut off, whatever the caption length */
.pchip-stack { display: inline-flex; align-items: center; flex: none; margin-left: auto; padding-left: 8px; }
.pchip-stack__photo { position: relative; display: block; width: 34px; height: 34px; margin-left: -8px; overflow: hidden; border: 2px solid #fff; border-radius: 9px; background: #e5e2e1; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease), z-index 0s; }
.pchip-stack__photo img { width: 100%; height: 100%; object-fit: cover; }
.pchip-stack__photo:hover { z-index: 2; transform: translateY(-3px) scale(1.12); }
.pchip {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.45); font-size: 12px; line-height: 16px; color: #fff; white-space: nowrap;
}
.pchip img { flex: none; }
.pchip .pchip__photo { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }

.pcard__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.pcard--wide .pcard__body { padding: 24px; }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pcard__route { min-width: 0; font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.55px; text-transform: uppercase; color: var(--p-blue); }
.pcard--rust .pcard__route { color: var(--p-ember); }
.pcard--navy .pcard__route { color: var(--p-navy); }
.pcard__rating { flex: none; font-size: 12px; line-height: 16px; letter-spacing: 0.24px; white-space: nowrap; }
.pcard__rating b { color: #f59e0b; }
.pcard__rating span { color: var(--p-muted); }
.pcard__title { margin: 8px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--p-ink); }
.pcard__title a { transition: color 0.2s; }
.pcard__title a:hover { color: var(--p-blue); }
.pcard__media > a { display: block; width: 100%; height: 100%; }
.pcard--wide .pcard__media > a { position: absolute; inset: 0; }
.pcard__hl { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pcard__hl li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--p-text); }
.pcard__hl img { flex: none; margin-top: 4px; }
.pcard__text { margin-top: 8px; font-size: 14px; line-height: 22.75px; color: var(--p-text); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pcard__tags span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; background: var(--p-soft); font-size: 12px; line-height: 16px; color: var(--p-text); }

.pcard__foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--p-soft); }
.pcard__pricing { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pcard--grid .pcard__pricing { align-items: flex-start; }
.pcard__price { min-width: 0; }
.pcard__price s { display: block; font-size: 12px; line-height: 16px; color: var(--p-muted); }
.pcard__price p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.pcard__price b { font-size: 24px; line-height: 32px; font-weight: 800; letter-spacing: -0.24px; color: var(--p-ink); white-space: nowrap; }
.pcard__price span { font-size: 12px; line-height: 16px; color: var(--p-muted); white-space: nowrap; }
.psave { flex: none; margin-top: 4px; padding: 2px 8px; border-radius: 4px; background: rgba(0, 90, 154, 0.1); font-size: 11px; font-weight: 700; line-height: 24px; color: var(--p-blue); white-space: nowrap; }
.pcard--rust .psave { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.pcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* wide (image left) */
.pcard--wide { flex-direction: row; }
.pcard--wide .pcard__media { width: 42%; height: auto; min-height: 100%; }
.pcard--wide .pcard__img { position: absolute; inset: 0; }

/* ---------- empty state ---------- */
.pempty { padding: 56px 24px; margin-bottom: 48px; border-radius: 24px; background: #fff; border: 1px dashed rgba(193, 199, 210, 0.8); text-align: center; }
.pempty[hidden] { display: none; }
.pempty__emoji { font-size: 40px; line-height: 1; }
.pempty h2 { margin: 16px 0 0; font-size: 24px; line-height: 32px; color: var(--p-ink); }
.pempty p { margin: 8px auto 0; max-width: 440px; font-size: 15px; line-height: 24px; }
.pempty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.pempty__btns .pbtn { padding: 12px 20px; font-size: 13px; }

/* =========================================================
   3. WHY · REVIEW · FAQ · CTA
   ========================================================= */
.psec { padding: 0 0 40px; }
.psec--last { padding-bottom: 72px; }
.phead { max-width: 672px; margin-inline: auto; text-align: center; }
.phead__kicker { font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--p-blue); }
.phead__title { margin: 10px 0 0; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.72px; color: var(--p-ink); }
.phead__text { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--p-text); }

.pwhy { padding: 48px; border-radius: 24px; background: var(--p-sand); border: 1px solid rgba(193, 199, 210, 0.3); }
.pwhy__slider { margin-top: 40px; }
.pwhy__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pwhy__card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--p-border); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pwhy__card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(28, 27, 27, 0.3); }
.pwhy__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.pwhy__icon--blue { background: rgba(0, 90, 154, 0.1); }
.pwhy__icon--green { background: rgba(16, 185, 129, 0.1); }
.pwhy__icon--whatsapp { background: rgba(37, 211, 102, 0.15); }
.pwhy__icon--navy { background: rgba(40, 97, 151, 0.1); }
.pwhy__icon--rust { background: rgba(191, 75, 14, 0.1); }
.pwhy__card h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--p-ink); }
.pwhy__card p { font-size: 14px; line-height: 22.75px; color: var(--p-text); }

.preview { margin: 0; padding: 48px 24px; border-radius: 24px; background: #fff; border: 1px solid rgba(193, 199, 210, 0.3); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); text-align: center; }
.preview__stars { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.preview__quote { max-width: 768px; margin: 12px auto 0; font-size: 18px; line-height: 29.25px; font-weight: 500; font-style: italic; color: var(--p-ink); }
.preview__who { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; text-align: left; }
.preview__avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 90, 154, 0.2); font-size: 16px; font-weight: 700; color: var(--p-blue); }
.preview__who strong { display: block; font-size: 14px; line-height: 20px; letter-spacing: 0.14px; color: var(--p-ink); }
.preview__who small { display: block; font-size: 12px; line-height: 16px; color: var(--p-muted); }

.pfaq { padding: 48px 24px; border-radius: 24px; background: #fff; border: 1px solid rgba(193, 199, 210, 0.3); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); }
.pfaq__list { max-width: 768px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
.pfaq__item { border-radius: 16px; background: var(--p-sand); border: 1px solid rgba(193, 199, 210, 0.3); transition: background 0.3s, box-shadow 0.3s; }
.pfaq__item.is-open { background: #fff; box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.25); }
.pfaq__item h3 { margin: 0; }
.pfaq__item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; text-align: left; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--p-ink); }
.pfaq__item button img { flex: none; transition: transform 0.35s var(--ease); }
.pfaq__item.is-open button img { transform: rotate(180deg); }
.pfaq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.pfaq__item.is-open .pfaq__a { grid-template-rows: 1fr; }
.pfaq__a > div { overflow: hidden; }
.pfaq__a p { padding: 0 20px 20px; font-size: 15px; line-height: 24px; color: var(--p-text); }

.pcta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; overflow: hidden; border-radius: 24px;
  background: linear-gradient(90deg, #005a9a 0%, #286197 100%); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.pcta__glow { position: absolute; right: -100px; bottom: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 65%); pointer-events: none; }
.pcta__copy, .pcta__btns { position: relative; }
.pcta__copy { max-width: 672px; min-width: 0; }
.pcta__badge { display: inline-block; padding: 4px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.55px; text-transform: uppercase; color: #fff; }
.pcta__title { margin: 12px 0 0; font-size: 36px; line-height: 45px; font-weight: 700; letter-spacing: -0.72px; color: #fff; }
.pcta__text { margin-top: 8px; font-size: 16px; line-height: 26px; color: #d2e4ff; }
.pcta__btns { flex: none; display: flex; gap: 12px; }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1023px) {
  .phero__title { font-size: 42px; line-height: 52px; letter-spacing: -1px; }
  .phero__row { flex-direction: column; align-items: flex-start; }
  .pfilter { grid-template-columns: 1fr 1fr; }
  .pfilter__field--search, .pfilter__btn { grid-column: 1 / -1; }

  .preg__title, .phead__title { font-size: 30px; line-height: 38px; }
  .pslider--wide:not(.slider--mobile) { --per: 1; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid--wide { grid-template-columns: minmax(0, 1fr); }

  .pcta__title { font-size: 30px; line-height: 38px; }

  .pwhy { padding: 40px 32px; }
  .pwhy__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pcta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767px) {
  .phero { padding: 16px 0 28px; }
  .phero__glow { width: 360px; height: 360px; right: -180px; }
  .phero__row { margin-top: 16px; gap: 20px; }
  .phero__badge { font-size: 10px; letter-spacing: 0.6px; padding: 5px 12px; }
  .phero__title { margin-top: 14px; font-size: 34px; line-height: 42px; letter-spacing: -0.8px; }
  .phero__text { font-size: 15px; line-height: 24px; }
  .phero__stat { padding: 10px 14px 10px 10px; }

  .pfilter { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; padding: 16px; }
  .pfilter__control, .pfilter__btn { height: 48px; }
  .pfilter__control input, .pfilter__control select { font-size: 16px; } /* 16px stops iOS zooming into the field */

  /* region chips scroll sideways on phones */
  .pchips { flex-wrap: nowrap; overflow-x: auto; margin: 20px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .pchips::-webkit-scrollbar { display: none; }
  .pchips__chip { flex: none; padding: 8px 10px 8px 14px; font-size: 12px; }
  .pchips__chip:hover { transform: none; }

  .pcat { padding-top: 16px; }
  .preg { margin-bottom: 36px; }
  .preg__head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
  .preg__kicker { font-size: 11px; }
  .preg__title, .phead__title { font-size: 26px; line-height: 32px; letter-spacing: -0.5px; }
  .pgrid, .pgrid--wide { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .pcard:hover { transform: none; }
  .pslider.is-on .pgrid { align-items: flex-start; transition: transform 0.6s var(--ease), height 0.45s var(--ease); } /* height follows the card in view (data-autoheight) */
  .pcard__media, .pcard--compact .pcard__media { height: 210px; }
  .pcard__body, .pcard--wide .pcard__body { padding: 16px; }
  .pcard__meta { align-items: flex-start; }
  .pcard__title { font-size: 18px; line-height: 25px; }
  .pchip { font-size: 11px; padding: 3px 7px; }
  .pcard__price b { font-size: 22px; line-height: 30px; }
  .pcard--wide { flex-direction: column; }
  .pcard--wide .pcard__media { width: 100%; height: 210px; min-height: 0; }

  .pcta__title { font-size: 24px; line-height: 32px; letter-spacing: -0.4px; }
  .pcta__text { font-size: 14px; line-height: 22px; }

  .psec { padding-bottom: 28px; }
  .psec--last { padding-bottom: 48px; }
  .phead__text { font-size: 14px; line-height: 22px; }
  .pwhy { padding: 28px 16px; border-radius: 20px; }
  .pwhy__slider { margin-top: 24px; }
  .pwhy__card { padding: 20px; }
  .pwhy__card:hover { transform: none; }

  .preview { padding: 28px 18px; border-radius: 20px; }
  .preview__quote { font-size: 15px; line-height: 25px; }

  .pfaq { padding: 28px 16px; border-radius: 20px; }
  .pfaq__list { margin-top: 24px; gap: 12px; }
  .pfaq__item button { padding: 16px; font-size: 15px; line-height: 22px; }
  .pfaq__a p { padding: 0 16px 16px; font-size: 14px; line-height: 22px; }

  .pcta { padding: 28px 20px; gap: 20px; border-radius: 20px; }
  .pcta__btns { width: 100%; flex-direction: column; }
  .pcta__btns .pbtn { width: 100%; }
}

@media (max-width: 380px) {
  .pchip-stack__photo { width: 30px; height: 30px; }
}

/* =========================================================
   Hero style “Photo banner” (partials/packages/hero.php)
   ========================================================= */
.phb { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 560px; padding: 72px 0 112px; overflow: hidden; color: #fff; background: #0b2a4a; }
.phb__media { position: absolute; inset: 0; z-index: -2; }
.phb__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease-out; }
.phb__slide.is-on { opacity: 1; transform: scale(1); }
.phb::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(4, 22, 40, 0.86) 0%, rgba(4, 22, 40, 0.62) 45%, rgba(4, 22, 40, 0.18) 100%),
  linear-gradient(0deg, rgba(4, 22, 40, 0.7) 0%, rgba(4, 22, 40, 0) 45%); }
.phb__inner { position: relative; display: grid; gap: 16px; width: 100%; }
.phb__badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.phb__badge svg, .phb__badge img { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.phb__title { max-width: 820px; margin: 0; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -1.5px; color: #fff; }
.phb__title span { background: linear-gradient(90deg, #9fd0ff 0%, #ffd2b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phb__text { max-width: 620px; margin: 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.phb__stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.phb__stats li { display: grid; gap: 1px; min-width: 120px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; background: rgba(255, 255, 255, 0.1); }
.phb__stats b { font-size: 20px; line-height: 1.2; font-weight: 800; color: #fff; }
.phb__stats span { font-size: 12px; color: rgba(255, 255, 255, 0.78); }
.phb__now { position: absolute; right: 0; bottom: 4px; display: grid; justify-items: end; gap: 2px; text-align: right; }
.phb__now[hidden] { display: none; }
.phb__now span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.phb__now a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: #fff; }
.phb__now a:hover { text-decoration: underline; text-underline-offset: 4px; }
.phb__dots { display: flex; gap: 8px; margin-top: 8px; }
.phb__dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.3s, background 0.3s; }
.phb__dot.is-on { width: 44px; background: #fff; }
.phb__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* search card overlaps the bottom of the banner */
.phb-filters { position: relative; z-index: 2; margin-top: -72px; padding-bottom: 8px; }
.phb-filters .pfilter { margin-top: 0; box-shadow: 0 24px 48px -24px rgba(0, 29, 54, 0.45); }
.phb-filters--plain { margin-top: 0; padding-top: 4px; }

@media (max-width: 1023px) {
  .phb { min-height: 520px; padding: 56px 0 104px; }
  .phb__now { position: static; justify-items: start; text-align: left; }
}
@media (max-width: 767px) {
  .phb { min-height: 0; padding: 40px 0 92px; }
  .phb::after { background: linear-gradient(180deg, rgba(4, 22, 40, 0.55) 0%, rgba(4, 22, 40, 0.82) 100%); }
  .phb__inner { gap: 12px; }
  .phb__title { letter-spacing: -0.8px; }
  .phb__text { font-size: 15px; }
  .phb__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .phb__stats li { min-width: 0; padding: 9px 12px; }
  .phb__stats b { font-size: 17px; }
  .phb-filters { margin-top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  .phb__slide { transition: opacity 0.4s ease; transform: none; }
}

/* Photo banner options (Admin → Packages Texts → Hero): photo shade · height · text position */
.phb--light::after { background:
  linear-gradient(90deg, rgba(4, 22, 40, 0.72) 0%, rgba(4, 22, 40, 0.5) 38%, rgba(4, 22, 40, 0.12) 68%, rgba(4, 22, 40, 0) 100%),
  linear-gradient(0deg, rgba(4, 22, 40, 0.5) 0%, rgba(4, 22, 40, 0) 40%); }
.phb--light.phb--center::after, .phb--medium.phb--center::after { background:
  radial-gradient(ellipse 70% 65% at 50% 52%, rgba(4, 22, 40, 0.6) 0%, rgba(4, 22, 40, 0.2) 70%, rgba(4, 22, 40, 0.1) 100%),
  linear-gradient(0deg, rgba(4, 22, 40, 0.45) 0%, rgba(4, 22, 40, 0) 40%); }
.phb--medium::after { background:
  linear-gradient(90deg, rgba(4, 22, 40, 0.75) 0%, rgba(4, 22, 40, 0.45) 48%, rgba(4, 22, 40, 0.08) 100%),
  linear-gradient(0deg, rgba(4, 22, 40, 0.6) 0%, rgba(4, 22, 40, 0) 42%); }
/* dark = the original strong shade */
.phb--light .phb__title, .phb--light .phb__text, .phb--light .phb__badge,
.phb--medium .phb__title, .phb--medium .phb__text { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
/* coloured line: a text-shadow would show through the gradient letters, so use a drop shadow on the shape instead */
.phb .phb__title span { text-shadow: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); background-image: linear-gradient(90deg, #b9dcff 0%, #ffe0c4 100%); }
.phb--compact { min-height: 440px; padding-top: 56px; }
.phb--tall { min-height: 680px; }
.phb--center .phb__inner { justify-items: center; text-align: center; }
.phb--center .phb__badge { justify-self: center; }
.phb--center .phb__text { margin-inline: auto; }
@media (max-width: 1023px) {
  .phb--compact { min-height: 400px; }
  .phb--tall { min-height: 600px; }
}
@media (max-width: 767px) {
  .phb--compact, .phb--standard, .phb--tall { min-height: 0; }
  .phb--light::after { background: linear-gradient(180deg, rgba(4, 22, 40, 0.35) 0%, rgba(4, 22, 40, 0.68) 100%); }
  .phb--medium::after { background: linear-gradient(180deg, rgba(4, 22, 40, 0.45) 0%, rgba(4, 22, 40, 0.78) 100%); }
}
