/* Location Dashboard Layout */
.location-dashboard {
  padding: 2rem;
  background-color: #f9f9f9;
}

.page-intro-block {
  margin-bottom: 2rem;
}

.location-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.location-filter-bar select,
.location-filter-bar button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* Location Cards */
.location-card-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.location-card {
  height: 100%;
  background: #fff;
  border: 2px solid #6a1b9a;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;    
  justify-content: flex-start;
  gap: .5rem; /* consistent spacing between rows */
  padding-top: 2rem; /* optional: gives room for ribbon */
}

/* Base ribbon style */
.location-card::before {
  content: attr(data-type);
  position: absolute;
  top: 3.75rem;
  right: -2rem; /* ✅ pull ribbon inside the card */
  transform: rotate(45deg);
  transform-origin: top right;
  background: #6a1b9a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 2.2rem; /* adjust width for readability */
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2;
}

/* Color override for Indoor */
.location-card[data-type="Indoor"]::before {
  background: #f57c00; /* orange */
}

/* Color override for Outdoor */
.location-card[data-type="Outdoor"]::before {
  background: #6a1b9a; /* purple */
}

.location-type-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
}

.location-meta h3 {
  margin-top: 0;
  font-size: 1.5rem;
  line-height: 1.4;
  min-height: 3.5rem; /* enough for 2 lines */
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 0.5rem;
  color: #6a1b9a;
}

.location-meta p {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #333;
}

.location-map {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: .5rem;
}

.location-image {
  width: 100%;
  height: auto;
  margin-top: .5rem;
  border-radius: 4px;
}

.card-row {
  margin-top: 0; /* reset */
}

.card-row:last-child {
  margin-top: auto; /* keeps the final button anchored */
}

.location-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.location-map {
  width: 100%;
  height: 200px;
  border: none;
}

.location-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 1rem;
}
