/* ═══════════════════════════════════════════════════════════════
   locations.css v4 — Supplements global.css for location pages
   Only styles that DON'T exist in global.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Sticky Header (add to global.css eventually) ───────────── */
.site-header, #global-header > header, #global-header > div {
  position: sticky; top: 0; z-index: 1000;
}

/* ── Breadcrumb (location pages only) ───────────────────────── */
.breadcrumb { margin-bottom: .75rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .25rem;
  list-style: none; padding: 0; margin: 0;
  font-size: .78rem; color: rgba(255,255,255,.5);
}
.breadcrumb li + li::before { content: '›'; margin-right: .25rem; }
.breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,.85); font-weight: 500; }

/* ── Sticky Walt — stays centered while scrolling through section ── */
.sol-char-col {
  position:relative;
  padding-top: 50px;
  left: -80px;
}
.cmp-char-col {
  padding-top: 600px;
}
.fcta-char-col {
  padding-top: 250px;
}

/* ── Key Takeaway blocks (AEO citation triggers) ────────────── */
.key-takeaway {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid rgba(64,201,127,.25);
  border-left: 4px solid var(--mint, #40c97f);
  border-radius: var(--radius-md, .75rem);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.key-takeaway-label {
  font-family: var(--fd, 'Outfit', sans-serif);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--emerald, #059669);
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.key-takeaway-label::before { content: '💡'; font-size: .9rem; }
.key-takeaway p { font-size: .9rem; line-height: 1.65; color: var(--text, #1f2937); margin: 0; }

/* ── Trusted section text ───────────────────────────────────── */
.trusted-sec .cmp-layout > div:last-child p {
  font-size: .95rem; line-height: 1.75;
  color: var(--text, #1f2937); margin-bottom: 1rem;
}
.trusted-sec .cmp-layout > div:last-child a {
  color: var(--forest, #1b4332); font-weight: 600;
}

/* ── Local Knowledge grid ───────────────────────────────────── */
.local-knowledge-sec { background: var(--sand, #fdf6ec); }
.local-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.lk-card {
  background: #fff;
  border-radius: var(--radius-lg, 1rem);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.lk-card h3 {
  font-family: var(--fd, 'Outfit', sans-serif);
  font-size: .95rem; font-weight: 700;
  color: var(--forest, #1b4332);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.lk-icon {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm, .5rem);
  background: rgba(64,201,127,.1);
  font-size: 1rem; flex-shrink: 0;
}
.lk-card p { font-size: .875rem; line-height: 1.65; color: var(--text, #1f2937); }
.lk-card a { color: var(--forest, #1b4332); font-weight: 600; }

/* ── City card grid (dark map section) ──────────────────────── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.city-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md, .75rem);
  text-decoration: none; color: #fff;
  font-family: var(--fd, 'Outfit', sans-serif);
  font-weight: 600; font-size: .9rem;
  transition: all .2s;
}
.city-card:hover {
  background: rgba(64,201,127,.12);
  border-color: var(--mint, #40c97f);
  transform: translateY(-2px);
}
.city-arrow { color: var(--mint, #40c97f); font-size: 1.1rem; transition: transform .2s; }
.city-card:hover .city-arrow { transform: translateX(4px); }

/* ── Situations: 3-across on desktop ────────────────────────── */
.situ-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ── State Map ───────────────────────────────────────────────── */
#state-map-wrap svg { width: 100%; height: 100%; display: block; }
#state-map-wrap .map-state {
  fill: rgba(255,255,255,.06);
  stroke: rgba(255,255,255,.15);
  stroke-width: .75;
  transition: fill .2s;
}
#state-map-wrap .map-state.active {
  fill: var(--mint, #40c97f);
  fill-opacity: .3;
  stroke: var(--mint, #40c97f);
  stroke-width: 1.5;
  cursor: pointer;
}
#state-map-wrap .map-state.active:hover { fill-opacity: .5; }
.map-tooltip {
  position: absolute;
  padding: .45rem .75rem;
  background: var(--forest-deep, #0d2818);
  color: #fff;
  border-radius: .5rem;
  font-size: .8rem;
  font-family: var(--fd, 'Outfit', sans-serif);
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  z-index: 10;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sol-char-col
  { 
    position: static; 
  }
  .cmp-char-col 
  { 
    padding-top: 0px;
  }
    .fcta-char-col 
  { 
    padding-top: 40px;
  }
}
@media (max-width: 768px) {
  .situ-grid { grid-template-columns: 1fr; }
  .local-knowledge-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .sol-char-col
  { 
    position: static; 
  }
  .cmp-char-col 
  { 
    padding-top: 0px;
  }
    .fcta-char-col 
  { 
    padding-top: 40px;
  }
}
@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr; }
  .sol-char-col
  { 
    position: static; 
  }
  .cmp-char-col 
  { 
    padding-top: 0px;
  }
    .fcta-char-col 
  { 
    padding-top: 40px;
  }
}
