/* =========================================================
   KEYS99 - CITY / LOCALITY HUB PAGES
   Layered on css/index.css (header, footer, cards, chips).
========================================================= */

.hub{
  padding:22px 0 90px;
}

.hub-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  font-size:var(--fs-small);
  color:var(--muted);
  margin-bottom:16px;
}

.hub-breadcrumb a{
  color:var(--green);
  font-weight:600;
}

.hub-breadcrumb [aria-current]{
  color:var(--ink);
  font-weight:600;
}

.hub-head{
  margin-bottom:26px;
}

.hub-head h1{
  margin:6px 0 10px;
  font-size:clamp(21px, 4vw, 34px);
  line-height:1.2;
  color:var(--ink);
}

.hub-intro{
  max-width:820px;
  margin:0 0 16px;
  font-size:var(--fs-body);
  line-height:1.65;
  color:#3d5560;
}

.hub-facts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
}

.hub-facts div{
  padding:9px 14px;
  border:1px solid #d3e0dc;
  border-radius:12px;
  background:#f6faf9;
}

.hub-facts dt{
  font-size:var(--fs-label);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:var(--muted);
}

.hub-facts dd{
  margin:2px 0 0;
  font-size:var(--fs-lead);
  font-weight:700;
  color:var(--green-dark);
}

.hub-section{
  margin-top:30px;
}

.hub-section .section-title{
  margin-bottom:14px;
}

/* Cards in a grid here (the homepage scrolls them sideways). */
.hub-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
}

.hub-grid .property-card{
  display:flex;
  flex-direction:column;
}

.hub-grid .property-body{
  flex:1;
  display:flex;
  flex-direction:column;
}

.hub-grid .property-body > *{
  align-self:flex-start;
  max-width:100%;
}

.hub-grid .property-body > .card-title-row,
.hub-grid .property-body > .card-bottom{
  align-self:stretch;
}

.hub-grid .card-bottom{
  margin-left:-13px;
  margin-right:-13px;
  margin-bottom:-13px;
  max-width:none;
}

.hub-localities{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* "From the Keys99 Blog": links to articles about projects on the page. */
.hub-posts{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:12px;
}

.hub-post{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 16px;
  border:1px solid #d3e0dc;
  border-radius:14px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:border-color .15s;
}

.hub-post:hover,
.hub-post:focus-visible{ border-color:var(--green); }

.hub-post-project{
  font-size:var(--fs-label);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:var(--green);
}

.hub-post strong{
  font-size:var(--fs-ui);
  line-height:1.4;
  color:var(--ink);
}

.hub-post strong:after{ content:" →"; color:var(--green); }

/* FAQ styles live in css/index.css (the homepage uses them too). */

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

/* index.css gives every <section> large homepage padding; hub
   sections space themselves with margin instead. */
.hub section.hub-section{
  padding:0;
}

/* Developer pages: description and website from the developer record. */
.hub-about{
  max-width:860px;
  margin:0 0 12px;
  font-size:var(--fs-body);
  line-height:1.7;
  color:#3d5560;
  white-space:pre-line;
}

.hub-website{ margin:0 0 16px; font-size:var(--fs-ui); }
.hub-website a{ color:var(--green); font-weight:700; text-decoration:none; }
.hub-website a:hover{ text-decoration:underline; }

/* Locality guides: hand-written text from content/localities/. */
.hub-guide{
  max-width:860px;
  font-size:var(--fs-body);
  line-height:1.7;
  color:#3d5560;
}

.hub-guide h3{
  margin:20px 0 6px;
  font-size:var(--fs-h4);
  color:var(--ink);
}

.hub-guide p{ margin:0 0 12px; }

.hub-guide ul{
  margin:0 0 12px;
  padding-left:20px;
}

.hub-guide li{ margin-bottom:6px; }

.hub-guide a{ color:var(--green); font-weight:600; }

/* =========================================================
   /commercial/ LANDING SECTIONS (landingSections in build/hubs.js)
   Property type tiles, card rows, top cities.
========================================================= */
.hub-types{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
.hub-types .type-card{ min-width:0; }
.hub-row-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px; }
.hub-row-head .section-title{ margin-bottom:0; }
.hub-row .view-all{ flex:none; color:var(--green); font-weight:700; font-size:var(--fs-ui); text-decoration:none; white-space:nowrap; }
.hub-row .view-all:hover{ text-decoration:underline; }
.hub-row .property-scroll{ margin:0 -2px; padding:2px; }

.hub-cities{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.hub-city{
  display:block; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#fff;
  text-decoration:none; color:inherit; box-shadow:0 5px 20px rgba(0,0,0,.03); transition:transform .25s, box-shadow .25s;
}
.hub-city:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.hub-city-img{
  display:block; height:110px; background:linear-gradient(135deg,#eaf7f3,#cfeee4) center/cover no-repeat;
}
.hub-city-body{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 14px; }
.hub-city-body strong{ font-size:var(--fs-lead); color:var(--ink,#092c3d); }
.hub-city-body .count{ font-size:var(--fs-small); color:var(--muted); white-space:nowrap; }
@media(max-width:600px){
  .hub-types{ grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
  .hub-cities{ grid-template-columns:1fr 1fr; gap:10px; }
  .hub-city-img{ height:84px; }
}

/* Developer logos (developer pages and the developers list) */
.hub-dev-logo{display:block;width:84px;height:84px;object-fit:contain;padding:8px;margin:0 0 14px;background:#fff;border:1px solid #e3ece9;border-radius:16px;box-shadow:0 4px 14px rgba(0,60,50,.08)}
.locality-chip.has-logo{display:flex;flex-direction:column;align-items:center;gap:6px}
.chip-logo{width:56px;height:56px;object-fit:contain;border-radius:10px;background:#fff}

/* Developers list: search, A-Z bar, groups */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dev-tools{position:sticky;top:64px;z-index:5;margin:0 -4px 14px;padding:10px 4px;background:rgba(255,255,255,.96);backdrop-filter:blur(6px)}
.dev-search input{width:100%;padding:12px 14px;border:1.5px solid #cfe0db;border-radius:12px;font:inherit;font-size:15px;background:#fff}
.dev-search input:focus{outline:none;border-color:#00866e;box-shadow:0 0 0 3px rgba(0,134,110,.15)}
.dev-letters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-top:10px;padding-bottom:2px}
.dev-letters a{flex:none;min-width:30px;padding:5px 8px;text-align:center;border:1px solid #cfe0db;border-radius:8px;background:#fff;color:#12312a;font-weight:700;font-size:13px;text-decoration:none}
.dev-letters a:hover{border-color:#00866e;color:#00533f}
.dev-group{margin:0 0 22px;scroll-margin-top:150px}
.dev-letter{margin:0 0 10px;font-size:20px;color:#00533f;border-bottom:2px solid #e3ece9;padding-bottom:4px}
.dev-nomatch{padding:18px;border:1px dashed #c7d8d3;border-radius:12px;text-align:center;color:#5b706a}
.locality-chip[hidden],.dev-group[hidden],.dev-letters a[hidden]{display:none !important}
