:root {
  --sand: #e1d5b7;
  --blue: #0099da;
  --taupe: #c6b198;
  --line: #dddddd;
  --text: #000000;
  --muted: #808080;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sand);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background: var(--sand);
  color: var(--text);
  font-family: Times, "Times New Roman", serif;
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: #ffffff;
  color: #000000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1024px, 100%);
  min-height: 715px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.site-header {
  flex: 0 0 123px;
  width: 100%;
  height: 123px;
  background: #ffffff url("../images/Header.png") no-repeat 0 0;
  background-size: 1024px 123px;
}

.site-header a {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav {
  position: relative;
  z-index: 20;
  flex: 0 0 46px;
  height: 46px;
  background: #ffffff;
}

.has-divider .site-nav::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 10px;
  width: 470px;
  height: 1px;
  background: var(--line);
}

.site-nav ul {
  position: relative;
  z-index: 1;
  height: 46px;
  margin: 0;
  padding: 0 1px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  list-style: none;
}

.site-nav li {
  margin-left: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
}

.site-nav a {
  display: block;
  padding: 8px;
  border-radius: 5px;
  color: var(--blue);
  font-weight: 400;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: #f4f0e7;
  color: var(--taupe);
  outline: none;
}

.site-nav a.current {
  color: var(--blue);
}

.menu-toggle {
  display: none;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  min-height: 54px;
  margin-top: auto;
  padding: 9px 20px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--taupe);
  text-decoration: none;
}

.site-footer a[href^="mailto:"] {
  color: inherit;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer .legal-links {
  margin-top: 4px;
  font-size: 10px;
}

.home-slider {
  position: relative;
  width: 100%;
  height: 492px;
  overflow: hidden;
  background: #202834 url("../images/loading.gif") no-repeat 50% 50%;
}

.home-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.home-slide.is-active {
  opacity: 1;
}

.content-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 500px 486px;
  gap: 16px;
  align-items: start;
  padding-right: 12px;
  padding-left: 10px;
}

.region-layout {
  padding-top: 40px;
}

.locations-layout {
  padding-top: 0;
}

.gallery {
  width: 500px;
  outline: none;
}

.gallery-frame {
  position: relative;
  width: 500px;
  height: 333px;
  overflow: hidden;
  background: #202834 url("../images/loading.gif") no-repeat 50% 50%;
  box-shadow: 0 0 10px #333333;
}

.gallery-lightbox-trigger {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-fold-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.gallery-fold-slice {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0;
  transform: scaleX(0.1);
  transform-origin: left center;
  background-repeat: no-repeat;
  animation: fold-in 600ms ease forwards;
}

@keyframes fold-in {
  0% {
    opacity: 0;
    transform: scaleX(0.1);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.gallery-arrow {
  position: absolute;
  top: calc(50% - 17px);
  z-index: 4;
  width: 32px;
  height: 34px;
  padding: 0;
  border: 0;
  opacity: 0;
  background-color: transparent;
  background-image: url("../images/arrows.png");
  background-repeat: no-repeat;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.gallery:hover .gallery-arrow,
.gallery:focus-within .gallery-arrow {
  opacity: 1;
}

.gallery-prev {
  left: 10px;
  background-position: 0 0;
}

.gallery-next {
  right: 10px;
  background-position: -30px 0;
}

.gallery-thumbs {
  width: 100%;
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.gallery-thumb {
  position: relative;
  min-width: 0;
  aspect-ratio: 95 / 64;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ffffff;
  box-shadow: 0 0 7px #777777;
  cursor: pointer;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
}

.gallery-thumb.is-active::after,
.gallery-thumb:focus-visible::after {
  border-color: var(--blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.copy-panel {
  border: 3px solid var(--line);
  border-radius: 10px;
  color: #000000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
}

.region-copy {
  min-height: 364px;
  margin-top: 40px;
  padding: 8px 10px 7px;
  letter-spacing: 1px;
  text-align: justify;
}

.region-copy h1 {
  margin: 3px 0 10px;
  color: var(--taupe);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: left;
}

.region-copy p {
  margin: 0 0 10px;
  line-height: 1.16;
}

.programmes-panel {
  position: relative;
  min-height: 486px;
  padding: 7px 10px 24px;
}

.programme + .programme {
  margin-top: 14px;
}

.programme h2 {
  margin: 0 0 9px;
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: left;
}

.programme-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.programme ul {
  margin: 0;
  padding-left: 31px;
  list-style-type: circle;
}

.programme li {
  line-height: 1.16;
  text-align: left;
}

.distance-note {
  margin: 10px 0 0;
  color: var(--blue);
  letter-spacing: 1px;
  text-align: center;
}

.page-rates .site-shell {
  min-height: 900px;
}

.rates-section {
  width: 100%;
  min-height: 560px;
  padding-top: 64px;
  font-family: Arial, Helvetica, sans-serif;
}

.rates-section h1 {
  width: calc(100% - 242px);
  margin: 0 0 26px 242px;
  color: #b3261e;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
  text-decoration: underline;
}

.rates-table-wrap {
  width: 89%;
  margin: 0 auto;
}

.rates-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #111111;
  font-size: 17px;
}

.rates-table th,
.rates-table td {
  height: 40px;
  padding: 4px 5px;
  border: 1px solid #555555;
  font-weight: 400;
}

.rates-table thead td {
  width: 31%;
  border-top-color: transparent;
  border-left-color: transparent;
  background: #ffffff;
}

.rates-table thead th {
  background: #b7c7e5;
  text-align: left;
}

.rates-table tbody th {
  width: 31%;
  background: #d7dff0;
  font-weight: 600;
  text-align: center;
}

.rates-table tbody td {
  background: #eeeeee;
  font-weight: 400;
  text-align: right;
}

.deposit {
  width: 43%;
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
}

.deposit strong {
  font-weight: 700;
}

.page-contact .site-shell {
  min-height: 790px;
}

.contact-layout {
  width: 100%;
  padding: 4px 10px 0;
  display: grid;
  grid-template-columns: 500px 396px;
  justify-content: space-between;
  align-items: start;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-form-wrap {
  width: 500px;
}

.contact-form {
  width: 430px;
  margin: 0 auto;
  padding: 16px 24px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 20px #cccccc;
  text-align: left;
}

.contact-form h1 {
  margin: 0 0 12px;
  color: var(--taupe);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-row {
  margin-bottom: 8px;
}

.form-row label {
  display: block;
  color: #333333;
  font-size: 12px;
}

.form-row label span {
  color: #b3261e;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #fafafa;
  color: #000000;
  font-size: 13px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.form-row input {
  height: 32px;
}

.form-row textarea {
  min-height: 92px;
  resize: vertical;
}

.form-row input:hover,
.form-row textarea:hover,
.form-row input:focus,
.form-row textarea:focus {
  border-color: #000000;
  background: #ffffff;
  outline: none;
}

.consent {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: #333333;
  font-size: 10px;
  line-height: 1.3;
}

.consent input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
}

.submit-button {
  width: 180px;
  min-height: 34px;
  margin: 12px auto 0;
  display: block;
  border: 0;
  border-radius: 4px;
  background: #168eaf;
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #0a7898;
  box-shadow: 0 0 12px #777777;
  outline: none;
}

.required-note {
  margin: 7px 0 0;
  color: #333333;
  font-size: 10px;
  text-align: center;
}

.map-wrap {
  width: 396px;
  margin-top: 28px;
  border: 3px solid var(--line);
  text-align: center;
}

.map-wrap iframe {
  width: 390px;
  max-width: 100%;
  height: 425px;
  display: block;
  border: 0;
}

.map-wrap a {
  display: inline-block;
  margin: 2px 0 4px;
  color: #0000ff;
  font-size: 12px;
  text-decoration: none;
}

.map-wrap a:hover,
.map-wrap a:focus-visible {
  text-decoration: underline;
}

.lightbox {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 36px 12px 12px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 92px);
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 3px;
  right: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.legal-page,
.status-page {
  width: min(760px, calc(100% - 40px));
  margin: 34px auto 40px;
  color: #333333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.legal-page h1,
.status-page h1 {
  margin: 0 0 24px;
  color: var(--taupe);
  font-size: 25px;
  letter-spacing: 2px;
}

.legal-page h2 {
  margin: 24px 0 6px;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: 1px;
}

.legal-page p,
.status-page p {
  margin: 0 0 12px;
}

.legal-page a {
  color: #0b779e;
}

.status-page {
  min-height: 330px;
  padding-top: 55px;
  text-align: center;
}

.text-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  text-decoration: none;
}

.text-button:hover,
.text-button:focus-visible {
  background: #eff9fd;
}

@media (max-width: 1050px) and (min-width: 701px) {
  .site-shell {
    width: 100%;
  }
}

@media (max-width: 700px) {
  html,
  body {
    background: #ffffff;
  }

  body {
    min-height: 100dvh;
    display: block;
  }

  .site-shell {
    width: 100%;
    min-height: 100dvh;
    overflow: visible;
  }

  .site-header {
    flex-basis: 90px;
    height: 90px;
    background-size: 749px 90px;
    background-position: 0 0;
  }

  .site-nav {
    flex-basis: 48px;
    height: 48px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
  }

  .has-divider .site-nav::before {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    top: 5px;
    right: 8px;
    z-index: 3;
    width: 40px;
    height: 38px;
    padding: 8px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 0;
    background: #ffffff;
    cursor: pointer;
  }

  .menu-toggle > span:not(.visually-hidden) {
    width: 23px;
    height: 2px;
    display: block;
    background: var(--blue);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-open .menu-toggle > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav ul {
    position: absolute;
    top: 47px;
    right: 0;
    left: 0;
    z-index: 2;
    height: auto;
    padding: 7px 12px 11px;
    display: grid;
    gap: 0;
    transform: translateY(-8px);
    visibility: hidden;
    opacity: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .menu-open .site-nav ul {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .site-nav li {
    margin: 0;
    font-size: 14px;
  }

  .site-nav a {
    padding: 10px 8px;
    border-radius: 0;
    text-align: center;
  }

  .home-slider {
    height: min(492px, calc(100dvh - 210px));
    min-height: 360px;
  }

  .home-slide {
    object-position: center;
  }

  .content-grid {
    display: block;
    padding: 14px 12px 24px;
  }

  .region-layout,
  .locations-layout {
    padding-top: 14px;
  }

  .gallery {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .gallery-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 333;
  }

  .gallery-arrow {
    opacity: 0.9;
  }

  .gallery-thumbs {
    gap: 4px;
  }

  .gallery-thumb {
    box-shadow: 0 0 5px #888888;
  }

  .copy-panel {
    width: 100%;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
  }

  .region-copy {
    min-height: 0;
    margin-top: 18px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  .region-copy h1 {
    font-size: 18px;
  }

  .region-copy p {
    line-height: 1.45;
  }

  .programmes-panel {
    min-height: 0;
    margin-top: 18px;
    padding: 12px 10px 16px;
    font-size: 11.5px;
  }

  .programme + .programme {
    margin-top: 18px;
  }

  .programme h2 {
    font-size: 13px;
  }

  .programme-columns {
    gap: 2px;
  }

  .programme ul {
    padding-left: 20px;
  }

  .distance-note {
    margin-top: 16px;
    line-height: 1.4;
  }

  .page-rates .site-shell,
  .page-contact .site-shell {
    min-height: 100dvh;
  }

  .rates-section {
    min-height: 0;
    padding: 34px 10px 42px;
  }

  .rates-section h1 {
    width: 100%;
    margin: 0 0 24px;
    font-size: 24px;
    text-align: center;
  }

  .rates-table-wrap {
    width: 100%;
  }

  .rates-table {
    font-size: 10px;
  }

  .rates-table th,
  .rates-table td {
    height: 43px;
    padding: 3px;
    overflow-wrap: anywhere;
  }

  .rates-table thead td,
  .rates-table tbody th {
    width: 34%;
  }

  .rates-table thead th {
    text-align: center;
  }

  .deposit {
    width: min(240px, 80%);
    margin-top: 26px;
    font-size: 19px;
  }

  .contact-layout {
    padding: 16px 12px 28px;
    display: block;
  }

  .contact-form-wrap,
  .contact-form {
    width: 100%;
    max-width: 500px;
  }

  .contact-form {
    padding: 18px 16px 16px;
  }

  .map-wrap {
    width: 100%;
    max-width: 500px;
    margin: 24px auto 0;
  }

  .map-wrap iframe {
    width: 100%;
    height: 360px;
  }

  .site-footer {
    min-height: 105px;
    padding: 13px 20px;
    font-size: 10px;
    line-height: 1.45;
  }

  .legal-page,
  .status-page {
    width: calc(100% - 32px);
    margin-top: 28px;
  }

  .legal-page h1,
  .status-page h1 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .site-header {
    flex-basis: 84px;
    height: 84px;
    background-size: 699px 84px;
  }

  .home-slider {
    min-height: 330px;
  }

  .programme-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .programme ul + ul {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
