/* Smokies Local Guide: plain, readable, mobile-first. */

:root {
  --forest: #2f5d50;
  --forest-dark: #1f4237;
  --moss: #6b8f71;
  --clay: #9a5b34;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #23302b;
  --muted: #5f6b66;
  --line: #e2ddd2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(35, 48, 43, .06), 0 2px 8px rgba(35, 48, 43, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.55; }
a { color: var(--forest); }
a:hover { color: var(--forest-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
h3 { font-size: 1.05rem; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.block { margin-block: 2rem; }
.small { font-size: .85rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ---- */
.site-header { background: var(--forest); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-mark { color: #cfe3d4; font-size: .9rem; }
.search-form { display: flex; flex: 1 1 280px; max-width: 460px; }
.search-form input, .hero-search input { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1px solid transparent; border-radius: 8px 0 0 8px; font: inherit; }
.search-form button, .hero-search button, .button {
  padding: .55rem 1rem; border: 0; border-radius: 0 8px 8px 0; background: var(--clay); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.search-form button:hover, .hero-search button:hover, .button:hover { background: #7f4a2a; color: #fff; }
.section-nav { background: var(--forest-dark); }
.nav-row { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .35rem; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a { color: #e8f1ea; text-decoration: none; white-space: nowrap; padding: .35rem .7rem; border-radius: 999px; font-size: .92rem; }
.nav-row a:hover, .nav-row a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-row .nav-map { margin-left: auto; font-weight: 600; }

/* ---- hero & page heads ---- */
.hero { background: linear-gradient(160deg, var(--forest) 0%, #3d7364 55%, var(--moss) 100%); color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.hero .lede { font-size: 1.15rem; max-width: 40rem; color: #e9f2ec; }
.hero-search { display: flex; max-width: 560px; margin-top: 1.25rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); border-radius: 8px; }
.hero-search input { padding: .8rem 1rem; font-size: 1.05rem; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 1.75rem; }
.lede { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---- section tiles ---- */
.section-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.section-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line);
  border-left: 5px solid var(--moss); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s ease; }
.section-tile:hover { transform: translateY(-2px); color: var(--ink); }
.tile-title { font-weight: 700; font-size: 1.08rem; color: var(--forest-dark); }
.tile-blurb { color: var(--muted); font-size: .92rem; flex: 1; }
.tile-count { font-size: .85rem; font-weight: 600; color: var(--clay); }
.tile-eat { border-left-color: #b5643a; } .tile-stay { border-left-color: #7a6a4f; } .tile-outdoors { border-left-color: #3f7a5a; }
.tile-attractions { border-left-color: #c08a2e; } .tile-history { border-left-color: #6d5a7b; } .tile-weddings { border-left-color: #b36b7f; }
.tile-shopping { border-left-color: #4f7397; } .tile-essentials { border-left-color: #7d8a86; }

/* ---- cards ---- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; }
.card-link { text-decoration: none; }
.card-link h3 { color: var(--forest-dark); }
.card-link:hover h3 { text-decoration: underline; }
.card-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.card-desc { margin: .2rem 0 0; font-size: .93rem; }
.dot { margin-inline: .35rem; }
.tags { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .78rem; background: #edf3ee; color: var(--forest-dark); padding: .1rem .55rem; border-radius: 999px; }

/* ---- section page filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: .75rem; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: .2rem; }
.filters select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--paper); min-width: 200px; }
.tag-filter { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-filter a { display: inline-block; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: .88rem; color: var(--ink); }
.tag-filter a.on, .tag-filter a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.result-count { color: var(--muted); font-size: .92rem; }
.pager { display: flex; gap: 1.25rem; justify-content: center; align-items: center; margin-top: 2rem; }

/* ---- listing page ---- */
.crumbs { font-size: .88rem; color: var(--muted); margin-block: 1.25rem .75rem; }
.detail-head .aka { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.badge { display: inline-block; margin-left: .5rem; font-size: .75rem; background: #e3eee6; color: var(--forest-dark); padding: .1rem .5rem; border-radius: 6px; vertical-align: middle; }
.detail-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 860px) { .detail-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); } }
.description { font-size: 1.05rem; margin-top: 0; }
.source-note { font-size: .82rem; color: var(--muted); margin-top: -.4rem; }
.photo { margin: 0 0 1rem; }
.photo img { border-radius: var(--radius); }
.photo figcaption { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.credit { margin-left: .4rem; }
.detail-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 1.25rem; }
.detail-side .facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0; box-shadow: var(--shadow); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .8rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.hours { list-style: none; padding: 0; margin: 0 0 .25rem; }

/* ---- map page ---- */
.map-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-block: .75rem; }
.map-controls select { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-left: .35rem; }
.map-controls .check { display: flex; gap: .35rem; align-items: center; }
.big-map { height: calc(100vh - 220px); min-height: 420px; border-top: 1px solid var(--line); }
.map-cta { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.map-cta .button { display: inline-block; border-radius: 8px; text-decoration: none; }

/* ---- prose & footer ---- */
.prose { max-width: 46rem; }
.prose li { margin-bottom: .5rem; }
.site-footer { margin-top: 3rem; background: var(--forest-dark); color: #d7e5dc; font-size: .9rem; }
.footer-row { padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-row p { margin: 0; }
.site-footer a { color: #fff; }

/* ---- staff-only editing links (shown only to logged-in admins) ---- */
.admin-link { color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; padding: .3rem .7rem;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; order: 2; }
.admin-link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.staff-bar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: .75rem 0 0;
  padding: .5rem .75rem; background: #fff6e5; border: 1px dashed #d9a441; border-radius: 8px; }
.button-small { background: var(--clay); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 6px; }
.button-small:hover { background: #7f4a2a; color: #fff; }
.card { position: relative; }
.card-edit { position: absolute; top: .6rem; right: .7rem; font-size: .75rem; font-weight: 600; color: var(--clay);
  background: #fff6e5; border: 1px solid #ecd3a0; border-radius: 6px; padding: .05rem .45rem; text-decoration: none; }
.hidden-banner { margin-top: 1rem; padding: .75rem 1rem; background: #fdecea; border: 1px solid #e3a59c; border-left: 5px solid #b3412f;
  border-radius: 8px; color: #6b2117; }
.hidden-note { display: block; margin-top: .25rem; font-size: .88rem; color: #7d3a30; }
