:root {
  --green: #123f32;
  --deep: #082e24;
  --gold: #b78b2b;
  --cream: #f7f3e9;
  --line: #deded5;
  --text: #17352d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font:
    16px/1.6 "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
.brand {
  font-family: "DM Serif Text", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}
h1 {
  font-size: clamp(34px, 4vw, 62px);
  margin: 18px 0;
}
h2 {
  font-size: 32px;
  margin: 0 0 22px;
}
h3 {
  font-size: 27px;
  margin: 0 0 9px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
.button {
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--deep);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1380px, 92%);
  margin: auto;
}
.header {
  height: 90px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 35px;
  letter-spacing: -1.2px;
  text-decoration: none;
  white-space: nowrap;
}
.header nav {
  display: flex;
  gap: 38px;
}
.header nav a {
  text-decoration: none;
  font-weight: 600;
}
.hero {
  background:
    linear-gradient(#123f322e, #123f3233),
    url("/assets/hero.jpg") center/cover;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.hero-content {
  width: min(1000px, 90%);
  text-align: center;
  padding: 34px 0;
}
.hero h1 {
  text-transform: capitalize;
  color: white;
  font-size: clamp(36px, 4.5vw, 64px);
  text-shadow: 0 2px 8px #0005;
  margin: 0 0 28px;
}
.search-section {
  padding: 24px 4%;
  background: var(--cream);
}
.hero-search {
  padding: 0;
  background: transparent;
}
.search-section form {
  --search-tab-color: #244c3c;
  --search-input-font: 400 18px/1.25 "Barlow Condensed", "Arial Narrow", sans-serif;
  max-width: 545px;
  margin: auto;
  text-align: left;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 300;
}
.search-section form:has(#location-tab[aria-selected="true"]) {
  --search-tab-color: #284664;
}
.search-tabs {
  display: flex;
  align-items: end;
  width: min(248px, calc(100% - 40px));
  margin: 0 0 -1px 20px;
}
.search-tabs button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 10px;
  border: 1px solid #ffffffc7;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: #eeece2df;
  color: #393e38;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.search-tabs button:first-child {
  flex: 1.2;
}
.search-tabs button:hover {
  background: #f8f6ef;
}
.search-tabs button[aria-selected="true"] {
  min-height: 48px;
  background: var(--search-tab-color);
  color: white;
  box-shadow: 0 -2px 12px #14281b1a;
  position: relative;
  z-index: 1;
}
.search-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  background: var(--search-tab-color);
  border: 1px solid #ffffffc7;
  padding: 16px 12px;
  border-radius: 20px;
  box-shadow: 0 12px 30px #17261933;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  gap: 10px;
}
.search-field {
  flex: 1;
  position: relative;
  min-width: 0;
}
#search-input {
  width: 100%;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 0 20px;
  font: var(--search-input-font);
  background: #fafaf6eb;
  color: #343c35;
  box-shadow: 0 3px 6px #2633261f;
}
.search-field > .input-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #575b55;
  pointer-events: none;
}
#search-input[hidden] + .input-flag {
  display: none;
}
.search-field #search-input {
  padding-inline-start: 45px;
}
#search-input::placeholder {
  color: #575b55;
  opacity: 1;
}
.search-submit,
.near-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #ffffffd9;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  box-shadow: 0 3px 6px #26332626;
  white-space: nowrap;
}
.search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.course-flag {
  width: 22px;
  height: 23px;
}
.search-submit {
  width: 190px;
  background: #f3bf46;
  color: #000;
  font-weight: 400;
}
.search-submit:disabled {
  opacity: 1;
  cursor: not-allowed;
}
.search-submit:enabled:hover {
  background: #ffd062;
}
.near-button {
  margin: 0;
  background: #fafaf6eb;
  color: #42473f;
}
.near-button .search-icon {
  color: var(--search-tab-color);
}
.near-button:hover {
  background: #fff;
}
.search-section #search-error:empty {
  display: none;
}
#search-error {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  background: #fff;
  color: #7d321e;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  font: 14px/1.5 "DM Sans", sans-serif;
}
#suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #0002;
  border-radius: 8px;
  overflow: hidden;
  font: 15px/1.5 "DM Sans", sans-serif;
}
#suggestions button {
  display: block;
  width: 100%;
  background: white;
  color: var(--green);
  text-align: left;
  border-radius: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
#suggestions button:hover {
  background: var(--cream);
}
#suggestions small {
  display: block;
  color: #68746c;
}
gmp-place-autocomplete {
  font: var(--search-input-font);
  color-scheme: light;
  width: 100%;
  min-height: 48px;
  border: 1px solid #fff;
  border-radius: 14px;
  background: #fafaf6eb;
  box-shadow: 0 3px 6px #2633261f;
}
#location-widget {
  min-height: 48px;
}
gmp-place-autocomplete::part(input) {
  font: var(--search-input-font);
}
.home section {
  padding-top: 32px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin: 0;
}
.section-title a {
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.destination {
  position: relative;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  height: 180px;
}
.destination img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.destination:after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, #0009);
}
.destination h3 {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 20px;
  right: 20px;
  margin: 0;
  color: #fff;
  font-size: 26px;
}
.destination span {
  float: right;
  color: #edca76;
}
.card {
  border-radius: 10px;
  border: 1px solid #e5ddca;
  background: #faf7f0;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-3px);
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.card > div {
  padding: 20px;
}
.card p {
  margin: 0 0 16px;
  color: #56615b;
  font-size: 14px;
}
.card span {
  color: #8b661a;
  font-size: 14px;
}
.results,
.directory {
  padding-top: 32px;
  min-height: 50vh;
}
.name-results-heading {
  text-align: center;
  overflow-wrap: anywhere;
}
#results-heading {
  font-size: 43px;
  margin: 18px 0;
}
.result {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  align-items: center;
  text-decoration: none;
}
.result img {
  width: 220px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.result > div {
  min-width: 0;
}
.result h2 {
  font-size: 30px;
  margin: 0 0 8px;
}
.result p {
  margin: 0;
  color: #607068;
}
.result .view {
  margin-left: auto;
  white-space: nowrap;
  color: #98701d;
}
.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--cream);
  border-radius: 18px;
  margin-top: 10px;
  font-size: 13px;
}
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 30px;
  padding-top: 35px;
}
.back-link {
  font-size: 13px;
  text-decoration: none;
  color: #6a776f;
}
.location {
  font-size: 20px;
  margin: 8px 0;
}
.maps-link {
  display: inline-block;
  margin: 7px 0 24px;
  font-size: 17px;
}
.tour {
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: #d7e3d9;
  border: 1px solid #d5dfd7;
}
.tour iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.tour-link {
  display: block;
  text-align: right;
  font-size: 12px;
  margin-top: 8px;
  color: #5c6b63;
}
.under-tour {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-top: 24px;
}
.facts {
  padding: 23px;
  background: var(--cream);
  border-radius: 14px;
}
.facts h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.fact-grid {
  display: flex;
  gap: 24px;
}
.fact-grid div {
  display: flex;
  flex-direction: column;
}
.fact-grid strong {
  font:
    32px "DM Serif Text",
    Georgia,
    serif;
}
.fact-grid span {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: #69736d;
}
.facts > a {
  display: block;
  font-size: 13px;
  margin-top: 12px;
}
.booking {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.booking button {
  font:
    24px "DM Serif Text",
    Georgia,
    serif;
  text-align: left;
  padding: 21px 23px;
}
.booking span {
  float: right;
  color: #e8bd52;
}
.questions {
  align-self: start;
  border: 1px solid #345d4d;
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.questions h2 {
  background: var(--green);
  color: white;
  padding: 30px;
  margin: 0;
  font-size: 32px;
}
.questions > div {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.questions button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fcf9f1;
  border: 1px solid var(--gold);
  color: var(--green);
  padding: 18px 16px;
  font:
    23px "DM Serif Text",
    Georgia,
    serif;
}
.questions button:hover {
  background: #eee7d6;
}
.questions button > span:last-child {
  margin-left: auto;
  color: var(--gold);
}
.question-icon {
  font:
    28px "DM Sans",
    sans-serif;
  min-width: 30px;
}
.course-about,
.related {
  margin-top: 32px;
}
.course-about h2,
.related h2 {
  font-size: 28px;
}
.related a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  text-decoration: none;
}
.related span {
  float: right;
  color: var(--gold);
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.directory-grid > a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.directory-grid span {
  display: block;
  font-size: 13px;
  color: #68766d;
}
.pagination {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #5e6b64;
}
.footer .brand {
  font-size: 25px;
  margin-right: auto;
}
.text-button {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  text-decoration: underline;
}
.text-button:hover {
  background: none;
}
.empty {
  padding: 60px 0;
  min-height: 50vh;
}
dialog {
  border: 1px solid #d6d6cc;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 25px 90px #0005;
  width: min(720px, 94vw);
  color: var(--green);
}
dialog::backdrop {
  background: #12251bd0;
  backdrop-filter: blur(3px);
}
#chat-messages {
  padding: 20px 28px;
  min-height: 210px;
  max-height: 48vh;
  overflow: auto;
}
.message {
  margin: 0 0 18px;
  padding: 13px 17px;
  white-space: pre-wrap;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.message.user {
  background: var(--cream);
  border-radius: 13px;
  margin-left: 40px;
}
.message.assistant {
  padding-left: 0;
}
.message a {
  color: #946c16;
}
.message.loading {
  color: #6b796f;
  font-style: italic;
}
.message.error {
  color: #9d351e;
}
#chat-form {
  display: flex;
  border: 1px solid #bfc3bb;
  margin: 0 24px 24px;
  border-radius: 12px;
  padding: 6px;
  gap: 6px;
}
#chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px;
  outline: none;
  background: #fff;
}
#chat-send {
  padding: 10px 18px;
  color: #edc55a;
  font-size: 22px;
}
#notice-dialog {
  padding: 32px;
}
.close-notice {
  float: right;
  padding: 0 10px;
  background: none;
  color: var(--green);
  font-size: 28px;
}
.sr-only,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 10px;
  margin: 0;
  clip: auto;
  background: white;
}
@media (max-width: 950px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
  .questions {
    position: static;
    grid-row: 2;
  }
  .questions > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .questions h2 {
    padding: 20px;
  }
  .cards {
    gap: 14px;
  }
  .result img {
    width: 170px;
  }
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .header {
    height: 74px;
  }
  .brand {
    font-size: 26px;
  }
  .header nav {
    gap: 14px;
    font-size: 13px;
  }
  .hero {
    min-height: 360px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .search-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 8px;
    padding: 16px 14px 20px;
    border-radius: 26px;
  }
  .search-tabs {
    width: calc(100% - 28px);
    max-width: 340px;
    margin-left: 14px;
  }
  .search-tabs button {
    min-height: 44px;
    padding: 10px 12px 13px;
    font-size: 19px;
    gap: 8px;
  }
  .search-tabs button[aria-selected="true"] {
    min-height: 48px;
  }
  #search-input,
  #location-widget,
  gmp-place-autocomplete {
    min-height: 48px;
  }
  #search-input {
    height: 48px;
    padding-inline: 14px;
  }
  .search-field {
    grid-column: 1 / -1;
  }
  .search-submit,
  .near-button {
    justify-content: center;
    width: 100%;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 18px;
  }
  .search-submit {
    min-height: 54px;
    font-size: clamp(13px, 4.2vw, 16px);
    padding-inline: 6px;
  }
  .search-submit .search-icon {
    width: 16px;
    height: 16px;
  }
  .search-icon {
    width: 25px;
    height: 25px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .destination {
    height: 180px;
  }
  .section-title {
    align-items: flex-start;
  }
  .section-title h2 {
    font-size: 29px;
  }
  .section-title a {
    font-size: 12px;
    text-align: right;
  }
  .card img {
    height: 200px;
  }
  .hero-content {
    padding: 25px 0;
  }
  .results {
    padding-top: 8px;
  }
  #results-heading {
    font-size: 30px;
    margin: 6px 0;
  }
  #search-status {
    margin: 4px 0;
  }
  #search-status:empty {
    margin: 0;
  }
  .result {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 4px 10px;
    padding-block: 10px;
    align-items: start;
  }
  .result img {
    width: 90px;
    height: 72px;
    grid-row: span 2;
  }
  .result h2 {
    font-size: 19px;
    margin-bottom: 3px;
  }
  .result .view {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
    font-size: 14px;
  }
  .result p {
    font-size: 14px;
  }
  .course-layout {
    padding-top: 20px;
    gap: 22px;
  }
  .course-layout h1 {
    font-size: 37px;
  }
  .location {
    font-size: 16px;
  }
  .tour {
    height: 380px;
  }
  .under-tour {
    grid-template-columns: 1fr;
  }
  .facts {
    padding: 20px;
  }
  .booking button {
    font-size: 19px;
  }
  .questions > div {
    padding: 14px;
    gap: 10px;
  }
  .questions button {
    font-size: 18px;
    padding: 14px 10px;
    gap: 5px;
  }
  .question-icon {
    font-size: 18px;
    min-width: 22px;
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
#chat-messages {
    max-height: 45vh;
    padding: 15px 20px;
  }
.footer {
    margin-top: 35px;
  }
  .footer > span {
    display: none;
  }
}
@media (max-width: 600px) {
  .header {
    height: auto;
    min-height: 74px;
    padding: 14px 4%;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .header .brand {
    font-size: clamp(22px, 6vw, 26px);
  }
}

/* The three page templates share the same banner and navigation dimensions. */
.header {
  min-height: 66px;
  height: auto;
  padding-block: 10px;
}
.hero {
  height: 364px;
  min-height: 0;
  background:
    linear-gradient(#082e2455, #082e2455),
    url("/assets/hero.jpg") center/cover;
}
.hero-content {
  padding-block: 14px;
}
.search-hero {
  height: auto;
  min-height: 364px;
  padding-block: 24px;
}
@media (max-width: 600px) {
  .search-hero {
    min-height: 0;
    padding-block: 16px 20px;
  }
}
@media (max-width: 600px) {
  .search-hero .hero-content {
    padding-block: 0;
  }
  .search-hero h1 {
    font-size: min(7.3vw, 32px);
    margin-bottom: 14px;
    white-space: nowrap;
  }
}
.hero.course-hero {
  height: auto;
  min-height: clamp(160px, 18vw, 220px);
  padding-block: 14px;
}

.course-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4.2vw, 60px);
  overflow-wrap: anywhere;
}
.course-hero p:not(.search-intro) {
  margin: 0;
  color: white;
  text-shadow: 0 2px 8px #0008;
  font-size: clamp(17px, 2vw, 26px);
}
.course-hero .search-intro {
  margin: 8px auto 0;
  white-space: normal;
}
.mobile-course-links {
  display: none;
}
@media (max-width: 600px) {
  .course-page .course-layout {
    padding-top: 6px;
  }
  .mobile-course-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: -8px;
  }
  .mobile-course-links a {
    padding: 5px 13px;
    border: 1px solid #dbe5dc;
    border-radius: 999px;
    background: #f4f7f3;
    color: #244c3c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-course-links a:hover {
    background: #e6eee5;
  }
  #overview, #course-questions {
    scroll-margin-top: 72px;
  }
  .result .tag {
    margin-top: 4px;
  }
}
.course-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.course-nav a {
  border-radius: 9px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
}
.course-nav a[aria-current] {
  background: var(--green);
  color: white;
}
.course-layout {
  grid-template-columns: minmax(0, 2.4fr) minmax(245px, 1fr);
  padding-top: 18px;
}
.course-layout > :is(.course-about, .questions, .related) {
  grid-column: 1 / -1;
  margin-top: 0;
}
.under-tour {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 14px;
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.facts {
  padding: 0 0 12px;
  background: white;
}
.fact-grid {
  flex-wrap: wrap;
}
.under-tour .maps-link {
  margin: 0;
}
.booking button {
  font-size: 19px;
  padding: 12px 15px;
}
.tour-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tour-toolbar button {
  background: white;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 7px 12px;
}
.tour-toolbar button:hover {
  background: #eef5ef;
}
.tour:fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

@media (min-width: 601px) {
  .is-theater #course-tour {
    grid-column: 1 / -1;
  }

  .is-theater .tour {
    width: 85vw;
    margin-inline: calc((100% - 85vw) / 2);
    height: max(380px, 78vh);
    border-radius: 0;
  }

  .is-theater .under-tour {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 400px);
  }
}

@media (max-width: 600px) {
  .is-theater .tour {
    height: 100vh;
    height: 100dvh;
  }
}
.course-layout .questions {
  position: static;
  grid-row: auto;
}
.course-layout .questions > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}
@media (max-width: 850px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
}

#name-count {
  margin: 8px 0 0;
  color: #ffe05c;
  font: 700 18.2px/1.4 'DM Sans', sans-serif;
  text-align: center;
}


.tour-toolbar {
  justify-content: center;
  margin: 12px 0 0;
}

.tour-toolbar button {
  background: #f7f3e9;
  border-color: #d5dfd7;
}

.tour-toolbar button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}

.under-tour {
  background: #faf8f2;
  box-shadow: 0 5px 18px #123f320d;
  justify-content: space-between;
}

.under-tour .facts {
  background: transparent;
}

@media (min-width: 851px) {
  .course-layout:not(.is-theater) > .under-tour {
    min-height: 480px;
  }
}

.course-layout > .under-tour {
  background: #10372b;
  color: #fffaf0;
  border-color: #214b3d;
  border-radius: 14px;
  padding: clamp(20px, 2.5vw, 34px);
  gap: 20px;
  justify-content: center;
}

.under-tour .facts {
  padding: 0;
}

.under-tour .facts h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.under-tour .fact-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid #ffffff36;
}

.under-tour .fact-grid > div {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #ffffff36;
}

.under-tour .fact-grid strong {
  font-size: 23px;
  line-height: 1.2;
  text-align: right;
}

.under-tour .fact-grid span {
  color: #d9dfd5;
}

.under-tour .facts > a,
.under-tour .maps-link {
  font-size: 16px;
  text-align: center;
  color: #eaddb8;
}

.under-tour .booking {
  gap: 8px;
}

.under-tour .booking button {
  min-height: 44px;
  background: #f1e6cd;
  color: #10372b;
  font: 600 14px/1.3 "DM Sans", sans-serif;
}

.under-tour .booking button:hover {
  background: #fff6e4;
}

.under-tour .booking button + button {
  background: transparent;
  color: #fffaf0;
  box-shadow: inset 0 0 0 1px #ffffff54;
}

.under-tour .booking button + button:hover {
  background: #ffffff16;
}

.under-tour .booking button span {
  color: inherit;
}

/* Apply immediately in the local preview, which serves live course markup. */
.course-page .tour-link,
.course-page .course-about {
  display: none;
}

.course-layout .questions {
  border-color: #dbe2d8;
  background: #f8faf6;
}

.course-layout .questions h2 {
  padding: 16px;
  text-align: center;
  font-size: 26px;
}

.course-layout .questions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.course-layout .questions button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  gap: 8px;
  border: 1px solid #d2ded2;
  border-radius: 10px;
  background: #fffdf7;
  font: 600 14px/1.25 "DM Sans", sans-serif;
  box-shadow: 0 1px 2px #10372b12;
}

.course-layout .questions button:hover {
  background: #e8f0e7;
  border-color: #91aa99;
}

.course-layout .question-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 6px;
  background: #e8eee5;
  font-size: 16px;
}

.course-layout .questions button > span:last-child {
  color: var(--green);
}

@media (max-width: 650px) {
  .course-layout .questions > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#course-chat {
  border-top: 1px solid #dbe2d8;
  background: #fffdf7;
  animation: reveal-chat 240ms ease-out both;
  transform-origin: top;
}

#course-chat #chat-messages {
  min-height: 0;
  padding: 16px;
}

#course-chat #chat-form {
  margin: 0 16px 16px;
}

@keyframes reveal-chat {
  from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
  #course-chat { animation: none; }
}

#course-chat #chat-messages {
  max-height: none;
  overflow: visible;
}

#course-chat #chat-form {
  margin: 16px 16px 0;
}

.course-page .course-layout {
  row-gap: 14px;
}

.search-hero h1 {
  margin-bottom: 8px;
}

.search-intro {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgb(44 44 44 / 78%);
  color: #ffe05c;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}

.course-layout .questions {
  background: #eef3e5;
  border-color: #ccd7be;
}

.course-layout .questions h2 {
  background: #28482a;
  color: #fff5d9;
  border-bottom: 1px solid #ccd7be;
}

.course-layout .questions button {
  background: #fcfaf1;
  border-color: #ccd7be;
}

#course-chat {
  background: #fcfaf1;
  border-top-color: #ccd7be;
}

#course-chat #chat-form {
  padding: 3px;
  background: white;
}

#course-chat #chat-input {
  padding: 4px 9px;
  line-height: 1.35;
}

#course-chat #chat-send {
  padding: 4px 12px;
  background: #426239;
  color: white;
}

.course-layout .questions button {
  color: #29452b;
}

.course-layout .questions button:hover,
.course-layout .question-icon {
  background: #eee3c4;
}

.course-layout .questions button > span:last-child {
  color: #426239;
}

@media (max-width: 600px) {
  .search-intro {
    padding-inline: 8px;
    font-size: min(14px, 3.2vw);
    white-space: nowrap;
  }
}

/* Keep the autocomplete above the cards without raising it over dialogs. */
.search-hero { position: relative; z-index: 2; overflow: visible; }
.search-section form { max-width: 681.25px; }
.result { position: relative; padding-inline-start: 3rem; }
.result-number { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-variant-numeric: tabular-nums; }
.is-theater .tour { height: 85vh; height: 85dvh; scroll-margin-top: 12px; }
.is-theater .under-tour { width: min(100%, var(--details-width, 400px)); }
@media (min-width: 601px) {
  .search-section form { --search-input-font: 400 22.5px/1.25 "Barlow Condensed", "Arial Narrow", sans-serif; }
  .search-tabs { width: min(310px, calc(100% - 50px)); }
  .search-tabs button { font-size: 23.75px; min-height: 55px; }
  .search-tabs button[aria-selected="true"] { min-height: 60px; }
  .search-row { padding: 20px 15px; gap: 12.5px; }
  .search-submit, .near-button { font-size: 18px; min-height: 50px; }
  #search-input, gmp-place-autocomplete { min-height: 50px; }
}

.nearby-courses ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; gap: 12px; }
.nearby-courses a { height: 100%; align-items: center; gap: 12px; background: white; border: 1px solid #e5e7df; border-radius: 12px; padding: 14px; }
.nearby-courses a span { white-space: nowrap; }
