/* === src/css/AdminUI.css === */
.ogrid-admin-ui {
    background-color: #E8E8E8;
    position: fixed;
    right: -700px;
    top: 50px;
    width: 700px;
    height:100%;

    /* should be on top of Leaflet's attribution text and layer control */
    z-index: 2500;
}


.ogrid-admin-ui.visible {
    right: 0px;
}

@media (max-width: 700px) {
    .ogrid-admin-ui {
        width: 100%;
    }
}

/* === src/css/Chart.css === */
.ogrid-chart {
}

.ogrid-chart-modal .modal-header {
    font-weight: bold;
}

.ogrid-chart-options .form-control-static {
    padding: 0px;
}

.ogrid-chart-options .form-control {
    padding: 0px;
    height: 22px;
}

/*@media (min-width: 845px) {
    .ogrid-chart-modal {
        width: 50%;
        margin: 10px auto 30px auto;
    }
}*/

/*((.ogrid-chart-body {
    height: 600px;
}

.ogrid-chart-canvas {
    width: 100%  !important;
    height: 100%  !important;
}*/


/* === src/css/GeoFilter.css === */
/*
 * GeoFilter.css
 * Styles used by ogrid.GeoFilter
*/
@media (min-width: 700px) {
    .form-inline .form-control {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
}


.adv-search-geofilter > .form-inline {
    padding:4px;
}
.adv-search-geofilter > .form-inline > * {
    margin:2px 2px !important;
}


/* === src/css/GroupAdmin.css === */
#ogrid-manage-groups {
    height: 100%;
}

.ogrid-manage-groups .bootstrap-table {
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    background-color: #fff;
}

#group-edit-modal .modal-dialog {
    margin-top: 80px;
}

.ogrid-manage-groups .fixed-table-body {
    overflow-x: hidden;
}


/* === src/css/QueryAdmin.css === */
#ogrid-manage-queries {
    height: 100%;
}

.ogrid-manage-queries .bootstrap-table {
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    background-color: #fff;
    height: 100%;
}

.ogrid-manage-queries .fixed-table-body {
    overflow-x: hidden;
}


/* === src/css/Session.css === */
/*
 * Session.css
 * Styles used by ogrid.Session particularly the login form
*/
.ogrid-login {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.grid-login h2 {
    font-size: 30px;
}

.login-panel {
    max-width: 500px;
    margin: 100px auto;
}


.login-panel span.glyphicon {
    color: #adadad;
    position: absolute;
    left: 0;
    padding: 10px 0 0 27px
}


.login-panel input {
    background: #fafafa;
    border: none;
    padding-left: 40px;
    border: 1px solid #EDEDED;
    margin-bottom: 20px;
}

.login-panel .row {
    margin-top: 10px;
}

.login-panel button {
    font-weight: bold;
    line-height: 24px;
}


.login-panel .alert {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* === src/css/UserAdmin.css === */
#ogrid-manage-users {
    height: 100%;
}

.ogrid-manage-users .bootstrap-table {
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    background-color: #fff;
    height: 100%;
}

#user-edit-modal .modal-dialog {
    margin-top: 80px;
}


.ogrid-manage-users .fixed-table-body {
    overflow-x: hidden;
}


/* === src/css/community-profile.css === */
/* =========================================================================
   Community Trends — community profile page (#ogrid-community-profile).
   A full-content dashboard overlay shown when the "trends" section is active.
   Reuses the redesign.css design tokens (--accent, --ink, --muted, --line).
   ========================================================================= */

#ogrid-community-profile {
  position: fixed;
  left: var(--rail-w); top: 0; right: 0; bottom: 0;
  background: #f5f6f8;
  z-index: 3000;
  overflow-y: auto;
}
#ogrid-community-profile.hide { display: none; }
/* In the trends section the narrow placeholder is suppressed in favor of this page */
#ogrid-container.viewing-section #ogrid-community-profile:not(.hide) ~ #ogrid-section-placeholder {
  display: none !important;
}

.ocp-page { max-width: 1120px; margin: 0 auto; padding: 28px 32px 48px; }

/* --- Header + area picker ------------------------------------------------ */
.ocp-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.ocp-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.ocp-title .fa { color: var(--accent); margin-right: 8px; }
.ocp-area-picker { display: flex; align-items: center; gap: 8px; }
.ocp-area-picker label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ocp-area-select {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
  font-size: 14px; color: var(--ink); background: #fff; min-width: 200px;
}
.ocp-area-select:focus { outline: none; border-color: var(--accent); }

.ocp-empty, .ocp-loading { color: var(--muted); padding: 40px 4px; font-size: 14px; }
.ocp-loading .fa { margin-right: 8px; color: var(--accent); }

.ocp-area-head { margin-bottom: 18px; }
.ocp-area-name { font-size: 26px; font-weight: 800; color: var(--ink); }
.ocp-area-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* --- Summary + area outline --------------------------------------------- */
.ocp-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}
.ocp-summary-card,
.ocp-boundary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.ocp-summary-card {
  border-color: rgba(48, 113, 193, 0.55);
  background: #eaf3ff;
  padding: 16px 18px;
}
.ocp-summary-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.ocp-summary-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ocp-ai-summary {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 820px;
}
.ocp-ai-summary p { margin: 0 0 10px; }
.ocp-ai-summary p:last-child { margin-bottom: 0; }
.ocp-ai-summary .fa { color: var(--accent); margin-right: 8px; }
.ocp-boundary-card {
  min-height: 158px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ocp-boundary-map {
  position: relative;
  width: 100%;
  height: 128px;
  overflow: hidden;
  border: 1px solid rgba(47, 119, 190, 0.22);
  border-radius: 10px;
  background: #e8eef5;
  pointer-events: none;
}
.ocp-boundary-map .leaflet-container {
  background: #e8eef5;
}
.ocp-boundary-map .leaflet-tile-pane {
  filter: saturate(0.9) contrast(0.98);
}
.ocp-boundary-map .leaflet-control-container {
  display: none;
}
.ocp-boundary-label {
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.ocp-boundary-empty {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

/* --- KPI cards ----------------------------------------------------------- */
.ocp-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.ocp-kpi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.ocp-kpi-label {
  font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
}
.ocp-kpi-value { font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.ocp-kpi-context { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===================== Sectioned report (Census-style) ================== */
.ocp-section {
  display: flex; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 18px; overflow: hidden;
}
.ocp-section-rail {
  flex: 0 0 150px; background: #f3f5f7; border-right: 1px solid var(--line);
  padding: 18px 16px;
}
.ocp-section-rail span {
  position: sticky; top: 16px; display: block;
  font-size: 15px; font-weight: 800; color: var(--ink);
}
.ocp-section-content { flex: 1 1 auto; min-width: 0; padding: 4px 22px 14px; }

.ocp-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ocp-group:last-child { border-bottom: 0; }
.ocp-group-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.ocp-group-items { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }

.ocp-item { min-width: 0; }

/* Stat blocks */
.ocp-stat { flex: 0 0 auto; min-width: 150px; padding-top: 2px; }
.ocp-stat-value { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ocp-stat-unit { font-size: 14px; font-weight: 600; color: var(--muted); }
.ocp-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 210px; }

/* Chart blocks */
.ocp-chart { flex: 1 1 300px; max-width: 560px; }
.ocp-item-label { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ocp-canvas-wrap { position: relative; height: 210px; }
.ocp-canvas-wrap canvas { max-width: 100%; }

/* --- Map: clickable community-area name labels --------------------------- */
/* The divIcon root is a 0×0 point at the centroid; the inner text is centered
   on it via transform and is the only clickable target (no polygon). */
.ocp-map-label { background: transparent; border: 0; box-shadow: none; }
.ocp-map-label .ocp-label-text {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
               0 0 5px rgba(255,255,255,0.9);
  cursor: pointer;
  pointer-events: auto;
  transition: font-size .12s ease, color .12s ease;
}
.ocp-map-label .ocp-label-text:hover { color: var(--accent); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 880px) {
  .ocp-overview-row { grid-template-columns: 1fr; }
  .ocp-boundary-card { min-height: 150px; }
  .ocp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ocp-page { padding: 20px 18px 40px; }
  .ocp-section { flex-direction: column; }
  .ocp-section-rail {
    flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px;
  }
  .ocp-section-rail span { position: static; }
  .ocp-chart { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 520px) {
  .ocp-kpi-grid { grid-template-columns: 1fr; }
}


/* === src/css/ogrid-theme-orig.css === */


/* === src/css/ogrid.css === */
/*
 * ogrid.css
 * Root namespace styles
*/

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#ogrid-nav {
  z-index: 3001;
}

#ogrid-search {
  margin-left: -15px;
  min-width: 130px;
}

/* Allow focused form to overflow below the navbar into the map */
.navbar, .navbar-header, .navbar .container-fluid {
  overflow: visible;
}

/* Anchor point for the absolute-positioned focus overlay */
.navbar .container-fluid {
  position: relative;
}

/* On focus — tablet and up: the form breaks out of #ogrid-search and
   spans the full navbar container, dropping below into the map */
@media (min-width: 768px) {
  #ogrid-search:focus-within .navbar-form {
    position: absolute;
    top: 5px;
    left: 15px;
    right: auto;
    width: 80%;
    z-index: 9999;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
  }

  #ogrid-search:focus-within .form-control {
    height: 60px;
    font-size: 18px;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  #ogrid-search:focus-within .input-group-addon {
    height: 60px;
    line-height: 60px;
    border-color: transparent;
    background: transparent;
  }

  #ogrid-search:focus-within #ogrid-qsearch-hint {
    top: 0;
    height: 60px;
    line-height: 60px;
  }
}


#ogrid-search.pull-left.col-xs-7 {
  padding: 0px;
  width: 280px;
}

/* keep at the top, not stack per normal Bootstrap behavior */
@media (min-width: 450px) {
  #ogrid-search {
    width: 280px;
    margin-left: 0px;
  }
}

/* tablet */
@media (min-width: 768px) {
  #ogrid-search {
    width: 600px;
  }
}

/* desktop */
@media (min-width: 992px) {
  #ogrid-search {
    width: 800px;
  }
}

/* iPhone 6 Plus or smaller */
@media (max-width: 450px) {
  #ogrid-search {
    /*width: 277px;*/
    width: calc(100% - 180px);
    margin-left: 0px;
  }
  #ogrid-search.pull-left.col-xs-7 {
    padding: 0px;
    width: calc(100% - 180px);
  }
}


@media (max-width: 840px) {
  #ogrid-menu p {
    margin-right: 5px;
  }
}


/* we need to override z-index of modals (used by bootbox) due to high z-index of the leaflet elements
and consequently our other UX elements */
.modal {
  z-index: 8000;
}

#ogrid-content {
  position: absolute;
  padding-left: 0;
  padding-right: 0;
  top: 50px;
  left: 0;
  bottom: 22px;
  right: 0;
}

/* Flex column that stacks the summary panel above "Search this area".
   pointer-events:none lets map interactions fall through the empty gaps. */
#ogrid-map-overlays {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

#ogrid-search-again {
  display: none;
  pointer-events: auto;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

#ogrid-search-again:hover {
  background: #f5f5f5;
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
  left:0;
  top:0;
  bottom: 50px;

  /*-box-shadow: 0 0 10px rgba(0,0,0,0.5);*/
}

#ogrid-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: 0;

  /* should be on top of Leaflet's attribution text */
  z-index: 3000;
}




.flyover {
  left: 150%;
  overflow: hidden;
  position: fixed;
  width: 50%;
  opacity: 0.9;
  z-index: 1050;
  transition: left 0.6s ease-out 0s;
}

.flyover-centered {
  top: 50%;
  transform: translate(-50%, -50%);
}

.flyover.in {
  left: 50%;
}

.flyover-bottom {
  bottom: 10px;
}

.ogrid-footer-panel-heading {
  padding: 0;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.ogrid-footer-panel-group .ogrid-footer-panel {
  border-radius: 0;
  margin-bottom: 0;
}

h6 > a {
  background-color: #E8E8E8;
  width: 100%;
  display: block;
  padding: 10px 15px;
  outline: none;
}

/*.panel-title a:hover, .panel-title a:focus, .panel-title a:active {
  text-decoration: none;
  outline: none;
}*/

#ogrid-panel-caret {
  margin-top: 2px;
  margin-right: 2px;
  cursor: pointer;
}

.ogrid-task-pane {
  background-color: #E8E8E8;
  position: fixed;
  top: 50px;
  width: 600px;
  height: 100%;
  right: -600px;

  /* should be on top of Leaflet's attribution text and layer control */
  z-index: 2500;
}

.ogrid-task-pane.visible {
  right: 0px;
}

@media (max-width: 600px) {
  .ogrid-task-pane {
    width: 100%;
  }
}



.ogrid-table {
  padding-top: 0px;
  padding-left: 5px;
  padding-right: 5px;
}

/*.dataTables_wrapper {
  min-height: 300px;
}
*/

.ogrid-nav-btn {
  margin-left: 5px;
}

.ogrid-tab-link {
}

.flyover {
  /* bumped up due to leaflet z-index */
  z-index: 5000;
}



.glyphicon-refresh-animate {
  -animation: spin .7s infinite linear;
  -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
  from { -webkit-transform: rotate(0deg);}
  to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
  from { transform: scale(1) rotate(0deg);}
  to { transform: scale(1) rotate(360deg);}
}

#ogrid-busy {
  position: absolute;
  top:calc(50% - 46px/2); /* height divided by 2*/
  left:calc(50% - 130px/2); /* width divided by 2*/
  z-index: 5000;
}

.clickable {
  cursor: pointer;
}

.tab-content {
  /*padding-top: 10px;*/
}

.panel-body {
  margin-right: 10px;
  margin-left: 10px;
}

.form-in-panel {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.spinner {
  width: 100px;
}
.spinner input {
  text-align: right;
}
.input-group-btn-vertical {
  position: relative;
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
  display: table-cell;
}
.input-group-btn-vertical > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  margin-left: -1px;
  position: relative;
  border-radius: 0;
}
.input-group-btn-vertical > .btn:first-child {
  border-top-right-radius: 4px;
}
.input-group-btn-vertical > .btn:last-child {
  margin-top: -2px;
  border-bottom-right-radius: 4px;
}
.input-group-btn-vertical i{
  position: absolute;
  top: 0;
  left: 4px;
}

/* hover causes jitter when advanced search loses focus, do it the normal way */
/*#build-query:hover {*/
#build-query {
  overflow-y: auto;
  overflow-x: hidden;
}


.navbar .navbar-form{
  padding: 0 15px;
  border: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  display: block;
  width: 100%;
}

#qsearch {
  display: table;
  width: 100%;
}

#ogrid-footer td, th {
  /*white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;*/
}

/* For Bootstrap responsive table to work in Firefox */
@-moz-document url-prefix() {
  fieldset { display: table-cell; }
}

.nav-tabs > li .close {
  margin: -2px 0 0 10px;
  font-size: 18px;
}

#tableview .panel-body {
  margin-left: 0;
  margin-right: 0;
  padding: 5px;
}

#tableview .nav >li > a {
  padding: 8px 8px
}

.table-striped tbody tr.highlight td {
  background-color: #deebf7;
}

#tableview tbody tr.new-data-highlight td {
  background-color: #d9f0a3;
}

#qsearch-input {
  padding-right: 25px;
}

/* Summarize button — shown only when results are on the map.
   No top padding: Bootstrap's navbar-btn class on the <a> already
   applies margin-top:8px to vertically center within the navbar. */
#ogrid-summarize-wrapper {
  padding-left: 8px;
}

/* Summary panel — flex child of #ogrid-map-overlays, centered with 20% side margins.
   position:relative anchors the absolutely-positioned close button to this box. */
#ogrid-summary-panel {
  width: 60%;
  position: relative;
  pointer-events: auto;
  background: #fff;
  border: 2px solid #2e76c4;
  border-radius: 12px;
  padding: 12px 36px 12px 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

#ogrid-summary-panel .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  color: #555;
  opacity: 0.7;
}

#ogrid-summary-panel .close:hover {
  opacity: 1;
}

.ogrid-summary-header {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #2e76c4;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .ogrid-summary-header { font-size: 12px; }
}

@media (max-width: 767px) {
  .ogrid-summary-header { font-size: 11px; letter-spacing: 0.8px; }
}

.ogrid-summary-header .fa {
  margin-right: 4px;
}

#ogrid-summary-text {
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
}

#ogrid-summary-text mark {
  background: rgba(255, 215, 0, 0.55);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 600;
}

#ogrid-summary-text .ogrid-summary-loading {
  color: #888;
  font-style: italic;
}

#qsearch-placeholder {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  right: 74px;
  display: flex;
  align-items: center;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 4;
  user-select: none;
}


#ogrid-qsearch-hint {
  right: 34px;
  cursor: pointer;
  color: #ccc;
  position: absolute;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  z-index: 5;
}

#ogrid-qsearch-hint:focus {
  outline: none;
}

#qsearch .popover {
  width: 500px;
}

.popover {
  width: 500px;
}

.popover-content {
  padding: 10px;
  width: 272px;
  overflow-y: auto;
  height: 600px;
}

#ogrid-adv-content .panel-heading {
  cursor: pointer;
}

/* mobile styles for quick search hint */
@media (max-width: 480px) {
  /*#qsearch .popover {*/
  .popover {
    width: 230px;
  }
}


.small-screen-menuitem {
  display: block;
  clear: both;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  background-color: transparent;
  box-sizing: border-box;
  color: #777;
  line-height: 25px;
  padding: 5px 15px 5px 25px;
  cursor: auto;
  text-align: -webkit-match-parent;
  list-style: none;
  font-size: 14px;
  border: none;
  padding-left: 15px;
}

.leaflet-control-layers-list label {
  font-weight: normal;
}

/* make heatmap appear on top of dots, just like in leaflet 0.7.3; this changed in leaflet 1.0.1 */
.leaflet-map-pane canvas {
  z-index: 250;
}

/* override some Leaflet styles */

/* For hi res screens, use 2x */
@media only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
  .glyphicon-question-sign {
    font-size: 18px;
  }
  .fa-home, .fa-dot-circle-o {
    font-size: 20px;
    margin-left: -5px;
  }

  .leaflet-control-locate a {
    background-position: -2px -1px;
  }

  .leaflet-control-fullscreen a {
    background-position: 2px 1px;
  }
}

@media (max-width: 450px), (max-height: 450px) {
  /* hide the zoom box control on smaller devices, not needed */
  .leaflet-zoom-box-control {
    display: none;
  }
  .leaflet-control-fullscreen  {
    display: none;
  }
}

/* make Columns menu always left aligned to prevent going over the left edge on mobile */
/* override table view */
.bootstrap-table .fixed-table-toolbar .columns div[title='Columns'] .dropdown-menu {
  left: 0px;
  right: auto;
}

/*widen heatmap dropdown menu to avoid wrapping of text */
.bootstrap-table .fixed-table-toolbar .columns div[title='Heat Map'] .dropdown-menu {
  width: 165px;
}
.map-info {
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}
.map-info h4 {
  margin: 0 0 5px;
  color: #777;
}

.legend {
  text-align: left;
  line-height: 18px;
  color: #555;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

.legend .ogrid-legend-circle {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin-top: 4px;
}

.ogrid-logo-small {
  width: 32px;
  height: 32px;
  /*padding-top: 9px;*/
  margin-top: 10px;
  margin-left: 10px;
}

.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === src/css/open-sans.css === */
/* BEGIN Light */
@font-face {
  font-family: 'Open Sans';
  src: url("../fonts/opensans/FontFaceKit/Light/OpenSans-Light.eot?v=1.1.0");
  src: url("../fonts/opensans/FontFaceKit/Light/OpenSans-Light.eot?#iefix&v=1.1.0") format("embedded-opentype"), url("../fonts/opensans/FontFaceKit/Light/OpenSans-Light.woff2?v=1.1.0") format("woff2"), url("../fonts/opensans/FontFaceKit/Light/OpenSans-Light.woff?v=1.1.0") format("woff"), url("../fonts/opensans/FontFaceKit/Light/OpenSans-Light.ttf?v=1.1.0") format("truetype"), url("../fonts/opensans/FontFaceKit/Light/OpenSans-Light.svg?v=1.1.0#Light") format("svg");
  font-weight: 300;
  font-style: normal; }
/* END Light */
/* BEGIN Regular */
@font-face {
  font-family: 'Open Sans';
  src: url("../fonts/opensans/FontFaceKit/Regular/OpenSans-Regular.eot?v=1.1.0");
  src: url("../fonts/opensans/FontFaceKit/Regular/OpenSans-Regular.eot?#iefix&v=1.1.0") format("embedded-opentype"), url("../fonts/opensans/FontFaceKit/Regular/OpenSans-Regular.woff2?v=1.1.0") format("woff2"), url("../fonts/opensans/FontFaceKit/Regular/OpenSans-Regular.woff?v=1.1.0") format("woff"), url("../fonts/opensans/FontFaceKit/Regular/OpenSans-Regular.ttf?v=1.1.0") format("truetype"), url("../fonts/opensans/FontFaceKit/Regular/OpenSans-Regular.svg?v=1.1.0#Regular") format("svg");
  font-weight: normal;
  font-style: normal; }
/* END Regular */
/* BEGIN Semibold */
@font-face {
  font-family: 'Open Sans';
  src: url("../fonts/opensans/FontFaceKit/Semibold/OpenSans-Semibold.eot?v=1.1.0");
  src: url("../fonts/opensans/FontFaceKit/Semibold/OpenSans-Semibold.eot?#iefix&v=1.1.0") format("embedded-opentype"), url("../fonts/opensans/FontFaceKit/Semibold/OpenSans-Semibold.woff2?v=1.1.0") format("woff2"), url("../fonts/opensans/FontFaceKit/Semibold/OpenSans-Semibold.woff?v=1.1.0") format("woff"), url("../fonts/opensans/FontFaceKit/Semibold/OpenSans-Semibold.ttf?v=1.1.0") format("truetype"), url("../fonts/opensans/FontFaceKit/Semibold/OpenSans-Semibold.svg?v=1.1.0#Semibold") format("svg");
  font-weight: 600;
  font-style: normal; }
/* END Semibold */
/* BEGIN Bold */
@font-face {
  font-family: 'Open Sans';
  src: url("../fonts/opensans/FontFaceKit/Bold/OpenSans-Bold.eot?v=1.1.0");
  src: url("../fonts/opensans/FontFaceKit/Bold/OpenSans-Bold.eot?#iefix&v=1.1.0") format("embedded-opentype"), url("../fonts/opensans/FontFaceKit/Bold/OpenSans-Bold.woff2?v=1.1.0") format("woff2"), url("../fonts/opensans/FontFaceKit/Bold/OpenSans-Bold.woff?v=1.1.0") format("woff"), url("../fonts/opensans/FontFaceKit/Bold/OpenSans-Bold.ttf?v=1.1.0") format("truetype"), url("../fonts/opensans/FontFaceKit/Bold/OpenSans-Bold.svg?v=1.1.0#Bold") format("svg");
  font-weight: bold;
  font-style: normal; }
/* END Bold */


/* === src/css/redesign.css === */
/* =========================================================================
   OpenGrid redesign — icon-rail sidebar, floating search, left results panel.
   Loaded after ogrid.css (overrides legacy navbar/footer layout).
   ========================================================================= */

:root {
  --rail-w: 72px;
  --panel-w: 380px;
  --accent: #1565C0;
  --accent-soft: #E3F0FB;
  --ink: #2c3e50;
  --muted: #6b7785;
  --line: #e4e8ee;
}

/* --- Hide legacy chrome (kept in DOM for JS references) ------------------ */
#ogrid-nav { display: none !important; }
#ogrid-footer { display: none !important; }

/* Map fills the whole content area; rail + panel float over it */
#ogrid-content { top: 0 !important; bottom: 0 !important; }

/* Keep Leaflet's top-left controls clear of the rail */
.leaflet-top.leaflet-left { margin-left: var(--rail-w); transition: margin-left .2s ease; }

/* Drop the plain-language summary below the floating search box.
   Children stack in a column (summary first, then "Search this area"). */
#ogrid-map-overlays { top: 88px !important; }

/* Utility control bar — zoom-to-area, zoom-to-results, fullscreen — laid out
   horizontally just to the LEFT of the lower-right measurement tool. 25px icons. */
.ogrid-util-bar {
  position: absolute; right: 46px; bottom: 10px;
  display: flex; flex-direction: row; align-items: flex-end; gap: 6px;
}
.ogrid-util-bar .leaflet-bar { margin: 0 !important; }
.ogrid-util-bar a,
.ogrid-util-bar button {
  width: 25px !important; height: 25px !important; line-height: 25px !important;
}
.ogrid-util-bar .fa { font-size: 14px; line-height: 25px; }
/* Replace the fullscreen sprite (doesn't scale cleanly to 25px) with an FA glyph */
.ogrid-util-bar .leaflet-control-fullscreen-button { background-image: none !important; }
.ogrid-util-bar .leaflet-control-fullscreen-button::before {
  font-family: FontAwesome; content: "\f065"; /* fa-expand */
  display: block; text-align: center; line-height: 25px; font-size: 14px; color: #333;
}
.leaflet-fullscreen-on .ogrid-util-bar .leaflet-control-fullscreen-button::before {
  content: "\f066"; /* fa-compress */
}

/* Keep the map legend clear of the bottom-right control stack
   (locate / zoom / measure) by floating it above them. */
.leaflet-bottom.leaflet-right .map-info.legend {
  position: absolute; right: 10px; bottom: 150px; margin: 0;
}

/* ========================== Icon-rail sidebar =========================== */
#ogrid-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail-w);
  background: #fff; border-right: 1px solid var(--line);
  box-shadow: 2px 0 12px rgba(0,0,0,0.05);
  z-index: 4000; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
#ogrid-hamburger {
  border: 0; background: transparent; color: var(--ink);
  height: 56px; font-size: 20px; cursor: pointer; width: 100%;
}
#ogrid-hamburger:hover { color: var(--accent); }
#ogrid-sidebar .ogrid-nav-items { list-style: none; margin: 8px 0 0; padding: 0; }
#ogrid-sidebar .ogrid-nav-item a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 14px 4px; color: var(--muted); text-decoration: none;
  font-size: 9px; line-height: 1.15; text-align: center;
}
#ogrid-sidebar .ogrid-nav-item a .fa { font-size: 18px; }
#ogrid-sidebar .ogrid-nav-item a:hover { color: var(--accent); }
#ogrid-sidebar .ogrid-nav-item.active a { color: var(--accent); }
#ogrid-sidebar .ogrid-nav-item.active a .fa {
  background: var(--accent-soft); border-radius: 10px; padding: 8px 14px;
}
/* Collapsed (default): icons only, no labels */
#ogrid-sidebar .ogrid-nav-item a span { display: none; }

/* Expanded: wider rail with text labels beside the icons */
#ogrid-sidebar.expanded { width: 220px; }
#ogrid-sidebar.expanded #ogrid-hamburger {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 18px; text-align: left;
}
#ogrid-sidebar.expanded #ogrid-hamburger .fa {
  width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center;
}
#ogrid-sidebar.expanded .ogrid-nav-item a {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 10px 18px; font-size: 13px; text-align: left;
}
#ogrid-sidebar.expanded .ogrid-nav-item a .fa {
  flex: 0 0 36px; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
#ogrid-sidebar.expanded .ogrid-nav-item.active a .fa {
  padding: 0;
}
#ogrid-sidebar.expanded .ogrid-nav-item a span {
  display: inline; flex: 1 1 auto; min-width: 0;
  text-align: left; line-height: 1.2;
}

/* ========================== Floating search ============================= */
#ogrid-search-float {
  position: fixed; top: 16px; left: calc(var(--rail-w) + 16px);
  max-width: calc(100% - var(--rail-w) - 32px);
  z-index: 3500; transition: left .25s ease;
  display: flex; align-items: center; gap: 10px;
}
#ogrid-container.viewing-community-trends #ogrid-search-float,
#ogrid-container.viewing-announcements #ogrid-search-float { display: none; }
/* Search has its own fixed width so the Summarize morph never resizes it */
#ogrid-search-float #ogrid-search {
  flex: 0 0 auto; width: 520px !important; margin: 0 !important; min-width: 0;
  align-self: flex-start;   /* stay at the top so the summary box never pushes it down */
}
#ogrid-search-float .ogrid-search-form { margin: 0; }
#ogrid-search-float #qsearch {
  position: relative;
  width: 100%; background: #fff; border-radius: 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18); padding: 2px 6px;
  display: flex; align-items: center;
}

/* --- Summarize: morphs from a button into the plain-language summary box --- */
/* Dataset chiclets — shown next to the search box when the map has no data.
   Styled to match the filter chiclets (.ogrid-chiclet > button). */
#ogrid-dataset-chiclets { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
#ogrid-dataset-chiclets.hide { display: none; }
/* shared shape */
.ogrid-ds-chiclet,
#ogrid-summarize-wrapper .ogrid-summarize-btn {
  border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
/* dataset chiclets: white background, black text */
.ogrid-ds-chiclet {
  background: #fff; color: #222; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: border-color .15s ease, background .15s ease;
}
.ogrid-ds-chiclet:hover { border-color: var(--accent); background: #f4f8fc; }
/* summarize: deeper blue background, white text */
#ogrid-summarize-wrapper .ogrid-summarize-btn {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
#ogrid-summarize-wrapper .ogrid-summarize-btn:hover { background: #0f4c9a; border-color: #0f4c9a; }

#ogrid-summarize-wrapper {
  flex: 0 0 auto; align-self: center;
  background: transparent; border: 0; border-radius: 18px;
  overflow: hidden; max-width: 170px; max-height: 48px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: max-width .25s ease, max-height .3s ease, background .2s ease, border-color .2s ease;
}
#ogrid-summarize-wrapper.hide { display: none; }
#ogrid-summarize-wrapper .ogrid-summarize-btn { box-shadow: none; }
#ogrid-summarize-wrapper #ogrid-summary-inline { display: none; }

/* expanded state — grown into the summary box */
#ogrid-summarize-wrapper.expanded {
  align-self: flex-start;   /* grow downward when morphed into the summary box */
  width: 640px; max-width: calc(100vw - var(--rail-w) - 48px); max-height: 42vh;
  background: #fff; border: 2px solid var(--accent); border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.22);
}
#ogrid-summarize-wrapper.expanded .ogrid-summarize-btn { display: none; }
#ogrid-summarize-wrapper.expanded #ogrid-summary-inline {
  display: block; position: relative; padding: 12px 34px 12px 14px;
  max-height: 60vh; overflow-y: auto;
}
#ogrid-summary-inline .close { position: absolute; top: 6px; right: 10px; }
#ogrid-search-float #qsearch-input {
  border: 0; box-shadow: none; background: transparent;
  height: 48px; font-size: 16px; border-radius: 28px; flex: 1 1 auto;
}
#ogrid-search-float #qsearch-input:focus { outline: none; box-shadow: none; }
#ogrid-search-float .input-group-addon {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
#ogrid-search-float #qsearch-placeholder {
  position: absolute; left: 22px; right: 56px; top: 50%; transform: translateY(-50%);
  color: #9aa3ad; font-size: 16px; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .5s ease;
}
/* Subtle focus emphasis only — the search box keeps a fixed size */
#ogrid-search:focus-within #qsearch { box-shadow: 0 10px 36px rgba(0,0,0,0.22); }

/* ============================ Sign in ================================== */
.ogrid-signin-btn {
  position: fixed; top: 18px; right: 18px; z-index: 3500;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-weight: 600; color: var(--ink); cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.ogrid-signin-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ========================= Results panel =============================== */
#ogrid-results-panel, #ogrid-section-placeholder {
  position: fixed; left: calc(var(--rail-w) + 16px); top: 84px; bottom: 24px; width: var(--panel-w);
  background: #fff; border-radius: 14px; box-shadow: 0 6px 26px rgba(0,0,0,0.16);
  z-index: 3000; display: flex; flex-direction: column; overflow: hidden;
}
#ogrid-results-panel.hide, #ogrid-section-placeholder.hide { display: none; }
/* When viewing a non-Search section, the results panel is suppressed */
#ogrid-container.viewing-section #ogrid-results-panel { display: none !important; }

/* Station detail mode — persistent-station content; no search chrome/filters */
#ogrid-results-panel.station-mode #ogrid-filter-bar,
#ogrid-results-panel.station-mode #ogrid-sort-wrapper,
#ogrid-results-panel.station-mode #ogrid-trend-card { display: none !important; }
.ogrid-station-detail { font-size: 13px; line-height: 1.6; color: var(--ink); }
.ogrid-station-detail img,
.ogrid-station-detail video,
.ogrid-station-detail iframe { width: 100%; display: block; border-radius: 6px; margin-bottom: 10px; }
/* Beach weather: most recent reading emphasized, history table below */
.ogrid-station-detail .bw-history { margin-top: 14px; }
.ogrid-station-detail .bw-history-title {
  font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 6px;
}
.ogrid-station-detail .bw-history table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ogrid-station-detail .bw-history th {
  text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px;
  border-bottom: 1px solid var(--line);
}
.ogrid-station-detail .bw-history td { padding: 4px 6px; border-bottom: 1px solid var(--line); }

/* Collapse / reopen the results panel */
#ogrid-results-collapse {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 16px; padding: 2px 6px;
}
#ogrid-results-collapse:hover { color: var(--accent); }
#ogrid-results-reopen {
  display: none; position: fixed; left: calc(var(--rail-w) + 12px); top: 88px;
  z-index: 3000; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-weight: 600; color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
#ogrid-results-reopen:hover { border-color: var(--accent); color: var(--accent); }
#ogrid-container.results-collapsed #ogrid-results-panel { display: none !important; }
#ogrid-container.results-collapsed #ogrid-results-reopen { display: inline-flex; align-items: center; gap: 6px; }
/* In a non-Search section the reopen affordance is irrelevant */
#ogrid-container.viewing-section #ogrid-results-reopen { display: none !important; }

#ogrid-results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; flex: 0 0 auto;
}
#ogrid-results-count { font-size: 15px; color: var(--ink); }
#ogrid-results-count b { font-size: 20px; }
#ogrid-results-tools { display: flex; align-items: center; gap: 8px; }

.ogrid-summarize-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  border-radius: 8px; padding: 6px 12px; font-size: 13px; text-decoration: none;
}
.ogrid-summarize-btn:hover { background: #0f4c9a; }

#ogrid-sort-wrapper select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  font-size: 13px; color: var(--ink); background: #fff;
}

/* Trend placeholder card */
#ogrid-trend-card { padding: 0 16px 6px; flex: 0 0 auto; }
#ogrid-trend-card .ogrid-trend {
  border: 1px solid var(--accent); background: var(--accent-soft);
  border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 16px;
}
#ogrid-trend-card .ogrid-trend .big { font-size: 26px; font-weight: 700; color: var(--accent); }
#ogrid-trend-card .ogrid-trend .lbl { font-size: 11px; color: var(--muted); }
#ogrid-trend-card .ogrid-trend .delta { font-size: 18px; font-weight: 600; color: #9aa3ad; }

/* Filter chiclet bar */
#ogrid-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px;
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.ogrid-chiclet { position: relative; }
.ogrid-chiclet > button {
  background: var(--accent-soft); border: 1px solid #cfe2f5; color: var(--accent);
  border-radius: 18px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.ogrid-chiclet > button .caret { margin-left: 2px; }
.ogrid-chiclet-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 10;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16); min-width: 180px; max-height: 280px;
  overflow-y: auto; padding: 4px; display: none;
}
.ogrid-chiclet.open .ogrid-chiclet-menu { display: block; }
.ogrid-chiclet-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 7px 10px; font-size: 13px; color: var(--ink); border-radius: 6px; cursor: pointer;
}
.ogrid-chiclet-menu button:hover { background: var(--accent-soft); }
.ogrid-chiclet-menu button.selected { color: var(--accent); font-weight: 600; }

/* Results list (scrollable) */
#ogrid-results-list { flex: 1 1 auto; overflow-y: auto; padding: 10px 16px 16px; }
.ogrid-result-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 10px; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease;
  border-left-width: 4px;
}
.ogrid-result-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); border-color: #cfd6df; }
.ogrid-result-card .rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ogrid-result-card .rc-top-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ogrid-result-card .rc-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.ogrid-result-card .rc-pill {
  font-size: 11px; border-radius: 12px; padding: 2px 9px; white-space: nowrap;
  border: 1px solid var(--accent); color: var(--accent);
}
.ogrid-result-card .rc-sub { color: var(--muted); font-size: 12px; margin-top: 6px; }

.ogrid-result-card.ogrid-divvy-result-card .rc-top {
  display: block;
}

.ogrid-result-card.ogrid-divvy-result-card .rc-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ogrid-divvy-pill-row {
  margin-top: 7px;
  max-width: 100%;
}

.ogrid-result-card.ogrid-divvy-result-card .ogrid-divvy-pill {
  box-sizing: border-box;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  max-width: min(220px, 100%);
  white-space: normal;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ogrid-openair-marker {
  background: transparent;
  border: none;
}

.ogrid-openair-icon-wrap {
  width: 20px;
  height: 20px;
  background: #22c55e;
  border: 2px solid #ecf0f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.ogrid-openair-icon-wrap .fa {
  color: #ecf0f1;
  font-size: 10px;
  line-height: 1;
}

.ogrid-openair-icon-wrap .fa-smog:before {
  content: "\f0c2";
}

.ogrid-result-card.ogrid-openair-result-card {
  cursor: default;
}

.ogrid-result-card.ogrid-openair-result-card .rc-pill {
  flex: 0 0 auto;
}

.oa-chart-wrap {
  height: 76px;
  margin-top: 10px;
}

.oa-chart-empty {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.oa-trend-label {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.oa-metrics {
  margin-top: 10px;
}

.oa-metric-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid #edf0f4;
}

.oa-metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.oa-metric-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Expand/collapse details */
.ogrid-result-card .rc-toggle {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 0 2px; font-size: 13px; line-height: 1; transition: transform .15s ease;
}
.ogrid-result-card.expanded .rc-toggle { transform: rotate(180deg); color: var(--accent); }
.ogrid-result-card .rc-details { display: none; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ogrid-result-card.expanded .rc-details { display: block; }
/* brief highlight when selected from a map point click */
.ogrid-result-card.rc-flash { animation: ogrid-rc-flash 1.4s ease; }
@keyframes ogrid-rc-flash {
  0% { background: var(--accent-soft); border-color: var(--accent); }
  100% { background: #fff; }
}
.ogrid-result-card .rc-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 12px;
}
.ogrid-result-card .rc-row .rc-k { color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.ogrid-result-card .rc-row .rc-v { color: var(--ink); text-align: right; word-break: break-word; }
.ogrid-empty { color: var(--muted); text-align: center; padding: 30px 10px; }

/* Street View images inside Leaflet popups */
.ogrid-streetview-leaflet-popup .leaflet-popup-content {
  margin: 12px;
  width: 320px !important;
}
.ogrid-streetview-popup {
  color: var(--ink);
  line-height: 1.35;
}
.ogrid-streetview-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ogrid-streetview {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f6;
  border: 1px solid #d7dee8;
}
.ogrid-streetview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ogrid-streetview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.ogrid-streetview-popup .ogrid-popup-fields {
  margin-top: 10px;
}

/* Section placeholder (Place Profile / Trends / Announcements) */
#ogrid-section-placeholder {
  align-items: center; justify-content: center; text-align: center; padding: 30px;
}
#ogrid-section-placeholder .ph-icon { font-size: 40px; color: var(--accent); margin-bottom: 14px; }
#ogrid-section-placeholder .ph-title { font-size: 18px; font-weight: 700; color: var(--ink); }
#ogrid-section-placeholder .ph-sub { color: var(--muted); margin-top: 8px; }

/* ======================= Announcements & Events page ===================== */
#ogrid-announcements-page {
  position: fixed; inset: 0 0 0 var(--rail-w);
  z-index: 2600; background: #fbfaf7; overflow: auto;
}
#ogrid-announcements-page.hide { display: none; }
.oae-page { min-height: 100%; color: #2b2b2b; }
.oae-header {
  height: 64px; padding: 0 24px; border-bottom: 1px solid #e7e2da;
  display: grid; grid-template-columns: auto 1fr minmax(280px, 420px);
  align-items: center; gap: 18px; background: #fffdf9;
}
.oae-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #202020; }
.oae-brand .fa { font-size: 18px; }
.oae-header h1 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 800; color: #252525; }
.oae-filter-wrap {
  height: 40px; border: 2px solid #303030; border-radius: 22px; background: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.oae-filter-wrap .fa { color: #7a7a7a; }
.oae-filter-wrap input { border: 0; outline: 0; flex: 1 1 auto; font-size: 14px; background: transparent; }
.oae-toolbar {
  min-height: 58px; padding: 12px 24px; border-bottom: 1px solid #e7e2da;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fbfaf7;
}
.oae-tabs { display: flex; gap: 8px; }
.oae-tabs button,
.oae-controls button {
  border: 2px solid #3a3a3a; border-radius: 18px; background: #fff; color: #2d2d2d;
  height: 32px; padding: 0 14px; font-size: 12px; font-weight: 800;
}
.oae-tabs button.active { color: #2d6fc2; border-color: #7fb2ef; background: #eef6ff; }
.oae-controls { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oae-controls input {
  height: 32px; border: 1px solid #cfc8bd; border-radius: 16px; background: #fff;
  padding: 0 10px; font-size: 12px; min-width: 128px;
}
#oae-clear { width: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
#oae-count { font-size: 12px; font-weight: 800; color: #6f675e; min-width: 70px; text-align: right; }
.oae-feed {
  padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px; align-items: start;
}
.oae-card {
  min-height: 150px; border: 2px solid #303030; border-radius: 8px; background: #fff;
  padding: 14px; box-shadow: 0 1px 0 rgba(0,0,0,0.04); cursor: pointer;
}
.oae-card.focused { border-color: #2d6fc2; box-shadow: 0 0 0 3px rgba(45,111,194,.16); }
.oae-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oae-badge {
  border: 1px solid #ed9b6c; color: #d56a2b; background: #fff7f1; border-radius: 12px;
  padding: 2px 10px; font-size: 10px; line-height: 1.3; font-weight: 900; text-transform: uppercase;
}
/* Source-colored badges (sports teams, Navy Pier, Park District) — border/text
   color is set inline per source; keep a clean white base here. */
.oae-badge.oae-badge-colored {
  border-color: #5a6470; color: #2c3e50; background: #fff;
}
.oae-card time { color: #7c756f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.oae-card h3 { margin: 10px 0 6px; font-size: 16px; line-height: 1.25; font-weight: 800; }
.oae-card h3 a { color: #2c2c2c; text-decoration: none; }
.oae-card h3 a:hover { color: #2d6fc2; }
.oae-meta { color: #6f675e; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.oae-card p {
  margin: 0 0 12px; color: #49443e; font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.oae-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.oae-chips { display: flex; gap: 7px; flex-wrap: wrap; min-width: 0; }
.oae-chip {
  border: 1px solid #8b867f; border-radius: 13px; padding: 2px 9px; color: #34312d;
  background: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px;
  max-width: 220px;
}
.oae-chip .fa { color: #2d6fc2; font-size: 10px; }
.oae-card-link { color: #2d6fc2; font-size: 12px; font-weight: 800; white-space: nowrap; }
.oae-empty {
  grid-column: 1 / -1; padding: 40px; border: 1px solid #e3ded6; border-radius: 8px;
  background: #fff; color: #6f675e; text-align: center; font-weight: 700;
}
.oae-detail-page { background: #fbfaf7; }
.oae-detail-header {
  min-height: 102px; padding: 16px 24px; border-bottom: 1px solid #e7e2da; background: #fffdf9;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
}
.oae-detail-title-wrap { min-width: 0; }
.oae-detail-kicker { display: flex; align-items: center; gap: 10px; color: #7c756f; font-size: 12px; font-weight: 800; }
.oae-detail-header h1 {
  margin: 10px 0 0; color: #2b2b2b; font-size: 28px; line-height: 1.12; font-weight: 900;
  overflow-wrap: anywhere;
}
.oae-detail-actions { display: flex; align-items: center; gap: 10px; }
.oae-ghost-button,
.oae-primary-button {
  height: 36px; border-radius: 8px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; font-size: 13px; font-weight: 900; text-decoration: none; white-space: nowrap;
}
.oae-ghost-button { border: 2px solid #303030; background: #fff; color: #2b2b2b; }
.oae-primary-button { border: 2px solid #2d6fc2; background: #2d6fc2; color: #fff; }
.oae-detail-layout {
  min-height: calc(100vh - 102px); display: grid; grid-template-columns: minmax(0, 1fr) 340px;
}
.oae-detail-main { padding: 24px; border-right: 1px solid #e7e2da; }
.oae-detail-side { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.oae-affects-label,
.oae-source-label {
  color: #8a5a35; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}
.oae-affects { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.oae-affect-chip {
  min-height: 32px; border: 1px solid #8b867f; border-radius: 8px; background: #fff; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 7px; color: #2c2c2c; font-size: 12px; font-weight: 900;
}
.oae-affect-chip em {
  color: #2d6fc2; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}
.oae-detail-card,
.oae-source-card,
.oae-location-card {
  border: 2px solid #303030; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.oae-detail-card { padding: 16px; max-width: 900px; }
.oae-detail-card h2,
.oae-source-card h2 {
  margin: 0; color: #2c2c2c; font-size: 16px; line-height: 1.25; font-weight: 900;
}
.oae-detail-card p { margin: 10px 0 16px; color: #49443e; font-size: 14px; line-height: 1.55; }
.oae-detail-rows { border-top: 1px solid #e7e2da; }
.oae-detail-row {
  min-height: 38px; border-bottom: 1px solid #eee9e2; display: grid; grid-template-columns: 130px minmax(0, 1fr);
  align-items: center; gap: 12px; color: #3a352f; font-size: 13px;
}
.oae-detail-row span { color: #7c756f; font-weight: 800; }
.oae-detail-row strong { font-weight: 800; overflow-wrap: anywhere; }
.oae-location-card { position: relative; height: 172px; overflow: hidden; }
#oae-detail-map { width: 100%; height: 100%; background: #ece9e1; }
.oae-location-card > span {
  position: absolute; left: 12px; bottom: 10px; z-index: 500; border-radius: 4px; background: rgba(255,255,255,.86);
  padding: 3px 8px; color: #8a847c; font-size: 11px; font-weight: 900;
}
.oae-map-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #7c756f; font-size: 12px; font-weight: 800;
}
.oae-source-card { border-color: #d4662f; padding: 14px; }
.oae-source-card h2 { margin-top: 8px; }
.oae-source-muted {
  margin: 8px 0 12px; color: #6f675e; font-size: 12px; font-weight: 800; overflow-wrap: anywhere;
}
.oae-source-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.oae-source-tags span {
  border: 1px solid #8b867f; border-radius: 12px; padding: 2px 9px; color: #34312d; background: #fff;
  font-size: 10px; font-weight: 900;
}
.oae-source-link {
  min-height: 32px; border: 2px solid #303030; border-radius: 7px; color: #2b2b2b; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 900;
}
.oae-detail-empty {
  margin: 24px; padding: 40px; border: 1px solid #e3ded6; border-radius: 8px; background: #fff;
  color: #6f675e; text-align: center; font-weight: 800;
}

.ogrid-library-events-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.ogrid-library-events-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.ogrid-library-event-link {
  display: block; padding: 7px 0; border-bottom: 1px solid #f1f5f9; color: #1f4f8f;
  font-size: 12px; line-height: 1.35; text-decoration: none;
}
.ogrid-library-event-link:hover { color: #2d6fc2; text-decoration: none; }
.ogrid-library-event-link span { display: block; color: #64748b; font-size: 11px; margin-top: 2px; }
.ogrid-library-events-all { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: #2d6fc2; }

/* ============================ Responsive =============================== */
@media (max-width: 991px) {
  :root { --rail-w: 56px; --panel-w: 320px; }
  #ogrid-search-float #ogrid-search { width: 420px !important; }
  .oae-feed { grid-template-columns: 1fr; }
  .oae-header { grid-template-columns: auto 1fr; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .oae-filter-wrap { grid-column: 1 / -1; }
  .oae-detail-header { grid-template-columns: 1fr; align-items: start; }
  .oae-detail-actions { justify-content: flex-start; flex-wrap: wrap; }
  .oae-detail-layout { grid-template-columns: 1fr; }
  .oae-detail-main { border-right: 0; border-bottom: 1px solid #e7e2da; }
  .oae-detail-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --rail-w: 48px; }
  #ogrid-results-panel, #ogrid-section-placeholder {
    left: var(--rail-w); right: 0; width: auto; top: 76px; bottom: 0; border-radius: 0;
  }
  #ogrid-search-float {
    left: calc(var(--rail-w) + 8px); right: 8px; width: auto; max-width: none;
  }
  #ogrid-search-float #ogrid-search { flex: 1 1 auto; width: auto !important; }
  .ogrid-signin-btn { padding: 8px 12px; font-size: 13px; }
  #ogrid-announcements-page { left: var(--rail-w); }
  .oae-header, .oae-toolbar, .oae-feed { padding-left: 14px; padding-right: 14px; }
  .oae-controls { width: 100%; margin-left: 0; }
  .oae-controls input { flex: 1 1 140px; }
  #oae-count { text-align: left; }
  .oae-detail-header, .oae-detail-main, .oae-detail-side { padding-left: 14px; padding-right: 14px; }
  .oae-detail-header h1 { font-size: 23px; }
  .oae-detail-side { display: flex; }
  .oae-detail-row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; align-items: start; }
}

