/* ==========================================================================
   Panel content — the markup that floats inside the tour's non-gallery rooms.
   These same blocks are reused by the classic pages, so they are written to
   work on any dark surface.
   ========================================================================== */

.pnl { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.pnl__title {
  font-size: var(--step-1);
  display: flex; align-items: center; gap: .6rem;
}
.pnl__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.pnl__foot {
  font-size: .82rem; color: var(--text-dim);
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
}
.pnl__foot a { color: var(--blue-300); font-weight: 600; }
.pnl__foot kbd {
  padding: .1rem .38rem; border-radius: 5px; margin: 0 1px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .7rem; color: var(--ice-100);
}

/* --------------------------------------------------------- wayfinding ---- */
.wayfind { display: grid; gap: .55rem; }
.wayfind li {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .7rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .87rem; color: var(--text-soft);
}
.wayfind li svg { color: var(--accent, var(--blue-400)); }
.wayfind strong { color: #fff; font-weight: 600; }

.pnl__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.mini-stat {
  padding: .7rem .6rem; text-align: center;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
}
.mini-stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1; }
.mini-stat b i { font-style: normal; color: var(--accent, var(--blue-400)); }
.mini-stat span { display: block; margin-top: .3rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }

/* -------------------------------------------------------------- stats ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.stat-card {
  position: relative; overflow: hidden;
  padding: 1.1rem 1rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid var(--line);
}
.stat-card::before {
  content: ""; position: absolute; inset: auto auto -40% -20%;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #2F6BFF) 42%, transparent), transparent 70%);
  filter: blur(14px);
}
.stat-card__value {
  position: relative; display: block;
  font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1; color: #fff;
}
.stat-card__value i { font-style: normal; color: var(--accent, var(--blue-400)); }
.stat-card__label {
  position: relative; display: block; margin-top: .45rem;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft);
}

/* --------------------------------------------------------------- flow ---- */
.flow { display: grid; gap: .7rem; counter-reset: flow; }
/* Inside a tour panel the height is fixed, so the steps go two-up rather than
   turning into a long scroll. On the ordinary pages they stay a vertical list. */
.panel .flow { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.flow__step {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.flow__step:hover { border-color: var(--line-strong); transform: translateX(3px); }
.flow__no {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--royal-600), var(--blue-500));
  box-shadow: 0 6px 16px -8px var(--blue-500);
}
.flow__step b { font-family: var(--font-display); font-size: .98rem; color: #fff; }
.flow__dur {
  margin-left: .5rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent, var(--blue-400)); font-style: normal;
}
.flow__step p { margin-top: .25rem; font-size: .86rem; color: var(--text-soft); line-height: 1.55; }

/* ----------------------------------------------------------- services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .8rem; align-items: start; }

/* Denser inside a tour panel, where the height is fixed. */
.panel .svc-grid { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: .6rem; }
.panel .svc { padding: .8rem .85rem; gap: .35rem; }
.panel .svc__icon { width: 32px; height: 32px; border-radius: 10px; }
.panel .svc__desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.svc {
  position: relative; overflow: hidden;
  display: grid; gap: .45rem; align-content: start;
  padding: 1.05rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.svc::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--svc-accent, var(--blue-500));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.svc:hover::after { transform: scaleY(1); }
.svc__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--svc-accent, var(--blue-400));
  background: color-mix(in srgb, var(--svc-accent, #2F6BFF) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent, #2F6BFF) 34%, transparent);
}
.svc__title { font-family: var(--font-display); font-size: 1rem; color: #fff; }
.svc__desc { font-size: .84rem; color: var(--text-soft); line-height: 1.5; }
.svc__price {
  display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
  margin-top: .3rem; padding-top: .55rem;
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--text-dim);
}
.svc__price b { font-family: var(--font-display); font-size: .95rem; color: #fff; }
.svc__price i { margin-left: auto; font-style: normal; font-size: .72rem; }

/* ---------------------------------------------------------- rate card ---- */
/* Four columns where there is room: one per service family, which keeps the
   whole card close to a single screen instead of a long scroll. */
/*
 * min(100%, 228px) is what lets this collapse on its own: below a 228px
 * container the track shrinks to the container instead of overflowing it, so
 * the hard "one column under 860px" override this used to need is gone. That
 * override was turning a tablet's rate card into a forty-line single-column
 * scroll when two columns fit with room to spare.
 */
.rate-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr)); gap: 1.2rem 1.8rem; align-items: start; }
.rate-group__title {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent, var(--blue-300));
  padding-bottom: .5rem; margin-bottom: .55rem;
  border-bottom: 1px solid var(--line-strong);
}
.rate-list { display: grid; gap: .1rem; }
.rate-line {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .42rem 0;
  font-size: .9rem;
}
.rate-line__name { color: var(--text); }
.rate-line__name em {
  display: block; font-style: normal;
  font-size: .72rem; color: var(--text-dim);
}
.rate-line__dots {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-3px);
  min-width: 18px;
}
.rate-line__price {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  white-space: nowrap;
}
.rate-line__price.is-neg { font-size: .82rem; color: var(--accent, var(--blue-300)); }

.pay-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem;
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.pay-strip__label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
}
.pay-strip__item { font-size: .84rem; color: var(--text-soft); }
.pay-strip__item b { color: #fff; font-weight: 600; }
.pay-strip__item code {
  margin-left: .4rem; padding: .12rem .45rem;
  border-radius: 6px; background: var(--surface-2);
  font-family: var(--font-mono); font-size: .8rem; color: var(--ice-100);
}

/* ----------------------------------------------------------- packages ---- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pack {
  position: relative;
  display: grid; align-content: start; gap: .6rem;
  padding: 1.3rem 1.15rem 1.15rem;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.pack:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pack.is-rec {
  border-color: color-mix(in srgb, var(--pack-accent, #2F6BFF) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pack-accent, #2F6BFF) 40%, transparent), 0 24px 60px -30px var(--pack-accent, #2F6BFF);
}
.pack__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: .22rem .7rem; border-radius: 99px;
  background: var(--pack-accent, var(--blue-500)); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px var(--pack-accent, #2F6BFF);
}
.pack__name { font-size: 1.25rem; }
.pack__tagline { font-size: .82rem; color: var(--text-soft); min-height: 2.4em; }
.pack__price b { font-family: var(--font-display); font-size: 1.75rem; color: #fff; }
.pack__features { display: grid; gap: .38rem; padding: .7rem 0; margin: .2rem 0; border-block: 1px solid var(--line); }
.pack__features li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.pack__features .yes { color: var(--text); }
.pack__features .yes svg { color: var(--success); }
.pack__features .no { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(255,71,87,.55); }
.pack__features .no svg { color: var(--danger); }

/* -------------------------------------------------------- testimonials --- */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: .85rem; }
.voice {
  display: grid; gap: .7rem;
  padding: 1.05rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s;
}
.voice:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.voice__meta { display: flex; align-items: center; gap: .65rem; }
.voice__avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h,220) 70% 46%), hsl(calc(var(--h,220) + 28) 76% 32%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.voice__meta b { display: block; font-size: .9rem; color: #fff; }
.voice__meta em { font-style: normal; font-size: .74rem; color: var(--text-dim); }
.voice__src { margin-left: auto; color: var(--success); opacity: .8; }
.voice blockquote {
  font-size: .88rem; line-height: 1.6; color: var(--text-soft);
  padding-left: .8rem; border-left: 2px solid var(--accent, var(--blue-500));
}

/* -------------------------------------------------------------- social --- */
/* Wide enough that a normal @handle sits beside its follower count without
   being ellipsised — the handle is the useful half of the pill. */
.social-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: .6rem; }
.social-pill {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .85rem;
  border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.social-pill:hover { background: var(--surface-2); border-color: var(--blue-400); transform: translateY(-2px); }
.social-pill span { display: grid; min-width: 0; }
.social-pill b { font-size: .85rem; color: #fff; }
.social-pill em { font-style: normal; font-size: .72rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-pill__count {
  margin-left: auto; font-family: var(--font-mono); font-size: .74rem;
  color: var(--accent, var(--blue-300)); font-style: normal;
}

.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .45rem; }
.feed-tile {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.feed-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feed-tile:hover img { transform: scale(1.09); }
.feed-tile__hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  background: rgba(3,6,28,.75);
  font-size: .74rem; font-weight: 600; color: #fff;
  opacity: 0; transition: opacity .3s;
}
.feed-tile:hover .feed-tile__hover { opacity: 1; }

/* -------------------------------------------------------------- office --- */
.office { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.office__actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.office__card {
  display: grid; gap: .18rem; align-content: start;
  padding: .95rem;
  border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.office__card:hover { background: var(--surface-2); border-color: var(--accent, var(--blue-400)); transform: translateY(-3px); }
.office__card svg { color: var(--accent, var(--blue-400)); margin-bottom: .3rem; }
.office__card b { font-family: var(--font-display); font-size: .95rem; color: #fff; }
.office__card em { font-style: normal; font-size: .76rem; color: var(--text-dim); line-height: 1.45; }

.form-note { margin-top: .6rem; font-size: .84rem; min-height: 1.2em; }
.form-note.is-ok { color: #A6F0D2; }
.form-note.is-bad { color: #FFC0C6; }

@media (max-width: 860px) {
  .office { grid-template-columns: 1fr; }
  .office__actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
