/* ==========================================================================
  Find Pump Tracks — Modern Canadian Directory Design System
  Optimized for Performance, Mobile Responsiveness, and Clean UX
  ========================================================================== */

:root {
  --primary: #0f4c3a;           /* Forest Green */
  --primary-hover: #0b382b;
  --primary-light: #e6f0ed;
  --accent: #f59e0b;            /* Warm Amber / Yellow */
  --accent-hover: #d97706;
  
  --bg-color: #f8fafc;
  --surface-card: #ffffff;
  --surface-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
  
  --radius-card: 12px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.btn-nav:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

/* Breadcrumb Wrapper */
.breadcrumb-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 700;
}
.breadcrumb-separator {
  color: var(--text-subtle);
}

/* Structural Content Card */
.content-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.content-card:hover {
  border-color: var(--border-strong);
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--text-muted);
}
.badge-tag.primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-tag.warning {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #713f12;
}

.page-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Fast Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.fact-item { display: flex; flex-direction: column; gap: 0.25rem; }
.fact-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-subtle); letter-spacing: 0.05em; }
.fact-value { font-size: 0.9375rem; font-weight: 800; color: var(--text-main); }
.fact-value.rating { color: var(--accent); }

.section-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.paragraph {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

/* 2-Column Grid Layout for All Lists */
.simple-link-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.simple-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  padding: 1.15rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text-main);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.simple-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.simple-link-count {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  background: var(--surface-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* Directory Cards Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.directory-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.directory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dir-card-media {
  height: 180px;
  overflow: hidden;
  background: var(--surface-subtle);
}
.dir-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dir-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dir-card-cat {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.dir-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.dir-card-addr {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dir-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* Visual Layout & OpenStreetMap */
.visual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.media-container {
  height: 380px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--surface-subtle);
}
.media-container img { width: 100%; height: 100%; object-fit: cover; }

.map-container-wrapper {
  display: flex;
  flex-direction: column;
  height: 380px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--surface-card);
}

.osm-map-viewport { flex: 1; width: 100%; background: var(--surface-subtle); }
.map-action-bar { padding: 0.75rem 1rem; background: var(--surface-card); border-top: 1px solid var(--border-color); }
.btn-direction { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0.75rem 1.25rem; background: var(--primary); color: #fff; font-weight: 700; font-size: 0.875rem; border-radius: 6px; }

/* Specs Table */
.specs-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.spec-cell { background: var(--surface-subtle); border: 1px solid var(--border-color); padding: 1rem; border-radius: 8px; }
.spec-cell-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-subtle); }
.spec-cell-value { font-size: 0.9375rem; font-weight: 700; color: var(--text-main); margin-top: 0.25rem; }

/* Reviews Feed */
.reviews-grid { display: flex; flex-direction: column; gap: 1rem; }
.review-item { background: var(--surface-card); border: 1px solid var(--border-color); border-left: 4px solid var(--primary); padding: 1.25rem; border-radius: 6px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-user { font-weight: 700; font-size: 0.9375rem; color: var(--text-main); }
.review-stars { color: var(--accent); font-weight: 700; font-size: 0.875rem; }
.review-body { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 4rem 0 2rem; margin-top: 4rem; font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand { font-size: 1.125rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.footer-brand span { color: #f59e0b; }
.footer-links-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #cbd5e1; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-list a { color: #94a3b8; }
.footer-links-list a:hover { color: #f59e0b; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.8125rem; }

/* RESPONSIVE DESIGN ACCRU */
@media (max-width: 850px) {
  .visual-layout { grid-template-columns: 1fr; }
  .media-container, .map-container-wrapper { height: 300px; }
  .simple-link-grid-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-inner { height: auto; padding: 1rem 0; flex-direction: column; gap: 1rem; }
  .nav-menu { width: 100%; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
}

@media (max-width: 500px) {
  .content-card { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .directory-grid { grid-template-columns: 1fr; }
}

/* Restore exact CSS for directory-card-prov */
.directory-card-prov {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.directory-card-prov:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-light) 100%);
}

.prov-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.prov-card-title a {
  color: var(--primary);
}

.prov-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.prov-card-action {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FAQ Stack & Styled Cards */
.faq-stack { display: flex; flex-direction: column; gap: 1rem; }

.faq-card-styled {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.faq-card-styled:hover {
  background: #ffffff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-q-styled {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.faq-q-styled::before {
  content: '❓';
  font-size: 0.9rem;
}

.faq-a-styled {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.75rem;
}

/* In-text SEO Link Styling */
.in-text-link {
  color: #0f4c3a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.in-text-link:hover {
  color: #f59e0b;
}
