/* 51-locations-hub.css - locations hub grid
   Tiles are deliberately uniform: fixed image ratio and a flex body, so a
   city with a long service-area line sits at exactly the same height as one
   with none. */

.lh-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-6);
}

.lh-card{
  display:flex;
  flex-direction:column;
  background:var(--color-bg-white);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:var(--shadow-sm);
  transition:transform var(--duration-base) var(--ease-out),
             box-shadow var(--duration-base) var(--ease-out),
             border-color var(--duration-base) var(--ease-out);
}
.lh-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-card);
  border-color:var(--color-action);
}

/* Fixed ratio keeps every tile's image the same height whatever the source. */
.lh-card__media{
  aspect-ratio:16/10;
  background:var(--color-bg-alt);
  overflow:hidden;
}
.lh-card__img{width:100%;height:100%;object-fit:cover;display:block;}

.lh-card__body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  padding:var(--space-5);
  gap:var(--space-2);
}
.lh-card__title{
  font-family:var(--font-heading);
  font-size:var(--text-lg);
  font-weight:var(--weight-semibold);
  color:var(--color-text-primary);
  margin:0;
}
.lh-card__area{
  font-size:var(--text-sm);
  line-height:var(--leading-normal);
  color:var(--color-text-muted);
  margin:0;
}
/* margin-top:auto pins the link to the bottom, so it lines up across the row
   regardless of how much text sits above it. */
.lh-card__cta{
  margin-top:auto;
  padding-top:var(--space-2);
  font-size:var(--text-sm);
  font-weight:var(--weight-semibold);
  color:var(--color-action);
}

.lh-empty{
  text-align:center;
  color:var(--color-text-muted);
  padding:var(--space-8) 0;
}

@media (max-width:900px){
  .lh-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
  .lh-grid{grid-template-columns:1fr;}
}
