/* =========================================================
   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; }
}
