/* Places directory */
.pl-head { padding-top: calc(var(--header) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px 64px; align-items: end; }
.pl-title { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.pl-tools { display: grid; gap: 14px; }
.pl-search { position: relative; display: block; }
.pl-search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.pl-search .input { padding-left: 48px; border-radius: var(--r-md); }
.pl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-filter {
  height: 36px; padding: 0 14px; border-radius: var(--r-md); border: 0; background: transparent; cursor: pointer;
  font: 500 .875rem/1 var(--sans); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.pl-filter:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); }
.pl-filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: var(--section); }
.pl-count { margin: 0 0 12px; }
.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: pl; }
.pl-card { position: relative; border-bottom: 1px solid var(--line); padding: 26px 0 28px; transition: opacity .4s var(--ease); }
.pl-card[hidden] { display: none; }
.pl-card-main { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; text-decoration: none; }
.pl-idx { font: 600 .8125rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .4s var(--ease); }
.pl-name { margin: 0; font: 400 clamp(1.7rem, 1.4rem + 1vw, 2.3rem)/1.05 var(--serif); letter-spacing: -.015em; transition: color .4s var(--ease), font-weight .7s var(--ease); }
.pl-sub { grid-column: 2; margin: 4px 0 0; font-size: .875rem; color: var(--ink-3); }
.pl-card-main .tag { align-self: center; }
.pl-card-body { margin: 18px 0 0 52px; display: grid; gap: 14px; }
.pl-host { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.pl-actions .link { font-size: .9375rem; }
.pl-card.is-active .pl-name, .pl-card-main:hover .pl-name { color: var(--green); font-weight: 470; }
.pl-card.is-active .pl-idx { color: var(--green); }
.pl-card::before { content: ""; position: absolute; left: -16px; top: 30px; width: 3px; height: 26px; border-radius: 2px; background: var(--green); transform: scaleY(0); transition: transform .5s var(--ease); }
.pl-card.is-active::before { transform: scaleY(1); }
.pl-note { margin-top: 24px; }
.pl-empty { padding: 48px 0; display: grid; gap: 12px; justify-items: start; border-bottom: 1px solid var(--line); }
.pl-empty p { margin: 0; }

.pl-mapcol { position: sticky; top: calc(var(--header) + 12px); }
.pl-map { position: relative; height: calc(100svh - var(--header) - 36px); min-height: 460px; max-height: 860px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl-map > svg { position: absolute; inset: 0; }
.pl-map-ui { position: absolute; inset: auto 16px 16px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; pointer-events: none; }
.pl-map-ui > * { pointer-events: auto; }
.pl-reset { height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-md); background: var(--ink); color: var(--paper); font: 600 .875rem/1 var(--sans); cursor: pointer; }
.pl-pop {
  min-width: 260px; max-width: 340px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 20px 50px -20px rgba(21, 32, 28, .3);
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.pl-pop.is-on { opacity: 1; transform: none; }
.pl-pop h3 { margin: 0 0 4px; font: 400 1.6rem/1.05 var(--serif); letter-spacing: -.01em; }
.pl-pop p { margin: 0 0 12px; font-size: .8125rem; color: var(--ink-3); }
.pl-pop .prayer { font-size: .8125rem; margin-bottom: 14px; }

@media (max-width: 960px) {
  .pl-head { grid-template-columns: 1fr; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-mapcol { position: relative; top: 0; order: -1; }
  .pl-map { height: auto; aspect-ratio: 1 / 1; min-height: 0; }
  .pl-card-body { margin-left: 52px; }
}
