/* ==========================================================================
   Trailside Retreat website styles. Colors are set once here.
   ========================================================================== */
:root {
  --maroon: #2a1316;        /* header background */
  --maroon-2: #3b1f27;      /* header on big screens */
  --tan: #d9c6b0;           /* page background */
  --tan-light: #efe4d2;
  --button: #c9bdbb;        /* menu buttons */
  --button-text: #2a1316;
  --button-border: #8c7f7d;
  --book: #c9861c;          /* BOOK NOW */
  --book-dark: #a86c10;
  --text: #111;
  --muted: #4a3c38;
  --title-font: "Playfair Display", "Bodoni 72", Georgia, serif;
  --nav-font: "Jost", "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  --body-font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: linear-gradient(180deg, var(--tan) 0%, var(--tan-light) 100%) fixed;
  background-color: var(--tan);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  background: var(--maroon);
  color: #fff;
  text-align: center;
  padding: 36px 16px 28px;
}
.logo { width: 220px; height: auto; margin: 0 auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.book-now {
  display: inline-block;
  margin: 20px auto 6px;
  padding: 15px 44px;
  background: var(--book);
  color: #fff;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .18em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--book-dark);
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.book-now:hover, .book-now:focus-visible { background: var(--book-dark); }
.site-title {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(30px, 8.6vw, 60px);
  line-height: 1.1;
  margin: 22px 0 10px;
  letter-spacing: -.01em;
}
.site-tagline {
  font-family: var(--nav-font);
  font-weight: 300;
  font-size: clamp(16px, 4.6vw, 20px);
  margin: 0 0 18px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  max-width: 480px;
  margin: 0 auto;
}
.site-nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  flex: 1 1 auto;
  background: var(--button);
  color: var(--button-text);
  border: 1px solid transparent;
  font-family: var(--nav-font);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a.active { border-color: var(--button-border); box-shadow: inset 0 0 0 1px var(--button-border); background: #b9acaa; }
.site-nav .long { display: none; }

/* ---------- Page content ---------- */
main { max-width: 900px; margin: 0 auto; padding: 32px 18px 12px; text-align: center; }
h2 { font-family: var(--title-font); font-weight: 500; font-size: 32px; margin: 28px 0 12px; }
h3 { font-size: 21px; margin: 26px 0 8px; }
main p { font-size: 20px; margin: 0 0 18px; }
.lead { font-size: 24px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 18px; font-size: 19px; }
ul.plain li { padding: 5px 0; }
.place-list li { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.place-list .time { color: var(--muted); }
.callout {
  background: rgba(255,255,255,.55);
  border-radius: 6px;
  padding: 18px 16px;
  margin: 18px 0 24px;
}
.callout .book-now { margin-top: 10px; }
.small { font-size: 16px; color: var(--muted); }

/* Photos */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 24px; }
.photos figure, .photo { margin: 0; }
.photos img, .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; background: rgba(0,0,0,.06); }
.photos.tall img { aspect-ratio: 3 / 4; }
.photos figcaption, .photo figcaption { font-size: 15px; padding: 5px 0 0; color: var(--muted); }
.photo.single { max-width: 420px; margin: 0 auto 22px; }
.photo.single img { aspect-ratio: auto; }
.maps img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.maps { grid-template-columns: 1fr; }

/* Trails page */
.trail-map { max-width: 640px; }
.trail-map img { border: 1px solid rgba(0,0,0,.15); }
.app-invite { max-width: 560px; margin: 26px auto; background: var(--maroon); color: #fff; }
.app-invite p { color: #fff; }
.app-invite .small { color: rgba(255,255,255,.75); }
.eyebrow { font-family: var(--nav-font); font-size: 13px !important; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin: 0 0 6px !important; }
.app-button { display: inline-block; padding: 12px 26px; background: var(--button); color: var(--button-text); font-family: var(--nav-font); font-weight: 600; letter-spacing: .08em; text-decoration: none; border-radius: 4px; }
.app-button:hover, .app-button:focus-visible { background: #fff; }

/* Footer */
.site-footer { background: var(--maroon); color: #fff; text-align: center; padding: 26px 16px 34px; margin-top: 28px; }
.site-footer .book-now { margin-top: 0; }
.footer-contact { font-size: 17px; margin: 18px 0 10px; }
.footer-contact a { color: #fff; }
.footer-links { font-size: 15px; margin: 0 0 10px; }
.copyright { font-size: 13px; opacity: .7; margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; touch-action: pinch-zoom; }
.lightbox.zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lightbox.zoomed img { max-height: none; max-width: none; width: 220%; cursor: zoom-out; }
.lightbox button { position: absolute; top: 10px; right: 14px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Computers and tablets ---------- */
@media (min-width: 900px) {
  .site-header { background: var(--maroon-2); padding: 34px 24px 34px; }
  .logo { width: 190px; }
  .site-nav { max-width: none; gap: 0; }
  .site-nav a { flex: 0 0 auto; min-height: 40px; padding: 8px 20px; font-size: 16px; border-left: 3px solid var(--maroon-2); }
  .site-nav .long { display: inline; }
  .site-nav .short { display: none; }
  .site-nav a.active { background: #1f37e0; color: #fff; box-shadow: none; }
  main p { font-size: 17px; }
  .lead { font-size: 21px; }
  ul.plain { font-size: 17px; }
  .photos { grid-template-columns: repeat(4, 1fr); }
  .photos.three { grid-template-columns: repeat(3, 1fr); }
  .maps { grid-template-columns: 1fr 1fr; }
}
