/* ============================================================
   Gay Hampton Roads — ghr-overrides.css

   Everything in this file is GHR's own. It loads AFTER style.css
   (see HEAD_PARTIAL in build.js), so it can both ADD new components
   and OVERRIDE upstream rules purely through the cascade.

   The point of this file is that style.css can now stay byte-for-byte
   identical to KeelCMS-Light's — it's ENGINE, overwritten freely on
   every sync, never hand-merged again. If you need to change how
   something upstream looks, DON'T edit style.css; re-declare the rule
   here instead.

   Everything below uses theme variables, so it follows themes/ghr.css
   and stays correct in both light and dark mode.
   ============================================================ */

/* ---- page header ---- */
/* Stacked intro paragraphs (directory, day trips) need breathing room;
   upstream assumes a single .page-intro. */
.page-intro + .page-intro { margin-top: 0.75rem; }

/* ============================================================
   Directory — GHR renders venue/resource CARDS instead of
   upstream's plain list items (see directory/directory.js), and
   groups them under category headings in the "All" view.
   ============================================================ */

.directory-group { margin-bottom: 2.5rem; }
.directory-group:last-child { margin-bottom: 0; }

.directory-group-title {
  font-size: 1.15rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* The per-category disclaimer line — used for the "unverified,
   community-submitted" note on Community Suggested. */
.directory-group-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
  margin: -0.5rem 0 1.25rem;
  line-height: 1.5;
}

/* Wider minimum than upstream's 220px — GHR's featured cards are full
   venue cards (tags, hours, socials), not one-line list items. */
.directory-featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Featured cards reuse .card / .res-card as-is, just with an accent
   border + tint layered on top, so they read as highlighted without
   needing a separate card component. */
.directory-featured-grid .card,
.directory-featured-grid .res-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 0;
}

/* Pick badges sit on the card itself. Staff and community picks get
   their own color from GHR's two-accent palette so they stay visually
   distinct from each other at a glance — upstream paints them all one
   color, which we override here. */
.card-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.5rem; }

.directory-pick-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  margin: 0;
}
.directory-pick-staff { background: var(--accent); }
.directory-pick-community { background: var(--sea); }

/* ---- footer extras ---- */
.footer-icons { display: flex; gap: 0.75rem; }
.footer-icon-link {
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.footer-icon-link:hover { color: var(--accent); }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0 0; }
.footer-bottom { padding-top: 1rem; }

/* ---- homepage feature cards (anchor) ---- */
a.feature-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.feature-card h3 { color: var(--fg); }

/* ---- venue cards (directory Entertainment, regional pages) ---- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.card:last-child { margin-bottom: 0; }
.card:hover { border-color: var(--border-strong); }

.card-city {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sea);
  margin: 0 0 5px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
}
.card-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin: 0; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}
.meta-value { font-size: 13px; font-weight: 500; color: var(--fg); }

.card-links { display: flex; gap: 8px; margin-top: 12px; }
.card-icon-link {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.card-icon-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* ---- resource cards (directory Resources) ---- */
.res-card {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}
.res-card:last-child { margin-bottom: 0; }
.res-card:hover { border-color: var(--border-strong); }
.res-card .card-title { font-size: 16px; }
.res-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.res-link:hover { text-decoration: underline; }

/* ---- region grid + cards (Day Trips) ---- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.region-card {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.25rem;
  text-decoration: none;
  color: var(--fg);
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.region-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s;
}
.region-card:not(.region-card--soon):hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.region-card:not(.region-card--soon):hover::after { opacity: 1; }
.region-card--soon { opacity: 0.55; cursor: default; }

.region-distance {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sea);
  margin: 0 0 8px;
}
.region-city {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.region-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
.region-desc--soon { font-style: italic; color: var(--fg-faint); }

.region-breadcrumb { margin-bottom: 1.5rem; }
.region-breadcrumb a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  text-decoration: none;
  transition: color 0.15s;
}
.region-breadcrumb a:hover { color: var(--sea); }

.region-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-faint);
  line-height: 1.6;
}
.region-note a { color: var(--accent); text-decoration: none; }
.region-note a:hover { text-decoration: underline; }

/* Neighborhood subheadings on the day-trip city pages. */
.region-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
}
.region-section-title:first-of-type { margin-top: 0.5rem; }
