/* Wildwalks — Stylesheet matching original site design */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ww-orange: #d84627;
  --ww-orange-light: #d8583c;
  --ww-blue: #428bca;
  --ww-blue-hover: #679dcc;
  --ww-blue-dark: #236cab;
  --ww-dark: #262626;
  --ww-green-table: #EAF2D3;
  --ww-green-border: #98bf21;
  --ww-green-header: #a7c942;
  --ww-teal-light: #cce5ed;
  --ww-grey-bg: #f5f5f5;
  --ww-text: #333;
  --ww-text-light: #555;
  --container: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ww-text); background: #fff; line-height: 1.6; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ww-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}
.nopadding { padding: 0; }
.row { padding: 0; margin: 0; }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ww-orange);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ===== Breadcrumbs (chevron ribbon) =====
   Each crumb is a plain rectangle so the whole link is clickable. The
   forward-pointing arrow is a decorative pseudo-element with
   pointer-events:none, sitting in the gap before the next crumb — so it
   never covers or steals clicks from a link (unlike a clip-path shape). */
.breadcrumbs {
  background: #ececec;
  overflow-x: auto;
}
.breadcrumbs-inner {
  display: flex;
  align-items: stretch;
  max-width: var(--container);
}
.crumb {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px 0 23px;
  margin-right: 13px;
  background: var(--ww-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.crumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 13px solid var(--ww-orange);
  pointer-events: none;
}
.crumb:first-child { padding-left: 12px; }
.crumb:hover { color: #fff; opacity: 0.9; text-decoration: none; }
.crumb-home {
  padding: 0 12px 0 12px;
}
.crumb-home svg { width: 14px; height: 14px; }
.crumb-current {
  background: transparent;
  color: var(--ww-orange);
  font-weight: 700;
  margin-right: 0;
  padding: 0 4px 0 20px;
}
.crumb-current::after { content: none; }

/* ===== Responsive tables ===== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 0 15px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.logo-banner { height: 50px; width: auto; }
.site-nav { display: flex; gap: 0; }
.site-nav a {
  color: #999;
  font-size: 16px;
  text-decoration: none;
  padding: 5px 20px;
  cursor: pointer;
}
.site-nav a:hover { color: var(--ww-orange); text-decoration: none; }

/* ===== Walk Hero (Title Bar) ===== */
.walk-hero {
  background: var(--ww-orange);
  padding: 0;
}
.walk-hero .container {
  text-align: center;
  padding: 0 15px;
}
.walk-hero h1 {
  color: #fff;
  font-size: 32px;
  padding: 15px 0 0;
}
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white !important;
  font-size: 14px;
  padding-bottom: 12px;
}
.pdf-link img { height: 20px; display: inline; }
.pdf-link:hover { text-decoration: none; }

/* ===== Map ===== */
.walk-map { width: 100%; position: relative; }
.walk-map iframe {
  width: 100%;
  height: 615px;
  border: none;
  display: block;
}

/* ===== Stats Bar ===== */
.walk-stats {
  background: var(--ww-orange-light);
  width: 100%;
}
.walk-stats .container { padding: 0 15px; }
.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.stat {
  padding: 30px 0 23px 0;
  flex: 1;
}
.stat-icon { width: 64px; height: 64px; display: block; margin: 0 auto; }
.stat-icon-svg {
  width: 64px; height: 64px; display: block; margin: 0 auto;
  color: white;
}
.stat-grade-icon { width: 64px; height: 64px; display: block; margin: 0 auto; }
.stat-value {
  color: #fff;
  font-size: 27px;
  margin-left: 10px;
  display: block;
  margin-top: 10px;
}

/* ===== Summary ===== */
.walk-summary {
  background: var(--ww-orange);
  color: #fff;
  padding: 10px 0;
}
.walk-summary .container {
  font-size: 16px;
  padding: 0 15px;
}
.summary-icons { float: left; }
.summary-icons img { max-height: 50px; max-width: 60px; padding-right: 5px; float: left; }
.summary-feature-icons { float: right; }
.summary-feature-icons img { max-height: 50px; max-width: 45px; float: left; }
.summary-text { overflow: hidden; }
.summary-text a { color: #fff; text-decoration: underline; }
.grade-warning { font-weight: bold; margin-top: 8px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ===== Gallery ===== */
.walk-gallery {
  background: var(--ww-dark);
  padding: 5px;
  min-height: 20px;
}
.gallery-grid {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox-img { max-width: 90vw; max-height: 80vh; }
.lightbox-caption { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 14px; text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: white;
  font-size: 2.5rem; cursor: pointer; padding: 12px; opacity: 0.7;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 16px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Track-note image reference links + hover thumbnail */
.tn-imglink { cursor: zoom-in; }
.tn-hovthumb {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  padding: 3px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.tn-hovthumb img { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: 2px; }

/* ===== Tabs ===== */
.walk-tabs {
  background: var(--ww-blue);
  position: sticky;
  top: 0;
  z-index: 90;
}
.tab-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  padding: 25px 10px;
  min-width: 100px;
  cursor: pointer;
  white-space: nowrap;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}
.tab-btn:hover { background: var(--ww-blue-hover); }
.tab-btn.active { background: var(--ww-blue-hover); }
.tab-btn img { height: 24px; width: 24px; }

/* ===== Tab Content ===== */
.tab-content-area { min-height: 400px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Track Notes ===== */
.tn-segment {
  margin: 15px auto;
  border-radius: 5px;
  max-width: 1280px;
}

/* --- Segment header (route title bar) --- */
.tn-header {
  padding: 5px 15px;
  border-radius: 5px 5px 0 0;
}
.tn-header h3 {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
  text-align: left;
}

/* --- Main track: grey --- */
.tn-segment.maintrack {
  background: #DDDDDD;
  border: #888 solid 1px;
}
.tn-segment.maintrack .tn-header {
  background: #888;
  border-bottom: #888 solid 1px;
}

/* --- Side trip: green --- */
.tn-segment.sidetrip {
  background: #AADD96;
  border: #7da96c solid 1px;
}
.tn-segment.sidetrip .tn-header {
  background: #7da96c;
  border-bottom: #7da96c solid 1px;
}

/* --- Alt route: purple --- */
.tn-segment.alt {
  background: #F0E1F5;
  border: #E2C5EB solid 1px;
}
.tn-segment.alt .tn-header {
  background: #E2C5EB;
  border-bottom: #E2C5EB solid 1px;
}
.tn-segment.alt .tn-header h3 {
  color: #333;
}

/* --- POI: blue/teal --- */
.tn-segment.poi {
  background: #9dd8e7;
  border: #67b1c4 solid 1px;
}
.tn-segment.poi .tn-header {
  background: #67b1c4;
  border-bottom: #67b1c4 solid 1px;
}
.tn-segment.poi .tn-header h3 {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-align: left;
}

/* --- Segment body --- */
.tn-body {
  padding: 15px;
  display: flex;
  gap: 15px;
}

/* --- POI image --- */
.tn-image {
  width: 150px;
  flex-shrink: 0;
  margin-top: 15px;
  margin-bottom: 10px;
}
.tn-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Stats box (inside track segments) --- */
.tn-stats {
  background: #EDEDED;
  border-radius: 10px;
  border: #fff 1px solid;
  padding: 0 10px;
  font-size: 15px;
  color: var(--ww-text);
  text-align: center;
  margin: 0 auto;
  margin-bottom: 10px;
  min-width: 180px;
  max-width: 230px;
  flex-shrink: 0;
}
.tn-stat {
  display: inline-block;
  font-size: 15px;
  margin: 0 2px;
  vertical-align: middle;
}
.tn-stat img {
  display: inline-block;
  vertical-align: middle;
  height: 20px;
  width: auto;
  margin-right: 5px;
  margin-left: 5px;
}
.tn-grade {
  display: block;
  color: var(--ww-blue);
  text-align: center;
  margin: 10px auto 10px;
  font-size: 15px;
  font-weight: bold;
}
.tn-notes { font-size: 16px; line-height: 1.6; flex: 1; padding-top: 15px; }
.tn-notes a { color: #337ab7; }

/* ===== Terrain Tab ===== */
.terrain-content { padding: 15px; }
.terrain-content h2 { color: var(--ww-orange); font-size: 18px; margin: 20px 0 5px 0; }

.maps-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  margin: 10px 0 20px;
}
.maps-table td, .maps-table th {
  border: 1px solid var(--ww-green-border);
  font-size: 1em;
  padding: 3px 7px 2px;
}
.maps-table th {
  background: var(--ww-green-header);
  color: #fff;
  font-size: 1.1em;
  text-align: left;
}
.terrain-img { max-width: 100%; margin: 10px 0 20px; }
.terrain-img-small { max-width: 33%; }

.grade-heading { color: var(--ww-orange); font-size: 18px; margin-top: 5px; }
.grade-standard { color: var(--ww-text); font-size: 14px; font-weight: normal; }

/* Green Table — matches production #green-table */
.green-table {
  border-collapse: collapse;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  width: 100%;
  margin: 10px 0 20px;
}
.green-table td, .green-table th {
  border: 1px solid #98bf21;
  font-size: 1em;
  padding: 3px 7px 2px;
}
.green-table th {
  background-color: #a7c942;
  color: #ffffff;
  font-size: 1.1em;
  padding-bottom: 4px;
  padding-top: 5px;
  text-align: left;
}
.green-table .gt-cell {
  background-color: var(--ww-green-table);
}

/* AS 2156.1 rotated label */
.grade-as-label {
  display: inline-block;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  white-space: nowrap;
  font-size: 12px;
}

/* Grade details — 2-column bordered cards matching textp2 */
.grade-details-grid {
  margin-top: 10px;
}
.grade-detail-row {
  display: flex;
  gap: 0;
}
.grade-detail-row > .grade-detail {
  flex: 1;
}
.grade-detail {
  min-height: 147px;
  border: 1px solid #428bca;
  padding: 10px;
}
.grade-detail h3 { color: var(--ww-orange); font-size: 18px; margin-top: 5px; }
.grade-detail p { font-size: 14px; margin: 0; }

/* ===== Nearby Tab ===== */
.nearby-content { padding: 15px; }
.nearby-content h2 { color: var(--ww-orange); font-size: 18px; margin-bottom: 10px; }

.walk-cards {
  display: grid;
  grid-template-columns: repeat(3, 290px);
  gap: 20px;
  justify-content: center;
  margin: 15px 0;
}

/* ===== Walk Badge Card (Redesigned) ===== */
.ww-grid {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.ww-grid::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 12;
  pointer-events: none;
}
.ww-grid:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.ww-box-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

/* --- Title overlay (top of card, on image) --- */
.ww-box-head-title-container {
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  border-radius: 10px 10px 0 0;
}
h6.ww-box-htag-title {
  text-align: center;
  margin: 0;
}
.ww-box-htag-title a {
  font-size: 17px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.25;
}
.ww-box-htag-title a:hover {
  text-decoration: none;
  color: #fff !important;
}
.ww-box-stats {
  text-align: center;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.2;
}

/* --- Full-bleed image --- */
.ww-box-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.ww-box-thumbnail > a {
  display: block;
  height: 100%;
}
.ww-box-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Info overlay (bottom of card, on image) --- */
.ww-box-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.65) 100%);
  padding-top: 40px;
}
.ww-info-box {
  display: flex;
  align-items: flex-end;
  padding: 8px 10px 74px;
  min-height: 70px;
}

/* Left column: transport icons + distance/time */
.ww-info-box .box-left {
  flex: 1;
  text-align: left;
  min-width: 0;
}
.ww-info-box .box-left ul {
  list-style-type: none;
  padding: 0;
  margin: 0 0 2px;
  display: flex;
  gap: 2px;
}
.ww-info-box .box-left li img {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.ww-info-box .box-left p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  line-height: 1.3;
}

/* Right column: grade icon + grade text */
.ww-info-box .box-right {
  flex: 0 0 auto;
  text-align: right;
  position: relative;
  padding-left: 8px;
}
.ww-info-box .box-right > img {
  width: 50px;
  height: 50px;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
  position: relative;
  z-index: 2;
}
.grade-circle-bg {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
}
.ww-info-box .box-right .wheelchair-icon {
  position: absolute;
  top: 8px;
  right: 42px;
  width: 18px;
  height: auto;
}
.ww-info-box .box-right p {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  text-align: right;
  white-space: nowrap;
}

/* --- Terrain profile strip (SVG overlays bottom of card) --- */
.box-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  pointer-events: none;
}
.terrain-svg {
  width: 100%;
  height: 65px;
  display: block;
}

/* --- Grade badge (bottom-left, above terrain) --- */
.ww-grade-badge {
  position: absolute;
  bottom: 55px;
  left: 8px;
  z-index: 16;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.ww-grade-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}
.ww-grade-icon-wrap > img {
  width: 38px;
  height: 38px;
  display: block;
  position: relative;
  z-index: 2;
}
.ww-grade-icon-wrap .grade-circle-bg {
  width: 30px;
  height: 30px;
  top: 4px;
  right: auto;
  left: 4px;
}
.ww-grade-icon-wrap .wheelchair-icon {
  position: absolute;
  top: 2px;
  left: -14px;
  width: 16px;
  height: auto;
  z-index: 3;
}
.ww-grade-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 38px;
}
.ww-transport-icons {
  list-style: none;
  padding: 0;
  margin: 0 0 2px;
  display: flex;
  gap: 2px;
}
.ww-transport-icons li img {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.ww-grade-text {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
  line-height: 1;
}

/* --- Hover overlay (slide-up frosted glass) --- */
.ww-into-text-hide {
  z-index: 20;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 65%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.ww-box-wrapper:hover .ww-into-text-hide {
  transform: translateY(0);
}
.ww-into-text-hide a {
  text-decoration: none;
  color: #fff;
  display: block;
}
.ww-into-text-hide p {
  text-align: left;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* ===== Getting There ===== */
.getting-there-content { padding: 15px; }
.getting-there-box {
  border: 1px solid var(--ww-blue);
  padding: 10px;
}
.getting-there-box h2 {
  background: var(--ww-blue);
  color: #fff;
  padding: 8px 10px;
  font-size: 18px;
  margin: -10px -10px 10px -10px;
}
.transport-options { margin: 8px 0; }
.transport-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  color: var(--ww-text);
  font-size: 14px;
}
.transport-option img { width: 30px; height: 30px; float: left; }
.transport-option:hover { text-decoration: none; color: var(--ww-blue); }
.getting-there-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  margin-top: 15px;
}

/* ===== Weather Placeholder ===== */
.weather-content { padding: 15px; }
.weather-content h2 { color: var(--ww-orange); font-size: 16px; margin: 15px 0 5px; }
.placeholder-msg { color: #888; font-style: italic; }
.park-info { margin: 10px 0; }
.park-info h3 { color: var(--ww-orange); font-size: 16px; }
/* Embedded bushwalk.com weather/alerts widgets */
.bushwalk-widget {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 6px;
  margin: 8px 0 4px;
}

/* ===== Downloads ===== */
.downloads-content { padding: 15px; text-align: center; }
.downloads-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 20px 0;
}
.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: #1B75BB;
  color: white;
  border-radius: 3px;
  font-weight: bold;
  font-size: 14px;
}
.download-btn:hover { background: var(--ww-text); color: #fff; text-decoration: none; }
.download-btn svg { fill: white; }
.short-url { margin-top: 15px; font-size: 14px; color: #888; }

/* Footer styles moved below homepage section */

/* ===== Area Pages ===== */
.hero-sub-text {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  padding-bottom: 5px;
}
.area-intro {
  background: var(--ww-grey-bg);
  padding: 15px 0;
}
.area-intro p {
  font-size: 15px;
  color: var(--ww-text-light);
  max-width: 800px;
}
.area-walks {
  padding: 20px 0;
}
.area-walk-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.area-walk-item {
  display: flex;
  gap: 15px;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--ww-text);
  transition: background 0.15s;
}
.area-walk-item:hover {
  background: #f8f9fa;
  text-decoration: none;
}
.area-walk-img {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
}
.area-walk-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.area-walk-info {
  flex: 1;
  min-width: 0;
}
.area-walk-title {
  font-size: 16px;
  color: var(--ww-blue);
  margin-bottom: 4px;
  font-weight: bold;
}
.area-walk-item:hover .area-walk-title {
  color: var(--ww-orange);
}
.area-walk-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.meta-item { white-space: nowrap; }
.meta-grade { color: var(--ww-blue); font-weight: 600; }
.area-walk-summary {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
  margin: 0;
}

/* ===== Homepage ===== */

/* Orange search hero banner */
.banner_bottom {
  background: var(--ww-orange);
  padding: 20px 0;
  text-align: center;
}
.banner_bottom h1 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}
.banner_bottom .searchform div {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.banner_bottom input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  width: 250px;
}
.banner_bottom input[type="submit"] {
  padding: 8px 16px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
}
.banner_bottom input[type="submit"]:hover {
  background: rgba(255,255,255,0.15);
}

/* Full-width map container */
.map-container {
  width: 100%;
  position: relative;
}
.map-container iframe {
  display: block;
  width: 100%;
}

/* 3-column home layout */
.home-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 20px 15px;
}

/* Fotter sections (class names preserved from original) */
.fotter1 h2,
.fotter2 h2 {
  color: var(--ww-orange);
  font-size: 22px;
  margin-bottom: 10px;
  margin-top: 20px;
}
.fotter1 h2:first-child,
.fotter2 h2:first-child {
  margin-top: 0;
}

.fotter1 ul {
  list-style: none;
  padding: 0;
  max-height: 450px;
  overflow-y: auto;
}
.fotter1 li {
  padding: 3px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.fotter1 li a {
  color: var(--ww-text);
  text-decoration: none;
}
.fotter1 li a:hover {
  color: var(--ww-orange);
}

.fotter2_sub {
  background: #f5f5f5;
  border-radius: 5px;
  margin-bottom: 5px;
}
.fotter2_sub ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fotter2_sub li {
  padding: 8px 15px;
  font-size: 14px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fotter2_sub li:last-child {
  border-bottom: none;
}
.fotter2_sub li a {
  color: var(--ww-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fotter2_sub li a:hover {
  color: var(--ww-orange);
}
.fotter2_sub li img {
  display: inline-block;
  vertical-align: middle;
  max-width: 25px;
  max-height: 25px;
}

/* ===== Walks List Page — Header Banner ===== */
.ww-header-banner {
  background: var(--ww-orange);
  padding: 15px 0;
  text-align: center;
}
.ww-header-banner h1 {
  color: #fff;
  font-size: 28px;
  margin: 0;
}

/* Search bar row */
.ww-search-bar {
  background: var(--ww-orange);
  padding: 10px 0;
}
.ww-search-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
}
.ww-search-text p {
  color: #fff;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}
.ww-search-form input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  width: 200px;
  color: black;
}
.ww-search-form input[type="submit"] {
  padding: 6px 14px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
}
.ww-search-form input[type="submit"]:hover {
  background: rgba(255,255,255,0.15);
}

/* Screen-reader-only utility */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Walks List Page — Tabs ===== */
.ww-tabs-bar {
  background: var(--ww-blue);
  padding: 0;
}
.ww-tabs-list {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}
.ww-tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: background 0.2s;
  white-space: nowrap;
}
.ww-tab-link:hover {
  background: rgba(255,255,255,0.1);
}
.ww-tab-link.ww-tab-active {
  background: rgba(255,255,255,0.15);
  border-bottom-color: #fff;
}
.ww-tab-link img {
  display: inline-block;
}
.ww-tab-link span {
  color: #fff;
}

/* Tab panel visibility */
.ww-tab-panel {
  display: none;
  padding: 20px 0;
}
.ww-tab-panel.ww-tab-panel-active {
  display: block;
}
.ww-tab-panel h2 {
  color: var(--ww-text);
  font-size: 20px;
  margin-bottom: 15px;
  padding: 0 15px;
}

/* ===== Badge grid container (used in walks list & area pages) ===== */
.wt-boxes-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Area Intro ===== */
.area-intro {
  padding: 20px 0 0;
}
.area-intro p {
  font-size: 15px;
  color: var(--ww-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ===== List Pages ===== */
.list-intro {
  padding: 20px 0 0;
}
.list-intro p {
  font-size: 15px;
  color: var(--ww-text-light);
  line-height: 1.6;
  margin: 0 0 10px;
}

/* ===== Book Pages ===== */

/* Book detail page layout */
.book-detail {
  padding: 20px 15px 40px;
}
.book-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.book-cover {
  flex-shrink: 0;
  max-width: 350px;
}
.book-cover img {
  width: 100%;
  height: auto;
}
.book-meta {
  flex: 1;
}
.book-field {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ww-text);
}
.book-label {
  color: var(--ww-orange);
}
.book-field-value {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Review/assessment section */
.book-review-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Walks table section */
.book-walks-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
.book-walks-heading {
  color: var(--ww-blue);
  font-size: 22px;
  margin-bottom: 10px;
}

/* Green striped table — alternating rows matching production */
.green-table tbody tr.alt td {
  background: var(--ww-green-table);
}

/* Book list page */
.book-list-heading {
  padding: 20px 15px 0;
}
.book-list-heading h3 {
  color: var(--ww-orange);
  font-size: 26px;
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 15px;
}

/* Book card (list page) */
.book-card {
  padding: 20px 15px;
  border-bottom: 1px solid #eee;
}
.book-card-title {
  font-size: 18px;
  margin-bottom: 10px;
}
.book-card-title a {
  color: var(--ww-orange);
  text-decoration: none;
}
.book-card-title a:hover {
  text-decoration: underline;
}
.book-card-body {
  display: flex;
  gap: 15px;
}
.book-card-cover {
  flex-shrink: 0;
  width: 120px;
}
.book-card-cover img {
  width: 100%;
  height: auto;
}
.book-card-info {
  flex: 1;
}
.book-card-info .book-field {
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Footer (enhanced) ===== */
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 15px;
}
.footer-brand { font-size: 14px; max-width: 500px; line-height: 1.6; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-links a { color: #ccc; font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { font-size: 12px; color: #999; }

/* ===== Static Content Pages ===== */
.page-content {
  max-width: 800px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ww-text);
}
.page-content h2 {
  color: var(--ww-orange);
  font-size: 24px;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.page-content h2:first-child {
  margin-top: 0;
}
.page-content h3 {
  color: var(--ww-text);
  font-size: 18px;
  margin: 25px 0 10px;
}
.page-content p {
  margin-bottom: 15px;
}
.page-content ul, .page-content ol {
  padding-left: 25px;
  margin-bottom: 15px;
}
.page-content li {
  margin-bottom: 8px;
}
.page-content strong {
  color: var(--ww-text);
}

/* ===== Responsive ===== */
@media (max-width: 1279px) {
  .container { width: 100%; padding: 0 15px; }
}
@media (max-width: 768px) {
  /* Header: prevent logo squish */
  .logo-banner { height: 40px; }
  .site-nav a { padding: 5px 10px; font-size: 14px; }

  .walk-hero h1 { font-size: 18px; }
  .stat-value { font-size: 15px; }
  .stat-icon, .stat-icon-svg, .stat-grade-icon { width: 38px; height: 38px; }
  .stats-grid { flex-wrap: wrap; }
  .stat { width: 50%; padding: 10px 0; }

  /* Tabs: icon-only for inactive, icon+text for active */
  .tab-nav { flex-wrap: nowrap; justify-content: center; }
  .tab-btn {
    font-size: 13px;
    padding: 10px 8px;
    height: 44px;
    min-width: auto;
    justify-content: center;
  }
  .tab-btn img { width: 22px; height: 22px; }
  .tab-btn .tab-label { display: none; }
  .tab-btn.active .tab-label { display: inline; }

  .tn-body { flex-direction: column; }
  .tn-stats { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .tn-image { width: 100%; }
  .walk-cards { grid-template-columns: repeat(2, 1fr); }
  .wt-boxes-container { grid-template-columns: repeat(2, 1fr); }
  .walk-map iframe { height: 400px; }
  .home-3col { grid-template-columns: 1fr; gap: 20px; }
  .ww-header-banner h1 { font-size: 22px; }
  .footer-content { flex-direction: column; gap: 15px; }
  .ww-tabs-list { flex-wrap: wrap; }
  .ww-tab-link { padding: 10px 14px; font-size: 12px; }
  .ww-search-bar-inner { flex-direction: column; gap: 10px; }
  /* Book responsive */
  .book-info { flex-direction: column; }
  .book-cover { max-width: 250px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card-body { flex-direction: column; }
}
@media (max-width: 480px) {
  /* Header: even smaller for narrow phones */
  .logo-banner { height: 35px; }
  .site-nav a { padding: 5px 8px; font-size: 13px; }

  .walk-cards { grid-template-columns: 1fr; }
  .wt-boxes-container { grid-template-columns: 1fr; }
  .stat { width: 50%; }

  /* Tabs: tighter spacing on small phones */
  .tab-btn { padding: 8px 6px; font-size: 12px; }
  .tab-btn img { width: 20px; height: 20px; }
}

/* ===== Campsite Pages ===== */
.camp-hero {
  background: var(--ww-orange);
  padding: 0;
}
.camp-hero .container {
  text-align: center;
  padding: 0 15px;
}
.camp-hero h1 {
  color: #fff;
  font-size: 32px;
  margin-top: 10px;
  padding: 15px 0 5px;
}
.camp-hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  padding-bottom: 15px;
  margin: 0;
}

/* --- Campsite Overview Grid --- */
.camp-overview {
  background: #f8f9fa;
  padding: 15px 0;
}
.camp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.camp-overview-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}
.camp-overview-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 4px;
}
.camp-overview-desc {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ww-text);
  padding: 5px 0;
}

/* --- Campsite Info Rows --- */
.camp-info-row {
  display: flex;
  gap: 15px;
  margin: 10px 0 20px;
  align-items: flex-start;
}
.camp-facility-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.camp-info-row div {
  font-size: 15px;
  line-height: 1.5;
}
.camp-contact {
  margin-top: 8px;
}
.camp-contact p {
  margin: 2px 0;
}

/* --- Campsite Facilities Grid --- */
.camp-facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 10px 0 20px;
}
.camp-facility {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #eee;
}
.camp-facility img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.camp-facility div {
  font-size: 14px;
  line-height: 1.5;
}

/* --- Campsite Listing Sections --- */
.camp-region-section {
  margin-bottom: 30px;
}
.camp-region-title {
  color: var(--ww-orange);
  font-size: 24px;
  border-bottom: 2px solid var(--ww-orange);
  padding-bottom: 8px;
  margin: 25px 0 15px;
}
.camp-park-group {
  margin-bottom: 20px;
}
.camp-park-title {
  color: var(--ww-blue);
  font-size: 18px;
  margin: 15px 0 10px;
}

/* --- Campsite card info strip --- */
.ww-box-content p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  padding: 8px 10px;
  line-height: 1.3;
}

/* Campsite tab h2 headings */
.tab-panel h2 {
  color: var(--ww-orange);
  font-size: 18px;
  margin: 20px 0 8px;
}
.tab-panel h2:first-child {
  margin-top: 10px;
}

/* --- Responsive: Campsites --- */
@media (max-width: 768px) {
  .camp-overview-grid {
    grid-template-columns: 1fr;
  }
  .camp-overview-img img,
  .camp-overview-map iframe {
    height: 250px;
  }
  .camp-facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Campsite card placeholder (no photo) --- */
.camp-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 30%, #a5d6a7 60%, #81c784 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.camp-card-placeholder-icon {
  width: 64px;
  height: 64px;
  opacity: 0.7;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.camp-card-placeholder-type {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Campsite region cards (landing page) --- */
.camp-regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 20px auto;
}
.camp-region-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
}
.camp-region-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transform: translateY(-3px);
  text-decoration: none;
}
.camp-region-card-inner {
  padding: 30px 20px;
  text-align: center;
}
.camp-region-card-inner h2 {
  color: var(--ww-dark);
  font-size: 20px;
  margin: 0 0 8px;
}
.camp-region-card-inner p {
  color: var(--ww-text-light);
  font-size: 14px;
  margin: 0;
}
@media (max-width: 768px) {
  .camp-regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .camp-regions-grid {
    grid-template-columns: 1fr;
  }
}
