.page-id-294 .entry-hero,
.page-id-294 .entry-header {
  display: none;
}

.page-id-294 .content-area {
  margin-top: 0;
  margin-bottom: 0;
}

.page-id-294 .content-container,
.page-id-294 .entry-content-wrap,
.page-id-294 .entry-content {
  max-width: none;
  padding: 0;
}

.page-id-294 .entry.single-entry {
  box-shadow: none;
}

.ph-finder {
  --ink: #13231e;
  --muted: #657069;
  --line: #dfe8e1;
  --paper: #fbfcf8;
  --soft: #f0f6f1;
  --accent: #0f8f73;
  --dark: #0d3935;
  --lime: #c7ff4a;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  color: var(--ink);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.ph-finder * {
  box-sizing: border-box;
}

.ph-finder a {
  color: inherit;
}

.ph-finder__top {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 10px;
}

.ph-finder__copy h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.ph-finder__copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.ph-finder__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.ph-finder__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ph-field {
  display: grid;
  gap: 4px;
}

.ph-field label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-field select,
.ph-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.ph-field select {
  padding: 0 12px;
}

.ph-search {
  position: relative;
  align-self: end;
  min-width: 0;
}

.ph-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.ph-search input {
  padding: 0 12px 0 38px;
  font-weight: 600;
}

.ph-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.ph-filter {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #304139;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.ph-filter.is-active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.ph-finder__layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ph-list-panel,
.ph-map-panel {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ph-list-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.ph-list-panel .ph-filters {
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ph-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.ph-list-head strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.ph-list-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ph-court-list {
  max-height: 438px;
  padding: 8px;
  overflow: auto;
}

.ph-court-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.ph-court-card + .ph-court-card {
  margin-top: 7px;
}

.ph-court-card.is-focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 115, 0.12);
}

.ph-court-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.ph-court-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.ph-badge {
  border-radius: 999px;
  padding: 3px 7px;
  background: #e6f7ff;
  color: #234357;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.ph-court-address,
.ph-court-meta,
.ph-court-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

body.page-id-294 #primary .entry-content .ph-finder .ph-court-card p,
body.page-id-294 #primary .entry-content .ph-finder .ph-court-card h2 {
  margin: 0 !important;
}

.ph-court-price {
  color: #304139;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-court-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.ph-court-actions a,
.ph-map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: #fff;
  color: var(--dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.ph-court-actions a:first-child {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.ph-empty {
  display: none;
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.ph-map-panel {
  position: sticky;
  top: 94px;
}

#ph-courts-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #edf2ef;
}

#ph-courts-map .leaflet-tile-pane {
  filter: saturate(0.42) contrast(0.92) brightness(1.08);
}

.ph-court-marker {
  border-radius: 999px;
  background: rgba(255, 92, 72, 0.18);
}

.ph-court-marker span {
  display: block;
  width: 17px;
  height: 17px;
  margin: 5px;
  border: 3px solid #102b38;
  border-radius: 999px;
  background: #ff5c48;
  box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 8px 18px rgba(19,35,30,.24);
}

.ph-map-popup {
  min-width: 190px;
  color: var(--ink);
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.ph-map-popup strong,
.ph-map-popup span {
  display: block;
}

.ph-map-popup strong {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.ph-map-popup span {
  color: var(--muted);
  font-size: 0.8rem;
}

.ph-map-popup a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 980px) {
  .ph-finder {
    width: min(100% - 24px, 720px);
    padding-top: 16px;
  }

  .ph-finder__top,
  .ph-finder__controls,
  .ph-finder__layout {
    grid-template-columns: 1fr;
  }

  .ph-finder__selects {
    grid-template-columns: 1fr 1fr;
  }

  .ph-list-panel,
  .ph-map-panel,
  #ph-courts-map {
    min-height: 400px;
  }

  .ph-map-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .ph-finder {
    width: min(100% - 28px, 420px);
  }

  .ph-finder__selects {
    grid-template-columns: 1fr;
  }

  .ph-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .ph-filter {
    flex: 0 0 auto;
  }
}
