/* Tours page: self-contained guided visit planner */
#visit-match {
  max-width: 58rem;
  margin: 2.25rem auto 0;
  padding: clamp(1.35rem, 4vw, 3rem);
  border-top: 3px solid var(--brass);
  background: #fffefa;
  box-shadow: 0 28px 62px -46px rgba(23, 45, 32, .7);
}

#visit-match [hidden] { display: none !important; }

.visit-match__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 0 0 clamp(2rem, 5vw, 3.2rem);
  padding: 0;
  list-style: none;
}

.visit-match__progress li {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: #737b72;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visit-match__progress span {
  display: grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #cfd4ca;
  border-radius: 50%;
  font-size: .72rem;
}

.visit-match__progress b { font: inherit; }
.visit-match__progress .is-current, .visit-match__progress .is-complete { color: var(--green); }
.visit-match__progress .is-current span { border-color: var(--green); background: var(--green); color: #fff; }
.visit-match__progress .is-complete span { border-color: var(--green); background: #e6eddf; }

.visit-match__step, .visit-match__result { display: none; }
.visit-match__step.is-active, .visit-match__result.is-active { display: block; animation: visit-match-in .28s ease both; }
.visit-match__step:focus, .visit-match__result:focus { outline: 0; }

.visit-match__count {
  margin: 0 0 .6rem !important;
  color: var(--brass) !important;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.visit-match h3 {
  max-width: 18ch;
  margin: 0 !important;
  color: var(--green-deep) !important;
  font-family: var(--serif) !important;
  font-size: clamp(2rem, 4.2vw, 3.25rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.visit-match__prompt { margin: .8rem 0 1.65rem !important; font-size: 1rem; }

.visit-match__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.visit-match__choices--two { max-width: 37rem; }

.visit-match__choices button {
  display: flex;
  min-height: 8.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #d8d8ce;
  border-radius: 0;
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.visit-match__choices button:hover { border-color: var(--green); box-shadow: 0 18px 28px -24px rgba(27, 59, 43, .7); transform: translateY(-2px); }
.visit-match__choices button:focus-visible { outline: 3px solid #c8a65c; outline-offset: 3px; }
.visit-match__choices button:active { transform: translateY(0); background: #f4f8ee; }
.visit-match__choice-copy { display: grid; gap: .4rem; }
.visit-match__choice-copy strong { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.visit-match__choice-copy small { color: var(--muted); font-family: var(--sans); font-size: .82rem; line-height: 1.45; }
.visit-match__choices i { color: var(--green); font-family: var(--sans); font-size: 1.15rem; font-style: normal; }

.visit-match__back, .visit-match__restart {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.visit-match__back:hover, .visit-match__restart:hover { text-decoration: underline; text-underline-offset: .25rem; }
.visit-match__result p:not(.visit-match__count) { max-width: 39rem; margin: .9rem 0 1.6rem; font-size: 1.05rem; }
.visit-match__contact { max-width:44rem; margin-top:1.7rem; }
.visit-match__contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.visit-match__contact label { display:grid; gap:.42rem; color:var(--green-deep); font-size:.76rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.visit-match__contact label span { color:var(--muted); font-size:.66rem; font-weight:500; }
.visit-match__contact input,.visit-match__contact textarea { width:100%; box-sizing:border-box; padding:.82rem .9rem; border:1px solid #cfd4ca; border-radius:0; background:#fff; color:var(--green-deep); font:400 .95rem var(--sans); letter-spacing:0; text-transform:none; }
.visit-match__contact input:focus,.visit-match__contact textarea:focus { border-color:var(--green); outline:3px solid rgba(200,166,92,.35); outline-offset:1px; }
.visit-match__message { margin-bottom:1.25rem; }
.visit-match__contact textarea { resize:vertical; min-height:6.2rem; }
.visit-match__contact .button { margin:0; border:0; cursor:pointer; font:700 .78rem var(--sans); }
.visit-match__contact-note { margin:.8rem 0 0 !important; color:var(--muted); font-size:.78rem !important; line-height:1.5; }
.visit-match__confirmation { margin:1rem 0 0 !important; color:var(--green) !important; font-size:.86rem !important; font-weight:700; }
.visit-match__restart { display: block; }

@keyframes visit-match-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  #visit-match { margin-top: 1.6rem; padding: 1.3rem; }
  .visit-match__progress { gap: .35rem; margin-bottom: 2rem; }
  .visit-match__progress li { justify-content: center; }
  .visit-match__progress b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .visit-match__choices { grid-template-columns: 1fr; gap: .7rem; }
  .visit-match__choices button { min-height: 6.5rem; padding: 1rem 1.1rem; }
  .visit-match__choice-copy strong { font-size: 1.2rem; }
  .visit-match__contact-grid { grid-template-columns:1fr; gap:.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .visit-match__step.is-active, .visit-match__result.is-active { animation: none; }
  .visit-match__choices button { transition: none; }
}
