/* =========================================================
   Qurikvoy — global styles (header + footer)
   Breakpoints: desktop ≥1024 · tablet 768–1023 · mobile ≤767
   ========================================================= */

:root {
  --c-primary: #005a9a;
  --c-primary-2: #2373ba;
  --c-navy: #0b192c;
  --c-navy-2: #286197;
  --c-accent: #bf4b0e;
  --c-wa: #25d366;
  --c-ink: #1c1b1b;
  --c-text: #414751;
  --c-muted: #717782;
  --c-line: #e5e2e1;
  --c-line-soft: rgba(229, 226, 225, 0.8);
  --c-slate-line: #e2e8f0;
  --c-surface: #f6f3f2;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
  --radius-pill: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --announce-h: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* smooth scrolling is handled by GSAP ScrollSmoother */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: #fcf9f8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--c-primary-2); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 12px; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; /* fixed (not sticky) so it works outside the ScrollSmoother wrapper */
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97); /* solid-ish: a live blur over scrolling content repaints every frame */
  border-bottom: 1px solid var(--c-line-soft);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s var(--ease), transform 0.45s var(--ease);
}
/* Announcement bar slides away once the page scrolls; main bar + nav stay pinned */
.site-header.is-scrolled { transform: translateY(calc(var(--announce-h) * -1)); box-shadow: 0 6px 24px rgba(11, 25, 44, 0.08); }

/* Space for the fixed header (JS keeps --header-h exact) */
#smooth-content { padding-top: var(--header-h, 143px); }

/* Announcement bar */
.announce {
  background: linear-gradient(90deg, var(--c-navy) 0%, var(--c-primary-2) 50%, var(--c-navy-2) 100%);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--announce-h); }
.announce__msg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.announce__spark { width: 13.75px; height: 13.75px; flex-shrink: 0; }
.announce__viewport { overflow: hidden; min-width: 0; }
.announce__track { display: flex; width: max-content; will-change: transform; }
.announce__text { white-space: nowrap; }
.announce__text--clone { display: none; }
.announce__right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.announce__phone { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.announce__phone img { width: 11.6667px; height: 10.5px; }
.announce__phone:hover span { text-decoration: underline; text-underline-offset: 3px; }

.currency { position: relative; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 17px; opacity: 0.9; }
.currency__btn { display: flex; align-items: center; gap: 4px; font-weight: 400; font-size: 12px; line-height: 18px; color: #fff; }
.currency__btn img { width: 7px; height: 4.317px; transition: transform 0.25s var(--ease); }
.currency.is-open .currency__btn img { transform: rotate(180deg); }
.currency__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 128px; padding: 6px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 25, 44, 0.14); z-index: 120;
}
.currency__menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--c-text);
}
.currency__menu button:hover, .currency__menu button[aria-selected="true"] { background: var(--c-surface); color: var(--c-primary); }

/* Main bar */
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { flex-shrink: 0; }
.logo img, .drawer__logo { width: var(--header-logo-width, 111px); height: auto; max-height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.drawer__logo { width: var(--header-logo-mobile-width, 100px); }

.search { position: relative; flex: 1 1 0; max-width: 560px; padding-inline: 24px; min-width: 0; }
.search__input {
  width: 100%; height: 44px; padding: 0 65px 0 41px;
  background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--radius-pill);
  font: 400 13px/1 var(--font); color: var(--c-ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.search__input { text-overflow: ellipsis; }
.search__input::placeholder { color: var(--c-muted); opacity: 1; text-overflow: ellipsis; }
.search__input:focus { outline: none; background: #fff; border-color: rgba(0, 90, 154, 0.45); box-shadow: 0 0 0 4px rgba(0, 90, 154, 0.1); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__icon { position: absolute; left: calc(24px + 16.5px); top: 50%; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; }
.search__kbd {
  position: absolute; right: calc(24px + 12px); top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--c-line); border-radius: 4px; padding: 2px 8px;
  font: 600 11px/16.5px var(--font); color: var(--c-muted);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); pointer-events: none;
}

.actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--c-wa); color: #fff; font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: 0.44px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-wa img { width: 13.333px; height: 13.333px; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.44px;
  box-shadow: 0 2px 10px rgba(0, 90, 154, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.btn-cta:hover { transform: translateY(-1px); background: #004c83; box-shadow: 0 8px 20px rgba(0, 90, 154, 0.35); }

.icon-btn, .burger { display: none; }

/* Desktop nav */
.navbar { background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--c-line-soft); }
.navbar__list { display: flex; align-items: center; justify-content: center; gap: 25px; padding-top: 11px; padding-bottom: 10px; }
.navbar__link {
  position: relative; display: block; padding: 4px 0; white-space: nowrap;
  font-size: 14px; font-weight: 500; line-height: 21px; color: var(--c-text);
  transition: color 0.2s;
}
.navbar__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-primary);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.navbar__link:hover { color: var(--c-primary); }
.navbar__link:hover::after { transform: scaleX(1); }
.navbar__link.is-active { color: var(--c-primary); font-weight: 700; padding-bottom: 6px; margin-bottom: -2px; }
.navbar__link.is-active::after { transform: scaleX(1); }

/* Drawer (tablet/mobile) */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(11, 25, 44, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  display: flex; flex-direction: column; gap: 20px;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: -20px 0 50px rgba(11, 25, 44, 0.2);
  border-radius: 24px 0 0 24px; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--c-surface); }
.drawer__close span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--c-ink); border-radius: 2px; }
.drawer__close span:first-child { transform: rotate(45deg); }
.drawer__close span:last-child { transform: rotate(-45deg); }
.drawer .search--drawer { max-width: none; padding: 0; flex: none; }
.drawer .search--drawer .search__icon { left: 16px; }
.drawer .search--drawer .search__input { height: 48px; padding: 0 16px 0 42px; font-size: 16px; /* prevents iOS zoom */ }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 4px;
  border-bottom: 1px solid #f0edec; font-size: 17px; font-weight: 600; color: var(--c-ink);
}
.drawer__nav a::after { content: '→'; color: var(--c-muted); font-weight: 400; transition: transform 0.25s var(--ease), color 0.25s; }
.drawer__nav a:hover::after, .drawer__nav a.is-active::after { color: var(--c-primary); transform: translateX(4px); }
.drawer__nav a.is-active { color: var(--c-primary); }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn-cta--block, .btn-wa--block { width: 100%; justify-content: center; padding: 14px 16px; font-size: 14px; }
.btn-wa--block img { width: 16px; height: 16px; }
.drawer__phone { text-align: center; font-size: 13px; color: var(--c-muted); padding-top: 4px; }
.drawer__phone strong { color: var(--c-ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 65px 0 48px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, rgba(226, 232, 240, 0.6) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.04);
}
.site-footer__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: -1; pointer-events: none; }
.site-footer__glow {
  position: absolute; left: 50%; top: -128px; width: 384px; height: 384px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(0, 90, 154, 0.05); filter: blur(32px); z-index: -1; pointer-events: none;
}

/* Trust strip */
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding: 25px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.trust__item { display: flex; align-items: center; gap: 16px; min-width: 0; }
.trust__icon {
  width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid; transition: transform 0.35s var(--ease);
}
.trust__item:hover .trust__icon { transform: translateY(-2px) rotate(-4deg); }
.trust__icon--blue { background: rgba(0, 90, 154, 0.1); border-color: rgba(0, 90, 154, 0.2); }
.trust__icon--orange { background: rgba(191, 75, 14, 0.1); border-color: rgba(191, 75, 14, 0.2); }
.trust__icon--navy { background: rgba(40, 97, 151, 0.1); border-color: rgba(40, 97, 151, 0.2); }
.trust__icon img { width: auto; height: auto; max-width: 22px; max-height: 22px; }
.trust__title { font-size: 14px; font-weight: 700; line-height: 20px; color: var(--c-ink); }
.trust__text { margin-top: 2px; font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.44px; color: var(--c-text); max-width: 300px; }

/* Main grid */
.fgrid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: 32px; padding-bottom: 25px; border-bottom: 1px solid var(--c-slate-line);
}
.fbrand { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; padding-right: 24px; }
.fbrand__logo img { width: var(--footer-logo-width, 123px); height: auto; object-fit: contain; mix-blend-mode: multiply; }
.fbrand__about { padding-top: 6px; font-size: 14px; line-height: 22.75px; color: var(--c-text); }
.fcontact { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; font-size: 14px; line-height: 20px; color: var(--c-text); }
.fcontact li { display: flex; align-items: flex-start; gap: 10px; }
.fcontact li img { flex-shrink: 0; margin-top: 3px; }
.fcontact li:first-child img { margin-top: 1px; }
.fcontact__phones { font-weight: 500; }
.fcontact a:hover { color: var(--c-primary); }
.fcontact__wa { font-weight: 600; color: var(--c-wa); }
.fcontact a.fcontact__wa:hover { color: #1da851; }

.fcol { grid-column: span 2; }
.fcol__title, .fcol__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--c-ink);
  text-align: left; cursor: default;
}
.fcol__chev { display: none; }
.fcol__list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fcol__list a {
  position: relative; display: inline-block;
  font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.44px; color: var(--c-text);
  transition: color 0.2s, transform 0.25s var(--ease);
}
.fcol__list a:hover { color: var(--c-primary); transform: translateX(3px); }

.fnews { grid-column: span 2; display: flex; flex-direction: column; gap: 7.4px; }
.fnews__text { font-size: 11px; font-weight: 700; line-height: 17.88px; letter-spacing: 0.44px; color: var(--c-text); }
.fnews__form { display: flex; flex-direction: column; gap: 8px; padding-top: 0.6px; }
.fnews__input {
  width: 100%; padding: 9px 13px 10px; background: #fff; border: 1px solid #cbd5e1; border-radius: 12px;
  font: 700 11px/1.3 var(--font); letter-spacing: 0.44px; color: var(--c-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fnews__input::placeholder { color: var(--c-muted); }
.fnews__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0, 90, 154, 0.12); }
.fnews__form.is-invalid .fnews__input { border-color: #d93025; }
.fnews__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2)); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.44px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.2s;
}
.fnews__btn img { width: 9.333px; height: 9.333px; transition: transform 0.25s var(--ease); }
.fnews__btn:hover { box-shadow: 0 8px 18px rgba(0, 90, 154, 0.28); transform: translateY(-1px); }
.fnews__btn:hover img { transform: translateX(3px); }
.fnews__btn[disabled] { opacity: 0.7; cursor: wait; }
.fnews__msg { font-size: 11px; font-weight: 600; line-height: 15px; min-height: 0; }
.fnews__msg:empty { display: none; }
.fnews__msg.is-ok { color: #13803f; }
.fnews__msg.is-err { color: #d93025; }

.social { display: flex; gap: 8px; padding-top: 8.6px; }
/* Social icons: real brand logos in brand colour; on hover the circle simply fills with that colour (no lift / glow, so nothing gets clipped) */
.social a {
  --brand: #005a9a;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-slate-line); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  color: var(--brand);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social a svg { display: block; }
.social .social--ig { --brand: #e1306c; }
.social .social--fb { --brand: #1877f2; }
.social .social--in { --brand: #0a66c2; }
.social .social--wa { --brand: #25d366; }
.social a:hover, .social a:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Bottom bar */
.fbottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 24px; }
.pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pay__label { font-size: 11px; font-weight: 500; line-height: 14px; letter-spacing: 0.44px; color: var(--c-ink); }
.chip {
  padding: 5px 11px; border-radius: 6px; background: #fff; border: 1px solid var(--c-slate-line);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: 0.44px; color: var(--c-ink); white-space: nowrap;
}
.fbottom__copy { font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.44px; color: var(--c-muted); text-align: right; }

.watermark {
  margin-top: 14px; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(56px, 11.6vw, 148px); line-height: 1; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0, 90, 154, 0.04);
  margin-right: -0.1em; /* balance trailing letter-spacing */
}

/* =========================================================
   SLIDER (types · packages · destinations · reviews · page carousels)
   --per = cards visible at once; arrows + dots below.
   .slider--mobile = normal grid on desktop/tablet; becomes a slider only on phones.
   JS adds .is-on while the slider is active.
   ========================================================= */
.slider { --per: 3; --gap: 24px; position: relative; }
.slider--types { --per: 5; --gap: 16px; }
.slider--dests { --per: 4; }
.slider--mobile { --per: ; }

/* Extra room above/below so card shadows and hover lifts are never clipped (the negative margins keep the layout unchanged) */
:is(.slider:not(.slider--mobile), .slider.is-on) > .slider__viewport { overflow: hidden; margin: -24px -16px -28px; padding: 24px 16px 48px; touch-action: pan-y; }
:is(.slider:not(.slider--mobile), .slider.is-on) .slider__track {
  display: flex; gap: var(--gap); will-change: transform;
  transition: transform 0.6s var(--ease);
  cursor: grab; user-select: none; -webkit-user-select: none;
}
:is(.slider:not(.slider--mobile), .slider.is-on) .slider__track > * { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); min-width: 0; }
.slider__track.is-dragging { transition: none; cursor: grabbing; }
.slider__track > [hidden] { display: none; }
.slider.is-on .slider__track img { -webkit-user-drag: none; user-select: none; }

.slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.slider.is-static .slider__nav, .slider--mobile:not(.is-on) .slider__nav { display: none; }
.slider.is-static .slider__track { cursor: default; }
.slider__arrow {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid #e9ecef; color: #1e5a8f;
  box-shadow: 0 4px 14px -4px rgba(30, 90, 143, 0.25);
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease), opacity 0.25s;
}
.slider__arrow--prev svg { transform: rotate(180deg); }
.slider__arrow:hover:not(:disabled) { background: #2373ba; border-color: #2373ba; color: #fff; transform: scale(1.06); }
.slider__arrow:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.slider__dots { display: flex; align-items: center; gap: 6px; }
.slider__dot { width: 8px; height: 8px; padding: 0; border-radius: 9999px; background: #cfd8e3; transition: width 0.35s var(--ease), background 0.35s; }
.slider__dot.is-active { width: 26px; background: #ff7a3d; }

@media (max-width: 1023px) {
  .slider { --per: 2; --gap: 16px; }
  .slider--types { --per: 3; }
  .slider--mobile { --per: ; }
}
@media (max-width: 767px) {
  .slider { --per: 1; --gap: 14px; }
  .slider--types { --per: 2; --gap: 12px; }
  :is(.slider:not(.slider--mobile), .slider.is-on) > .slider__viewport { margin: -20px -12px -24px; padding: 20px 12px 40px; }
  .slider__arrow { width: 42px; height: 42px; }
}

/* ---------------------------------------------------------
   Layout chosen in the admin (includes/sliders.php):
   .slider--off            → never a slider, cards in rows
   .slider--mobile + cols  → grid on computers, slider on phones (for sections designed as full sliders)
   .slider--cols-N         → cards per row in the grid (fewer on tablets and phones)
   Stronger selectors on purpose, so page styles that set --per can't switch the slider back on.
   --------------------------------------------------------- */
.slider--cols-2 { --cols: 2; }
.slider--cols-3 { --cols: 3; }
.slider--cols-4 { --cols: 4; }
.slider--cols-5 { --cols: 5; }
.slider.slider--off[class] { --per: ; }
.slider.slider--mobile[class*="slider--cols-"] { --per: ; }
.slider.slider--off .slider__nav { display: none; }
[class*="slider--cols-"]:not(.is-on) > .slider__viewport > .slider__track {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap, 24px);
  transform: none !important; height: auto !important;
}
[class*="slider--cols-"]:not(.is-on) > .slider__viewport > .slider__track > [hidden] { display: none; }
@media (max-width: 1023px) {
  [class*="slider--cols-"] { --cols: 2; }
  .slider--cols-5 { --cols: 3; }
}
@media (max-width: 767px) {
  [class*="slider--cols-"] { --cols: 1; }
  .slider--cols-5 { --cols: 2; }
  .slider.slider--mobile[class*="slider--cols-"] { --per: 1; }
  .slider.slider--mobile.slider--cols-5 { --per: 2; }
}

/* Floating WhatsApp (all pages) */
.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 12px 16px; border-radius: var(--radius-pill);
  background: var(--c-wa); color: #fff; font-size: 12px; font-weight: 700; line-height: 16px;
  box-shadow: 0 8px 18px -2px rgba(37, 211, 102, 0.45); /* box-shadow, not filter: the pulse inside no longer forces repaints */
  transition: transform 0.3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c-wa); z-index: -1; animation: wa-pulse 2.4s ease-out infinite; will-change: transform, opacity; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float img { width: 20px; height: 20px; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.35, 1.6); opacity: 0; } }

/* Temporary placeholder */
.placeholder { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; color: var(--c-muted); }

/* =========================================================
   TABLET  (768–1023)
   ========================================================= */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }

  .announce__phone span { display: none; } /* keep the phone icon only */
  .announce__phone img { width: 13px; height: 12px; }

  .search { padding-inline: 20px; }
  .search__icon { left: calc(20px + 16.5px); }
  .search__kbd { display: none; }
  .search__input { padding-right: 16px; }
  .actions .btn-wa span { display: none; }
  .actions .btn-wa { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .actions .btn-wa img { width: 15px; height: 15px; }

  .navbar__list { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .navbar__list::-webkit-scrollbar { display: none; }
  .navbar__list li:first-child { margin-left: auto; }
  .navbar__list li:last-child { margin-right: auto; }

  .site-footer { border-radius: 40px 40px 0 0; padding-top: 48px; }
  .trust { gap: 16px; padding: 20px; }
  .trust__item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fbrand { grid-column: 1 / -1; padding-right: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 12px; }
  .fbrand__logo { grid-column: 1 / -1; }
  .fbrand__about { padding-top: 0; }
  .fcontact { padding-top: 0; }
  .fcol, .fnews { grid-column: span 3; }
  .fbottom { flex-direction: column; align-items: flex-start; }
  .fbottom__copy { text-align: left; }
}

/* =========================================================
   MOBILE  (≤767)
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  /* Announcement → seamless marquee */
  .announce__right { display: none; }
  .announce__inner { gap: 0; }
  .announce__msg { width: 100%; }
  .announce__viewport {
    flex: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  }
  .announce__text { padding-right: 48px; }
  .announce__text--clone { display: inline; }
  .announce__track { animation: marquee 28s linear infinite; }

  .mainbar__inner { height: 60px; gap: 8px; }
  .logo img { width: min(var(--header-logo-mobile-width, 100px), 38vw); max-height: 48px; }
  .fbrand__logo img { width: min(var(--footer-logo-mobile-width, 123px), 70vw); }
  .mainbar .search, .mainbar .btn-cta { display: none; }
  .actions { gap: 8px; }
  .icon-btn, .burger {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-surface); border: 1px solid var(--c-line-soft);
  }
  .actions .btn-wa { width: 40px; height: 40px; }
  .actions .btn-wa img { width: 17px; height: 17px; }
  .burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: var(--c-primary); border-color: var(--c-primary); }
  .burger span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s; }
  .burger span:nth-child(2) { width: 11px; margin-left: 5px; }

  .navbar { display: none; }
  #smooth-content { padding-top: var(--header-h, 87px); }

  /* Footer */
  .site-footer { border-radius: 28px 28px 0 0; padding: 32px 0 28px; }
  .site-footer__bg { height: 55%; top: auto; bottom: 0; }
  .trust { grid-template-columns: 1fr; gap: 0; padding: 4px 16px; border-radius: 18px; }
  .trust__item { flex-direction: row; align-items: center; gap: 14px; padding: 14px 0; }
  .trust__item + .trust__item { border-top: 1px dashed var(--c-slate-line); }
  .trust__icon { width: 44px; height: 44px; }
  .trust__text { max-width: none; }

  .fgrid { grid-template-columns: 1fr; gap: 0; margin-top: 28px; padding-bottom: 8px; }
  .fbrand { display: flex; gap: 14px; padding-bottom: 20px; }
  .fbrand__about { font-size: 14px; line-height: 22px; }

  /* Link columns → accordions */
  .fcol, .fnews { grid-column: 1 / -1; }
  .fcol { border-top: 1px solid var(--c-slate-line); }
  .fcol__toggle { cursor: pointer; padding: 16px 0; min-height: 52px; }
  .fcol__chev { display: block; position: relative; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--c-slate-line); flex-shrink: 0; }
  .fcol__chev::before, .fcol__chev::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 2px;
    background: var(--c-primary); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease);
  }
  .fcol__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
  .fcol.is-open .fcol__chev::after { transform: translate(-50%, -50%) rotate(0deg); }
  .fcol__list {
    display: block; margin-top: 0; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .fcol.is-open .fcol__list { max-height: 420px; padding-bottom: 14px; visibility: visible; transition-delay: 0s; }
  .fcol__list li + li { margin-top: 4px; }
  .fcol__list a { display: block; padding: 8px 0; font-size: 13px; line-height: 18px; }

  .fnews {
    margin-top: 8px; padding: 20px 16px; border-radius: 18px; gap: 10px;
    background: rgba(255, 255, 255, 0.85); border: 1px solid var(--c-slate-line);
  }
  .fcol__title--static { font-size: 15px; }
  .fnews__text { font-size: 13px; line-height: 20px; letter-spacing: 0.2px; }
  .fnews__input { font-size: 16px; padding: 12px 14px; } /* 16px prevents iOS zoom */
  .fnews__btn { padding: 13px 12px; font-size: 13px; }
  .social { padding-top: 4px; gap: 10px; }
  .social a { width: 42px; height: 42px; }

  .fbottom { padding-top: 20px; gap: 14px; }
  .pay { gap: 6px; }
  .pay__label { width: 100%; margin-bottom: 2px; }
  .fbottom__copy { line-height: 17px; }
  .watermark { margin-top: 18px; font-size: 12.5vw; }

  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .wa-float img { width: 26px; height: 26px; }
}

@media (max-width: 360px) {
  .logo img { width: min(var(--header-logo-mobile-width, 100px), 32vw); }
  .actions { gap: 6px; }
  .icon-btn, .burger, .actions .btn-wa { width: 38px; height: 38px; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Date inputs on iPhone / iPad (Safari gives them a fixed intrinsic width,
   centred text and no placeholder — this keeps them inside their box)
   ========================================================= */
input[type="date"] { min-width: 0; max-width: 100%; }
@supports (-webkit-touch-callout: none) {
  input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; }
  input[type="date"]::-webkit-date-and-time-value { margin: 0; text-align: left; }
  input[type="date"]::-webkit-date-and-time-value { min-height: 1.25em; }
}
.date-ph { position: absolute; z-index: 1; display: flex; align-items: center; color: #717782; white-space: nowrap; pointer-events: none; }
.date-ph[hidden] { display: none; }

/* Footer: when some columns are switched off in the admin, the rest share the width */
@media (min-width: 1024px) {
  .fgrid.fgrid--fit { grid-template-columns: var(--fgrid-cols); }
  .fgrid.fgrid--fit > * { grid-column: auto; }
}
/* Header: keeps logo left / buttons right when the search box is switched off */
.search-spacer { flex: 1; }

/* Slider dots: the visible dot stays small, the tap area is 24px (mobile accessibility) */
.slider__dot { position: relative; }
.slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.slider__dots { gap: 14px; }

/* Whole package cards are clickable (main.js → [data-card-href]) */
[data-card-href] { cursor: pointer; }
