:root {
  --paper: #faf7ef;
  --ink: #10263c;
  --red: #a6382d;
  --line: #d7d0c4;
  --muted: #52616a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

main { min-height: 65vh; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid #007590;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  z-index: 5;
  top: 6px;
  left: 6px;
  padding: 8px;
  background: white;
}

#site-header, #site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 17px 4%;
}

#site-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.brand {
  font: bold clamp(26px, 3vw, 40px)/1.1 Georgia, serif;
  text-decoration: none;
}

nav, .actions, .filters, .steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

nav a {
  padding: 7px 3px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

nav a[aria-current="page"] {
  border-color: var(--red);
  font-weight: bold;
}

#menu-button { display: none; }

.wrap {
  width: min(1320px, 92%);
  margin: auto;
  padding: clamp(26px, 4vw, 58px) 0;
}

h1, h2, h3, legend {
  font-family: Georgia, serif;
  line-height: 1.12;
}

h1 {
  margin: 0 0 30px;
  font-size: clamp(38px, 5.6vw, 82px);
}

h2 { font-size: clamp(26px, 3vw, 42px); }
h3 { font-size: 22px; }

.hero {
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: center;
}

.hero-copy { padding: 30px 10%; }
.hero-copy h1 { font-size: clamp(48px, 6.4vw, 100px); }

.hero-photo {
  height: clamp(300px, 34vw, 520px);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c8d7cf, #e9e0cb);
}

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

.photo-frame.missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #294c49;
  text-align: center;
  font: italic 22px Georgia, serif;
}

.button, .outline-button, .filters button {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.button, .filters button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button:hover { background: #85291f; }
.filters { margin-bottom: 23px; }
.center { text-align: center; }
.text-link { color: var(--red); font-weight: bold; }

.ruled-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 24px;
  text-align: center;
}

.ruled-title::before, .ruled-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.card .photo-frame { aspect-ratio: 1.85; }

.card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 15px;
}

.card-body h3 { margin: 0; }
.card-body a { color: var(--red); font-weight: bold; }

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.gallery-button .card-body { font: bold 22px Georgia, serif; }

.split, .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
}

.feature-photo {
  align-self: start;
  aspect-ratio: 1.22;
  border-radius: 5px;
}

.directory {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

label {
  display: block;
  margin-bottom: 17px;
  font-weight: bold;
}

input, select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #78848a;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}

.location-list { columns: 3; padding-left: 21px; }
.location-list li { break-inside: avoid; margin-bottom: 8px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 18px; font-size: 26px; font-weight: bold; }
.steps { margin: 0 0 25px; padding: 0; list-style: none; }
.steps li { padding: 6px 0; border-bottom: 3px solid var(--line); }
.steps li[aria-current="step"] { border-color: var(--red); font-weight: bold; }
.note { font-size: .95rem; color: var(--muted); }
.summary dt { margin-top: 9px; font-weight: bold; }
.summary dd { margin: 2px 0; overflow-wrap: anywhere; }

dialog {
  width: min(900px, 94vw);
  max-height: 90vh;
  padding: 18px;
  border: 0;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop { background: #10263ccc; }
dialog form { margin-bottom: 12px; text-align: right; }
.dialog-photo { height: min(60vh, 560px); }
.dialog-photo img { object-fit: contain; }
.account-banner { height: clamp(140px, 20vw, 290px); }
.account-panel { max-width: 760px; padding: 20px; border: 1px solid var(--line); }
.account-panel h2 { margin-top: 0; }
#site-footer { flex-wrap: wrap; border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #site-header { flex-wrap: wrap; }
  #menu-button { display: inline-block; }
  nav { display: none; width: 100%; }
  nav.open { display: flex; }
  .location-list { columns: 2; }
}

@media (max-width: 600px) {
  .hero, .split, .field-grid, .card-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 5%; }
  .hero-photo { height: 220px; clip-path: none; }
  .hero-copy h1 { margin-bottom: 18px; }
  .feature-photo { max-height: 310px; }
  .location-list { columns: 1; }
  .steps { gap: 8px; font-size: .9rem; }
  .booking-layout .feature-photo { order: 2; }
}

/* Don D Tour homepage hero */
.deon-hero {
  --cream: #fbf8ef;
  --navy: #062c4e;
  --green: #074423;
  --gold: #efbf41;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  aspect-ratio: 1672 / 804;
  overflow: hidden;
  background: var(--cream);
  color: var(--navy);
  container-type: inline-size;
}

/*
  The original artwork is 1672 × 941. Its header ends at y=137.
  The polygon reveals the scenic side and keeps the original
  screenshot's headline and buttons outside the visible area.
*/
.deon-hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(38.3% 0, 100% 0, 100% 100%, 74% 100%,
                     46% 84%, 30.7% 80%);
}

.deon-hero-photo img {
  position: absolute;
  top: -17.04%;
  left: 0;
  width: 100%;
  height: 117.04%;
  max-width: none;
  display: block;
}

.deon-hero-copy {
  align-self: center;
  width: 31%;
  padding: 1.5% 0 1.5% 3.5%;
  box-sizing: border-box;
}

.deon-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(3.75rem, 6.75cqw, 8.5rem);
  line-height: .89;
  letter-spacing: -.045em;
}

.deon-hero h1 span {
  display: block;
}

.deon-tagline {
  margin: 1.1em 0 .9em;
  color: #103d40;
  font-size: clamp(.95rem, 1.45cqw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.deon-tagline::after {
  content: "";
  display: block;
  width: 42%;
  height: .25em;
  margin: .4em 0 0 20%;
  background: #257039;
  border-radius: 100%;
  transform: rotate(-2deg);
}

.deon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
}

.deon-book,
.deon-trips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.deon-book {
  padding: .8em 1.2em;
  border-radius: .3rem;
  background: #a8221c;
  color: white;
  text-decoration: none;
}

.deon-book:hover {
  background: #861c18;
  color: white;
}

.deon-trips {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.deon-hero-actions a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.deon-highlights {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 66%;
  min-height: 6.5cqw;
  box-sizing: border-box;
  margin: 0;
  padding: 1.5% 17% 1.5% 3.2%;
  list-style: none;
  color: white;
  background: var(--green);
  border-top: .3rem solid var(--gold);
  border-top-right-radius: 75% 100%;
}

.deon-highlights li {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: 0 .9em;
  font-size: clamp(.75rem, 1.05cqw, 1.15rem);
  line-height: 1.25;
}

.deon-highlights li:first-child {
  padding-left: 0;
}

.deon-highlights li + li {
  border-left: 1px solid #ffffff80;
}

.deon-highlights span {
  color: var(--gold);
  font-size: 1.8em;
}

/* On smaller screens, show the scenery first, then the booking controls. */
@media (max-width: 760px) {
  .deon-hero {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .deon-hero-photo {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 1.8;
    clip-path: none;
  }

  .deon-hero-photo img {
    width: 166%;
    height: auto;
    left: -66%;
    top: -26%;
  }

  .deon-hero-copy {
    align-self: stretch;
    width: auto;
    padding: 1.4rem 1.25rem;
  }

  .deon-hero h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 10vw, 4.75rem);
    line-height: .98;
  }

  .deon-hero h1 span {
    display: inline;
  }

  .deon-tagline {
    margin: .85rem 0 1rem;
    font-size: 1.05rem;
  }

  .deon-tagline::after {
    width: 5rem;
    margin-left: 0;
  }

  .deon-highlights {
    width: 100%;
    min-height: 0;
    padding: 1rem;
    border-top-right-radius: 0;
  }

  .deon-highlights li {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 0 .45rem;
    font-size: .8rem;
  }
}
.deon-hero-photo img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}