/* Styles for the Glacier Hollow demo pages: trail-map.html, checkout.html and plan.html (each adds its own file).
   The app bar at the top and the resort picker come from resort.css; the home page (index.html) uses dashboard.css. */

:root {
  --navy: #0b2545;
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --ice: #eef4fa;
  --text: #1c2733;
  --muted: #5b6b7c;
  --green: #2e7d32;
  --black: #111;
  --radius: 12px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 2rem; color: var(--navy); }
h3 { margin-top: 1.5em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; scroll-margin-top: 60px; }
.section-alt { background: var(--ice); }
.muted { color: var(--muted); margin-top: -.25em; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--blue);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-small { padding: 6px 16px; }
.btn-block { display: block; text-align: center; }

/* Notice when data/glacier-hollow.json can't be loaded (glacier-hollow.js) */
.data-error {
  margin: 0; padding: 12px 20px; background: #fde8e8; color: #c62828;
  font-weight: 600; text-align: center;
}

/* Difficulty filters and open/closed badges (trail map) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter {
  background: #fff; border: 1px solid #c9d6e3; border-radius: 999px;
  padding: 8px 16px; font: inherit; cursor: pointer;
}
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.status.open { background: #e3f4e5; color: var(--green); }
.status.closed { background: #fde8e8; color: #c62828; }

/* Heading band on the inner pages (trail map, checkout, plan your visit) */
.page-head { background: linear-gradient(180deg, #0b2545 0%, #1d4e89 100%); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .25em; }
.page-head .muted { color: #c5d8ec; margin: 0; max-width: 680px; }
.page-head a { color: #90caf9; }

/* Forms (checkout, lesson booking, contact) */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span, .field legend { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #c9d6e3; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.btn:focus-visible, .filter:focus-visible { outline: 3px solid rgba(21, 101, 192, .35); outline-offset: 1px; border-color: var(--blue); }
.field small { color: var(--muted); }
.field-error { color: #c62828; font-size: .9rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.btn-secondary { background: #fff; color: var(--blue); }
.btn-secondary:hover { background: var(--ice); color: var(--blue-dark); }
.demo-note {
  background: #fff8e1; border: 1px solid #f3dc8b; color: #5d4a00; border-radius: 10px;
  padding: 10px 14px; font-size: .92rem; margin: 0 0 20px;
}
.demo-note a { color: inherit; font-weight: 600; }

/* Footer */
.footer { background: var(--navy); color: #c5d5e6; padding: 48px 0; }
.footer strong { color: #fff; }
.footer a { color: #90caf9; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
