.tour-section {
  padding-top: 25px;
}

.tour-heading {
  margin-bottom: 46px;
}

.tour-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.tour-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-top: 3px solid var(--yellow);
  background: #fff;
  box-shadow: 0 12px 34px rgba(12, 21, 29, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tour-summary {
  display: none;
}

.tour-expanded {
  display: grid;
  grid-template-columns: minmax(160px, .88fr) minmax(0, 1.12fr);
}

.tour-card:hover,
.tour-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(12, 21, 29, .16);
}

.tour-map-button,
.tour-map-placeholder {
  position: relative;
  min-width: 0;
  min-height: 280px;
  background: #e8e6e0;
  color: #fff;
}

.tour-map-button {
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: zoom-in;
}

.tour-map-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 30px;
  background: var(--ink);
}

.tour-map-placeholder span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px dashed rgba(255, 255, 255, .7);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
}

.tour-map-placeholder small {
  color: #aeb8be;
  font-size: 10px;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.tour-map-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease, opacity .25s ease;
}

.tour-map-button:hover img,
.tour-map-button:focus-visible img {
  opacity: .9;
  transform: scale(1.025);
}

.tour-map-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.tour-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 24px 23px;
}

.tour-kicker {
  margin: 0 0 8px;
  color: #87720b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.tour-content h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tour-route {
  margin: 14px 0 0;
  color: #34414a;
  font-size: 13px;
  line-height: 1.48;
}

.tour-route span {
  display: block;
  margin-bottom: 3px;
  color: #5f6970;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tour-info {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tour-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tour-facts div {
  min-width: 0;
}

.tour-facts dt {
  color: #5f6970;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tour-facts dd {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.tour-request-link {
  position: static;
  margin-top: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid #a9afb3;
  font-size: 13px;
  font-weight: 700;
}

.tour-request-link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.tour-request-link span {
  margin-left: 6px;
  color: #8a750b;
  font-size: 17px;
}

.tour-request-link:focus-visible {
  outline: none;
}

.tour-request-link:focus-visible::after {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.tour-empty {
  margin: 0;
  padding: 30px;
  border-top: 3px solid var(--yellow);
  background: #fff;
  color: var(--muted);
}

.tour-map-dialog {
  width: min(1200px, calc(100vw - 24px), calc(100vh - 24px));
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.tour-map-dialog::backdrop {
  background: rgba(5, 12, 17, .86);
  backdrop-filter: blur(5px);
}

.tour-dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  margin: 0;
}

.tour-dialog-close button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(12, 21, 29, .88);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.tour-dialog-close button:hover,
.tour-dialog-close button:focus-visible {
  background: #fff;
  color: var(--ink);
  outline: 3px solid var(--yellow);
}

.tour-dialog-map {
  width: 100%;
  height: 100%;
  background: var(--ink);
}

.tour-dialog-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .tour-list {
    grid-template-columns: 1fr;
  }

  .tour-expanded {
    grid-template-columns: minmax(230px, .82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 620px) {
  .tour-section {
    padding-top: 15px;
  }

  .tour-heading {
    margin-bottom: 32px;
  }

  .tour-list {
    gap: 12px;
  }

  .tour-card {
    border-top-width: 2px;
    box-shadow: 0 7px 22px rgba(12, 21, 29, .09);
  }

  .tour-card:hover,
  .tour-card:focus-within {
    transform: none;
    box-shadow: 0 10px 28px rgba(12, 21, 29, .13);
  }

  .tour-summary {
    display: grid;
    min-height: 82px;
    grid-template-columns: 82px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 15px;
    padding-right: 16px;
    cursor: pointer;
    list-style: none;
  }

  .tour-summary::-webkit-details-marker {
    display: none;
  }

  .tour-summary > img,
  .tour-summary-placeholder {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: cover;
    background: var(--ink);
  }

  .tour-summary-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
  }

  .tour-summary-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
  }

  .tour-summary-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.1;
  }

  .tour-summary-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .tour-summary-toggle {
    width: 11px;
    height: 11px;
    border-right: 2px solid #64717a;
    border-bottom: 2px solid #64717a;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
  }

  .tour-card[open] .tour-summary {
    border-bottom: 1px solid var(--line);
  }

  .tour-card[open] .tour-summary-toggle {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .tour-expanded {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tour-request-link::after {
    display: none;
  }

  .tour-map-button,
  .tour-map-placeholder {
    min-height: 250px;
  }

  .tour-content {
    padding: 20px 18px;
  }

  .tour-content h3 {
    font-size: 28px;
  }

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

}

@media (max-width: 900px) and (orientation: portrait) {
  .tour-expanded {
    grid-template-columns: 1fr;
  }

  .tour-map-button,
  .tour-map-placeholder {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
  }

  .tour-map-button img {
    object-position: center;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .tour-map-button,
  .tour-map-placeholder {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .tour-content {
    padding: 14px 18px 12px;
  }

  .tour-kicker {
    margin-bottom: 4px;
  }

  .tour-content h3 {
    font-size: 25px;
  }

  .tour-route,
  .tour-info {
    font-size: 11px;
    line-height: 1.38;
  }

  .tour-route {
    margin-top: 8px;
  }

  .tour-info {
    margin-top: 8px;
  }

  .tour-facts {
    margin: 10px 0;
    padding: 8px 0;
  }

  .tour-facts dd {
    font-size: 15px;
  }

  .tour-request-link {
    font-size: 12px;
  }
}

@media (max-width: 430px) {

  .tour-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-dialog-close {
    top: 8px;
    right: 8px;
  }

  .tour-dialog-close button {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-card,
  .tour-map-button img {
    transition: none;
  }
}
