/* Rainbow Forest RV Park - static replacement for the Zita Pro + Beaver Builder theme.
   Values measured from the live WordPress site. */

@font-face {
  font-family: "Catamaran-Regular";
  src: url("../fonts/catamaran-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Font Awesome 7 Free Solid, subset to plus/minus (accordion icons) */
@font-face {
  font-family: "FA Solid Subset";
  src: url("../fonts/fa-plus-minus.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
/* Font Awesome 4.7, subset to angle-up (back-to-top button) */
@font-face {
  font-family: "FA4 Subset";
  src: url("../fonts/fa4-angle-up.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: #4a726a;
  color: #808285;
  font: 400 16px/1.6 "Catamaran-Regular", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; padding: 0; font-family: "Catamaran-Regular", sans-serif; font-weight: 500; letter-spacing: 1px; color: #fff; }
h1 { font-size: 30px; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 28px; line-height: 1.3; margin-bottom: 20px; }
h3 { font-size: 26px; line-height: 1.4; }
p { margin: 0 0 10px; }
strong { font-weight: bold; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: 15px 23px 14px; background: #f1f1f1; color: #21759b; font-size: 14px; font-weight: bold; }
.skip-link:focus { left: 6px; top: 7px; }

/* ---------- Rows ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  margin-top: 50px;
  padding: 20px;
  background: url("../img/pic1.jpg") no-repeat center center / cover;
}
.hero-inner {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  background-image: radial-gradient(at center center, #ffffff 40%, rgba(255, 255, 255, 0) 70%);
}
.hero-logo { margin: 20px; max-width: calc(100% - 40px); }

.box {
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
}
.box-inner {
  padding: 20px;
  background-color: #68a591;
  border: solid #ffe900;
  border-width: 1px 2px;
  box-shadow: 2px 1px 3px 2px #353535;
}
.box-mb .box-inner { margin-bottom: 10px; }
/* Beaver Builder columns are flex containers, so module margins never collapse */
.box-inner, .col { display: flex; flex-direction: column; }

.mod { margin: 20px; }
.center { text-align: center; }
.rich p { line-height: 1.8; }

/* ---------- Row 2 ---------- */
.btn-wrap { text-align: center; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #979797;
  border-radius: 4px;
  background-color: #fafafa;
  background-image: linear-gradient(180deg, #4a726a 0%, #ffffff 100%);
  color: #fff;
  font-size: 18px;
  line-height: 18px;
  text-align: center;
  transition: all 0.2s linear;
}
.btn span { color: #fff; }
.btn:hover, .btn:focus { background-image: linear-gradient(180deg, #7fc6b6 0%, #ffffff 100%); color: #000; }
.btn:hover span, .btn:focus span { color: #000; }

/* ---------- Row 3: gallery + park map ---------- */
.cols { display: flex; align-items: center; }
.col { width: 50%; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 20px; /* mosaic items keep their 20px bottom margin */
}
.gallery a { display: block; }
.gallery img { display: block; width: 100%; }

/* ---------- Row 4: heading, accordion, map ---------- */
.heading { text-align: center; }
.acc-item {
  margin-bottom: 10px;
  border: 1px solid #e5e5e5;
}
.acc-btn {
  display: flex;
  width: 100%;
  padding: 10px 15px;
  background-color: #4e687c;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 40px;
  cursor: pointer;
}
.acc-icon {
  display: block;
  margin-right: 10px;
  opacity: 0.5;
  font: 900 25px/40px "FA Solid Subset";
  width: 1.25em;
  text-align: center;
}
.acc-icon::before { content: "\2b"; }
.is-open .acc-icon::before { content: "\f068"; }
.acc-btn:hover .acc-icon, .acc-btn:focus .acc-icon { opacity: 1; }
.acc-label { width: 100%; text-align: left; }
.acc-content {
  padding: 0 30px 10px 15px;
  background-color: #4a726a;
  overflow: hidden;
}
.acc-content p { font-size: 18px; line-height: 1.8; }
.acc-content[hidden] { display: none; }

iframe { max-width: 100%; margin-bottom: 24px; vertical-align: middle; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 1px; background: #fff; text-align: center; }
.footer-top { padding: 30px 20px; border-bottom: 1px solid #eee; }
.footer-text { display: inline-block; max-width: 1160px; line-height: 40px; text-align: left; }
.footer-bottom { padding: 10px 20px; border-top: 1px solid #eee; }
.footer-bottom img { display: block; margin: 16px auto; }

/* ---------- Back to top ---------- */
#move-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  width: 2.1em;
  height: 2.1em;
  line-height: 2.1;
  font-size: 18px;
  text-align: center;
  color: #fff;
  background: #006799;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
#move-to-top.filling { opacity: 1; visibility: visible; }
#move-to-top:hover { color: #fff; background: #015782; }
#move-to-top i { font-family: "FA4 Subset"; font-style: normal; font-weight: normal; }
#move-to-top i::before { content: "\f106"; }

/* ---------- Gallery lightbox (replaces Magnific Popup) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1043;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 11, 0.8);
}
.lightbox[hidden] { display: none; }
.lightbox:focus { outline: none; }
.lb-figure { position: relative; margin: 0; line-height: 0; }
.lb-figure::after { content: ""; position: absolute; top: 40px; bottom: 40px; left: 0; right: 0; z-index: -1; background: #444; box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); }
.lb-img { display: block; width: auto; max-width: calc(100vw - 16px); max-height: calc(100vh - 40px); padding-bottom: 40px; box-sizing: content-box; cursor: zoom-out; }
.lb-close {
  position: absolute; top: 10px; right: 0;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; color: #fff;
  font: 28px/44px Arial, Baskerville, monospace; opacity: 0.65; cursor: pointer;
}
.lb-arrow {
  position: absolute; top: 50%; margin-top: -55px;
  width: 90px; height: 110px; padding: 0;
  background: none; border: 0; opacity: 0.65; cursor: pointer;
}
.lb-close:hover, .lb-arrow:hover { opacity: 1; }
/* Arrow shapes copied from Magnific Popup */
.lb-arrow::before, .lb-arrow::after {
  content: ""; display: block; position: absolute; left: 0; top: 0;
  width: 0; height: 0; margin-top: 35px; margin-left: 35px;
  border: medium inset transparent;
}
.lb-arrow::after { border-top-width: 13px; border-bottom-width: 13px; top: 8px; }
.lb-arrow::before { border-top-width: 21px; border-bottom-width: 21px; opacity: 0.7; }
.lb-prev { left: 0; }
.lb-prev::after { border-right: 17px solid #fff; margin-left: 31px; }
.lb-prev::before { margin-left: 25px; border-right: 27px solid #3f3f3f; }
.lb-next { right: 0; }
.lb-next::after { border-left: 17px solid #fff; margin-left: 39px; }
.lb-next::before { border-left: 27px solid #3f3f3f; }
.lb-close:focus:not(:focus-visible), .lb-arrow:focus:not(:focus-visible) { outline: none; }

/* Theme footer breakpoint is 767px */
@media (max-width: 767px) {
  .footer-text { line-height: normal; }
}

/* ---------- Mobile (Beaver Builder breakpoint: 768px) ---------- */
@media (max-width: 768px) {
  .hero { margin-top: 0; padding-left: 0; padding-right: 0; }
  .box-mb .box-inner { margin-bottom: 0; }
  .box-inner { padding-left: 0; padding-right: 0; }
  .cols { display: block; }
  .col { width: auto; }
  .col { max-width: 400px; margin: 0 auto; } /* Beaver Builder "small" columns */
  .lb-arrow { transform: scale(0.75); }
  .lb-prev { transform-origin: 0; }
  .lb-next { transform-origin: 100%; }
}
