/* LA Car Alarm — locations index + city drive-in pages.
   Banner crop matches the locked Beats/tint city-pages.css.
   Index tiles: one city per card. Do not mash cities. */

/* ---------- Locations index ---------- */
.city-index-hero .lead{
  max-width: 40rem;
}
.city-nap{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}
.city-nap-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
}
.city-nap-card h2{
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.city-nap-card p{
  margin: 0 0 8px;
}
.city-nap-card p:last-child{ margin-bottom: 0; }
.city-nap-meta{
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.city-region{
  margin: 0 0 40px;
}
.city-region-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.city-region-head h2{
  margin: 0;
  font-size: 1.25rem;
}
.city-region-head p{
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.city-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.city-tile{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 112px;
  padding: 16px 16px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.city-tile:hover{
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .55);
  box-shadow: 0 0 0 1px var(--hairline);
}
.city-tile-name{
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.city-tile-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.city-tile-go{
  color: var(--accent);
  letter-spacing: 0.16em;
}

/* ---------- City page extras ---------- */
.city-copy{
  max-width: 46rem;
}
.city-copy p{
  max-width: 46rem;
  margin: 0 0 1.15em;
  font-size: 1rem;
  line-height: 1.65;
}
.city-copy p:last-child{ margin-bottom: 0; }
.city-copy a{ color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.city-faq details{
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
  margin: 0 0 12px;
}
.city-faq details:last-child{ margin-bottom: 0; }
.city-faq summary{
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}
.city-faq details p{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.city-rev-band{
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.city-rev-band .testimonial p{
  -webkit-line-clamp: 3;
}

/* City banners: mobile art is owner-supplied 1080×1920 with the city title
   baked near the bottom. Do not let height:auto paint that portrait as a
   full-viewport photo. Desktop stays the landscape file. */
@media (max-width: 767px) {
  .hero-banner--city {
    overflow: hidden;
    background: #000;
  }
  .hero-banner--city .hero-banner-photo {
    position: relative;
    width: 100%;
    height: clamp(12.5rem, 32svh, 16.5rem);
    overflow: hidden;
    line-height: 0;
    background: #000;
  }
  .hero-banner--city .hero-banner-photo picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-banner--city .hero-banner-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
    background: #000;
  }
  /* Orange title is the Old Towne arch at the top of the portrait. */
  .hero-banner--city .hero-banner-photo img[src*="orange-"] {
    object-position: left top;
  }
}

@media (max-width: 1120px){
  .city-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  .city-nap{ grid-template-columns: 1fr; margin-bottom: 32px; }
  .city-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .city-tile{ min-height: 96px; padding: 14px; }
  .city-region{ margin-bottom: 28px; }
}
@media (max-width: 480px){
  .city-grid{ grid-template-columns: 1fr 1fr; }
}
