/* =========================================================================
   Yampa Valley Guides — Stylesheet
   ========================================================================= */

:root {
  /* Yampa Valley Guides palette: navy, warm tan (from the logo), silver */
  --forest: #2c3e50;        /* navy */
  --forest-dark: #1c2b38;   /* deeper navy */
  --cream: #f6f7f8;         /* snow white */
  --cream-dark: #e9ebed;    /* light silver-white */
  --gold: #c98a3a;          /* warm tan — the logo's mountain color */
  --gold-dark: #9e6d2e;     /* deeper tan, for hover/active states */
  --sky: #5b7690;           /* steel blue accent */
  --ink: #23282d;
  --ink-soft: #5c6570;
  --white: #ffffff;
  --border: #d5d8db;        /* silver */
  --radius: 14px;
  --shadow: 0 2px 10px rgba(23, 32, 40, 0.08);
  --shadow-hover: 0 8px 24px rgba(23, 32, 40, 0.16);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--forest-dark);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------------------------------------------------- */

.site-header {
  background: var(--forest);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}
.brand:hover { color: var(--cream); }
.brand svg { flex-shrink: 0; }
.brand .tag {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-dark);
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
nav.main-nav a {
  color: var(--cream);
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}
nav.main-nav a.cta {
  background: var(--gold);
  color: var(--forest-dark);
}
nav.main-nav a.cta:hover { background: var(--gold-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  nav.main-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    display: none;
    gap: 2px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--white);
  padding: 64px 0 72px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 0.6em;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--cream-dark);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero .towns {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.search-box {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 999px;
  font-family: inherit;
}
.search-box button {
  border: none;
  background: var(--gold);
  color: var(--forest-dark);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}
.search-box button:hover { background: var(--gold-dark); color: var(--white); }

/* ---------- Category tiles on homepage --------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 48px 0;
}
.category-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.category-tile .icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.category-tile h3 { font-size: 1.15rem; margin-bottom: 6px; }
.category-tile p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Section headers --------------------------------------------- */

.section-title {
  text-align: center;
  margin: 8px 0 6px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ---------- Page header (category/town pages) --------------------------- */

.page-header {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 30px;
  text-align: center;
}
.page-header h1 { margin-bottom: 6px; }
.page-header p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

/* ---------- Filters ------------------------------------------------------ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 22px 0;
}
.filter-bar button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.filter-bar button:hover { border-color: var(--gold); }
.filter-bar button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.town-filter {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.town-filter select {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--white);
}

/* ---------- Listing grid & cards ----------------------------------------- */

.listing-section { padding: 10px 0 60px; }

.subcat-heading {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-bottom: 12px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.card .town-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sky);
  font-weight: 700;
  white-space: nowrap;
}

.card .blurb {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 2px 0 4px;
}

.card .meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card .meta a { color: var(--forest); font-weight: 600; }

.no-results {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  font-size: 1rem;
}

/* ---------- Best of the Boat badge --------------------------------------- */

.boat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.boat-badge:hover { filter: brightness(1.08); color: var(--white); }
.boat-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- Coupon badge --------------------------------------- */

.coupon-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  margin-top: 10px;
}
.coupon-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.coupon-badge .code {
  background: rgba(255,255,255,0.18);
  border: 1px dashed rgba(255,255,255,0.6);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.03em;
}
.coupon-badge .desc { font-weight: 600; opacity: 0.95; }

/* ---------- Order-online badge ------------------------------------------- */

.order-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  margin-top: 10px;
  text-decoration: none;
}
.order-badge:hover { background: var(--gold); color: var(--white); }
.order-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Info page (Tips & Services) grouped list --------------------- */

.info-group { margin-bottom: 36px; }
.info-group h3 { margin-bottom: 14px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.93rem;
}
.info-list li .name { font-weight: 700; color: var(--forest-dark); }
.info-list li .detail { color: var(--ink-soft); }

/* ---------- Suggest-a-listing form ---------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-row .hint { color: var(--ink-soft); font-size: 0.82rem; margin-top: 4px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.btn-submit {
  background: var(--gold);
  color: var(--forest-dark);
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-submit:hover { background: var(--gold-dark); color: var(--white); }

.notice-box {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* honeypot field (spam trap) */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Generic content sections -------------------------------------- */

.content-section { padding: 50px 0; }
.content-section.alt { background: var(--cream-dark); }
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }

/* ---------- Footer --------------------------------------------------------- */

.site-footer {
  background: var(--forest-dark);
  color: var(--cream-dark);
  padding: 44px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.site-footer a { color: var(--cream-dark); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(250,246,238,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Buttons / misc -------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--forest-dark);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
}
.btn:hover { background: var(--gold-dark); color: var(--white); }
.btn.outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn.outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.center { text-align: center; }

/* ---------- Visitor / everyday section dividers --------------------------- */

.visitor-divider {
  font-size: 1.3rem;
  margin: 44px 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.visitor-divider.everyday {
  border-bottom-color: var(--sky);
  color: var(--ink-soft);
}
.visitor-divider + .subcat-heading { margin-top: 22px; }

/* ---------- Events page: layout ------------------------------------------- */

.events-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 780px) {
  .events-layout { grid-template-columns: 1fr; }
}
.events-agenda-col { min-width: 0; }
.events-weekly-col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ---------- Events page: calendar ------------------------------------------ */

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-header h3 { margin: 0; font-size: 1.1rem; }
.cal-nav {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--forest-dark);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover { border-color: var(--gold); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: default;
}
.cal-cell.empty { visibility: hidden; }
.cal-cell.today { border-color: var(--sky); font-weight: 700; }
.cal-cell.has-events {
  cursor: pointer;
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.cal-cell.has-events:hover { border-color: var(--gold); }
.cal-cell.selected {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.cal-dot {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.cal-cell.selected .cal-dot { background: var(--white); }

.cal-clear {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Events page: event cards --------------------------------------- */

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
}
.event-card.weekly { flex-direction: column; gap: 6px; margin-bottom: 0; }

.event-date {
  flex: 0 0 auto;
  min-width: 92px;
  font-weight: 700;
  color: var(--forest-dark);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-card.weekly .event-date { font-size: 0.82rem; color: var(--sky); text-transform: uppercase; letter-spacing: 0.03em; }
.event-time { color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; }

.event-body { min-width: 0; }
.event-body h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.event-cat {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.event-venue { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 4px; }
.event-desc { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 4px; }
.event-season { color: var(--sky); font-size: 0.78rem; font-weight: 600; margin: 0 0 4px; }
.event-link { color: var(--forest); font-weight: 700; font-size: 0.85rem; }

/* ---------- Mountain cams page ---------------------------------------------- */

.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 12px;
}
.cam-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cam-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--forest-dark);
  overflow: hidden;
}
.cam-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cam-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold-dark);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cam-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}
.cam-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,43,56,0.15);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cam-card:hover .cam-play { opacity: 1; }
.cam-play svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.cam-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cam-body h3 { font-size: 1rem; margin: 0; }
.cam-body p { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.cam-body .event-link { margin-top: auto; }

/* ---------- Road conditions card -------------------------------------------- */

.conditions-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.conditions-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.conditions-icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
}
.conditions-icon svg { width: 38px; height: 38px; }
.conditions-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.conditions-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 8px; }
@media (max-width: 560px) {
  .conditions-card { flex-direction: column; text-align: center; }
}
