/*
 * YMCA of Greater Tulsa — locations.css
 * Locations page: map, branch grid, TCC cluster, association office
 */

.map-section {
  position: relative;
  height: 460px;
  border-bottom: 0.5px solid #ebebeb;
  z-index: 0;
}
.map-overlay-card {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 240px;
}
.map-overlay-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.map-overlay-sub {
  font-size: 12px;
  color: #888;
}
.map-overlay-count {
  font-weight: 300;
  font-size: 36px;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 10px;
}
.map-overlay-label {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
  margin-bottom: 16px;
}
.map-overlay-divider {
  border: none;
  border-top: 0.5px solid #ebebeb;
  margin: 12px 0;
}
.map-filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 8px;
}
.map-filter-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0.5px solid #e8e8e8;
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s,
    border-color 0.15s;
  width: 100%;
}
.map-filter-btn:hover {
  background: #f7f7f5;
  border-color: #ccc;
}
.map-filter-btn.active {
  background: #eeeeee;
  border-color: grey;
  color: #000;
}
.map-filter-btn.active .map-filter-dot {
  background: #fff;
}
.map-filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.map-legend-text {
  font-size: 11px;
  color: #666;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px var(--pad) 96px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.location-card {
  border: 0.5px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.location-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.location-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #f0f0ee;
  flex-shrink: 0;
}
.location-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.location-card:hover .location-card-img img {
  transform: scale(1.03);
}
.location-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.location-card-name {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}
.location-card-desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.location-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.btn-location {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.btn-location-solid {
  background: var(--blue);
  color: #fff;
  border: 1.5px solid var(--blue);
}
.btn-location-solid:hover {
  background: #004f96;
  border-color: #004f96;
}
.btn-location-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-location-ghost:hover {
  background: var(--green);
  color: #fff;
}

.tcc-cluster {
  margin-bottom: 64px;
}

/* 5 individual cards in a flex row, wrapping cleanly */
.tcc-grid,
.tcc-grid-row2 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tcc-item {
  flex: 1 1 calc(33% - 12px);
  min-width: 160px;
  background: #fff;
  border: 0.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.tcc-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}
.tcc-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.tcc-item-desc {
  font-size: 12.5px;
  color: #888;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.tcc-item-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.tcc-item-link:hover {
  color: #004f96;
}

@media (max-width: 1024px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tcc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tcc-grid-row2 .tcc-item {
    flex: 0 0 50%;
  }
}
@media (max-width: 767px) {
  .map-section {
    display: none;
  }
  .map-overlay-card {
    min-width: 200px;
    padding: 14px 16px;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .tcc-grid {
    grid-template-columns: 1fr;
  }
}
