/* ============================================================
   Electrify Tampa — Christmas 2026 layer (REMOVABLE)
   Added 2026-11-10. All Christmas styling lives in this file.
   Removal: delete this file, xmas.js, salesman-xmas.png, and the
   injected xmas-* snippets in each page (see MANIFEST.md in
   hidden_files/christmas-2026/).
   ============================================================ */

/* --- Festive top banner: poster-red ticket strip, script greeting --- */
.xmas-banner {
  background: #bc1f24;
  background-image: radial-gradient(rgba(246, 239, 219, .14) 1px, transparent 1.4px);
  background-size: 14px 14px;
  color: #fbf6e7;
  font-family: "Yellowtail", cursive;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.25;
  text-align: center;
  padding: 7px 16px 9px;
  border-bottom: 2px dashed rgba(217, 164, 65, .9);
  position: relative;
  z-index: 30;
}
.xmas-banner .xmas-star { vertical-align: -2px; margin: 0 12px; }
/* thanks.html has a grid-centered body; pin its banner to the top */
.xmas-banner--fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }

/* --- Vintage bulb string (SVG tile: sagging wire, teardrop bulbs
       in poster red / gold / teal / green, each with a soft glow) --- */
.xmas-lights {
  height: 46px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22360%22%20height%3D%2246%22%20viewBox%3D%220%200%20360%2046%22%3E%3CradialGradient%20id%3D%22g0%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23bc1f24%22%20stop-opacity%3D%220.5%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23bc1f24%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CradialGradient%20id%3D%22g1%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23d9a441%22%20stop-opacity%3D%220.5%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23d9a441%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CradialGradient%20id%3D%22g2%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23136570%22%20stop-opacity%3D%220.5%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23136570%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CradialGradient%20id%3D%22g3%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%233e7d46%22%20stop-opacity%3D%220.5%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%233e7d46%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3Cpath%20d%3D%22M0%203%20Q%2045%2027%2090%203%20Q%20135%2027%20180%203%20Q%20225%2027%20270%203%20Q%20315%2027%20360%203%22%20fill%3D%22none%22%20stroke%3D%22%233a3f3a%22%20stroke-width%3D%221.6%22%2F%3E%3Cellipse%20cx%3D%2245%22%20cy%3D%2233%22%20rx%3D%2216%22%20ry%3D%2215%22%20fill%3D%22url%28%23g0%29%22%2F%3E%3Cline%20x1%3D%2245%22%20y1%3D%2214%22%20x2%3D%2245%22%20y2%3D%2219%22%20stroke%3D%22%233a3f3a%22%20stroke-width%3D%221.6%22%2F%3E%3Crect%20x%3D%2241%22%20y%3D%2218%22%20width%3D%228%22%20height%3D%227%22%20rx%3D%221.5%22%20fill%3D%22%232e332e%22%2F%3E%3Cpath%20d%3D%22M45%2025%20C%2052%2031%2C%2051.5%2038.5%2C%2045%2042.5%20C%2038.5%2038.5%2C%2038%2031%2C%2045%2025%20Z%22%20fill%3D%22%23bc1f24%22%2F%3E%3Cellipse%20cx%3D%2242.4%22%20cy%3D%2231%22%20rx%3D%222.1%22%20ry%3D%223.4%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.5%22%2F%3E%3Cellipse%20cx%3D%22135%22%20cy%3D%2233%22%20rx%3D%2216%22%20ry%3D%2215%22%20fill%3D%22url%28%23g1%29%22%2F%3E%3Cline%20x1%3D%22135%22%20y1%3D%2214%22%20x2%3D%22135%22%20y2%3D%2219%22%20stroke%3D%22%233a3f3a%22%20stroke-width%3D%221.6%22%2F%3E%3Crect%20x%3D%22131%22%20y%3D%2218%22%20width%3D%228%22%20height%3D%227%22%20rx%3D%221.5%22%20fill%3D%22%232e332e%22%2F%3E%3Cpath%20d%3D%22M135%2025%20C%20142%2031%2C%20141.5%2038.5%2C%20135%2042.5%20C%20128.5%2038.5%2C%20128%2031%2C%20135%2025%20Z%22%20fill%3D%22%23d9a441%22%2F%3E%3Cellipse%20cx%3D%22132.4%22%20cy%3D%2231%22%20rx%3D%222.1%22%20ry%3D%223.4%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.5%22%2F%3E%3Cellipse%20cx%3D%22225%22%20cy%3D%2233%22%20rx%3D%2216%22%20ry%3D%2215%22%20fill%3D%22url%28%23g2%29%22%2F%3E%3Cline%20x1%3D%22225%22%20y1%3D%2214%22%20x2%3D%22225%22%20y2%3D%2219%22%20stroke%3D%22%233a3f3a%22%20stroke-width%3D%221.6%22%2F%3E%3Crect%20x%3D%22221%22%20y%3D%2218%22%20width%3D%228%22%20height%3D%227%22%20rx%3D%221.5%22%20fill%3D%22%232e332e%22%2F%3E%3Cpath%20d%3D%22M225%2025%20C%20232%2031%2C%20231.5%2038.5%2C%20225%2042.5%20C%20218.5%2038.5%2C%20218%2031%2C%20225%2025%20Z%22%20fill%3D%22%23136570%22%2F%3E%3Cellipse%20cx%3D%22222.4%22%20cy%3D%2231%22%20rx%3D%222.1%22%20ry%3D%223.4%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.5%22%2F%3E%3Cellipse%20cx%3D%22315%22%20cy%3D%2233%22%20rx%3D%2216%22%20ry%3D%2215%22%20fill%3D%22url%28%23g3%29%22%2F%3E%3Cline%20x1%3D%22315%22%20y1%3D%2214%22%20x2%3D%22315%22%20y2%3D%2219%22%20stroke%3D%22%233a3f3a%22%20stroke-width%3D%221.6%22%2F%3E%3Crect%20x%3D%22311%22%20y%3D%2218%22%20width%3D%228%22%20height%3D%227%22%20rx%3D%221.5%22%20fill%3D%22%232e332e%22%2F%3E%3Cpath%20d%3D%22M315%2025%20C%20322%2031%2C%20321.5%2038.5%2C%20315%2042.5%20C%20308.5%2038.5%2C%20308%2031%2C%20315%2025%20Z%22%20fill%3D%22%233e7d46%22%2F%3E%3Cellipse%20cx%3D%22312.4%22%20cy%3D%2231%22%20rx%3D%222.1%22%20ry%3D%223.4%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.5%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 46px;
  pointer-events: none;
}
/* Subpages: the string sits in-flow at the foot of the top bar */
.topbar > .xmas-lights { margin-top: 4px; }
/* Homepage: hang it from the bottom edge of the top nav, over the hero sky */
.hero .topnav > .xmas-lights {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
@media (max-width: 720px) {
  /* On small phones the stacked homepage nav is tall; hide its string
     so the bulbs never crowd the hero panel. Subpage strings are
     in-flow and stay. */
  .hero .topnav > .xmas-lights { display: none; }
}

/* --- Snowfall (flakes are created by xmas.js) --- */
.xmas-snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 80;
}
.xmas-snow i {
  position: absolute;
  top: -3vh;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 252, .95) 0%, rgba(255, 255, 252, .5) 60%, rgba(255, 255, 252, 0) 100%);
  animation-name: xmas-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes xmas-fall {
  0%   { transform: translate3d(0, -3vh, 0); }
  25%  { transform: translate3d(1.2vw, 26vh, 0); }
  50%  { transform: translate3d(-1vw, 53vh, 0); }
  75%  { transform: translate3d(1.2vw, 79vh, 0); }
  100% { transform: translate3d(0, 106vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-snow { display: none !important; }
}

/* --- Snow piling up on top of every car posting (added 2026-11-14) ---
   A white drift along the top edge of each inventory card photo and each
   vehicle detail photo. Pure CSS in this file, so it vanishes with the
   rest of the Christmas layer when xmas.css is deleted (Jan 1, 2027).
   The ::before has no z-index, so it paints above the photo but below
   the fuel badge (which stays readable on top of the snow). */
.car-photo::before,
.veh-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22360%22%20height%3D%2234%22%20viewBox%3D%220%200%20360%2034%22%3E%3Cpath%20d%3D%22M0%200H360V7C344%209%20336%2017%20318%2015%20300%2013%20296%2023%20276%2021%20256%2019%20250%209%20230%2012%20210%2015%20202%2027%20180%2024%20158%2021%20150%2011%20128%2014%20106%2017%2096%2025%2074%2022%2052%2019%2044%2010%2026%2012%2012%2014%204%2010%200%208Z%22%20fill%3D%22%23ffffff%22%2F%3E%3C%2Fsvg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 2px rgba(22, 36, 46, .28));
  animation: xmas-snow-build 40s ease-in-out infinite alternate;
}
/* Vary the drift from card to card so it doesn't look stamped on */
.car-card:nth-of-type(3n+2) .car-photo::before { transform: scaleX(-1); }
.car-card:nth-of-type(3n+3) .car-photo::before { height: 40px; }
@keyframes xmas-snow-build {
  from { height: 34px; }
  to   { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .car-photo::before,
  .veh-photo::before { animation: none; }
}
