/* ===========================================================================
   Shop page — the new visual language.
   ===========================================================================

   Every rule here is scoped under .spa-v2. Nothing in this file may be a bare
   element, utility, or component selector: css/style.css is global and loads
   first, and partials/header.php and partials/footer.php render on this very
   page. An unscoped `.card{...}` here is a global rule that happens to load on
   one page today, and it collides the first time a partial is shared.

   Tokens are declared on .spa-v2 rather than :root for the same reason —
   redefining --gold at :root from a page sheet repaints the header and footer.

   The structure and hierarchy come from the tier mockup; the palette and type
   stay the registry's own (navy/gold, Playfair/Montserrat), so the shop page
   reads as the same brand as every other page. The visual direction is still
   moving, so class names describe the component rather than its appearance —
   a restyle that drops a dashed border must not leave a .dashed-box behind.
   =========================================================================== */

.spa-v2 {
  /* Surfaces, drawn from the site palette rather than restated as new colours. */
  --v2-surface: var(--white);
  --v2-surface-sunken: var(--cream);
  --v2-edge: var(--line);
  --v2-edge-strong: color-mix(in srgb, var(--navy) 22%, transparent);

  --v2-ink: var(--ink);
  --v2-ink-soft: var(--sub);
  --v2-ink-faint: var(--mute);
  --v2-accent: var(--gold);
  --v2-accent-deep: var(--gold-dark);

  /* One spacing scale, so sections cannot drift apart by a few pixels each. */
  --v2-space-1: 4px;
  --v2-space-2: 8px;
  --v2-space-3: 12px;
  --v2-space-4: 16px;
  --v2-space-6: 24px;
  --v2-space-8: 32px;

  --v2-radius: 3px;

  color: var(--v2-ink);
}


/* --- Rows (menu, staff) -------------------------------------------------- */

/* Deliberately not .menu-row/.staff-row: those live in css/style.css and are
   shared with partials/spa-card.php on the home and directory pages. */
.spa-v2__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--v2-space-3);
  padding: var(--v2-space-3) 0;
  border-bottom: 1px solid var(--v2-edge);
  font-size: 13px;
}

.spa-v2__row:last-child {
  border-bottom: 0;
}

.spa-v2__row-price {
  font-weight: 600;
  flex: none;
}

.spa-v2__row-note {
  color: var(--v2-ink-faint);
  font-size: 12px;
  flex: none;
}

.spa-v2__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: var(--v2-space-2);
  border-radius: 50%;
  background: var(--v2-surface-sunken);
  border: 1px solid var(--v2-edge);
  font-size: 11px;
  font-weight: 600;
  color: var(--v2-ink-soft);
}

/* --- Report -------------------------------------------------------------- */

.spa-v2__actions {
  display: flex;
  gap: var(--v2-space-3);
  flex-wrap: wrap;
}

.spa-v2__notice {
  margin-top: var(--v2-space-4);
  padding: var(--v2-space-3) var(--v2-space-4);
  border: 1px solid var(--ok-bd);
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-radius: var(--v2-radius);
  font-size: 13px;
}


/* --- Next-tier strip ----------------------------------------------------- */

.spa-v2__next-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--v2-space-3);
  padding-top: var(--v2-space-4);
  border-top: 1px solid var(--v2-edge);
  font-size: 12.5px;
  color: var(--v2-ink-faint);
}

.spa-v2__next-tier-label {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--v2-accent);
}


/* --- Contact -------------------------------------------------------------- */

.spa-v2__contact-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--v2-space-2) var(--v2-space-3);
  font-size: 13px;
}

.spa-v2__contact-label {
  color: var(--v2-ink-faint);
  font-size: 12px;
}

.spa-v2__contact-value {
  margin: 0;
  color: var(--v2-ink);
}

/* --- Services table ------------------------------------------------------- */

.spa-v2__menu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spa-v2__menu-table th {
  text-align: left;
  padding: 0 0 var(--v2-space-2);
  border-bottom: 1px solid var(--v2-edge-strong);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-ink-faint);
  font-weight: 600;
}

.spa-v2__menu-table td {
  padding: var(--v2-space-3) 0;
  border-bottom: 1px solid var(--v2-edge);
}

.spa-v2__menu-table tr:last-child td {
  border-bottom: 0;
}

.spa-v2__menu-price {
  text-align: right;
  white-space: nowrap;
}

/* --- Website link --------------------------------------------------------- */

.spa-v2__contact-link {
  display: inline-block;
  margin-top: var(--v2-space-3);
  font-size: 13px;
  color: var(--v2-accent-deep);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* --- Map ------------------------------------------------------------------ */

.spa-v2__map-frame {
  display: block;
  width: 100%;
  height: 180px;
  border: 1px solid var(--v2-edge);
  border-radius: var(--v2-radius);
}

/* --- Verification QR ------------------------------------------------------ */

.spa-v2__verify {
  text-align: center;
}

/* The QR is scanned off a screen or a print, so it needs quiet space around it
   and a white ground regardless of the surface it sits on. */
.spa-v2__verify-qr {
  display: inline-block;
  padding: var(--v2-space-3);
  background: #fff;
  border: 1px solid var(--v2-edge);
  border-radius: var(--v2-radius);
}

.spa-v2__verify-qr svg {
  display: block;
  width: 120px;
  height: 120px;
}

.spa-v2__verify-note {
  margin: var(--v2-space-3) 0 0;
  font-size: 12px;
  color: var(--v2-ink-faint);
  line-height: 1.5;
}

/* --- Social links --------------------------------------------------------- */

.spa-v2__social {
  list-style: none;
  margin: var(--v2-space-3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--v2-space-2) var(--v2-space-3);
  font-size: 13px;
}

.spa-v2__social a {
  color: var(--v2-accent-deep);
  text-decoration: underline;
}

/* --- Amenities and languages ---------------------------------------------- */

.spa-v2__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--v2-space-2);
}

.spa-v2__tag {
  padding: 3px var(--v2-space-3);
  border: 1px solid var(--v2-edge);
  border-radius: 999px;
  background: var(--v2-surface-sunken);
  font-size: 12px;
  color: var(--v2-ink-soft);
}

.spa-v2__languages {
  margin: var(--v2-space-3) 0 0;
  font-size: 13px;
  color: var(--v2-ink-faint);
}

/* --- Page frame ----------------------------------------------------------- */

/* The mockup card is 1120px wide. The site's .narrow caps at 640px, which is
   an article measure — right for prose, wrong for a two-column profile, and
   the reason this page read as cramped against the design. */
.spa-v2--wide {
  max-width: 1120px;
}

/* --- Section rhythm ------------------------------------------------------- */

.spa-v2__section-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--v2-ink);
  margin: 0 0 var(--v2-space-3);
  letter-spacing: 0;
  text-transform: none;
}

.spa-v2__section-note {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--v2-ink-faint);
}

.spa-v2__icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}

/* --- Identity ------------------------------------------------------------- */

.spa-v2__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-space-3);
  font-size: 12px;
  color: var(--v2-ink-faint);
}

/* Pushes the tier tag to the far right, as the mockup has it. */
.spa-v2__crumbs-path {
  flex: 1;
  min-width: 0;
}

.spa-v2__tier-badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.02em;
  font-weight: 600;
  background: var(--v2-surface-sunken);
  color: var(--v2-ink-soft);
  border: 1px solid var(--v2-edge);
}

.spa-v2__tier-badge--verified,
.spa-v2__tier-badge--recommended {
  background: transparent;
  border-color: var(--v2-accent);
  color: var(--v2-accent-deep);
}

.spa-v2__tier-badge--selected {
  background: var(--v2-accent);
  border-color: var(--v2-accent);
  color: var(--white);
}

/* 42px in the mockup, in its condensed heading face. Playfair sets wider at
   the same size, so this is a touch smaller to occupy the same measure. */
.spa-v2__name {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  /* A 38px serif needs room under it before a 11px tag: at 4px the two read as
     one crowded block rather than a name and its attributes. */
  margin: var(--v2-space-4) 0 var(--v2-space-3);
}

.spa-v2__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-space-2) var(--v2-space-3);
  margin-bottom: var(--v2-space-6);
  font-size: 13px;
  color: var(--v2-ink-soft);
}

.spa-v2__type {
  padding: 3px 10px;
  border: 1px solid var(--v2-accent);
  border-radius: 3px;
  font-size: 11px;
  color: var(--v2-accent-deep);
}

.spa-v2__place {
  display: inline-flex;
  align-items: center;
  gap: var(--v2-space-2);
}

.spa-v2__rating {
  color: var(--v2-accent-deep);
  font-weight: 600;
}

.spa-v2__summary {
  max-width: 640px;
  margin: 0 0 var(--v2-space-6);
  font-size: 14px;
  line-height: 1.6;
  color: var(--v2-ink-soft);
}

/* --- Claim bar ------------------------------------------------------------ */

/* Full width, above the grid: the only call to action an unverified listing
   has does not belong in a 320px column. */
.spa-v2__claim {
  display: flex;
  align-items: flex-start;
  gap: var(--v2-space-4);
  padding: 16px 20px;
  margin: 18px 0 26px;
  border: 1px solid var(--v2-edge-strong);
  border-radius: var(--v2-radius);
}

.spa-v2__claim-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--v2-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.spa-v2__claim-copy {
  flex: 1;
  min-width: 0;
}

.spa-v2__claim-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.spa-v2__claim-sub {
  margin-top: var(--v2-space-1);
  font-size: 12.5px;
  color: var(--v2-ink-faint);
}

.spa-v2__claim-error {
  margin: var(--v2-space-2) 0 0;
  font-size: 12.5px;
  color: var(--bad-fg);
}

.spa-v2__claim-form {
  display: flex;
  align-items: flex-start;
  gap: var(--v2-space-2);
  flex: none;
}

.spa-v2__claim-input {
  width: 220px;
  padding: var(--v2-space-2) var(--v2-space-3);
  border: 1px solid var(--v2-edge);
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
  color: var(--v2-ink);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.spa-v2__claim-input:focus-visible {
  outline: 2px solid var(--v2-accent);
  outline-offset: 1px;
}

@media (max-width: 720px) {
  .spa-v2__claim,
  .spa-v2__claim-form {
    flex-direction: column;
  }
  .spa-v2__claim-input {
    width: 100%;
  }
}

/* --- Two-column layout ---------------------------------------------------- */

/* One column by default: the mockup is a desktop drawing, but this site is
   mostly read on phones, so the stacked case has to look deliberate rather
   than like a collapsed desktop. */
.spa-v2__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.spa-v2__main,
.spa-v2__aside {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

@media (min-width: 900px) {
  .spa-v2__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 32px;
  }
}

/* --- Services (unpriced) -------------------------------------------------- */

.spa-v2__service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.spa-v2__locked-line {
  display: flex;
  align-items: flex-start;
  gap: var(--v2-space-2);
  margin: var(--v2-space-3) 0 0;
  font-size: 12px;
  color: var(--v2-ink-faint);
}

/* --- Photo gallery -------------------------------------------------------- */

.spa-v2__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* VERIFIED and above: four wider frames spanning the page above the grid,
   rather than three narrow ones inside the content column. */
.spa-v2__gallery-section--wide {
  margin-bottom: 26px;
}

.spa-v2__gallery--wide {
  grid-template-columns: repeat(4, 1fr);
}

.spa-v2__gallery--wide .spa-v2__photo {
  height: 150px;
}

/* Hatched, not a flat grey block: a placeholder should read as "no photo yet"
   rather than as a photo that failed to load. */
.spa-v2__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: var(--v2-space-2);
  text-align: center;
  border: 1px solid var(--v2-edge);
  background: repeating-linear-gradient(
    45deg,
    var(--v2-surface-sunken) 0 10px,
    var(--white) 10px 20px
  );
  color: var(--v2-ink-faint);
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
}

@media (max-width: 560px) {
  .spa-v2__gallery,
  .spa-v2__gallery--large {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Locked panels -------------------------------------------------------- */

/* Dashed, not solid: these mark an absence, and a filled surface would read as
   content the page actually has. */
.spa-v2__locked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--v2-space-3);
  padding: 20px;
  border: 1px dashed var(--v2-edge-strong);
  border-radius: var(--v2-radius);
}

.spa-v2__locked-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--v2-ink-faint);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spa-v2__locked-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.spa-v2__locked-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--v2-ink-faint);
}

.spa-v2__locked-tag {
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--v2-surface-sunken);
  border: 1px solid var(--v2-accent);
  color: var(--v2-accent-deep);
  font-size: 11px;
}

/* --- Hero (SELECTED) ------------------------------------------------------ */

/* Full bleed: the mockup runs the cover edge to edge across the card, so this
   breaks out of .page-wrap's horizontal padding rather than sitting inside it.
   The negative margin matches .page-wrap's 32px padding; the calc keeps it
   correct when the viewport is narrower than the 1120px max-width. */
.spa-v2__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  margin: 0 -32px var(--v2-space-6);
  border-top: 1px solid var(--v2-edge);
  border-bottom: 1px solid var(--v2-edge);
  background: repeating-linear-gradient(
    45deg,
    var(--v2-surface-sunken) 0 12px,
    var(--white) 12px 24px
  );
  color: var(--v2-ink-faint);
  font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
  text-align: center;
  padding: var(--v2-space-4);
}

/* --- Featured video (SELECTED) -------------------------------------------- */

.spa-v2__video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--v2-space-3);
  height: 300px;
  border: 1px solid var(--v2-edge);
  background: repeating-linear-gradient(
    45deg,
    var(--v2-surface-sunken) 0 12px,
    var(--white) 12px 24px
  );
  color: var(--v2-ink-faint);
  font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
}

.spa-v2__video-icon {
  width: 34px;
  height: 34px;
  fill: var(--v2-accent);
}

/* --- Highlights and awards ------------------------------------------------ */

.spa-v2__highlights {
  list-style: none;
  margin: 0 0 var(--v2-space-6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--v2-space-2);
}

.spa-v2__highlight {
  padding: 3px 10px;
  border: 1px solid var(--v2-accent);
  border-radius: 3px;
  background: var(--v2-surface-sunken);
  color: var(--v2-accent-deep);
  font-size: 11px;
}

/* A bordered strip rather than loose text: these are the reason the listing is
   SELECTED, and a boxed row reads as a citation rather than as decoration. */
.spa-v2__awards {
  list-style: none;
  margin: 0 0 var(--v2-space-6);
  padding: 12px 16px;
  border: 1px solid var(--v2-edge);
  border-radius: var(--v2-radius);
  display: flex;
  flex-wrap: wrap;
  gap: var(--v2-space-2) 18px;
}

.spa-v2__award {
  display: inline-flex;
  align-items: center;
  gap: var(--v2-space-2);
  font-size: 13px;
  color: var(--v2-ink-soft);
}

/* --- Promotion bar -------------------------------------------------------- */

.spa-v2__promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-space-3);
  padding: 14px 20px;
  margin-bottom: 26px;
  border: 1px solid var(--v2-accent);
  border-radius: var(--v2-radius);
}

.spa-v2__promo-tag {
  flex: none;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--v2-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.spa-v2__promo-copy {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
}

/* --- Story ---------------------------------------------------------------- */

.spa-v2__story {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--v2-ink-soft);
}

/* --- Card grids ----------------------------------------------------------- */

.spa-v2__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spa-v2__cards--two {
  grid-template-columns: repeat(2, 1fr);
}

.spa-v2__card {
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-2);
  padding: var(--v2-space-3);
  border: 1px solid var(--v2-edge);
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
}

.spa-v2__card--flat {
  background: var(--v2-surface-sunken);
}

.spa-v2__card-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  border: 1px solid var(--v2-edge);
  background: repeating-linear-gradient(
    45deg,
    var(--v2-surface-sunken) 0 10px,
    var(--white) 10px 20px
  );
  color: var(--v2-ink-faint);
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
}

.spa-v2__card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.spa-v2__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-space-2);
  font-size: 12.5px;
  color: var(--v2-ink-faint);
}

.spa-v2__card-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--v2-ink-soft);
}

@media (max-width: 700px) {
  .spa-v2__cards,
  .spa-v2__cards--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Pills ---------------------------------------------------------------- */

.spa-v2__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--v2-edge);
  border-radius: 3px;
  background: var(--v2-surface-sunken);
  font-size: 11px;
  color: var(--v2-ink-soft);
}

.spa-v2__pill--accent {
  align-self: flex-start;
  border-color: var(--v2-accent);
  color: var(--v2-accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* --- Champion showcase ---------------------------------------------------- */

.spa-v2__champion {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--v2-edge-strong);
  border-radius: var(--v2-radius);
}

.spa-v2__champion-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 210px;
  flex: none;
  border: 1px solid var(--v2-edge);
  background: repeating-linear-gradient(
    45deg,
    var(--v2-surface-sunken) 0 10px,
    var(--white) 10px 20px
  );
  color: var(--v2-ink-faint);
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
}

.spa-v2__champion-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--v2-space-2);
  min-width: 0;
}

.spa-v2__champion-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.spa-v2__champion-meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--v2-ink-faint);
}

@media (max-width: 700px) {
  .spa-v2__champion {
    flex-direction: column;
  }
  .spa-v2__champion-photo {
    width: 100%;
    height: 200px;
  }
}
