/* ================================================================
   JailData — style.css
   New design system. No Bootstrap. No legacy.
   Dark navy + teal + pink. Built for speed and SEO.
   ================================================================ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --navy:        #0f1923;
  --navy-mid:    #1a2a3a;
  --navy-card:   #1e3348;
  --navy-light:  #243c54;
  --teal:        #00c2d4;
  --teal-dark:   #0099aa;
  --pink:        #e8197a;
  --pink-dark:   #c0145f;
  --white:       #ffffff;
  --text:        #d0e0ed;
  --muted:       #8aa0b4;
  --border:      rgba(0,194,212,.15);
  --border-pink: rgba(232,25,122,.2);
  --font:        'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(0,0,0,.35);
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: #00d9ef; }
img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 11px 22px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-teal  { background: var(--teal);  color: var(--navy); }
.btn-teal:hover  { background: #00d9ef; color: var(--navy); }
.btn-pink  { background: var(--pink);  color: #fff; }
.btn-pink:hover  { background: var(--pink-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); padding: 9px 20px; }
.btn-outline:hover { background: var(--teal); color: var(--navy); }
.btn-sm { font-size: 12px; padding: 8px 16px; }
.btn-block { display: block; width: 100%; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  border-bottom: 2px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
}
.logo-icon {
  background: var(--teal);
  color: var(--navy);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo span { color: var(--teal); }
.logo:hover { color: #fff; text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.main-nav a:hover { color: #fff; background: rgba(0,194,212,.1); }
.main-nav a.active { color: #fff; }
.main-nav .nav-cta { background: var(--teal); color: var(--navy) !important; margin-left: 6px; }
.main-nav .nav-cta:hover { background: #00d9ef; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0,194,212,.3);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ── Service Bar ── */
.service-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
}
.service-bar-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}
.service-bar-inner::-webkit-scrollbar { display: none; }
.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.service-tab:hover { color: #fff; border-color: var(--border); background: rgba(255,255,255,.05); text-decoration: none; }
.service-tab.pink { color: var(--pink); }
.service-tab.pink:hover { border-color: rgba(232,25,122,.3); background: rgba(232,25,122,.08); }
.service-tab svg { flex-shrink: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  font-size: 13px;
}
.breadcrumb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { color: #00d9ef; }
.breadcrumb .sep { color: rgba(255,255,255,.2); font-size: 11px; margin: 0 2px; }
.breadcrumb .current { color: var(--muted); }

/* ── Page layout ── */
.page-wrap { padding: 24px 0 72px; }
.page-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 26px;
  align-items: start;
}

/* ── TF Affiliate Banner ── */
.tf-banner {
  background: linear-gradient(135deg, #0d2035 0%, #162d44 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px 16px;
  margin-bottom: 22px;
}
.tf-banner h2 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.tf-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.tf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.tf-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tf-field input,
.tf-field select {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  padding: 10px 13px;
  height: 42px;
  width: 100%;
  font-family: var(--font);
  transition: border-color .2s;
}
.tf-field input::placeholder { color: rgba(255,255,255,.3); }
.tf-field input:focus,
.tf-field select:focus { border-color: var(--teal); outline: none; background: rgba(255,255,255,.1); }
.tf-field select option { background: #162d44; color: #fff; }
.tf-field.state-field { max-width: 160px; flex-shrink: 0; }
.tf-submit {
  flex-shrink: 0;
  flex-grow: 0;
  width: auto !important;
  min-width: 0;
  height: 42px;
  padding: 0 26px;
  font-size: 13px;
  align-self: flex-end;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
/* Prevent btn class from overriding tf-submit width */
.tf-form .btn.tf-submit,
.tf-form button.tf-submit {
  width: auto !important;
  flex-grow: 0;
}
.tf-sponsor {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px;
  text-align: right;
}

/* ── Prison Hero ── */
.prison-hero {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.prison-hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.prison-hero-map {
  width: 100%;
  height: 260px;
  display: block;
}
.prison-hero-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.prison-hero-body { padding: 24px 26px 22px; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 4px;
}
.badge-green  { background: rgba(52,211,153,.12);  color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.badge-teal   { background: rgba(0,194,212,.12);   color: var(--teal); border: 1px solid var(--border); }
.badge-yellow { background: rgba(251,191,36,.1);   color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }

.prison-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}
.prison-title a { color: #fff; text-decoration: none; }
.prison-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.prison-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Action Tiles ── */
.action-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.action-tile {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.action-tile:hover {
  border-color: rgba(0,194,212,.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  color: #fff;
  text-decoration: none;
}
.action-tile.pink-tile { border-color: var(--border-pink); }
.action-tile.pink-tile:hover { border-color: rgba(232,25,122,.6); }
.tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0,194,212,.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pink-tile .tile-icon { background: rgba(232,25,122,.12); color: var(--pink); }
.tile-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }
.tile-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Content Accordion ── */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.acc-panel {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background .15s;
}
.acc-header:hover { background: rgba(0,194,212,.04); }
.acc-panel.open .acc-header { border-bottom-color: var(--border); }
.acc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.acc-title svg { color: var(--teal); flex-shrink: 0; }
.acc-chevron {
  color: var(--muted);
  transition: transform .25s;
  flex-shrink: 0;
}
.acc-panel.open .acc-chevron { transform: rotate(180deg); }
.acc-body {
  padding: 20px 22px;
  display: none;
}
.acc-panel.open .acc-body { display: block; }
.acc-body p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body h2, .acc-body h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.acc-body h2:first-child, .acc-body h3:first-child { margin-top: 0; }
.acc-body strong { color: var(--teal); font-weight: 700; }
.acc-body a { color: var(--teal); }
.acc-body a:hover { color: #00d9ef; }
.acc-body ul, .acc-body ol { padding-left: 20px; margin-bottom: 14px; }
.acc-body li { margin-bottom: 6px; font-size: 15px; color: var(--text); }

/* Stats table */
.stats-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; border-radius: 6px; overflow: hidden; }
.stats-table tr { border-bottom: 1px solid var(--border); }
.stats-table tr:last-child { border-bottom: none; }
.stats-table tr:nth-child(even) { background: rgba(255,255,255,.02); }
.stats-table td { padding: 10px 14px; font-size: 14px; color: var(--text); }
.stats-table td:first-child { color: var(--muted); font-size: 13px; }
.stats-table td:last-child { color: var(--teal); font-weight: 700; text-align: right; }
.stats-table td:last-child { font-weight: 700; color: var(--teal); text-align: right; }
.stats-source { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 8px; }
.stats-source a { color: var(--teal); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,194,212,.05);
}
.sidebar-card-header h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin: 0;
}
.sidebar-card-body { padding: 16px; }

.ov-item { margin-bottom: 14px; }
.ov-item:last-child { margin-bottom: 0; }
.ov-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}
.ov-value { font-size: 14px; color: #fff; line-height: 1.5; }

.cap-bar { height: 5px; background: var(--navy); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.cap-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--pink)); }
.cap-note { font-size: 11px; color: var(--muted); margin-top: 3px; }

.sidebar-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.sidebar-map { width: 100%; height: 160px; display: block; min-height: 160px; }

/* TF Widget */
.tf-widget {
  background: linear-gradient(160deg, var(--navy-card), #1a2d40);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.tf-widget h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tf-widget p  { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.tf-widget input,
.tf-widget select {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  padding: 9px 11px;
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--font);
  height: 40px;
}
.tf-widget input::placeholder { color: rgba(255,255,255,.3); }
.tf-widget input:focus, .tf-widget select:focus { border-color: var(--pink); outline: none; }
.tf-widget select option { background: var(--navy-mid); }
.tf-widget-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 11px;
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.tf-widget-btn:hover { background: var(--pink-dark); }
.tf-aff-note { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 6px; display: block; }

/* Nearby prisons */
.nearby-list { list-style: none; padding: 4px 0 0; }
.nearby-list li { border-bottom: 1px solid var(--border); }
.nearby-list li:last-child { border-bottom: none; }
.nearby-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.nearby-list a::before { content: "›"; color: var(--teal); font-size: 16px; line-height: 1; }
.nearby-list a:hover { color: var(--teal); }

/* ── Footer ── */
.site-footer {
  background: var(--navy-mid);
  border-top: 2px solid var(--border);
  padding: 52px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-about p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 300px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-logo span { color: var(--teal); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); margin: 0; }
.footer-bottom a { color: var(--teal); }

/* Social icons */
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,194,212,.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  text-decoration: none;
  transition: background .2s;
}
.social-link:hover { background: rgba(0,194,212,.25); color: var(--teal); }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  transition: color .2s;
}
.modal-close:hover { color: #fff; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-map { width: 100%; height: 450px; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-teal  { color: var(--teal); }
.text-pink  { color: var(--pink); }
.mt-0 { margin-top: 0 !important; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; }
  .action-tiles { grid-template-columns: repeat(2, 1fr); }
  .tf-form { flex-wrap: wrap; }
  .tf-field.state-field { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .prison-hero-img, .prison-hero-map, .prison-hero-placeholder { height: 200px; }
  .prison-hero-body { padding: 16px; }
  .prison-title { font-size: 1.5rem; }
  .action-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
}

/* ── Map placeholder (shows when Maps API unavailable) ── */
.sidebar-map:empty,
.prison-hero-map:empty {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sidebar-map:empty::after,
.prison-hero-map:empty::after {
  content: 'Map unavailable';
  color: var(--muted);
  font-size: 13px;
}

/* ── Fix: about field content styling ── */
.acc-body p strong,
.acc-body strong {
  color: var(--teal);
  font-weight: 700;
}
.acc-body h2, .acc-body h3, .acc-body h4 {
  color: #fff;
  font-weight: 700;
  margin: 16px 0 8px;
  font-size: 15px;
}
.acc-body h2:first-child,
.acc-body h3:first-child { margin-top: 0; }

/* ── Prison hero image fix ── */
.prison-hero-img {
  background: var(--navy-mid);
}

/* ── Leaflet map overrides ── */
.leaflet-container {
  background: var(--navy-mid) !important;
  font-family: var(--font) !important;
  border-radius: 0 0 var(--radius) var(--radius);
}
.leaflet-popup-content-wrapper {
  background: var(--navy-card) !important;
  color: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  box-shadow: var(--shadow) !important;
}
.leaflet-popup-tip { background: var(--navy-card) !important; }
.leaflet-popup-content { color: #fff !important; font-size: 13px !important; margin: 10px 14px !important; }
.leaflet-popup-content strong { color: var(--teal) !important; }
.leaflet-popup-close-button { color: var(--muted) !important; }
.leaflet-popup-close-button:hover { color: #fff !important; }
.leaflet-bar a {
  background: var(--navy-card) !important;
  color: var(--teal) !important;
  border-color: var(--border) !important;
}
.leaflet-bar a:hover { background: var(--navy-light) !important; }
.leaflet-attribution-flag { display: none !important; }
.leaflet-control-attribution {
  background: rgba(15,25,35,.8) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--teal) !important; }

/* Force Leaflet to fill container */
#jd-map-sidebar,
#jd-map-main { width: 100% !important; }

/* ══════════════════════════════════════════════════
   NEW FEATURE STYLES
   ══════════════════════════════════════════════════ */

/* ── Quick Facts Widget ── */
.qf-widget {
  background: linear-gradient(135deg, var(--navy-card) 0%, #1a2d40 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.qf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  border-bottom: 1px solid var(--border);
}
.qf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.qf-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.qf-fact:nth-child(even) { border-right: none; }
.qf-fact:nth-last-child(-n+2) { border-bottom: none; }
.qf-icon {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.qf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.qf-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* ── Risk Assessment Panel ── */
.risk-panel {
  background: linear-gradient(135deg, #1a1f2e 0%, #1e2d3d 100%);
  border: 1px solid rgba(251,191,36,.25);
  border-left: 4px solid #fbbf24;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.risk-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fbbf24;
  border-bottom: 1px solid rgba(251,191,36,.15);
}
.risk-body {
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
}
.risk-body p { margin-bottom: 0; }

/* ── FAQ List ── */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
}
.faq-q:hover { color: var(--teal); }
.faq-chev { flex-shrink: 0; color: var(--muted); transition: transform .25s; }
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--teal); }
.faq-a {
  display: none;
  padding: 0 4px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ── Share Bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 6px;
  margin-bottom: 10px;
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--navy-card);
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
}
.share-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); text-decoration: none; }
.share-x:hover  { border-color: rgba(255,255,255,.4); color: #fff; }
.share-fb:hover { border-color: #1877f2; color: #1877f2; }
.share-copy:hover  { border-color: var(--teal); color: var(--teal); }
.share-print:hover { border-color: var(--pink); color: var(--pink); }

/* ── Print Visit Card ── */
.print-card {
  display: none; /* Hidden on screen — shown only via JS print window */
  background: #fff;
  color: #1a1a2e;
  padding: 24px;
  border-radius: 6px;
  font-family: var(--font);
}
.print-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #0f1923;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid #00c2d4;
}
.print-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.pc-full { grid-column: 1 / -1; }
.pc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8aa0b4;
  margin-bottom: 4px;
}
.pc-val { font-size: 14px; color: #1a1a2e; line-height: 1.5; font-weight: 600; }
.pc-note {
  font-size: 12px;
  color: #666;
  font-style: italic;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}
.pc-source { font-size: 11px; color: #999; }

/* Print styles */
@media print {
  body * { visibility: hidden; }
  .print-card, .print-card * { visibility: visible; }
  .print-card { position: fixed; top: 20px; left: 20px; right: 20px; }
  .modal-overlay { display: block !important; position: static !important; }
  .modal-box { box-shadow: none !important; }
  .modal-header, .modal-footer { display: none !important; }
}

/* ── Print styles ── */
.print-card { display: none; }

@media print {
  /* Hide everything except print card */
  .site-header, .service-bar, .breadcrumb, .tf-banner,
  .page-grid > main > *:not(.print-card),
  .page-grid > .sidebar, footer, .site-footer,
  .modal-overlay, button:not(.print-trigger) { display: none !important; }

  .print-card {
    display: block !important;
    position: fixed;
    inset: 0;
    background: #fff;
    color: #000;
    z-index: 9999;
    padding: 30px;
    font-family: 'Arial', sans-serif;
  }
  .print-card-inner {
    border: 2px solid #000;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
  }
  .print-card h1 {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #000;
    margin: 0 0 4px;
  }
  .print-subtitle { font-size: 13px; color: #555; margin: 0 0 20px; }
  .print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .print-section { border: 1px solid #ddd; border-radius: 5px; padding: 12px 14px; }
  .print-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #888; margin-bottom: 6px; }
  .print-value { font-size: 14px; color: #000; line-height: 1.5; }
  .print-footer { font-size: 11px; color: #aaa; text-align: center; margin-top: 16px; border-top: 1px solid #eee; padding-top: 10px; }
  body { background: #fff !important; }
}
