/* ==========================================================
   hub.css
   Styles for the high school hub / index page.
   All rules scoped to .hub-wrap to avoid collisions with
   sitewide Foundation / app.css styles.
   ========================================================== */

.hub-wrap *, .hub-wrap *::before, .hub-wrap *::after { box-sizing: border-box; }

.hub-wrap {
  --hub-blue:        #1D6DB5;
  --hub-blue-light:  #EBF3FB;
  --hub-blue-mid:    #C4DCF4;
  --hub-green:       #1F7A52;
  --hub-green-light: #E8F6EF;
  --hub-green-border:rgba(31,122,82,0.2);
  --hub-amber:       #B86B0A;
  --hub-amber-light: #FEF3E2;
  --hub-gray-50:     #F8F8F7;
  --hub-gray-100:    #F0EFEC;
  --hub-gray-400:    #A8A69F;
  --hub-text:        #1E1D1A;
  --hub-muted:       #6B6962;
  --hub-border:      rgba(0,0,0,0.10);
  --hub-border-md:   rgba(0,0,0,0.16);
  --hub-radius-sm:   6px;
  --hub-radius-md:   10px;
  --hub-radius-lg:   14px;
  font-family: inherit;
  color: var(--hub-text);
  line-height: 1.6;
  padding-bottom: 60px;
}

/* TOOLBAR */
.hub-toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 20px 0 6px; }
.hub-field { display: flex; flex-direction: column; gap: 4px; }
.hub-field-search { flex: 1; min-width: 200px; }
.hub-field-city { min-width: 160px; }
.hub-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hub-muted); }
.hub-input, .hub-select { border: 1px solid var(--hub-border-md); border-radius: var(--hub-radius-sm); padding: 8px 12px; font-size: 14px; color: var(--hub-text); background: #fff; width: 100%; height: 38px; }
.hub-input:focus, .hub-select:focus { outline: none; border-color: var(--hub-blue); }

/* PRODUCT FILTER */
.hub-product-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.hub-product-btn { background: #fff; border: 1px solid var(--hub-border-md); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--hub-muted); cursor: pointer; transition: all 0.12s; }
.hub-product-btn:hover { border-color: var(--hub-blue); color: var(--hub-blue); }
.hub-product-btn.hub-product-active { background: var(--hub-blue); border-color: var(--hub-blue); color: #fff; }
.hub-product-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hub-muted); align-self: center; margin-right: 2px; }

/* SORT + SUMMARY ROW */
.hub-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; font-size: 13px; color: var(--hub-muted); }
.hub-sort-group { display: flex; align-items: center; gap: 8px; }
.hub-sort-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.hub-sort-btn { background: #fff; border: 1px solid var(--hub-border-md); border-radius: var(--hub-radius-sm); padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--hub-muted); cursor: pointer; transition: all 0.12s; }
.hub-sort-btn:hover { border-color: var(--hub-blue); color: var(--hub-blue); }
.hub-sort-btn.hub-sort-active { background: var(--hub-blue-light); border-color: var(--hub-blue); color: var(--hub-blue); }

/* GRID */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }

/* CARD */
.hub-card { border: 1px solid var(--hub-border); border-radius: var(--hub-radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow 0.15s; text-decoration: none; color: inherit; }
.hub-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10); text-decoration: none; color: inherit; }
.hub-card-img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--hub-gray-100); }
.hub-card-img-placeholder { width: 100%; height: 160px; background: var(--hub-gray-100); display: flex; align-items: center; justify-content: center; color: var(--hub-muted); font-size: 13px; }
.hub-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hub-card-name { font-size: 16px; font-weight: 700; color: var(--hub-text); line-height: 1.25; margin-bottom: 2px; }
.hub-card-addr { font-size: 12px; color: var(--hub-muted); }
.hub-card-stat { margin-top: 6px; font-size: 13px; color: var(--hub-muted); }
.hub-card-stat strong { color: var(--hub-text); font-weight: 700; font-size: 15px; }
.hub-card-dmv { margin-top: 4px; font-size: 13px; color: var(--hub-muted); display: flex; flex-direction: column; gap: 3px; }
.hub-card-dmv-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.hub-card-dmv-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hub-muted); white-space: nowrap; }
.hub-card-dmv-val { font-weight: 600; color: var(--hub-text); font-size: 13px; }
.hub-card-dmv a { color: var(--hub-blue); font-size: 12px; white-space: nowrap; margin-left: 4px; }
.hub-card-footer { padding: 11px 16px; border-top: 1px solid var(--hub-border); display: flex; align-items: center; justify-content: space-between; background: var(--hub-gray-50); margin-top: auto; }
.hub-promo { font-size: 12px; color: var(--hub-green); font-weight: 600; }
.hub-cta-link { font-size: 13px; font-weight: 700; color: var(--hub-blue); text-decoration: none; }
.hub-cta-link:hover { text-decoration: underline; }

/* NO RESULTS */
.hub-empty { display: none; text-align: center; padding: 48px 20px; font-size: 15px; color: var(--hub-muted); }
.hub-empty.hub-visible { display: block; }

/* FALLBACK */
.hub-fallback { margin-top: 40px; padding: 24px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-lg); background: var(--hub-gray-50); text-align: center; }
.hub-fallback h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--hub-text); }
.hub-fallback p { font-size: 14px; color: var(--hub-muted); margin-bottom: 14px; }
.hub-fallback-btn { display: inline-block; background: var(--hub-blue); color: #fff; border-radius: var(--hub-radius-md); padding: 11px 28px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.hub-fallback-btn:hover { background: #1558A0; color: #fff; text-decoration: none; }

/* TRUST BAR */
.hub-trust-bar { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--hub-border); margin-top: 36px; font-size: 13px; color: var(--hub-muted); }
.hub-trust-item { display: flex; align-items: center; gap: 5px; }
.hub-trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hub-green); flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hub-toolbar { flex-direction: column; }
  .hub-field { width: 100%; }
}
@media (max-width: 480px) {
  .hub-grid { grid-template-columns: 1fr; }
}
