/*
 * Tour & class landing pages — shared styling
 *
 * Used by /guided-mushroom-tours/ and its four area children, and by the four
 * intro-class city pages under /mushroom-classes/. Enqueued by
 * includes/tour-area-pages.php whenever a page's content contains
 * `class="tour-page"`, so pasting the HTML is all that is needed. Class pages
 * add `class-page` alongside it for the handful of rules that are theirs.
 *
 * Lives here rather than inline in each page for the obvious reason: nine
 * pages share one design, and nine inline copies drift apart the first time
 * one of them is edited in the block editor.
 *
 * The schedule list (.series-dates) and the area cards (.tour-areas) are NOT
 * styled here — they ship with the shortcodes that render them
 * (includes/event-series-dates.php) so they look the same wherever embedded.
 *
 * Visual language deliberately matches /mini-mushroom-class/: Georgia body,
 * #1a3a1a greens, soft cards.
 */

.tour-page {
  max-width: 860px;
  margin: 0 auto;
  font-family: Georgia, 'Times New Roman', serif;
  color: #2c2c2c;
  line-height: 1.8;
}

.tour-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.15em;
  color: #1a3a1a;
}

.tour-page h1 em {
  font-weight: 400;
  font-size: 1.35rem;
  display: block;
  color: #5a7a5a;
  margin-top: 0.2em;
}

.tour-page h2 {
  font-size: 1.5rem;
  color: #1a3a1a;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid #d4e4d4;
  padding-bottom: 0.3em;
}

.tour-page h3 {
  font-size: 1.15rem;
  color: #2a4a2a;
  margin-top: 0;
  margin-bottom: 0.4em;
}

.tour-page p {
  margin: 0 0 1em;
}

/* Body links only. Descendant rules like `.tour-page li a` outrank the
   single-class button rules below — and the ones in the series-dates
   shortcode — turning white button labels dark green. `:not([class])` keeps
   this to bare prose links so any styled component stays untouched. */
.tour-page p a:not([class]),
.tour-page li a:not([class]) {
  color: #1a5a1a;
  text-decoration: underline;
  text-decoration-color: #b8d4b8;
  text-underline-offset: 2px;
}

.tour-page p a:not([class]):hover,
.tour-page li a:not([class]):hover {
  color: #0d3a0d;
  text-decoration-color: #1a5a1a;
}

/* Fact chips under the title */
.tour-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.25em 0 1.75em;
}

.tour-facts span {
  display: inline-block;
  background: #f4f8f4;
  border: 1px solid #b8d4b8;
  color: #1a3a1a;
  border-radius: 20px;
  padding: 0.35em 1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Two-column card grid (what you'll do, what grows here) */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin: 1.5em 0 0;
}

.tour-card {
  background: #fff;
  border: 1px solid #d4e4d4;
  border-radius: 12px;
  padding: 1.1em 1.25em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tour-card .tour-icon {
  font-size: 1.5rem;
  display: block;
  line-height: 1;
  margin-bottom: 0.4em;
}

.tour-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3em;
}

.tour-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ---------------------------------------------------------------
 * Class pages (.class-page, added alongside .tour-page)
 *
 * The four intro-class city pages share the tour design wholesale. Only two
 * things are genuinely theirs: an agenda, because a two-hour class in a rented
 * room has to prove it is worth an evening in a way a forest walk doesn't, and
 * a refund box, because these are a demand test that may be cancelled and
 * saying so quietly at the bottom would be worse than saying it plainly.
 * --------------------------------------------------------------- */

/* Two-hour agenda — time gutter, then what happens in it */
.class-agenda {
  list-style: none;
  margin: 1.5em 0 2em;
  padding: 0;
  border-left: 2px solid #d4e4d4;
}

.class-agenda li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 0 1.25em;
  padding: 0 0 1.4em 1.5em;
  position: relative;
}

.class-agenda li:last-child {
  padding-bottom: 0;
}

.class-agenda li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2d5a2d;
  border: 2px solid #fff;
}

.class-agenda .agenda-time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b7355;
  padding-top: 0.25em;
}

.class-agenda .agenda-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a1a;
  display: block;
}

.class-agenda .agenda-body {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin: 0.25em 0 0;
  grid-column: 2;
}

/* Cancellation / refund reassurance. Green rather than the brown of
   .key-fact: this is a promise, not a warning, and it should not read as
   fine print on a page asking for money up front. */
.class-page .refund-box {
  background: #f4f8f4;
  border: 1px solid #b8d4b8;
  border-left: 4px solid #2d5a2d;
  border-radius: 0 10px 10px 0;
  padding: 1.25em 1.5em;
  margin: 1.5em 0 2em;
}

.class-page .refund-box h3 {
  font-size: 1.05rem;
  color: #1a3a1a;
  margin: 0 0 0.5em;
}

.class-page .refund-box p {
  margin: 0 0 0.5em;
  font-size: 0.93rem;
  color: #4a4a4a;
}

.class-page .refund-box p:last-child {
  margin-bottom: 0;
}

/* Boxed sections (request a date, questions) */
.tour-page .section-box {
  background: #f4f8f4;
  border: 1px solid #d4e4d4;
  border-radius: 12px;
  padding: 1.5em 2em;
  margin: 1.5em 0 2em;
}

.tour-page .section-box h2 {
  margin-top: 0;
  border-bottom-color: #b8d4b8;
}

.tour-page .section-box p:last-child {
  margin-bottom: 0;
}

.tour-page .section-box .wpforms-container {
  margin: 1.25em 0 0;
}

/* Good-to-know / logistics callout */
.tour-page .key-fact {
  background: #f9f6f0;
  border-left: 4px solid #8b7355;
  border-radius: 0 10px 10px 0;
  padding: 1.25em 1.5em;
  margin: 1.5em 0 2em;
}

.tour-page .key-fact h3 {
  font-size: 1.05rem;
  color: #5a4a30;
  margin: 0 0 0.5em;
}

.tour-page .key-fact p {
  margin: 0 0 0.5em;
  font-size: 0.93rem;
  color: #4a4a4a;
}

.tour-page .key-fact p:last-child {
  margin-bottom: 0;
}

/* Airbnb social proof */
.tour-page .airbnb-proof {
  background: #fff;
  border: 1px solid #d4e4d4;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 1.75em 2em 1.5em;
  margin: 1.5em 0 2em;
}

.tour-page .airbnb-proof-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em 0.9em;
  margin-bottom: 0.35em;
}

.tour-page .airbnb-proof-score {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a3a1a;
  line-height: 1;
}

.tour-page .airbnb-proof-score .star {
  color: #e8a33d;
}

.tour-page .airbnb-proof-count {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5a7a5a;
}

.tour-page .airbnb-proof-intro {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0 0 1.25em;
}

.tour-page .airbnb-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
  margin: 0 0 1.5em;
}

.tour-page .airbnb-quotes blockquote {
  margin: 0;
  padding: 0 0 0 0.9em;
  border-left: 3px solid #d4e4d4;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #3a3a3a;
  line-height: 1.6;
}

.tour-page .airbnb-quotes cite {
  display: block;
  margin-top: 0.5em;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: #5a7a5a;
}

.tour-page .airbnb-proof-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75em;
}

.tour-page a.airbnb-btn-direct {
  display: inline-block;
  background: #1a3a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  padding: 0.6em 1.3em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.tour-page a.airbnb-btn-direct:hover {
  background: #2d5a2d;
  color: #fff;
  text-decoration: none;
}

.tour-page a.airbnb-btn-airbnb {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #2d5a2d;
  color: #1a3a1a;
  text-decoration: none;
  border-radius: 7px;
  padding: 0.55em 1.2em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.tour-page a.airbnb-btn-airbnb:hover {
  background: #f4f8f4;
  color: #1a3a1a;
  text-decoration: none;
}

.tour-page .airbnb-proof-note {
  margin: 0.9em 0 0;
  font-size: 0.82rem;
  color: #777;
}

/* Forayz CTA */
.tour-page .forayz-cta {
  background: linear-gradient(135deg, #1a3a1a 0%, #2d5a2d 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.75em 2em;
  margin: 2.5em 0;
  display: flex;
  align-items: center;
  gap: 2em;
}

.tour-page .forayz-cta .cta-text {
  flex: 1;
}

.tour-page .forayz-cta h3 {
  color: #fff;
  margin: 0 0 0.4em;
  font-size: 1.15rem;
}

.tour-page .forayz-cta p {
  color: #c8e6c8;
  margin: 0;
  font-size: 0.95rem;
}

.tour-page a.cta-button {
  display: inline-block;
  background: #fff;
  color: #1a3a1a;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.65em 1.4em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.tour-page a.cta-button:hover {
  background: #e8f5e9;
  color: #1a3a1a;
  text-decoration: none;
}

/* Cross-links */
.tour-page .cross-links {
  margin: 2.5em 0 0.5em;
  padding-top: 1.5em;
  border-top: 1px solid #d4e4d4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tour-page .cross-links a {
  display: inline-block;
  background: #f4f8f4;
  border: 1px solid #b8d4b8;
  color: #1a3a1a;
  border-radius: 20px;
  padding: 0.35em 1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.tour-page .cross-links a:hover {
  background: #d4e4d4;
  text-decoration: none;
}

@media (max-width: 768px) {
  .tour-page h1 {
    font-size: 1.8rem;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .tour-page .airbnb-quotes {
    grid-template-columns: 1fr;
  }

  .tour-page .forayz-cta {
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }

  .tour-page .section-box {
    padding: 1.25em 1.25em;
  }

  /* Time gutter costs more than it earns at phone width — stack it above */
  .class-agenda li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .class-agenda .agenda-body {
    grid-column: 1;
  }
}
