/* ============================================================
   Sites of Grace — Saint & Sacred Site pages
   Uses brand tokens from site.css (:root).
   ============================================================ */

.catalog main { background: var(--ivory); }
.catalog-page { padding-bottom: 20px; }

/* ---------- Hero ---------- */
.catalog-hero {
  text-align: center;
  padding: 60px 20px 30px;
  background:
    radial-gradient(600px 300px at 12% 12%, rgba(199,154,66,.08), transparent 60%),
    radial-gradient(600px 300px at 88% 18%, rgba(199,154,66,.08), transparent 60%),
    var(--ivory);
}
.catalog-hero h1 {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.1;
  color: var(--navy); margin: 0 auto; max-width: 22ch;
}
.catalog-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 16px 0 0;
}
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .03em; padding: 6px 14px; border-radius: 999px;
  border: 1px solid transparent;
}
.badge-category { background: var(--navy); color: var(--ivory); }
.badge-status { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

.site-plan-link {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  border-radius: 999px; padding: 10px 20px; margin-top: 22px;
  background: var(--ivory); color: var(--navy); border: 1px solid var(--gold);
  cursor: pointer; transition: background .15s ease;
}
.site-plan-link:hover { background: var(--parchment); }

.catalog-meta {
  font-family: var(--sans); font-size: 14px; color: var(--stone);
  margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
}

.catalog-lede {
  font-family: var(--serif-display); font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px); line-height: 1.6;
  color: var(--blue); max-width: 62ch; margin: 22px auto 0;
}

.catalog-saint-link {
  display: inline-block; margin-top: 18px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--blue);
  border: 1px solid var(--gold-soft); border-radius: 999px; padding: 8px 18px;
}
.catalog-saint-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Portrait / featured image ---------- */
.catalog-image { max-width: 900px; margin: 34px auto 0; text-align: center; }
.catalog-image img { border-radius: 16px; max-width: 100%; height: auto; border: 1px solid var(--gold-soft); }
.catalog-image-credit {
  font-family: var(--sans); font-size: 12.5px; color: var(--stone);
  margin: 8px 0 0;
}

/* ---------- Fact panel (saint page) ---------- */
.catalog-facts {
  max-width: 900px; margin: 34px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
}
.catalog-fact dt {
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 4px;
}
.catalog-fact dd {
  font-family: var(--serif-body); font-size: 15.5px; color: var(--navy); margin: 0;
}

/* ---------- Narrative sections ---------- */
.catalog-sections { max-width: 900px; margin: 0 auto; padding: 44px 20px 0; }
.catalog-section { padding: 30px 0; border-bottom: 1px solid var(--gold-soft); }
.catalog-section:last-child { border-bottom: 0; }
.catalog-section h2 {
  font-family: var(--serif-display); font-weight: 600; font-size: 26px;
  color: var(--navy); margin: 0 0 12px;
}
.catalog-section p { font-size: 16.5px; line-height: 1.75; color: #2f3a52; margin: 0 0 14px; }
.catalog-section ul, .catalog-section ol { font-size: 16.5px; line-height: 1.75; color: #2f3a52; padding-left: 22px; }

/* ---------- Topic tags ---------- */
.catalog-tags {
  max-width: 900px; margin: 0 auto; padding: 0 20px 8px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  background: var(--parchment); border: 1px solid var(--gold-soft); color: var(--navy);
  border-radius: 999px; padding: 5px 13px;
}

/* ---------- Map / location ---------- */
.catalog-map {
  max-width: 900px; margin: 0 auto; padding: 30px 20px 0;
}
.catalog-map h2 {
  font-family: var(--serif-display); font-weight: 600; font-size: 26px; color: var(--navy); margin: 0 0 12px;
}
.catalog-map-link {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--blue);
}
.catalog-map-link:hover { color: var(--gold); }

/* ---------- Related sites (saint page) ---------- */
.catalog-related { max-width: 1180px; margin: 44px auto 0; padding: 0 20px; }
.catalog-related h2 {
  font-family: var(--serif-display); font-weight: 600; font-size: 28px; color: var(--navy); margin: 0 0 22px;
}
.catalog-site-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catalog-site-card {
  background: var(--parchment); border: 1px solid var(--gold-soft); border-radius: 14px;
  padding: 18px 16px; display: block; transition: transform .18s ease, box-shadow .18s ease;
}
.catalog-site-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(3,37,83,.4); }
.catalog-site-card strong {
  display: block; font-family: var(--serif-display); font-size: 18px; color: var(--navy); font-weight: 600;
}
.catalog-site-card span { font-size: 13px; color: var(--stone); }

/* ---------- Directory grid (category / saints directory pages) ---------- */
.directory-intro { padding: 0 20px 8px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 64px; }
.directory-card {
  background: var(--parchment); border: 1px solid var(--gold-soft); border-radius: 14px;
  padding: 20px 18px; display: block; transition: transform .18s ease, box-shadow .18s ease;
}
.directory-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(3,37,83,.4); }
.directory-card .badge { margin-bottom: 10px; }
.directory-card strong {
  display: block; font-family: var(--serif-display); font-size: 19px;
  color: var(--navy); font-weight: 600; margin-bottom: 6px;
}
.directory-card p { font-size: 14px; line-height: 1.55; color: #33405a; margin: 0; }
.directory-empty { padding: 30px 0 70px; text-align: center; color: var(--stone); }

/* ---------- Pilgrim photo preview strip (on the site page itself) ---------- */
.catalog-gallery-preview { padding: 30px 0; border-bottom: 1px solid var(--gold-soft); }
.catalog-gallery-preview h2 {
  font-family: var(--serif-display); font-weight: 600; font-size: 24px; color: var(--navy); margin: 0 0 16px;
}
.gallery-preview-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 14px; }
.gallery-preview-tile {
  display: block; border-radius: 10px; overflow: hidden;
  aspect-ratio: 1/1; border: 1px solid var(--gold-soft);
}
.gallery-preview-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-gallery-empty { font-size: 14px; color: var(--stone); margin: 0 0 14px; }
.catalog-gallery-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hub-header .catalog-gallery-actions { justify-content: center; margin-top: 14px; }

/* ---------- "In the Area" — nearby sites at the foot of a site page ----------
   Chips built from the same pill as .badge-category at the top of the page, so
   the bottom of the page rhymes with the top. The dot carries the map pin color
   for that site's category. */
.catalog-nearby { padding: 30px 0 4px; }
.catalog-nearby-heading {
  font-family: var(--serif-display); font-weight: 600; font-size: 24px;
  color: var(--navy); margin: 0 0 4px;
}
.catalog-nearby-sub { font-size: 13.5px; color: var(--stone); margin: 0 0 16px; }
.nearby-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: var(--ivory); text-decoration: none;
  border: 1px solid var(--navy); border-radius: 999px; padding: 8px 16px;
  font-family: var(--sans); font-size: 13px; line-height: 1.2;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.nearby-chip:hover, .nearby-chip:focus-visible {
  background: var(--blue, #173A61); transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(3,37,83,.7);
}
.nearby-chip-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid transparent; box-shadow: 0 0 0 1px rgba(253,249,242,.35);
}
.nearby-chip-title { font-weight: 500; }
.nearby-chip-miles {
  font-size: 11.5px; letter-spacing: .04em; color: rgba(253,249,242,.72);
  padding-left: 9px; border-left: 1px solid rgba(253,249,242,.28);
}

/* ---------- Public gallery page ---------- */
.gallery-public-grid { max-width: 1180px; margin: 0 auto; }
.gallery-public-tile { margin: 0; }
.gallery-credit-line { font-family: var(--sans); font-size: 12px; color: var(--stone); margin: 4px 0 0; }
.gallery-tile-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.gallery-tile-actions .reply-toggle {
  background: none; border: none; font-family: var(--sans); font-size: 11.5px;
  color: var(--stone); cursor: pointer; text-decoration: underline; padding: 0;
}
.report-form {
  margin-top: 8px; padding: 10px; background: var(--parchment); border: 1px solid var(--gold-soft);
  border-radius: 10px; display: flex; flex-direction: column; gap: 6px;
}
.report-form select, .report-form textarea {
  font: inherit; font-family: var(--sans); font-size: 12.5px; padding: 6px 8px;
  border: 1px solid var(--gold-soft); border-radius: 6px; background: #fff; color: var(--navy);
}
.report-form-status { font-size: 12px; color: var(--navy); margin: 0; }
.gallery-disclaimer {
  text-align: center; font-size: 12.5px; color: var(--stone); max-width: 640px;
  margin: 40px auto 30px; line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .catalog-site-grid, .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .catalog-site-grid, .directory-grid { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- "Plan Your Visit" ----------
   The Quick Card answers the common questions in six facts; the twelve panels
   below it are native <details>, collapsed by default, grouped into four
   clusters. Brand tokens come from site.css. */

.plan-visit { padding-top: 34px; }

/* Quick Card */
.plan-quickcard {
  border: 1px solid var(--gold); border-radius: 16px;
  background: var(--parchment); padding: 20px 22px; margin: 0 0 24px;
  box-shadow: 0 14px 40px -30px rgba(3, 37, 83, .5);
}
.plan-quickcard-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif-titling, var(--serif-display));
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.plan-quickcard-title::after {
  content: ""; flex: 1; height: 1px; background: var(--gold-soft);
}
.plan-quickcard-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px; margin: 0;
}
.plan-qc-cell dt {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--stone);
  margin: 0 0 2px;
}
.plan-qc-cell dd {
  margin: 0; font-family: var(--serif-display); font-size: 19px;
  line-height: 1.2; color: var(--navy);
}
.plan-qc-note {
  display: block; font-family: var(--sans); font-size: 11.5px;
  line-height: 1.4; color: var(--stone); margin-top: 3px;
}
.plan-quickcard-foot {
  margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--gold-soft);
}
.plan-qc-link {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.plan-qc-link:hover { color: var(--navy); text-decoration: underline; }

/* Toolbar */
.plan-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 12px;
}
.plan-hint {
  font-family: var(--serif-display); font-style: italic;
  font-size: 15px; color: var(--stone);
}
.plan-toggle-all {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  cursor: pointer; background: #fff; border: 1px solid var(--gold-soft);
  color: var(--blue); padding: 7px 14px; border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.plan-toggle-all:hover { border-color: var(--gold); color: var(--navy); }

/* Clusters */
.plan-cluster { margin-bottom: 22px; }
.plan-cluster-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif-titling, var(--serif-display));
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 9px;
}
.plan-cluster-label::before { content: "\2726"; color: var(--gold); font-size: 11px; }
.plan-cluster-label::after {
  content: ""; flex: 1; height: 1px; background: var(--gold-soft);
}

/* Panels */
.plan-panel {
  background: #fff; border: 1px solid var(--gold-soft); border-radius: 12px;
  margin-bottom: 8px; overflow: hidden; transition: border-color .15s;
}
.plan-panel:hover { border-color: var(--gold); }
.plan-panel[open] {
  border-color: var(--gold);
  box-shadow: 0 12px 34px -26px rgba(3, 37, 83, .45);
}
.plan-summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  list-style: none; padding: 15px 18px;
  font-family: var(--serif-display); font-size: 20.5px; font-weight: 600;
  color: var(--navy); scroll-margin-top: 150px;
}
.plan-summary::-webkit-details-marker { display: none; }
.plan-summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.plan-summary-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--parchment); border: 1px solid var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--gold);
}
.plan-panel[open] .plan-summary-icon {
  background: var(--navy); border-color: var(--navy); color: var(--gold);
}
.plan-summary-text { flex: 1; line-height: 1.2; }
.plan-teaser {
  display: block; font-family: var(--sans); font-size: 12.5px;
  font-weight: 400; color: var(--stone); margin-top: 3px;
}
.plan-chevron { flex: none; color: var(--gold); font-size: 12px; transition: transform .2s ease; }
.plan-panel[open] .plan-chevron { transform: rotate(180deg); }
.plan-panel-body { padding: 0 18px 18px 58px; }
.plan-panel-body p,
.plan-panel-body ul,
.plan-panel-body ol { font-size: 15px; line-height: 1.7; color: #33405a; margin: 0 0 12px; }
.plan-panel-body > :last-child { margin-bottom: 0; }

@media (min-width: 1200px) {
  .plan-summary { scroll-margin-top: 108px; }
}
@media (max-width: 760px) {
  .plan-quickcard-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-panel-body { padding-left: 18px; }
  .plan-summary { font-size: 18px; padding: 13px 14px; gap: 10px; }
}

/* Print: the whole plan, expanded, without the furniture. plan-your-visit.js
   opens every panel on beforeprint and restores them afterwards. */
@media print {
  .section-nav,
  .plan-toolbar,
  .plan-quickcard-foot,
  .catalog-hero .journey-buttons,
  .site-plan-link { display: none !important; }
  .section-layout--with-nav { display: block; width: auto; }
  .plan-panel {
    border-color: #ccc; box-shadow: none; break-inside: avoid;
  }
  .plan-summary { font-size: 17px; }
  .plan-summary-icon, .plan-chevron { display: none; }
  .plan-panel-body { padding-left: 18px; }
}
