/* Paddling Trails SA - additions to the /explore/ styles (footer, operators, maps, admin preview). */

/* ---------- Footer: Safety & Information band ---------- */
.ft-band { background: #fff; padding: 3.5rem 1.5rem 2.5rem; font-family: var(--f-body); border-top: 1px solid var(--border); }
.ft-band-inner { max-width: 1140px; margin: 0 auto; }
.band-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; align-items: start; }
.band-card { text-align: center; color: #333; }
.band-card .band-ic { color: #3d3b8e; display: block; margin: 0 auto 1rem; }
.band-card h3 { font-family: var(--f-body); font-weight: 400; font-size: 1.75rem; letter-spacing: 0.02em; color: #111; margin-bottom: 0.9rem; }
.band-card p { font-size: 1rem; line-height: 1.55; color: #444; max-width: 260px; margin: 0 auto 0.6rem; }
.band-btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem; padding: 0.7rem 1.6rem; border: 3px solid #000; border-radius: 3px; color: #111; text-decoration: none; font-size: 0.98rem; background: #fff; transition: background 0.15s, color 0.15s; }
.band-btn:hover { background: #111; color: #fff; }
.band-share .share-h { font-size: 1.75rem; margin-bottom: 1.1rem; }
.share-btns { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; max-width: 290px; margin: 0 auto; }
.share-btn { display: inline-flex; align-items: stretch; border-radius: 4px; overflow: hidden; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; min-width: 112px; }
.share-btn .sb-ic { display: flex; align-items: center; justify-content: center; padding: 0 0.85rem; background: rgba(0,0,0,0.12); }
.share-btn .sb-t { padding: 0.75rem 1rem; flex: 1; text-align: center; }
.share-facebook { background: #3b5998; } .share-reddit { background: #ff4500; } .share-email { background: #ea4335; } .share-x { background: #111; } .share-whatsapp { background: #25d366; }
.share-btn:hover { filter: brightness(1.08); }
.band-text { text-align: center; margin-top: 1.5rem; color: #333; font-size: 1rem; line-height: 1.6; }
.band-text p { margin-bottom: 1rem; }
.band-text strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer: About us ---------- */
footer.ft-about { position: relative; background: var(--ft-bg, #3d3b8e); color: #fff; padding: 3.5rem 2.5rem 1.5rem; font-family: var(--f-body); overflow: hidden; }
footer.ft-about::before { content: ''; position: absolute; inset: 0; background-image: var(--ft-img, none); background-size: cover; background-position: center; opacity: 0.22; mix-blend-mode: luminosity; pointer-events: none; }
.ft-about-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.ft-about h2 { font-family: var(--f-body); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; margin-bottom: 0.9rem; }
.ft-about-text p { font-size: 1rem; line-height: 1.55; color: #fff; margin-bottom: 0.8rem; max-width: 1120px; }
.ft-about-text a { color: #fff; }
.ft-about-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.ft-social { display: flex; gap: 0.5rem; }
.ft-social a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 2px; }
.ft-social a:hover { filter: brightness(1.2); }
.ft-logos { display: flex; gap: 1.25rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.ft-logos img { max-height: 52px; width: auto; display: block; }
.ft-contact { text-align: right; font-size: 1.05rem; font-weight: 500; }
.ft-contact a { color: #fff; text-decoration: none; }
.ft-contact a:hover { text-decoration: underline; }
.ft-ack { margin-top: 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-style: italic; }
.ft-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.ft-bottom a, .ft-bottom .linkish { color: rgba(255,255,255,0.75); }
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 768px) {
  .ft-about-row { grid-template-columns: 1fr; text-align: left; }
  .ft-logos { justify-content: flex-start; }
  .ft-contact { text-align: left; }
  footer.ft-about { padding: 2.5rem 1.25rem calc(1.5rem + 58px); }
  .band-card h3 { font-size: 1.45rem; }
}

/* ---------- Header search form ---------- */
.util-search { display: flex; align-items: center; gap: 0.4rem; }
.util-search input { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 0.75rem; padding: 0.2rem 0.1rem; width: 150px; outline: none; }
.util-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-trigger .rdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.15rem; vertical-align: middle; }

/* ═══════════════════════════════════════════
   PARTNERS SECTION
═══════════════════════════════════════════ */
.partners-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
}
.partners-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.partners-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.partners-eyebrow {
  font-family: var(--f-label);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--foliage-2);
  margin-bottom: 0.5rem;
}
.partners-header h2 {
  font-family: var(--f-head);
  font-size: 2.2rem; font-weight: 600;
  color: var(--water-1); line-height: 1.1;
}
.partners-header h2 span { color: var(--earth-2); font-style: italic; }
.partners-header p {
  font-size: 0.88rem; color: var(--muted);
  margin-top: 0.6rem; line-height: 1.6;
}
/* partner-grid: flex wrap — sidebar-card includes drop straight in */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
/* Override sidebar-card sizing & hover for the homepage grid */
.partner-grid .sidebar-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 260px;
  max-width: calc(33.333% - 1rem);
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,62,81,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}
.partner-grid .sidebar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,62,81,0.13);
}
/* Give each card a coloured top accent bar via the head background */
.partner-grid .sidebar-card-head {
  font-family: var(--f-label);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.55rem 1.25rem;
}
/* Card body fills remaining height */
.partner-grid .sidebar-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Logo images — consistent height */
.partner-grid .sidebar-card-body img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.partner-disclaimer {
  max-width: 1320px; margin: 1.75rem auto 0;
  font-family: var(--f-body);
  font-size: 0.75rem; color: var(--muted);
  text-align: center; line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
@media (max-width: 900px) { .partner-grid .sidebar-card { flex: 1 1 calc(50% - 1.5rem); max-width: calc(50% - 0.75rem); } }
@media (max-width: 600px) { .partner-grid .sidebar-card { flex: 1 1 100%; max-width: 100%; } .partners-section { padding: 2rem 1rem; } }

/* ---------- Operator cards ---------- */
.op-logo { margin-bottom: 0.75rem; }
.op-logo img { max-width: 100%; max-height: 70px; height: auto; display: block; }
.op-text { font-family: var(--f-body); font-size: 0.82rem; color: #4a5a60; line-height: 1.55; margin-bottom: 0.6rem; }
.op-text p { margin-bottom: 0.5rem; }
.op-links { display: flex; flex-direction: column; gap: 0.35rem; }
.op-link { font-family: var(--f-label); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #003E51; text-decoration: none; }
.op-link:hover { text-decoration: underline; }
.op-note { font-family: var(--f-body); font-size: 0.75rem; color: #8a9aa4; line-height: 1.5; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e8e4da; }

/* ---------- Trail cards / grids ---------- */
.tc-img-fill { background-size: cover; background-position: center; }
.empty-note { color: var(--muted); font-style: italic; padding: 1rem 0; }
.trail-body.no-side { grid-template-columns: 1fr; max-width: 900px; }

/* ---------- Photos placed in text ---------- */
.txt-photo { margin: 1.25rem 0; }
.txt-photo img { width: 100%; height: auto; border-radius: 6px; display: block; }
.txt-photo figcaption { font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 0.4rem; }

/* ---------- Search page ---------- */
.search-hero { background: linear-gradient(135deg, #003E51 0%, #4986A0 100%); color: #fff; padding: 3rem 1.5rem 2.5rem; }
.search-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.search-hero h1 { font-family: var(--f-head); font-size: 2.6rem; font-weight: 600; margin-bottom: 0.5rem; }
.search-hero p { opacity: 0.85; margin-bottom: 1.25rem; }
.search-box input { width: 100%; max-width: 620px; padding: 0.9rem 1.2rem; border-radius: 8px; border: 0; font-size: 1.05rem; font-family: var(--f-body); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.filter-btn .rs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.search-map { padding-top: 1.5rem; }
.region-map { height: 480px; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,62,81,0.10); }
@media (max-width: 600px) { .region-map { height: 340px; } .search-hero h1 { font-size: 1.9rem; } }

/* ---------- Map pins, popups, legend ---------- */
.pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.mk { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); box-sizing: content-box; }
.mk-sq { border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 9px; line-height: 1; color: #fff; font-weight: bold; }
.pop-trail { font-family: var(--f-body); min-width: 200px; }
.pop-name { font-family: var(--f-head); font-size: 1rem; font-weight: 600; color: #003E51; margin-bottom: 0.35rem; line-height: 1.3; }
.pop-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.pop-chip { font-size: 0.7rem; font-weight: 600; background: #f0ebe3; padding: 0.15rem 0.45rem; border-radius: 3px; color: #6b7a6e; }
.pop-go { display: inline-block; color: #fff !important; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 4px; text-decoration: none; }
.pop-text { font-size: 0.8rem; color: #555; margin-top: 0.25rem; }
.pop-text p { margin: 0 0 0.3rem; }
.map-legend-box { background: #fff; padding: 8px 10px; border-radius: 6px; font-family: sans-serif; font-size: 0.72rem; line-height: 1.8; box-shadow: 0 1px 5px rgba(0,0,0,0.2); }
.map-legend-box .ml-h { font-weight: 700; margin-bottom: 4px; font-size: 0.75rem; text-transform: uppercase; }
.ml-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.ml-dot.sq { border-radius: 3px; }
.ml-line { display: inline-block; width: 18px; margin-right: 5px; vertical-align: middle; border-top: 4px solid; }

/* ---------- 404 ---------- */
.notfound { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.notfound h1 { font-family: var(--f-head); font-size: 2.4rem; color: var(--water-1); margin-bottom: 0.75rem; }
.notfound p { color: var(--muted); margin-bottom: 1.5rem; }
.notfound a { color: var(--water-1); }
.nf-regions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.nf-regions a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: 1px solid var(--border); border-radius: 30px; text-decoration: none; background: #fff; font-weight: 600; }
.nf-regions .rs-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Admin preview ---------- */
.preview-flag { position: fixed; left: 12px; bottom: 12px; z-index: 2000; background: #A4493D; color: #fff; font: 700 12px/1 'Barlow Condensed', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.hl { outline: 3px solid #e8a020 !important; outline-offset: 4px; transition: outline-color 0.3s; }

/* ---------- Cookie bar (only when Google Analytics is switched on) ---------- */
.cookiebar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1500; max-width: 640px; margin: 0 auto; background: #fff; color: #1a3340; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 0.88rem; }
.cookiebar p { flex: 1 1 260px; margin: 0; }
.cookiebar[hidden] { display: none; } /* display:flex above would otherwise keep it on screen after Accept / No thanks */
.cb-btns { display: flex; gap: 0.5rem; }
.btnp, .btno { border-radius: 4px; padding: 0.55rem 1rem; font-weight: 700; cursor: pointer; font-family: var(--f-body); }
.btnp { background: #003E51; color: #fff; border: 0; }
.btno { background: #fff; color: #003E51; border: 1px solid #003E51; }
@media (max-width: 768px) { .cookiebar { bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* ---------- About Paddle SA box (also on trail pages) ---------- */
.paddlesa-box {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: #fff;
  box-shadow: 0 2px 12px rgba(0,62,81,0.06);
  
}
.paddlesa-box-head {
  background: var(--water-1); padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.paddlesa-box-head img { height: 28px; width: auto; }
.paddlesa-box-head span {
  font-family: var(--f-label); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.paddlesa-box-body { padding: 1.25rem; }
.paddlesa-logo-img { width: 100%; max-width: 200px; display: block; margin: 0 auto 1rem; }
.paddlesa-box-body p { font-size: 0.88rem; line-height: 1.7; color: #3a4a50; margin-bottom: 1.1rem; }
.paddlesa-box-body strong { color: var(--water-1); }
.paddlesa-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--water-1); color: #fff;
  font-family: var(--f-label); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.6rem 1.1rem; border-radius: 5px;
  text-decoration: none; transition: background 0.18s;
}
.paddlesa-link:hover { background: #002938; }
.trail-main .paddlesa-box { margin: 2rem 0; }

/* Inline bold inside warning / highlight boxes stays inline (only the box title is a heading) */
.trail-warning strong:not(.co-title), .trail-highlight strong:not(.co-title) { display: inline; margin: 0; font-size: inherit; letter-spacing: normal; text-transform: none; font-family: inherit; }
.trail-warning p, .trail-highlight p { margin: 0 0 0.4rem; }
.nav-trigger, .nav-trigger:hover { text-decoration: none; }
