/* Package 13 - splash badges on homepage specials cards (#specials).
   Built by includes/special_badge.php from each special's own headline,
   so badges follow the specials monitor automatically. Pure HTML/CSS + inline SVG.
   Types: .sb--months (red ribbon), .sb--weeks (gold/navy), .sb--dollars (money green),
          .sb--fees (teal ticket), .sb--other (navy pill).
   The badge is absolutely positioned inside the fixed-height .photo box (no layout
   shift) and ignores the pointer, so carousel swipes/arrows work through it. */
@font-face {
  font-family: "PMBadge";
  src: url("../fonts/montserrat-900-badge.woff2?v=20261118") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
.card .photo > .sb {
  --sb: 17px;
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  max-width: 46%;
  pointer-events: none;
  font: 900 var(--sb)/1 "PMBadge", "Arial Black", Arial, Helvetica, sans-serif;
  text-align: left;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}
.card .photo > .sb .sb-sr {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sb .sb-art {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-5deg);
  transform-origin: 0 100%;
  filter: drop-shadow(0 3px 6px rgba(4, 18, 48, .35));
}
.sb .sb-panel,
.sb .sb-word,
.sb .sb-tagline {
  position: relative;
  display: block;
  white-space: nowrap;
  border: 2px solid #fff;
  transform: skewX(-8deg);
}
.sb .sb-panel { padding: .2em .42em .16em; border-radius: 4px; }
.sb .sb-pre {
  display: block;
  font-size: .46em;
  letter-spacing: .1em;
  margin: 0 0 .12em;
}
.sb .sb-big { display: block; font-size: 1em; letter-spacing: -.01em; }
.sb .sb-word {
  margin: -.16em 0 0 .7em;
  padding: .08em .38em .04em;
  font-size: 1.22em;
  border-radius: 4px;
  letter-spacing: .01em;
}
.sb .sb-tagline {
  display: none;               /* variant A (compact): no tagline */
  margin: -.1em 0 0 1.6em;
  padding: .28em .5em .22em;
  font-size: .42em;
  letter-spacing: .06em;
  border-width: 1.5px;
  border-radius: 3px;
}
.sb .sb-burst {
  position: absolute;
  right: -1.25em;
  top: -1.2em;
  width: 1.7em;
  height: 1.7em;
  fill: none;
  stroke: #ffc400;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}
.sb .sb-swoosh {
  position: absolute;
  left: .3em;
  bottom: .06em;
  width: 80%;
  height: .2em;
  fill: #ffc400;
}
.sb--months .sb-word { padding-bottom: .2em; }

/* 1. MONTHS FREE - red ribbon (hero "2 MONTHS FREE") */
.sb--months .sb-panel { background: linear-gradient(180deg, #ff3b4b 0%, #e01226 100%); color: #fff; }
.sb--months .sb-pre { color: #ffe066; }
.sb--months .sb-big { text-shadow: 0 2px 0 rgba(120, 0, 10, .35); }
.sb--months .sb-word { background: linear-gradient(180deg, #e4162b 0%, #b40a1c 100%); color: #fff; text-shadow: 0 2px 0 rgba(90, 0, 8, .4); }
.sb--months .sb-tagline { background: #b40a1c; color: #fff; }

/* 2. WEEKS FREE - gold badge, navy text, navy FREE ribbon (hero "6 WEEKS FREE") */
.sb--weeks .sb-panel { background: linear-gradient(180deg, #ffe066 0%, #ffbd00 100%); color: #0b2a6f; }
.sb--weeks .sb-pre { color: #0b2a6f; }
.sb--weeks .sb-word { background: linear-gradient(180deg, #123a8f 0%, #071f57 100%); color: #fff; }
.sb--weeks .sb-tagline { background: #ffbd00; color: #0b2a6f; }
.sb--weeks .sb-burst { stroke: #ffd21f; }

/* 3. DOLLARS OFF - money green "bill" with gold OFF / GIFT CARD / CREDIT plate */
.sb--dollars .sb-panel {
  background: linear-gradient(180deg, #21a866 0%, #0b6b3b 100%);
  color: #fff;
  outline: 1px dashed rgba(255, 255, 255, .55);
  outline-offset: -5px;
  padding-left: .5em; padding-right: .5em;
}
.sb--dollars .sb-pre { color: #c9f7db; }
.sb--dollars .sb-big { font-size: 1.12em; text-shadow: 0 2px 0 rgba(0, 50, 25, .35); }
.sb--dollars .sb-word { background: linear-gradient(180deg, #ffd84a 0%, #f4b400 100%); color: #0a4d2b; font-size: 1.02em; }
.sb--dollars .sb-tagline { background: #fff; color: #0b6b3b; }
.sb--dollars .sb-burst { stroke: #ffd21f; }

/* 4. FEES - teal ticket with notched edges, white FEE plate */
.sb--fees .sb-art { transform: rotate(-4deg); }
.sb--fees .sb-panel {
  background: linear-gradient(180deg, #19b6c9 0%, #0a7c8f 100%);
  color: #fff;
  padding: .26em .62em .2em;
  border-radius: 6px;
  -webkit-mask: radial-gradient(circle .26em at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle .26em at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle .26em at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle .26em at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .8);
}
.sb--fees .sb-big { font-size: 1em; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 60, 70, .35); }
.sb--fees .sb-word { background: #fff; color: #0a7c8f; border-color: #0a7c8f; font-size: .78em; margin-top: -.1em; padding: .18em .45em .12em; }

/* 5. OTHER (look & lease, reduced rent, ...) - navy pill with red edge and gold star */
.sb--other .sb-art { transform: none; filter: drop-shadow(0 3px 8px rgba(4, 18, 48, .35)); }
.sb--other .sb-pill {
  display: flex;
  align-items: center;
  gap: .5em;
  max-width: 100%;
  padding: .32em .9em .32em .32em;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(90deg, #062b72 0%, #1768d8 100%);
  color: #fff;
  font: 800 12px/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
}
.sb--other .sb-star {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9em; height: 1.9em;
  border-radius: 50%;
  background: #ffc400;
  color: #062b72;
  font-size: 1em;
}
.sb--other .sb-txt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.card .photo > .sb.sb--other { max-width: 56%; }

/* Specials cards only: carousel arrows sit a little higher and above the badge,
   so the badge never covers them (pkg11 puts them at 50%). */
#specials .card .photo .card-carousel-btn { top: 32%; z-index: 5; }

/* Sizes: photo is 180px on desktop, 145px at 481-700px, 190px on phones */
@media (max-width: 900px) { .card .photo > .sb { --sb: 16px; } }
@media (max-width: 700px) { .card .photo > .sb { --sb: 14px; left: 10px; bottom: 10px; } }
@media (max-width: 480px) { .card .photo > .sb { --sb: 18px; left: 12px; bottom: 12px; max-width: 48%; } }
@media (prefers-reduced-motion: reduce) { .sb .sb-art { transition: none; } }
@media (forced-colors: active) {
  .sb .sb-panel, .sb .sb-word, .sb--other .sb-pill { forced-color-adjust: none; }
}
/* pkg13 variant-B start */
/* Variant B (splash): a little larger, with the small tagline banner
   ("ON SELECT UNITS", "1ST MONTH") like the hero graphics. */
.card .photo > .sb { --sb: 18px; max-width: 52%; }
.sb.sb--tag .sb-tagline { display: block; }
@media (max-width: 900px) { .card .photo > .sb { --sb: 17px; } }
@media (max-width: 700px) { .card .photo > .sb { --sb: 14px; } .sb.sb--tag .sb-tagline { display: none; } }
@media (max-width: 480px) { .card .photo > .sb { --sb: 19px; max-width: 56%; } .sb.sb--tag .sb-tagline { display: block; } }
/* pkg13 variant-B end */
