/**
 * Shared Greenways marketplace page backdrop + glass.
 * Used by Agent Market and marketplace-home / about / hvac story modules.
 */
:root {
  --gw-mp-backdrop-image: url("/HTMLS%20GWM%20GWB/marketplace-home-backdrop.png?v=hero2");
}

/* Fixed photo layer (Agent Market uses .gw-mp-backdrop; story pages use body.gw-mp-story) */
.gw-mp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #070e12;
}
.gw-mp-backdrop::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--gw-mp-backdrop-image);
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  filter: blur(0.6px) saturate(1.12) brightness(0.96);
  transform: scale(1.04);
  opacity: 0.72;
}
.gw-mp-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 18, 0.42) 0%, rgba(7, 14, 18, 0.22) 26%, rgba(7, 14, 18, 0.52) 58%, rgba(7, 14, 18, 0.9) 100%),
    linear-gradient(160deg, rgba(7, 14, 18, 0.55) 0%, rgba(7, 14, 18, 0.4) 42%, rgba(7, 14, 18, 0.82) 100%),
    radial-gradient(ellipse at 18% 0%, rgba(34, 212, 255, 0.06), transparent 46%),
    radial-gradient(ellipse at 82% 100%, rgba(40, 167, 69, 0.1), transparent 42%);
}

/* Marketplace story pages — use .gw-mp-backdrop div (same as Agent Market).
   body::before with z-index:-2 is unreliable (paints behind body background). */
body.gw-mp-story {
  background: #070e12 !important;
  color: #e8f6fa !important;
}
body.gw-mp-story::before,
body.gw-mp-story::after {
  content: none !important;
  display: none !important;
}

/* Frosted dark glass base (Agent Market top panel + story page shell) */
.gw-mp-top-glass,
.gw-mp-story-glass {
  border: 1px solid rgba(34, 212, 255, 0.28);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  background:
    linear-gradient(165deg, rgba(10, 22, 30, 0.78) 0%, rgba(8, 16, 22, 0.7) 48%, rgba(10, 24, 28, 0.76) 100%),
    rgba(8, 16, 22, 0.55);
  border-radius: 18px;
}

.gw-mp-top-glass {
  margin-bottom: 18px;
  padding: 18px 16px 14px;
}

/* Story pages: one shared glass base under all copy (matches Agent Market clarity) */
.gw-mp-story-glass {
  padding: 20px 18px 16px;
  margin-bottom: 8px;
}

body.gw-mp-story .banner {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 4px 4px 14px !important;
  margin-bottom: 12px !important;
  color: #fff !important;
}
body.gw-mp-story .banner h1 {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
body.gw-mp-story .banner p {
  color: #e8f6fa !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
body.gw-mp-story .banner-kicker {
  color: #f0d78a;
}

/* Nested chips / cards sit on the glass base (lighter, like Agent Market lanes) */
body.gw-mp-story .card,
body.gw-mp-story .fact,
body.gw-mp-story .notice,
body.gw-mp-story .chip:not(.primary),
body.gw-mp-story .foot {
  background: rgba(10, 20, 28, 0.55) !important;
  border: 1px solid rgba(34, 212, 255, 0.28) !important;
  color: #e8f6fa !important;
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

body.gw-mp-story .card h2,
body.gw-mp-story .fact h2,
body.gw-mp-story .fact strong {
  color: #7ee7f5 !important;
}

body.gw-mp-story .card p,
body.gw-mp-story .fact p,
body.gw-mp-story .notice {
  color: #e0f0f5 !important;
}

body.gw-mp-story .notice strong {
  color: #fff !important;
}

body.gw-mp-story .section-title {
  color: #b6d6df !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.06em;
}

body.gw-mp-story .chip:not(.primary) {
  color: #7ee7f5 !important;
  background: rgba(10, 20, 28, 0.55) !important;
}
body.gw-mp-story .chip:not(.primary):hover {
  background: rgba(14, 36, 48, 0.82) !important;
  border-color: rgba(34, 212, 255, 0.55) !important;
  transform: translateY(-1px);
}
body.gw-mp-story .chip.primary {
  background: rgba(201, 169, 97, 0.22) !important;
  border: 1px solid rgba(201, 169, 97, 0.65) !important;
  color: #f0d78a !important;
}
body.gw-mp-story .chip.primary:hover {
  background: rgba(201, 169, 97, 0.34) !important;
}

body.gw-mp-story .btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 212, 255, 0.45) !important;
  background: rgba(34, 212, 255, 0.12) !important;
  color: #7ee7f5 !important;
  box-shadow: none;
}
body.gw-mp-story .btn:hover {
  background: rgba(34, 212, 255, 0.22) !important;
  border-color: rgba(34, 212, 255, 0.7) !important;
  box-shadow: none !important;
}
body.gw-mp-story .btn-primary {
  background: rgba(201, 169, 97, 0.22) !important;
  border: 1px solid rgba(201, 169, 97, 0.65) !important;
  color: #f0d78a !important;
}
body.gw-mp-story .btn-secondary {
  background: rgba(10, 20, 28, 0.55) !important;
  border: 1px solid rgba(34, 212, 255, 0.4) !important;
  color: #7ee7f5 !important;
}
body.gw-mp-story .fact span,
body.gw-mp-story .card ul,
body.gw-mp-story .card li {
  color: #d2e8ee !important;
}
body.gw-mp-story .fact strong {
  color: #7ee7f5 !important;
}

body.gw-mp-story .card.featured {
  background: rgba(14, 36, 48, 0.7) !important;
  border-color: rgba(34, 212, 255, 0.45) !important;
}

body.gw-mp-story .greenways {
  border: 1px solid rgba(34, 212, 255, 0.22) !important;
  background: rgba(8, 16, 22, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  color: #e8f6fa !important;
}
body.gw-mp-story .greenways h2 {
  color: #7ee7f5 !important;
}
body.gw-mp-story .greenways p {
  color: #e0f0f5 !important;
}

body.gw-mp-story .foot {
  color: #b6d6df !important;
  border-top: none !important;
  margin-top: 12px !important;
}
body.gw-mp-story .foot a {
  color: #7ee7f5 !important;
}
