.location-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.location-tile {
  display: flex;
  flex-direction: row;
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  max-height: 200px;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.4s ease forwards;
  margin: 10px;
  margin-bottom: 15px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-photo {
  width: 50%;
  object-fit: cover;
}

.location-details {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  box-sizing: border-box;
  padding-left: 2.5%;
}

.location-details h2,
.location-details h4,
.location-details h5,
.location-details h6 {
  margin: 0.1rem 0;
  font-family: revert;
  font-size: medium;
}

.truncate-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.5rem;
  line-height: 1.2em;
  max-height: calc(1.2em * 4);
}

.spinner {
  margin: 1rem auto;
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top: 4px solid #888;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
