/* ============================================
   PERMITPATH — location.css
   Shared styles for all city/county detail pages
   ============================================ */

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-300);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--slate-500);
}
.breadcrumb a {
  color: var(--slate-500);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--ky-blue); text-decoration: underline; }
.breadcrumb span { margin-inline: 6px; }
.breadcrumb strong { color: var(--slate-900); }

/* ── LOCATION HERO ── */
.loc-hero {
  background: var(--slate-950);
  border-bottom: 2px solid var(--amber-500);
  padding-block: 48px;
}
.loc-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.loc-hero-text .section-badge { margin-bottom: 12px; }
.loc-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.loc-sub {
  font-size: 0.95rem;
  color: var(--slate-400);
  max-width: 580px;
  line-height: 1.65;
}

/* ── SUMMARY CARD ── */
.summary-card {
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 280px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-800);
  font-size: 0.84rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--slate-400); }
.summary-row strong {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
}

/* ── MAIN LAYOUT ── */
.loc-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding-block: 48px;
  align-items: start;
}
.loc-content { min-width: 0; }

/* ── SECTIONS ── */
.loc-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--slate-300);
}
.loc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.loc-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--slate-950);
  margin-bottom: 20px;
}
.loc-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-950);
  margin-bottom: 12px;
}
.loc-section p {
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── OFFICE GRID ── */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.office-details h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-950);
  margin-bottom: 8px;
}
.office-details address {
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 14px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 14px;
}
.info-table tr { border-bottom: 1px solid var(--slate-300); }
.info-table tr:last-child { border-bottom: none; }
.info-table td {
  padding: 7px 0;
  vertical-align: top;
}
.info-table td:first-child {
  color: var(--slate-500);
  width: 38%;
  padding-right: 12px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.info-table td:last-child {
  color: var(--slate-800);
  font-weight: 500;
}
.office-note {
  background: var(--amber-100);
  border-left: 3px solid var(--amber-500);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--slate-700);
  margin-top: 12px;
}

/* ── MAP STUB ── */
.office-map-placeholder { display: flex; align-items: stretch; }
.map-stub {
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  min-height: 140px;
}
.map-stub p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

/* ── STEPS LIST ── */
.loc-steps {
  list-style: none;
  counter-reset: loc-steps;
  margin-top: 16px;
}
.loc-steps li {
  counter-increment: loc-steps;
  padding: 14px 0 14px 52px;
  position: relative;
  font-size: 0.875rem;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-300);
  line-height: 1.65;
}
.loc-steps li:last-child { border-bottom: none; }
.loc-steps li::before {
  content: counter(loc-steps);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--slate-950);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-steps li strong { color: var(--slate-950); display: block; margin-bottom: 4px; }
.loc-steps li a { color: var(--ky-blue); }

/* ── QUIRKS LIST ── */
.quirks-list {
  list-style: none;
  margin-top: 4px;
}
.quirks-list li {
  font-size: 0.875rem;
  color: var(--slate-700);
  padding: 14px 0 14px 24px;
  position: relative;
  border-bottom: 1px solid var(--slate-300);
  line-height: 1.65;
}
.quirks-list li:last-child { border-bottom: none; }
.quirks-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--amber-500);
  font-size: 0.78rem;
}
.quirks-list li strong { color: var(--slate-950); }

/* ── FRAMEWORK GRID (Ohio page) ── */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.framework-card {
  background: var(--slate-100);
  border-radius: var(--radius-md);
  padding: 22px;
  border-top: 3px solid var(--amber-500);
}
.framework-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--amber-500);
  margin-bottom: 10px;
  line-height: 1;
}
.framework-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-950);
  margin-bottom: 10px;
}
.framework-card p {
  font-size: 0.84rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 10px;
}
.framework-card p:last-child { margin-bottom: 0; }

/* ── SIDEBAR ── */
.loc-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 18px;
}
.sidebar-card h3 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-500);
  margin-bottom: 12px;
}
.sidebar-card address {
  font-size: 0.84rem;
  color: var(--slate-700);
  line-height: 1.55;
  margin-bottom: 6px;
}
.sidebar-card p {
  font-size: 0.84rem;
  color: var(--slate-700);
  line-height: 1.5;
  margin-bottom: 4px;
}

.quick-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  font-size: 0.82rem;
}
.quick-dl dt {
  color: var(--slate-500);
  padding: 4px 0;
  border-bottom: 1px solid var(--slate-300);
  white-space: nowrap;
}
.quick-dl dd {
  color: var(--slate-900);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid var(--slate-300);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.quick-dl dt:last-of-type,
.quick-dl dd:last-of-type { border-bottom: none; }

/* ── RELATED CARDS ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.related-card:hover {
  border-color: var(--amber-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
  width: fit-content;
}
.related-card strong {
  font-size: 0.9rem;
  color: var(--slate-950);
  display: block;
}
.related-card span:last-child {
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .loc-main { grid-template-columns: 1fr; }
  .loc-sidebar { position: static; }
  .framework-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .loc-hero-inner { grid-template-columns: 1fr; }
  .summary-card { min-width: unset; }
  .office-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .related-grid { grid-template-columns: 1fr; }
}
