/* PhD Locations — chooser overlay + /locations/ hub.
   Tile look mirrors the homepage tiles (PhD Homepage Condense) so the two
   surfaces read as one design. Prefix phdl- avoids any class collisions. */

/* ---------- Chooser overlay ---------- */
.phdl-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 12, 0.58);
}
.phdl-overlay[hidden] {
  display: none !important;
}
html.phdl-open {
  overflow: hidden;
}
.phdl-overlay-panel {
  position: relative;
  background: #fff;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 26px 18px 30px;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .phdl-overlay-panel {
    width: min(920px, 94vw);
    height: auto;
    max-height: 92vh;
    border-radius: 20px;
    padding: 30px 30px 34px;
  }
}
.phdl-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  color: #222;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.phdl-overlay-title {
  font-size: 25px;
  font-weight: 700;
  color: #222;
  margin: 4px 0 4px;
}
.phdl-overlay-sub {
  font-size: 15px;
  color: #666;
  margin: 0 0 18px;
}
.phdl-overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .phdl-overlay-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.phdl-overlay-all {
  text-align: center;
  margin: 20px 0 0;
  font-size: 16px;
}
.phdl-overlay-all a {
  color: #1668b4;
  font-weight: 700;
}

/* ---------- Photo tiles (shared look with the homepage tiles) ---------- */
.phdl-tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 0.88;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.phdl-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phdl-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 25, 10, 0.72) 0%, rgba(15, 25, 10, 0.18) 48%, rgba(15, 25, 10, 0) 72%);
}
.phdl-tile-name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  z-index: 1;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ---------- /locations/ hub ---------- */
.phdl-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 6px 44px;
}
.phdl-lede {
  font-size: 19px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 14px;
}
.phdl-coverage,
.phdl-prices {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 14px;
}
.phdl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0 8px;
}
@media (min-width: 760px) {
  .phdl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.phdl-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.phdl-card-photo {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.phdl-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phdl-card-body {
  padding: 16px 18px 18px;
}
.phdl-card-body h2 {
  font-size: 21px;
  line-height: 1.25;
  color: #222;
  margin: 0 0 6px;
}
.phdl-card-address {
  color: #555;
  margin: 0 0 4px;
}
.phdl-card-phone {
  margin: 0 0 10px;
}
.phdl-card-phone a {
  color: #1668b4;
  font-weight: 700;
  text-decoration: none;
}
.phdl-card-hours {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
}
.phdl-card-services {
  font-size: 14.5px;
  line-height: 1.55;
  color: #444;
  margin: 0 0 12px;
}
.phdl-card-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.phdl-card-visit {
  color: #3e7c1a;
  font-weight: 700;
  text-decoration: none;
}
.phdl-card-directions {
  color: #1668b4;
  font-weight: 700;
  text-decoration: none;
}
.phdl-specialists {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin: 14px 0 0;
}
.phdl-credits {
  margin: 14px 2px 0;
  font-size: 11px;
  line-height: 1.4;
  color: #999;
}
.phdl-credits a {
  color: #999;
}
