/* Tent planner (tents category) */
.tent-planner{margin-top:28px;margin-bottom:8px}
.tp-head{max-width:680px;margin-bottom:18px}
.tp-head h2{margin:.2em 0 .25em;font-size:clamp(22px,2.6vw,32px);line-height:1.35}
.tp-head p{margin:0;color:var(--muted);font-size:14px}

.tp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);gap:22px;align-items:start}
.tp-side{display:flex;flex-direction:column;gap:14px;min-width:0}

/* controls */
.tp-control{background:#fbfaf6;border:1px solid var(--line);border-radius:22px;padding:6px 18px}
.tp-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 0;border-bottom:1px dashed var(--line)}
.tp-row:last-child{border-bottom:0}
.tp-row-label{font-size:13px;font-weight:700;min-width:74px}
.tp-stepper{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px}
.tp-step{width:32px;height:32px;border-radius:50%;border:0;background:#efede4;font:inherit;font-size:18px;line-height:1;cursor:pointer;color:var(--ink);transition:background .2s}
.tp-step:hover:not([disabled]){background:#e2e6d5}
.tp-step[disabled]{opacity:.35;cursor:not-allowed}
.tp-people-n{min-width:2ch;text-align:center;font-size:20px;font-weight:800;color:var(--forest)}
.tp-people{display:flex;gap:2px}
.tp-people svg{width:22px;height:22px;fill:#d9d5c8;transition:fill .25s,transform .25s}
.tp-people svg.is-on{fill:var(--forest);transform:translateY(-2px)}
.tp-toggles,.tp-weather{display:flex;flex-wrap:wrap;gap:8px}
.tp-toggle,.tp-wx{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.tp-toggle:hover,.tp-wx:hover,.tp-toggle:focus-visible,.tp-wx:focus-visible{border-color:var(--olive);outline:none}
.tp-dot{width:14px;height:14px;border-radius:4px;border:1.5px solid #b9b5a6;transition:all .2s}
.tp-toggle.is-on{border-color:var(--olive);background:rgba(104,115,75,.1)}
.tp-toggle.is-on .tp-dot{background:var(--forest);border-color:var(--forest);box-shadow:inset 0 0 0 2px #fff}
.tp-wx.is-on{background:var(--forest);border-color:var(--forest);color:#fff}

/* result */
.tp-result{background:#fbfaf6;border:1px solid var(--line);border-radius:22px;padding:16px 18px}
.tp-sizes{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
.tp-size{position:relative;display:flex;flex-direction:column;align-items:center;padding:8px 4px 6px;border:1px solid var(--line);border-radius:14px;background:#fff;font:inherit;cursor:pointer;color:var(--ink);transition:all .2s}
.tp-size strong{font-size:18px;line-height:1.3}
.tp-size small{font-size:11px;color:var(--muted)}
.tp-4s{font-style:normal;font-size:10px;line-height:1;padding:3px 6px;margin-top:3px;border-radius:999px;background:#e3ecf3;color:#3f5f7a}
.tp-size em{font-style:normal;font-size:11px;margin-top:3px;min-height:1.5em;color:var(--muted)}
.tp-size.is-small,.tp-size.is-season{opacity:.55}
.tp-size.is-small em,.tp-size.is-season em{color:#a2482a}
.tp-size.is-best{border-color:var(--forest);background:var(--forest);color:#fff}
.tp-size.is-best small,.tp-size.is-best em{color:#e6eadb}
.tp-size.is-view{box-shadow:0 0 0 2px var(--olive);opacity:1}
.tp-pick{display:grid;grid-template-columns:24px 76px 1fr auto;gap:12px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}
.tp-pick-img{width:76px;height:76px;object-fit:cover;border-radius:14px;background:#efede4}
.tp-pick-body{display:flex;flex-direction:column;gap:1px;min-width:0}
.tp-pick-badge{font-size:11px;color:var(--olive);font-weight:700}
.tp-pick.is-warn .tp-pick-badge{color:#a2482a}
.tp-pick-name{font-weight:700;color:var(--ink);text-decoration:none;line-height:1.5}
.tp-pick-name:hover{text-decoration:underline}
.tp-pick-spec{font-size:12px;color:var(--ink)}
.tp-pick-price{font-size:13px;color:var(--muted)}
.tp-add{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tp-add .icon{width:17px;height:17px}
.tp-add[disabled]{opacity:.5;cursor:wait}
.tp-tip{margin:12px 0 0;font-size:12.5px;color:var(--muted);line-height:1.8}
.tp-msg{margin:8px 0 0;font-size:13px;color:var(--forest)}
.tp-msg a{color:inherit;font-weight:700}

/* stage (left in RTL) */
.tp-stage{position:sticky;top:110px;border-radius:22px;overflow:hidden;background:#e9efdc;box-shadow:inset 0 0 0 1px rgba(37,60,49,.08);transition:background .5s}
.tp-stage-head{position:absolute;inset:12px 14px auto;display:flex;justify-content:space-between;align-items:center;gap:10px;z-index:1;pointer-events:none}
.tp-view{font-size:11.5px;color:var(--muted);background:rgba(255,255,255,.7);padding:4px 10px;border-radius:999px}
.tp-dims{font-size:12.5px;color:var(--forest);background:rgba(255,255,255,.8);padding:4px 10px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-plan{display:block;width:100%;height:auto;aspect-ratio:340/330;margin-top:22px}
.tp-status{margin:0;padding:10px 16px 14px;font-size:13px;text-align:center;color:var(--forest);background:rgba(255,255,255,.55)}
.tent-planner.is-over .tp-status{color:#a2482a}

.tp-flake{fill:#fff;stroke:#c9d6e0;stroke-width:.6;animation:tp-snow 6s linear infinite}
@keyframes tp-snow{from{transform:translate(0,-40px);opacity:0}15%{opacity:1}to{transform:translate(12px,60px);opacity:0}}

.tp-flysheet{fill:#2f4a3e;fill-opacity:.42;stroke:#22362c;stroke-opacity:.55;stroke-width:1.2}
.tp-skirt{fill:none;stroke:#e9e6dc;stroke-width:7;filter:drop-shadow(0 1px 1.5px rgba(30,40,50,.45))}
.tp-floor{fill:#9c9787}
.tp-dim{fill:none;stroke:#fff;stroke-opacity:.85;stroke-width:1}
.tp-dim-text{font-size:10.5px;fill:#fff;font-family:inherit;font-weight:700;paint-order:stroke;stroke:rgba(20,26,14,.55);stroke-width:2.6px}
.tp-stage[data-wx="snow"] .tp-dim{stroke:#4b5a68}
.tp-stage[data-wx="snow"] .tp-dim-text{fill:#3d4a57;stroke:rgba(255,255,255,.8)}
.tp-item.is-out .tp-base{stroke:#e0452a;stroke-width:2.6;stroke-dasharray:4 3}
.tp-ripple{fill:none;stroke:#dfe9ee;stroke-width:.9;transform-box:fill-box;transform-origin:center;animation:tp-ripple 1.6s ease-out infinite}
@keyframes tp-ripple{from{transform:scale(.1);opacity:.9}to{transform:scale(1.4);opacity:0}}
.tp-item.is-out{opacity:.85}
.tp-pop{animation:tp-pop .45s cubic-bezier(.3,1.5,.5,1) both}
@keyframes tp-pop{from{opacity:0;transform:translateY(-26px)}}

@media (max-width:900px){
 .tp-grid{grid-template-columns:1fr}
 .tp-stage{order:-1;position:sticky;top:84px;z-index:3;box-shadow:inset 0 0 0 1px rgba(37,60,49,.08),0 10px 24px rgba(20,41,46,.12)}
 .tp-stage-head{inset:8px 10px auto}
 .tp-plan{max-height:min(190px,26vh);margin-top:30px}
 .tp-status{padding:6px 12px 8px;font-size:12px}
 .tp-control{padding:4px 14px}
 .tp-row-label{min-width:100%}
 .tp-result{padding:14px}
 .tp-pick{grid-template-columns:24px 62px 1fr}
 .tp-pick-img{width:62px;height:62px}
 .tp-add{grid-column:1 / -1;justify-self:end}
}
@media (prefers-reduced-motion:reduce){.tp-ripple,.tp-flake,.tp-pop{animation:none}}

/* per-item checkbox (same look as the tools planner) */
.pl-check{position:relative;display:inline-flex;cursor:pointer;align-self:center}
.pl-check input{position:absolute;opacity:0;width:0;height:0}
.pl-check span{width:20px;height:20px;border-radius:6px;border:1.5px solid #b9b5a6;background:#fff;transition:all .2s}
.pl-check input:checked+span{background:var(--forest);border-color:var(--forest);box-shadow:inset 0 0 0 3px #fff}
.pl-check input:focus-visible+span{outline:2px solid var(--olive);outline-offset:2px}
.is-unchecked img,.is-unchecked [class$="-body"],.is-unchecked [class$="-price"]{opacity:.45;transition:opacity .2s}

/* =====================================================================
   Realistic look (matches the fitting room): framed module, glass chips
   on a photographic top-down scene
   ===================================================================== */
.tp-shell{position:relative;padding:clamp(18px,2.6vw,32px);border-radius:32px;border:1px solid rgba(37,60,49,.09);
 background:radial-gradient(70% 60% at 100% 0,rgba(240,160,58,.07),rgba(240,160,58,0) 70%),radial-gradient(60% 60% at 0 100%,rgba(104,115,75,.1),rgba(104,115,75,0) 70%),linear-gradient(180deg,#f4f1e8,#f8f6f0);
 box-shadow:0 30px 60px -40px rgba(31,45,36,.35)}
.tp-eyebrow{display:inline-block;font-size:13px;font-weight:700;color:var(--ember-deep,#a8501a)}
.tp-head{margin-bottom:22px}
.tp-head h2{margin:.45em 0 .3em;font-size:clamp(24px,3vw,36px);line-height:1.3;color:var(--ink)}
.tp-head p{font-size:14.5px;line-height:1.9}
@media (min-width:901px){.tp-grid{grid-template-columns:minmax(0,1fr) minmax(340px,470px);gap:24px}}
.tp-side{gap:18px}
.tp-control,.tp-result{border-radius:26px;border:1px solid rgba(37,60,49,.1);background:linear-gradient(180deg,#fffdf9,#fbf9f3);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 22px 40px -30px rgba(31,45,36,.45)}
.tp-size{border-radius:16px;box-shadow:0 6px 14px -12px rgba(31,45,36,.5)}
.tp-pick-img{border-radius:16px;box-shadow:inset 0 0 0 1px rgba(37,60,49,.06)}
.tp-add{min-height:46px;padding-inline:20px;border-radius:14px;box-shadow:0 12px 24px -12px rgba(227,119,43,.65)}

.tp-stage{border-radius:26px;background:#5f7a3e;box-shadow:inset 0 0 0 1px rgba(37,60,49,.12),0 26px 50px -30px rgba(31,45,36,.6)}
.tp-stage[data-wx="rain"]{background:#4b6339}
.tp-stage[data-wx="snow"]{background:#e8eef4}
.tp-stage::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(120% 90% at 50% 40%,rgba(0,0,0,0) 55%,rgba(12,16,8,.32))}
.tp-stage[data-wx="snow"]::after{background:radial-gradient(120% 90% at 50% 40%,rgba(0,0,0,0) 60%,rgba(60,80,100,.18))}
.tp-plan{margin-top:0}
.tp-stage-head{inset:14px 14px auto;justify-content:flex-start}
.tp-dims{font-size:12px;font-weight:700;color:var(--ink);padding:7px 12px;background:rgba(255,253,248,.74);border:1px solid rgba(255,255,255,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 8px 18px -10px rgba(30,24,14,.45)}
.tp-status{position:relative;z-index:1;margin:0;padding:11px 16px 13px;font-size:13px;font-weight:600;color:var(--ink);background:rgba(255,253,248,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.6)}
.tent-planner.is-over .tp-status{color:#b2482a}
@media (max-width:900px){
 .tp-plan{margin-top:0}
 .tp-stage-head{inset:8px 10px auto}
}
@media (max-width:600px){
 .tp-shell{padding:16px 12px;border-radius:24px;margin-inline:-4px}
}

/* ---------- result card: title and an empty state like the fitting room ---------- */
.tp-result-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tp-result-head strong{font-size:16px;color:var(--ink)}
.tp-empty{display:none}
.tent-planner.is-empty .tp-empty{display:block}
.tent-planner.is-empty .tp-sizes,.tent-planner.is-empty .tp-pick,.tent-planner.is-empty .tp-tip{display:none}
.tent-planner.is-empty .tp-item--pack{display:none}
.tp-empty-box{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 12px;border:1.5px dashed rgba(37,60,49,.18);border-radius:18px;text-align:center;background:rgba(255,255,255,.55)}
.tp-empty-box svg{width:40px;height:34px;fill:none;stroke:var(--olive,#68734b);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px;opacity:.85}
.tp-empty-box b{font-size:13.5px;color:var(--forest)}
.tp-empty-box small{font-size:12px;color:var(--muted);line-height:1.8;max-width:330px}
.tp-empty-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid rgba(37,60,49,.12)}
.tp-empty-sum{display:flex;flex-direction:column;font-size:12px;color:var(--muted)}
.tp-empty-sum strong{font-size:20px;font-weight:800;color:var(--ink)}
.tp-add-ghost[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;filter:grayscale(.4)}

/* mobile: the scene is drawn at about half size, so the size labels get larger to stay readable */
@media (max-width:900px){
 .tp-dim-text{font-size:19px;stroke-width:3.6px}
 .tp-dim{stroke-width:1.6}
}
