/**
 * Public place pages (Temple of the Tooth, Sigiriya...) — the visitor
 * sections. Tokens are the design system's, as in listing-panel.css.
 * Headings reuse the theme's own .st-heading-section so the page reads as one.
 */

.spp {
  --spp-primary: #7700FF;
  --spp-primary-ultra: #F8F4FF;
  --spp-primary-light: #F0E5FF;
  --spp-green: #30B300;
  --spp-green-light: #EAF7E4;
  --spp-red: #FF0A1F;
  --spp-red-light: #FFEDEF;
  --spp-gold-light: #FFF6DE;
  --spp-text-1: #090902;
  --spp-text-2: #5A5A6E;
  --spp-text-3: #8E8EA0;
  --spp-border: #E8E8EE;
  --spp-surface: #FFFFFF;
  color: var(--spp-text-1);
}

.spp .svgico { width: 18px; height: 18px; flex: none; }

/* In short — ONE box, one full-width row per fact (Chiran, 20 Oct 2026:
   the 4 small columns looked squeezed). */
.spp-facts {
  margin: 0 0 32px;
  border: 1px solid var(--spp-border);
  border-radius: 16px;
  background: var(--spp-surface);
  overflow: hidden;
}
.spp-fact {
  display: grid;
  grid-template-columns: 24px 160px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--spp-border);
}
.spp-fact:last-child { border-bottom: 0; }
.spp-fact-icon { color: var(--spp-primary); padding-top: 1px; }
.spp-fact-icon .svgico { width: 22px; height: 22px; }
.spp-fact-label { padding-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--spp-text-3); }
.spp-fact-value { font-size: 15px; font-weight: 600; line-height: 1.5; }

.spp-section { margin: 0 0 36px; padding-top: 28px; border-top: 1px solid var(--spp-border); }
.spp .spp-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--spp-text-2); }
.spp .spp-small { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--spp-text-3); }

.spp-list { margin: 0; padding: 0; list-style: none; }
.spp-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.spp-li-icon { margin-top: 2px; color: var(--spp-primary); }

/* Two columns: yes / no */
.spp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spp-col { padding: 18px 20px; border-radius: 16px; }
.spp-col--yes { background: var(--spp-green-light); }
.spp-col--yes .spp-li-icon { color: var(--spp-green); }
.spp-col--no { background: var(--spp-red-light); }
.spp-col--no .spp-li-icon { color: var(--spp-red); }
.spp .spp-col-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spp-section > .spp-col-title { margin-top: 18px; }

/* Ticket notice */
.spp .spp-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--spp-gold-light);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.spp-notice .svgico { color: #8a6a00; margin-top: 2px; }
.spp-prices { margin: 0; padding: 0; list-style: none; max-width: 520px; }
.spp-prices li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--spp-border); font-size: 15px; }
.spp-prices li:last-child { border-bottom: 0; }
.spp .spp-ticket-free { margin: 0; font-size: 16px; font-weight: 600; color: var(--spp-green); }

.spp .spp-callout {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--spp-primary);
  border-radius: 0 12px 12px 0;
  background: var(--spp-primary-ultra);
  font-size: 15px;
  line-height: 1.55;
}

.spp .spp-run { margin: 0; font-size: 15px; }
.spp-run a { display: inline-flex; gap: 4px; align-items: center; margin-left: 8px; font-weight: 600; color: var(--spp-primary); }
.spp-run .svgico { width: 14px; height: 14px; }

.spp-credits { margin: 28px 0 32px; font-size: 13px; color: var(--spp-text-3); }
.spp-credits summary { cursor: pointer; font-weight: 600; }
.spp-credits ul { margin: 8px 0 0; padding-left: 18px; }
.spp-credits a { color: var(--spp-text-2); }

@media (max-width: 767px) {
  .spp-fact { grid-template-columns: 22px minmax(0, 1fr); }
  .spp-fact-value { grid-column: 2; }
  .spp-pair { grid-template-columns: minmax(0, 1fr); }
}

/* The theme styles every h3 and p on listing pages; our small headings and
   boxed paragraphs must keep their own size and padding (checked in the
   browser, 20 Oct 2026: column titles rendered at 30px, boxes lost padding). */
.spp h3.spp-col-title {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
.spp-section > h3.spp-col-title { margin-top: 20px !important; }
.spp p.spp-notice { padding: 14px 16px !important; }
.spp p.spp-callout { padding: 14px 16px !important; }

/* Opening times: each part has its own bold heading with space above it. */
.spp-sub + .spp-sub { margin-top: 26px; }
.spp h3.spp-subhead {
  margin: 0 0 12px !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--spp-text-1) !important;
}
.spp-sub .spp-list li { color: var(--spp-text-2); }

/* The "Nearby" fact links down to Explore other options. */
.spp a.spp-nearby-link { color: var(--spp-primary); font-weight: 600; text-decoration: none; }
.spp a.spp-nearby-link:hover { text-decoration: underline; }
