/* Drivewealth / a33 — Greenhouse Plot Map shop (unique lattice layout) */

@keyframes a33-plot-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes a33-plot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 0.35; }
}

@keyframes a33-plot-scan {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

@keyframes a33-plot-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.page-shop-plotmap .page-main {
  padding-top: 0;
}

.page-shop-plotmap {
  background:
    radial-gradient(ellipse 55% 40% at 8% 12%, rgba(184, 242, 86, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 35% at 92% 18%, rgba(229, 154, 26, 0.1), transparent 55%),
    linear-gradient(180deg, #e8f0eb 0%, var(--a33-cream) 28%, #eef4f0 100%);
}

.a33-plot {
  padding: 0 0 4rem;
}

/* —— Hero: coordinate greenhouse map —— */
.a33-plot-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.75rem;
  background:
    linear-gradient(155deg, #041910 0%, #0a3428 38%, #12563f 78%, #0f4c3a 100%);
}

.a33-plot-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(184, 242, 86, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 242, 86, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: a33-plot-scan 28s linear infinite;
  pointer-events: none;
}

.a33-plot-hero-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -8%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 242, 86, 0.28), transparent 68%);
  pointer-events: none;
}

.a33-plot-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(11rem, 0.55fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}

.a33-plot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a33-lime);
}

.a33-plot-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--a33-lime);
  box-shadow: 0 0 0 4px rgba(184, 242, 86, 0.22);
  animation: a33-plot-pulse 2.4s ease-in-out infinite;
}

.a33-plot-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 14ch;
}

.a33-plot-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.a33-plot-stamp {
  position: relative;
  justify-self: end;
  width: min(100%, 13.5rem);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.25rem;
  border-radius: 50%;
  border: 1.5px dashed rgba(184, 242, 86, 0.55);
  background: rgba(4, 25, 16, 0.45);
  backdrop-filter: blur(8px);
  animation: a33-plot-rise 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.a33-plot-stamp-ring {
  position: absolute;
  inset: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: a33-plot-orbit 18s linear infinite;
}

.a33-plot-stamp strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--a33-lime);
}

.a33-plot-stamp em {
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 650;
}

.a33-plot-stamp small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* —— Shell: rail + stage —— */
.a33-plot-shell {
  display: grid;
  grid-template-columns: minmax(12.5rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

/* Vertical plot index rail */
.a33-plot-rail {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: calc(100vh - 7.5rem);
  overflow: auto;
  padding: 0.85rem;
  border-radius: 18px 6px 18px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 246, 243, 0.88));
  border: 1px solid color-mix(in srgb, var(--a33-teal) 16%, var(--a33-border));
  box-shadow: 8px 0 28px -18px rgba(7, 42, 32, 0.35);
  scrollbar-width: thin;
}

.a33-plot-rail-label {
  margin: 0 0 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a33-sage);
}

.a33-plot-rail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 12px 4px 12px 4px;
  text-decoration: none !important;
  color: var(--a33-ink) !important;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.a33-plot-rail-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--a33-teal);
  min-width: 1.6rem;
}

.a33-plot-rail-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.a33-plot-rail-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.a33-plot-rail-text em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--a33-muted);
}

.a33-plot-rail-item:hover {
  transform: translateX(3px);
  background: rgba(184, 242, 86, 0.18);
  border-color: color-mix(in srgb, var(--a33-lime) 55%, transparent);
}

.a33-plot-rail-item.is-active {
  background: var(--a33-teal-dark);
  border-color: var(--a33-teal-dark);
  color: #fff !important;
  box-shadow: 0 10px 22px -14px rgba(7, 42, 32, 0.7);
}

.a33-plot-rail-item.is-active .a33-plot-rail-num {
  color: var(--a33-lime);
}

.a33-plot-rail-item.is-active .a33-plot-rail-text em {
  color: rgba(184, 242, 86, 0.75);
}

/* Stage */
.a33-plot-stage {
  min-width: 0;
  display: grid;
  gap: 1.1rem;
}

.a33-plot-toolbelt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 999px 14px 999px 14px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(232, 240, 235, 0.9));
  border: 1.5px solid color-mix(in srgb, var(--a33-teal) 18%, var(--a33-border));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px -20px rgba(7, 42, 32, 0.45);
}

.a33-plot-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.a33-plot-meter p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--a33-ink);
}

.a33-plot-meter strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--a33-teal-dark);
  letter-spacing: -0.03em;
}

.a33-plot-meter-pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--a33-carrot);
  box-shadow: 0 0 0 5px rgba(229, 154, 26, 0.18);
  animation: a33-plot-pulse 2s ease-in-out infinite;
}

.a33-plot-meter-chip {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(184, 242, 86, 0.4);
  color: var(--a33-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.a33-plot-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.a33-plot-refine {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--a33-teal);
  background: var(--a33-teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}

.a33-plot-refine:hover {
  transform: translateY(-2px);
  background: var(--a33-teal-dark);
  box-shadow: 0 10px 20px -12px rgba(7, 42, 32, 0.6);
}

.a33-plot-refine-icon {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--a33-lime);
  box-shadow: inset 0 0 0 2px rgba(184, 242, 86, 0.35);
}

.a33-plot-refine-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--a33-lime);
  color: var(--a33-teal-dark);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.a33-plot-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a33-muted);
}

.a33-plot-sort select {
  border: 1px solid var(--a33-border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: #fff;
  color: var(--a33-ink);
  font-weight: 650;
}

.a33-plot-density {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 76, 58, 0.08);
}

.a33-view-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--a33-teal);
  font-weight: 800;
  cursor: pointer;
}

.a33-view-btn.is-active,
.a33-view-btn:hover {
  background: #fff;
  color: var(--a33-teal-dark);
  box-shadow: 0 4px 12px rgba(7, 42, 32, 0.12);
}

/* Filter panel (slide-in dials) */
.a33-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 25, 16, 0.45);
  z-index: 80;
}

.a33-plot-dials.a33-shop-filters {
  position: fixed;
  top: 0;
  right: 0;
  width: min(22rem, 92vw);
  height: 100%;
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    linear-gradient(165deg, #f7fbf8 0%, #eef5f0 100%);
  border-left: 1px solid var(--a33-border);
  box-shadow: -18px 0 40px rgba(7, 42, 32, 0.18);
  overflow: auto;
  padding: 1.15rem 1.1rem 2rem;
}

body.a33-filters-open .a33-plot-dials.a33-shop-filters {
  transform: translateX(0);
}

.a33-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.a33-filters-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--a33-teal-dark);
}

.a33-filters-close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--a33-border);
  background: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.a33-filter-block {
  margin-bottom: 0.75rem;
  border: 1px solid var(--a33-border);
  border-radius: 14px 4px 14px 4px;
  background: #fff;
  overflow: hidden;
}

.a33-filter-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem;
  border: 0;
  background: transparent;
  font-weight: 750;
  color: var(--a33-teal-dark);
  cursor: pointer;
  text-align: left;
}

.a33-filter-toggle {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--a33-sage);
  border-bottom: 2px solid var(--a33-sage);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.a33-filter-block.is-open .a33-filter-toggle {
  transform: rotate(225deg);
}

.a33-filter-panel {
  padding: 0 0.95rem 0.95rem;
}

.a33-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--a33-ink);
  cursor: pointer;
}

.a33-filter-check em {
  font-style: normal;
  color: var(--a33-muted);
  font-size: 0.78rem;
}

.a33-price-note {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--a33-muted);
}

.a33-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.a33-price-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--a33-border);
  border-radius: 10px;
  background: var(--a33-cream);
  font-weight: 700;
  color: var(--a33-teal);
}

.a33-price-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 650;
  color: var(--a33-ink);
}

.a33-price-apply,
.a33-clear-filters {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.84rem;
  text-decoration: none !important;
}

.a33-price-apply {
  border: 0;
  background: var(--a33-lime);
  color: var(--a33-teal-dark);
  cursor: pointer;
}

.a33-clear-filters {
  color: var(--a33-carrot) !important;
  border: 1px solid color-mix(in srgb, var(--a33-carrot) 35%, transparent);
  background: rgba(229, 154, 26, 0.08);
}

/* —— Product beds / packet tiles —— */
.a33-plot-beds {
  min-width: 0;
}

.a33-plot-grid.a33-shop-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a33-plot-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a33-plot-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a33-plot-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.a33-plot-grid[data-cols="3"] > .a33-shop-card:nth-child(6n + 1),
.a33-plot-grid[data-cols="4"] > .a33-shop-card:nth-child(8n + 1) {
  grid-column: span 2;
}

.a33-shop-card {
  --card-delay: 0ms;
  position: relative;
  border-radius: 18px 6px 18px 6px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--a33-teal) 14%, var(--a33-border));
  overflow: hidden;
  animation: a33-plot-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--card-delay);
  box-shadow: 0 16px 28px -22px rgba(7, 42, 32, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s, border-color 0.22s;
}

.a33-shop-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.35rem;
  background: linear-gradient(180deg, var(--a33-lime), var(--a33-teal));
  z-index: 2;
}

.a33-shop-card.tone-sage::before { background: linear-gradient(180deg, #b8f256, #5b8a72); }
.a33-shop-card.tone-leaf::before { background: linear-gradient(180deg, #7cb342, #0f4c3a); }
.a33-shop-card.tone-melon::before { background: linear-gradient(180deg, #e59a1a, #c78212); }
.a33-shop-card.tone-chili::before { background: linear-gradient(180deg, #d64545, #a83232); }
.a33-shop-card.tone-mist::before { background: linear-gradient(180deg, #9ec5b4, #0f4c3a); }

.a33-shop-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  border-color: var(--a33-teal);
  box-shadow: 0 22px 36px -18px rgba(7, 42, 32, 0.4);
}

.a33-shop-card.is-featured {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--a33-lime) 55%, transparent),
    0 22px 36px -18px rgba(7, 42, 32, 0.4);
}

.a33-shop-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.a33-shop-card-img {
  position: relative;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 242, 86, 0.18), transparent 45%),
    #eef4f0;
}

.a33-shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.a33-shop-card:hover .a33-shop-card-img img {
  transform: scale(1.06);
}

.a33-shop-sale,
.a33-shop-sold {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  left: 0.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 4px 10px 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.a33-shop-bedtag {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(4, 25, 16, 0.72);
  color: var(--a33-lime);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
}

.a33-shop-sale {
  background: var(--a33-carrot);
  color: #fff;
}

.a33-shop-sold {
  background: var(--a33-plum);
  color: #fff;
}

.a33-shop-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1.05rem 1.15rem;
  align-content: start;
}

.a33-shop-card-aisle {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a33-sage);
}

.a33-shop-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--a33-teal-dark);
}

.a33-shop-card-pack {
  font-size: 0.78rem;
  color: var(--a33-muted);
}

.a33-shop-card-price {
  margin: 0.25rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.a33-shop-card-price strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--a33-teal);
  letter-spacing: -0.02em;
}

.a33-shop-card-price s {
  color: var(--a33-muted);
  font-size: 0.85rem;
}

.a33-shop-card.is-sold-out {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.a33-plot-empty {
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--a33-teal) 28%, var(--a33-border));
  background: rgba(255, 255, 255, 0.7);
}

.a33-plot-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--a33-teal-dark);
  margin-bottom: 0.35rem;
}

.a33-plot-empty p {
  margin: 0 0 1rem;
  color: var(--a33-muted);
}

/* Pagination */
.a33-shop-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.a33-page-num,
.a33-page-arrow {
  min-width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px 3px 10px 3px;
  border: 1px solid var(--a33-border);
  background: #fff;
  color: var(--a33-teal-dark) !important;
  text-decoration: none !important;
  font-weight: 750;
}

.a33-page-num.is-active {
  background: var(--a33-teal-dark);
  border-color: var(--a33-teal-dark);
  color: var(--a33-lime) !important;
}

.a33-page-gap {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  color: var(--a33-muted);
}

/* Responsive */
@media (max-width: 980px) {
  .a33-plot-shell {
    grid-template-columns: 1fr;
  }

  .a33-plot-rail {
    position: static;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.65rem;
    border-radius: 14px;
  }

  .a33-plot-rail-label {
    display: none;
  }

  .a33-plot-rail-item {
    flex: 0 0 auto;
    min-width: 10.5rem;
  }

  .a33-plot-grid[data-cols="3"] > .a33-shop-card:nth-child(6n + 1),
  .a33-plot-grid[data-cols="4"] > .a33-shop-card:nth-child(8n + 1) {
    grid-column: span 1;
  }

  .a33-plot-grid,
  .a33-plot-grid[data-cols="2"],
  .a33-plot-grid[data-cols="3"],
  .a33-plot-grid[data-cols="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .a33-plot-hero-inner {
    grid-template-columns: 1fr;
  }

  .a33-plot-stamp {
    justify-self: start;
    width: 10.5rem;
  }

  .a33-plot-toolbelt {
    border-radius: 16px;
  }

  .a33-plot-tools {
    width: 100%;
  }

  .a33-plot-sort {
    flex: 1 1 auto;
  }

  .a33-plot-sort select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .a33-plot-grid,
  .a33-plot-grid[data-cols="2"],
  .a33-plot-grid[data-cols="3"],
  .a33-plot-grid[data-cols="4"] {
    grid-template-columns: 1fr;
  }

  .a33-plot-density {
    display: none;
  }
}
