/* TSM Locations Grid */
.tsm-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  box-sizing: border-box;
  padding: 40px 48px;

  /* Full-bleed comes from WordPress's own .alignfull handling — do NOT add
     breakout margins here. See the note in the theme's global.css.
     Was `width: 100vw; margin-left: calc(50% - 50vw)`. */
  width: auto;
  background: #f8f8f8;
}

.tsm-locations-grid p {
  display: none;
}

.tsm-location-card {
  border-radius: 12px;
  text-align: center;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.tsm-location-card p {
  display: block;
}

.tsm-location-name {
  font-size: 14px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.tsm-location-address {
  font-size: 13px;
  color: #191919;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.tsm-location-reference {
  font-size: 13px;
  color: #191919;
  margin: 0;
  line-height: 1.5;
}

/* Tablet */
@media (max-width: 900px) {
  .tsm-locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 0;
  }

  .tsm-location-card {
    padding: 24px 20px;
  }

  .tsm-location-name {
    font-size: 16px;
  }

  .tsm-location-address {
    font-size: 13px;
  }

  .tsm-location-reference {
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .tsm-locations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .tsm-location-card {
    padding: 20px 16px;
  }

  .tsm-location-name {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .tsm-location-address {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .tsm-location-reference {
    font-size: 11px;
  }
}
