/* State pages only: no change to hero, header, footer, search controls or city pages. */
.directory-page--state>section.section{content-visibility:visible;contain-intrinsic-size:none;padding-block:var(--space-section,36px)}.directory-page--state>section.section:not(.section--alt) + section.section:not(.section--alt){padding-top:var(--space-subsection,22px)}
.directory-page--state .directory-search-section{padding-top:36px;padding-bottom:0}
.directory-page--state>section.state-major-section{padding-top:40px;padding-bottom:48px;background:var(--alternate)}
.directory-page--state .state-city-heading{padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid var(--border)}
.directory-page--state .state-city-heading h2{font-size:28px;line-height:1.25;letter-spacing:-.025em}
.directory-page--state .state-city-heading>p{font-size:16px;line-height:1.6;margin-top:6px;color:var(--muted)}
.directory-page--state .major-city-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.directory-page--state .major-city-card{display:flex;flex-direction:column;gap:14px;min-width:0;background:#fff;border:1px solid #dfe5ec;border-radius:14px;padding:22px;box-shadow:0 2px 4px #111b2e06,0 8px 18px #111b2e0c}
.directory-page--state .major-city-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.directory-page--state .major-city-card h3{font-size:21px;line-height:1.3;font-weight:700;margin:0;overflow-wrap:anywhere}
.directory-page--state .major-city-card>p{font-size:13px;line-height:1.65;color:var(--muted);margin:0}
.directory-page--state .major-city-card footer{margin-top:auto;border-top:1px solid var(--border);padding-top:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);align-items:end;gap:12px;font-size:12px;line-height:1.55;color:var(--muted)}
.directory-page--state .city-population{min-width:0;overflow-wrap:anywhere}
.directory-page--state .city-population small{display:block;font-size:11px;margin-top:2px;color:var(--muted)}
.directory-page--state .major-city-card footer a{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;color:var(--accent-ink);font-size:13px;font-weight:650;text-align:right;line-height:1.5}
.directory-page--state .major-city-card footer a:only-child{grid-column:1/-1}
.directory-page--state .major-city-card footer a span{min-width:0;overflow-wrap:anywhere}
.directory-page--state .major-city-card footer a svg{width:15px;height:15px;flex:none}
.directory-page--state .major-city-card footer a:hover{text-decoration:underline;text-underline-offset:4px}
.directory-page--state .city-demo-label{font-size:10px;line-height:1.5;padding:3px 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent-ink);white-space:nowrap;flex:none}
.directory-page--state .state-city-status{font-size:13px;line-height:1.7;color:var(--muted);margin:20px 0 0}
.directory-page--state .state-all-cities{margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}
.directory-page--state .state-all-cities>h3{font-size:23px}.directory-page--state .state-all-cities>p{font-size:15px;margin-top:8px}
.directory-page--state .alpha-group{margin:22px 0}.directory-page--state .alpha-group h4{font-size:21px;margin:0 0 8px}
.directory-page--state .section-heading{margin-bottom:var(--space-heading-block,20px)}
@media(max-width:1099px){.directory-page--state .major-city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.directory-page--state .major-city-grid{grid-template-columns:1fr}.directory-page--state .major-city-card{padding:20px}.directory-page--state .state-city-heading h2{font-size:25px}.directory-page--state .state-city-heading>p{font-size:15px}.directory-page--state>section.section{padding-block:var(--space-section-mobile,24px)}.directory-page--state>section.state-major-section{padding-top:40px;padding-bottom:36px}}


/* ==========================================================================
   PHASE 68: Complete A–Z City Guide Directory with Population Cards
   ========================================================================== */
.state-all-city-guides-section {
  padding-block: 48px;
  background: var(--alternate, #f8fafc);
  border-top: 1px solid var(--border, #e2e8f0);
}

.state-all-city-guides-section .state-city-heading {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.state-all-city-guides-section .state-city-heading .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink, #c2410c);
  margin-bottom: 6px;
}

.state-all-city-guides-section .state-city-heading h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink, #0f172a);
  margin: 0;
}

.state-all-city-guides-section .state-city-heading > p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--muted, #475569);
  max-width: 720px;
}

/* Interactive Filter Controls */
.city-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 27, 46, 0.03);
}

.city-filter-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
}

.city-filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.city-filter-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted, #64748b);
  pointer-events: none;
}

.city-filter-input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px;
  font-size: 14px;
  color: var(--ink, #0f172a);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.city-filter-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent, #f97316);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.city-filter-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.city-filter-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.city-filter-count {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted, #475569);
  white-space: nowrap;
}

/* Compact City Card Grid */
.city-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.city-guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(17, 27, 46, 0.04), 0 2px 6px rgba(17, 27, 46, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.city-guide-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(17, 27, 46, 0.08);
}

.city-guide-card-header {
  margin-bottom: 8px;
}

.city-guide-name {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0;
}

.city-guide-name a {
  color: inherit;
  text-decoration: none;
}

.city-guide-population {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #64748b);
  margin: 0 0 14px 0;
}

.city-guide-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.city-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-ink, #c2410c);
  text-decoration: none;
  line-height: 1.4;
}

.city-guide-link .icon {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.15s ease;
}

.city-guide-card:hover .city-guide-link .icon {
  transform: translateX(3px);
}

.city-guide-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
}

.city-guide-link:focus-visible::after {
  outline: 2px solid var(--accent, #f97316);
  outline-offset: 2px;
}

/* No Results Message */
.city-no-results {
  padding: 36px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  margin-top: 16px;
  color: var(--muted, #475569);
  font-size: 15px;
}

.city-reset-btn {
  background: none;
  border: none;
  color: var(--accent-ink, #c2410c);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-size: 15px;
}

.city-reset-btn:hover {
  color: #9a3412;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1100px) {
  .city-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .city-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .state-all-city-guides-section .state-city-heading h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .city-cards-grid {
    grid-template-columns: 1fr;
  }
  .city-filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .city-filter-box {
    max-width: 100%;
  }
  .city-guide-card {
    padding: 16px;
  }
}
