/* Access page */
.access-heading {
  padding: 27px 40px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.access-heading h1 {
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 2;
}

.location-section {
  min-height: 1000px;
  padding: 80px 24px;
  background:
    linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .14)),
    url("../images/access/access-background.jpg") center / cover no-repeat;
  color: #fff;
}

.location-panel {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: 35px;
  background: rgba(0, 0, 0, .45);
}

.location-table {
  width: 100%;
  border-collapse: collapse;
}

.location-table th,
.location-table td {
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  text-align: left;
  vertical-align: top;
}

.location-table tr:last-child th,
.location-table tr:last-child td {
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.location-table th {
  width: 20%;
  font-weight: 400;
  white-space: nowrap;
}

.access-phone {
  display: inline-flex;
  align-items: center;
  gap: .45em;
}

.access-phone svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.map-frame {
  margin-top: 55px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.access-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid currentColor;
  text-align: center;
  font-family: sans-serif;
  transition: background-color .2s ease, color .2s ease;
}

.access-button:hover {
  background: #222;
  color: #fff;
}

.access-container {
  width: min(1200px, 100%);
  margin-inline: auto;
}

.public-transport {
  padding: 70px 24px 0;
  background: #fff;
}

.public-transport h2,
.car-access h2 {
  margin: 0 0 45px;
  text-align: center;
  font-size: 27px;
  font-weight: 400;
}

.transport-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 310px;
  margin-bottom: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.transport-media {
  min-height: 100%;
}

.transport-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transport-card-reverse .transport-media {
  order: 2;
}

.transport-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 7%;
}

.transport-copy h3,
.route-card h3 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
}

.access-list {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  margin: 0;
}

.access-list dt,
.access-list dd {
  margin: 0;
  padding: 9px 10px;
  border-top: 1px solid #ddd;
}

.access-list dt {
  font-weight: 400;
}

.access-list dt:last-of-type,
.access-list dd:last-of-type {
  border-bottom: 1px solid #ddd;
}

.transport-note {
  margin: 20px 0 0;
}

.transport-links {
  margin-top: 55px;
  padding: 25px 0;
}

.transport-links > p {
  margin: 0 0 16px;
}

.transport-links > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transport-links .access-button + .access-button {
  border-left: 0;
}

.car-access {
  padding: 70px 24px 95px;
  background: rgba(64, 85, 116, .06);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 40px;
}

.route-card {
  padding: 32px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.route-card h3 {
  text-align: left;
}

.route-card p {
  margin: 22px 0 0;
}

@media (max-width: 700px) {
  .access-heading {
    padding: 25px 24px;
  }

  .access-heading h1 {
    font-size: 26px;
    line-height: 1.8;
  }

  .location-section {
    min-height: auto;
    padding: 35px 18px 55px;
  }

  .location-panel {
    padding: 22px 16px;
  }

  .location-table th,
  .location-table td {
    padding: 9px 7px;
  }

  .location-table th {
    width: 32%;
    white-space: normal;
  }

  .address-break {
    display: block;
  }

  .map-frame {
    margin-top: 35px;
  }

  .map-frame iframe {
    height: 360px;
  }

  .map-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-transport {
    padding: 52px 20px 0;
  }

  .public-transport h2,
  .car-access h2 {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .transport-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .transport-media {
    min-height: 0;
  }

  .transport-media img {
    aspect-ratio: 3 / 2;
  }

  .transport-card-reverse .transport-media {
    order: 0;
  }

  .transport-copy {
    padding: 30px 20px 34px;
  }

  .transport-copy h3,
  .route-card h3 {
    font-size: 19px;
  }

  .access-list {
    grid-template-columns: 34% 1fr;
  }

  .access-list dt,
  .access-list dd {
    padding: 8px 6px;
  }

  .transport-links {
    margin-top: 38px;
  }

  .transport-links > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .transport-links .access-button + .access-button {
    border-left: 1px solid currentColor;
  }

  .car-access {
    padding: 52px 20px 70px;
  }

  .route-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .route-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .access-button {
    transition: none;
  }
}
