/* components.css — reusable widgets & primitives (buttons, cards, icons, brand, section scaffold, weekend banner, before/after slider, service map)
   Part of 3statewallpaper styles — load order: base -> components -> sections */

#areas .mapbox {
  border-radius: 20px;
  padding: 24px;
}
#areas .mapbox svg {
  width: 100%;
  height: auto;
  display: block;
}
#areas .statepath {
  fill: #e0d2b9;
  stroke: #ffffff;
  stroke-width: 2.4;
  transition: fill 0.18s;
  cursor: pointer;
}
#areas .statepath:hover,
#areas .statepath.on {
  fill: var(--brand);
}
#areas .slbl {
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 800;
  fill: var(--ink);
  font-size: 20px;
  pointer-events: none;
  dominant-baseline: central;
}
#areas .cov {
  margin: 0;
  padding: 0;
  list-style: none;
}
#areas .cov li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}
#areas .cov li:last-child {
  border-bottom: none;
}
#areas .cov li.on {
  color: var(--brand-dark);
}
#areas .cov li b {
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  white-space: nowrap;
}
#areas .cov li span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
#areas .pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
#areas .pill {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  border: 1.5px solid var(--brand);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
}
#areas .pill:hover,
#areas .pill.on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
:root {
  --areasGrid: 1fr 0.85fr;
}
@media (max-width: 859px) {
  :root {
    --areasGrid: 1fr;
  }
  #areas .cov li {
    gap: 10px;
  }
  #areas .cov li span {
    font-size: 11.5px;
    white-space: normal;
  }
  #areas .pills {
    gap: 7px;
    flex-wrap: wrap;
  }
  #areas .pill {
    padding: 8px 11px;
    font-size: 11px;
  }
}

.room {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(33, 26, 18, 0.45);
  border: 1px solid var(--border);
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
}
.room:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.room .side {
  position: absolute;
  inset: 0;
}
.room .rsvg {
  width: 100%;
  height: 100%;
  display: block;
}
.room .bare rect.w {
  fill: #e0d2b9;
}
.room .papered {
  clip-path: inset(0 0 0 var(--seam, 50%));
}
.room .photo-layer {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.room .photo-before {
  background-color: #e0d2b9;
  background-image: url(../assets/wallpaper_installation_new_jersey.webp);
}
.room .photo-after {
  background-image: url(../assets/wallpaper_installation_new_york.webp);
}
.ex-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: var(--border); /* placeholder tint while lazy image loads */
}
.room .furni {
  pointer-events: none;
}
.room .seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--seam, 50%);
  width: 3px;
  background: var(--bg);
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(33, 26, 18, 0.12);
}
.room .grip {
  position: absolute;
  top: 50%;
  left: var(--seam, 50%);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(33, 26, 18, 0.25);
}
.room .grip svg {
  width: 22px;
  height: 22px;
}
.room .lbl {
  position: absolute;
  bottom: 14px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(30, 43, 56, 0.62);
  color: #fff;
  padding: 5px 11px;
  border-radius: 7px;
}
.room .lbl.b {
  left: 14px;
}
.room .lbl.a {
  right: 14px;
}
@media (max-width: 859px) {
  .room {
    aspect-ratio: 3/4;
  }
}

/* ===== Weekend deal ===== */
.wk-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(100deg, var(--brand) 0%, #e58a4e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 26px -12px rgba(201, 81, 39, 0.6);
}
.wk-banner .wk-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  left: -60%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-18deg);
  animation: wkShine 4.5s ease-in-out infinite;
}
@keyframes wkShine {
  0%,
  55% {
    left: -60%;
  }
  90%,
  100% {
    left: 130%;
  }
}
.wk-banner .wk-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wk-banner .wk-icon svg {
  width: 19px;
  height: 19px;
}
.wk-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.wk-txt b {
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 900;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}
.wk-txt small {
  font-size: 12.5px;
  opacity: 0.92;
  font-weight: 600;
}
.wk-off {
  flex: none;
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
}
.wk-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(22, 33, 44, 0.28);
  color: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.wk-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex: none;
}
.wk-status.live .dot {
  background: #5cf08f;
  box-shadow: 0 0 0 0 rgba(92, 240, 143, 0.7);
  animation: wkPulse 1.6s infinite;
}
@keyframes wkPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 240, 143, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(92, 240, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(92, 240, 143, 0);
  }
}
.wk-was {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 700;
  margin-right: 7px;
}
.wk-now {
  color: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .wk-banner .wk-shine,
  .wk-status.live .dot {
    animation: none;
  }
}
@media (max-width: 859px) {
  .wk-off {
    font-size: 22px;
  }
  .wk-status {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }
}

/* Hero primary button uses a short label on mobile, full on desktop */
.lbl-short {
  display: none;
}

/* Mobile: tighten hero so the before/after image rises higher */
@media (max-width: 859px) {
  .hero-sec {
    padding-top: 12px !important;
    padding-bottom: 22px !important;
  }
  .hero-grid {
    gap: 20px !important;
  }
  .hero-h1 {
    margin-top: 16px !important;
  }
  .hero-lede {
    margin-top: 12px !important;
  }
  .hero-btns {
    margin-top: 18px !important;
    gap: 10px !important;
  }
  .hero-btn {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }
  /* Done clean badge + secondary WhatsApp button are covered by the
     sticky bottom bar on mobile, so drop them here */
  .hero-badge {
    display: none !important;
  }
  .hero-btn-wa {
    display: none !important;
  }
  .lbl-full {
    display: none !important;
  }
  .lbl-short {
    display: inline !important;
  }
}

.brand-logo {
  background-image: url(../assets/brand-logo.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  flex: none;
}
.brand-title {
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-subtitle {
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--brand-light);
}
.brand-logo--lg {
  width: 58px;
  height: 58px;
}
.brand-logo--sm {
  width: 40px;
  height: 40px;
}
@media (max-width: 859px) {
  .brand-title {
    font-size: 12px;
  }
  .brand-subtitle {
    font-size: 9px;
  }
}

/* ===================================================================
   Shared components
   =================================================================== */
.app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "AmpSans", Archivo, sans-serif;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.ico {
  display: inline-flex;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border);
}
