/* =====================================================================
   Logan Tours — decoração de Natal
   Só é carregado quando App\Services\Season::xmas() (1 dez – 6 jan, ou ligada no back-office).
   Sem imagens: CSS + SVG inline. Respeita "reduzir movimento".
   ===================================================================== */
:root { --xmas-gold: #ffd76a; --xmas-green: #1f7a4d; --xmas-red: #c8102e; }

/* ------------------------------------------------------------ Faixa de Boas Festas */
.xmas-bar {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; text-align: center; color: #fff; font-weight: 700; font-size: .9rem;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 10px, transparent 10px 20px), linear-gradient(90deg, #a00c24, var(--xmas-red) 50%, #a00c24);
}
.xmas-bar strong { color: var(--xmas-gold); }
.xmas-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.xmas-bar a:hover { color: var(--xmas-gold); }
.xmas-star { color: var(--xmas-gold); display: inline-block; animation: xmas-spin 6s linear infinite; }
.xmas-short { display: none; }
@keyframes xmas-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Fio de luzes (cabeçalho e rodapé) */
.xmas-lights { position: absolute; left: 0; right: 0; bottom: -14px; height: 26px; pointer-events: none; z-index: 5; display: flex; justify-content: space-around; overflow: hidden; }
.xmas-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; opacity: .7;
  background: radial-gradient(ellipse 28px 10px at 28px 0, transparent 9px, #2b3a2e 9.5px, #2b3a2e 11px, transparent 11.5px) 0 0 / 56px 12px repeat-x; }
.xmas-lights i { position: relative; top: 9px; width: 9px; height: 14px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 6px 2px var(--c); animation: xmas-twinkle 1.8s ease-in-out infinite; animation-delay: var(--d); }
.xmas-lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 5px; border-radius: 1px; background: #4a4a4a; }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }
.site-footer .xmas-lights { top: 0; bottom: auto; }

/* ------------------------------------------------------------ Gorro no logótipo */
.is-xmas .logo { position: relative; }
.xmas-hat { position: absolute; left: 3px; top: -10px; width: 32px; height: 28px; transform: rotate(-26deg); transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); } /* assente no círculo do emblema */

/* ------------------------------------------------------------ Página inicial */
.xmas-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,215,106,.65); backdrop-filter: blur(6px);
  color: #fff; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.xmas-tag span { color: var(--xmas-gold); }
.is-xmas .hero { position: relative; }
.is-xmas .hero-inner { position: relative; z-index: 2; }
.xmas-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.is-xmas .btn-primary { box-shadow: 0 6px 18px rgba(200,16,46,.32), inset 0 0 0 2px rgba(255,215,106,.55); }

/* Títulos de secção: estrela dourada antes do sobretítulo */
.is-xmas .eyebrow::before { content: "✦"; color: var(--xmas-gold); font-size: .95em; }
.is-xmas .eyebrow-light::before, .is-xmas .offer-popup-eyebrow::before { content: none; }

/* ------------------------------------------------------------ Cartões de tours: fita de presente no canto inferior (o de cima tem as etiquetas) */
.is-xmas .tour-card-media::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 64px; height: 64px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, transparent 40%, var(--xmas-gold) 40% 42.5%, var(--xmas-red) 42.5% 63.5%, var(--xmas-gold) 63.5% 66%, transparent 66%);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
.is-xmas .tour-card-media::before {
  content: "★"; position: absolute; bottom: 9px; right: 11px; z-index: 3; color: var(--xmas-gold); font-size: .85rem; text-shadow: 0 0 4px rgba(0,0,0,.4);
}
.is-xmas .badge-offer { background: var(--xmas-red); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,215,106,.7); }

/* ------------------------------------------------------------ Popup de ofertas */
.is-xmas .offer-popup-box {
  border-top: 0; padding-top: 34px; overflow: visible;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,215,106,.22) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(200,16,46,.10) 0 2px, transparent 3px) 0 0 / 58px 58px,
    #fff;
}
.is-xmas .offer-popup-box::before { /* fita de bengala doce no topo */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(-45deg, var(--xmas-red) 0 10px, #fff 10px 20px);
}
.is-xmas .offer-popup { padding-top: 26px; } /* espaço para o laço (a caixa do diálogo corta o que sai dela) */
.xmas-bow { position: absolute; top: -26px; left: 50%; width: 88px; height: 44px; transform: translateX(-50%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); animation: xmas-bow 2.4s ease-in-out infinite; }
@keyframes xmas-bow { 0%, 100% { transform: translateX(-50%) rotate(0); } 50% { transform: translateX(-50%) rotate(-4deg); } }
.is-xmas .offer-popup-eyebrow { color: var(--xmas-green); }
.is-xmas .offer-popup h2 { color: var(--xmas-red); }
.is-xmas .offer-popup-item:hover { border-color: var(--xmas-green); }
.is-xmas .offer-popup::backdrop { background: radial-gradient(circle at 50% 30%, rgba(31,122,77,.35), rgba(7,20,64,.65)); }

/* ------------------------------------------------------------ Página do tour */
.is-xmas .tour-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,215,106,.35) 0 1.5px, transparent 2.5px) 0 0 / 60px 60px,
    radial-gradient(circle at 70% 70%, rgba(200,16,46,.15) 0 1.5px, transparent 2.5px) 0 0 / 80px 80px,
    var(--sand);
}
.is-xmas .booking-from { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px), var(--navy); position: relative; }
.is-xmas .booking-from::after { content: "🎁"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }

/* ------------------------------------------------------------ Rodapé */
.is-xmas .site-footer::before { height: 6px; background: repeating-linear-gradient(-45deg, var(--xmas-red) 0 10px, #fff 10px 20px); }
.xmas-footer-wish { width: 100%; text-align: center; color: var(--xmas-gold); font-weight: 700; margin: 0 0 6px; }

/* ------------------------------------------------------------ Botão do WhatsApp com gorro */
.is-xmas .wa-float::after {
  content: ""; position: absolute; top: -13px; left: 6px; width: 30px; height: 26px; transform: rotate(-20deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M8 44 C14 20 30 6 50 10 C44 18 46 30 52 40 Z' fill='%23c8102e'/%3E%3Cpath d='M50 10 C56 12 60 18 60 24' stroke='%23c8102e' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='60' cy='27' r='5' fill='%23fff'/%3E%3Crect x='2' y='40' width='54' height='12' rx='6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ------------------------------------------------------------ Contagem na faixa */
.xmas-count { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,215,106,.6); color: #fff; font-weight: 800; white-space: nowrap; }

/* ------------------------------------------------------------ Bolas penduradas por baixo do cabeçalho */
.xmas-baubles { position: absolute; left: 0; right: 0; top: 100%; height: 0; pointer-events: none; z-index: 4; }
.xmas-bauble { position: absolute; top: 0; width: 2px; height: var(--len); background: linear-gradient(#b89b4a, #e9d48f); transform-origin: 50% 0; animation: xmas-swing 3.2s ease-in-out infinite; animation-delay: var(--d); }
.xmas-bauble::before { /* tampa dourada */
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 5px; transform: translateX(-50%); border-radius: 2px; background: #d9b44a; }
.xmas-bauble::after { /* bola com brilho */
  content: ""; position: absolute; left: 50%; top: 100%; width: 22px; height: 22px; margin-top: 2px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 3px, rgba(255,255,255,.25) 5px, transparent 9px), var(--c);
  box-shadow: inset -3px -4px 6px rgba(0,0,0,.25), 0 3px 6px rgba(0,0,0,.25); }
.xmas-bauble.is-star::after { /* estrela dourada em vez de bola */
  border-radius: 0; background: var(--xmas-gold); box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 26px; height: 26px; }
@keyframes xmas-swing { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } }

/* ------------------------------------------------------------ Grinalda de pinheiro com bagas */
.xmas-garland { position: absolute; left: 0; right: 0; height: 30px; pointer-events: none; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cg fill='%231f7a4d'%3E%3Cpath d='M0 15 l8-10 4 8 6-9 4 9 7-8 3 9 8-7 2 9 8-6 1 9 8-6 0 9 8-6-1 9 8-5-2 9 8-4-2 8 7-2-2 7 L120 15 L114 22 l-6 4-4-7-6 6-4-8-7 6-3-8-8 6-2-8-8 5-1-8-8 6 0-8-8 6 1-8-8 5 2-8-8 4z'/%3E%3C/g%3E%3Cg fill='%23175c3a'%3E%3Cpath d='M6 15 l10-6 2 7 8-5 1 7 9-4 0 7 9-4-1 6 9-3-2 6 9-2-2 5-9 1 2 5-9-2 1 5-9-3 0 5-9-4-1 5-8-5-2 5-8-5z'/%3E%3C/g%3E%3Cg fill='%23c8102e'%3E%3Ccircle cx='22' cy='17' r='3'/%3E%3Ccircle cx='27' cy='14' r='2.6'/%3E%3Ccircle cx='72' cy='16' r='3'/%3E%3Ccircle cx='77' cy='19' r='2.6'/%3E%3C/g%3E%3Ccircle cx='50' cy='15' r='3.2' fill='%23ffd76a'/%3E%3Ccircle cx='100' cy='16' r='3.2' fill='%23ffd76a'/%3E%3C/svg%3E") repeat-x 0 50% / 120px 30px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.xmas-garland-hero { bottom: -12px; }
.xmas-garland-footer { top: 8px; }

/* ------------------------------------------------------------ Neve em todo o site e trenó */
.xmas-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.xmas-sleigh { position: absolute; top: 2%; left: 0; z-index: 2; display: flex; gap: 2px; font-size: 2rem; line-height: 1; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255,215,106,.9)); }
.xmas-sleigh span:nth-child(1), .xmas-sleigh span:nth-child(2) { transform: scaleX(-1); } /* renas viradas para a frente */
.xmas-sleigh.is-flying { animation: xmas-fly 9s linear forwards; }
@keyframes xmas-fly {
  0%   { opacity: 0; transform: translate(-25vw, 40px) rotate(-6deg); }
  8%   { opacity: 1; }
  50%  { transform: translate(50vw, -10px) rotate(-3deg); }
  92%  { opacity: 1; }
  100% { opacity: 0; transform: translate(110vw, -50px) rotate(-8deg); }
}

/* ------------------------------------------------------------ Secções claras: flocos subtis no fundo */
.is-xmas .section-sand, .is-xmas .bg-sand {
  background-image: radial-gradient(circle at 25% 25%, rgba(31,122,77,.08) 0 2px, transparent 3px), radial-gradient(circle at 75% 75%, rgba(200,16,46,.07) 0 2px, transparent 3px);
  background-size: 64px 64px;
}
.is-xmas .tour-card:hover { box-shadow: 0 0 0 2px rgba(255,215,106,.7), var(--shadow); }

@media (max-width: 1040px) { .xmas-hat { width: 27px; height: 24px; left: 2px; top: -8px; } } /* logótipo mais pequeno (160px) */
@media (prefers-reduced-motion: reduce) {
  .xmas-lights i, .xmas-star, .xmas-bow, .xmas-bauble { animation: none; }
  .xmas-sparkles, .xmas-snow, .xmas-sleigh { display: none; }
}
@media (max-width: 640px) {
  .xmas-bar { font-size: .78rem; padding: 7px 10px; gap: 6px; flex-wrap: nowrap; }
  .xmas-bar > span:nth-of-type(2), .xmas-long { display: none; } /* no telemóvel: estrela + contagem + link */
  .xmas-count { padding: 2px 9px; }
  .xmas-lights i:nth-child(even) { display: none; }
  .xmas-bow { width: 70px; height: 35px; top: -20px; }
  .xmas-bauble::after { width: 17px; height: 17px; }
  .xmas-sleigh { font-size: 1.5rem; }
}
