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

body {
  min-height: 100vh;
  margin: 0;
  background-color: white;
  background-image: url("/images/lodge.webp");
  background-repeat: no-repeat;
  background-position: 28% 20%;
  background-attachment: fixed;
  background-size: cover;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  background-color: #333;
}

.mobile-header {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.navbar a,
.dropbtn {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  color: white;
  background: transparent;
  font: inherit;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.navbar a:hover,
.navbar a:focus-visible,
.dropdown:hover > .dropbtn,
.dropbtn:focus-visible,
.dropdown.open > .dropbtn {
  background-color: #3d67af;
  outline: none;
}

.dropdown {
  position: relative;
}

.dropbtn {
  gap: 7px;
}

.dropbtn .fa {
  transition: transform 0.2s ease;
}

.dropdown.open .dropbtn .fa {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 190px;
  background-color: #f9f9f9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  min-height: 44px;
  padding: 12px 16px;
  color: #111;
  text-align: left;
  white-space: nowrap;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  color: #111;
  background-color: #ddd;
}

.social-link {
  justify-content: center;
}

.social-link img {
  display: block;
  width: 25px;
  height: 25px;
}

main {
  padding: 24px 16px;
  text-align: center;
}

.content-panel {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px 32px;
  color: #222;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.content-panel h1 {
  margin-top: 0;
}

.content-panel a {
  color: #244f98;
}

.calendar-panel {
  width: min(100%, 1000px);
}

.calendar-frame {
  width: 100%;
  overflow: hidden;
  background-color: #fff;
  border-radius: 8px;
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 700px);
  min-height: 600px;
  border: 0;
}

.page-content {
  padding: 28px 32px;
  overflow: visible;
  background-color: transparent;
  border-radius: 0;
  line-height: 1.7;
  text-align: left;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

.error-page {
  background-color: #f5f5f5;
  background-image: none;
}

.error-main {
  display: grid;
  min-height: calc(100vh - 52px);
  place-items: center;
  background-image: url("/images/elkslarge.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.error-panel {
  width: min(100%, 620px);
}

.error-panel .page-content {
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.9;
}

.content-panel .error-home-link {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  color: #fff;
  background-color: #3d67af;
  border-radius: 6px;
  text-decoration: none;
}

.content-panel .error-home-link:hover,
.content-panel .error-home-link:focus-visible {
  background-color: #294e8c;
  outline: 3px solid rgba(61, 103, 175, 0.35);
  outline-offset: 2px;
}

.lodge-details {
  line-height: 1.6;
}

@media (max-width: 850px) {
  body {
    background-position: 28% top;
  }

  .content-panel {
    padding: 22px 18px;
  }

  .calendar-frame iframe {
    height: 72vh;
    min-height: 500px;
  }

  .page-content {
    padding: 22px 18px;
  }

  .error-main {
    min-height: calc(100vh - 60px);
  }

  .navbar {
    display: block;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding-left: 16px;
    color: white;
  }

  .mobile-brand {
    font-size: 18px;
    font-weight: 700;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 9px;
    min-width: 102px;
    padding: 0 16px;
    border: 0;
    color: white;
    background: transparent;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible,
  .menu-toggle[aria-expanded="true"] {
    background-color: #3d67af;
    outline: none;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-icon::before {
    top: -7px;
  }

  .menu-icon::after {
    top: 7px;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-menu {
    display: none;
    width: 100%;
    border-top: 1px solid #555;
  }

  .nav-menu.open {
    display: block;
  }

  .navbar a,
  .dropbtn {
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    min-height: 48px;
    padding-left: 32px;
    color: #111;
    white-space: normal;
  }

  .social-link {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dropbtn .fa,
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    transition: none;
  }
}
