/* cca-geocode — shared custom styles layered on the NYC Core theme
   (same conventions as cca-radiodb: field-label/value, stat-badge). */

.field-label {
  font-weight: 600;
  color: #666;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.field-value {
  font-size: 1.1rem;
  color: #2C3E50;
  margin-bottom: 20px;
}
.field-value.large {
  font-size: 1.5rem;
  font-weight: 600;
  color: #004CBE;
}

.stat-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.stat-badge.primary   { background-color: #E3F2FD; color: #1976D2; }
.stat-badge.info      { background-color: #E3F2FD; color: #1976D2; }
.stat-badge.success   { background-color: #C8E6C9; color: #2E7D32; }
.stat-badge.warning   { background-color: #FFF9C4; color: #F57F17; }
.stat-badge.danger    { background-color: #FFCDD2; color: #C62828; }
.stat-badge.secondary { background-color: #ECEFF1; color: #546E7A; }
.stat-badge.purple    { background-color: #EDE7F6; color: #5E35B1; }

.meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-strip .meta-times { font-size: 0.85rem; }

.loading-spinner { display: none; text-align: center; padding: 40px; }
.loading-spinner.show { display: block; }
.error-message { display: none; margin-top: 20px; }
.error-message.show { display: block; }
.result-area { display: none; }
.result-area.show { display: block; }

.map-frame {
  position: relative;
  height: 420px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  overflow: hidden;
}
.map-frame.tall { height: calc(100vh - 270px); min-height: 420px; }

.coord { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.lookup-tile { transition: box-shadow .15s, transform .15s; }
.lookup-tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-2px); }

/* example / suggestion chips */
.filter-chip {
  border: 1px solid #CFD8DC;
  background: #fff;
  color: #37474F;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
}
.filter-chip:hover { border-color: #004CBE; color: #004CBE; text-decoration: none; }

/* places list (multi-locality postal areas) */
.places-cols { columns: 3 180px; column-gap: 1.5rem; }
.places-cols li { break-inside: avoid; line-height: 1.75; }

/* ---- tables: 14px body, sticky headers, clickable rows ---- */
.table { font-size: 0.875rem; }
.table.table-sm { font-size: 0.875rem; }
.table-responsive { max-height: 72vh; }
.table-responsive thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  box-shadow: inset 0 -2px 0 #dee2e6;
}
tr[data-href] { cursor: pointer; }
tr[data-href]:hover { background-color: #eaf2fd !important; }
tr[data-href] .row-chevron { color: #9aa5b1; }
tr[data-href]:hover .row-chevron { color: #004CBE; }

/* ---- loading skeletons ---- */
@keyframes geo-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.skeleton-block {
  border-radius: .3rem; min-height: 14px;
  background: linear-gradient(90deg, #eceff1 25%, #f7f9fa 37%, #eceff1 63%);
  background-size: 800px 100%;
  animation: geo-shimmer 1.3s linear infinite;
}
.skeleton-table .skeleton-block { height: 16px; margin-bottom: 10px; }

/* ---- friendly empty state ---- */
.empty-state { text-align: center; padding: 2.2rem 1rem; color: #555; }
.empty-state i { font-size: 2.2rem; color: #adb5bd; margin-bottom: .7rem; display: block; }

/* ---- nav: mobile hamburger ---- */
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.45); border-radius: .25rem;
  color: #fff; padding: .25rem .6rem; font-size: 1.05rem;
}
@media (max-width: 767px) {
  .nav-toggle { display: inline-block; }
  #primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #111; z-index: 70; padding: .4rem 1rem .7rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.4);
  }
  #primary-nav.show { display: block; }
  #primary-nav ul { flex-direction: column; align-items: flex-start !important; gap: 0 !important; }
  #primary-nav li { width: 100%; }
  #primary-nav a { display: block; padding: .55rem .25rem; }
  #nyc-top-header { position: relative; }
}

/* ---- mobile-first card tables ---- */
@media (max-width: 767px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr {
    border: 1px solid #dee2e6; border-radius: .3rem; margin-bottom: .6rem;
    padding: .45rem .6rem; background: #fff;
  }
  .table-cards td { border: 0 !important; padding: .15rem 0 !important; }
  .table-cards td:empty { display: none; }
  .table-cards td[data-label]::before {
    content: attr(data-label);
    display: inline-block; min-width: 6.2em;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #6c757d;
    margin-right: .4rem;
  }
  .table-cards td.row-chevron-cell { display: none; }
  .table-responsive { max-height: none; }
  .meta-strip .meta-times { width: 100%; }
}

/* ---- print ---- */
@media print {
  #global-header, footer, .btn, .nav-toggle, .loading-spinner, .map-frame { display: none !important; }
  .table-responsive { max-height: none; overflow: visible; }
  body { font-size: 11pt; }
}

/* keyboard hint chip inside the header quick-lookup box */
.omni-form .omni-wrap { position: relative; }
.omni-form .omni-wrap input { width: 100%; padding-right: 34px; }
.omni-form .omni-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; user-select: none;
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #6c757d; background: #f1f3f5; border: 1px solid #ced4da;
  border-radius: 4px; padding: 3px 7px;
}
.omni-form .omni-wrap input:focus ~ .omni-kbd { display: none; }
@media (max-width: 767.98px) { .omni-form .omni-kbd { display: none; } }
