.pcl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pcl-locator {
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-areas: "sidebar map";
  height: min(80vh, 800px);
  border: 1px solid #e6e6e6;
  background: #fff;
  margin-top: var(--pcl-safe-top, 0px);
}

@media (max-width: 1200px) {
  .pcl-locator {
    grid-template-columns: 360px 1fr;
  }
}

.pcl-sidebar {
  grid-area: sidebar;
  border-right: 1px solid #e6e6e6;
  overflow: hidden;
}

.pcl-sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pcl-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.pcl-search__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  outline: none;
}

.pcl-search__input:focus {
  border-color: #111;
}

.pcl-search__btn {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.pcl-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
  border-bottom: 1px solid #eee;
}

.pcl-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}

.pcl-meta {
  padding: 12px 16px 0;
}

.pcl-note {
  font-size: 12px;
  line-height: 1.25;
  color: #666;
  margin: 6px 0 8px;
}

.pcl-results-count {
  font-size: 13px;
  color: #444;
  margin-bottom: 8px;
}

.pcl-error {
  font-size: 13px;
  color: #b00020;
  margin-bottom: 8px;
}

.pcl-list {
  overflow: auto;
  padding: 8px 0 16px;
  flex: 1;
}

.pcl-section-title {
  padding: 12px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.pcl-item {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid #f0f0f0;
  padding: 14px 16px;
  cursor: pointer;
}

.pcl-item:hover {
  background: #fafafa;
}

.pcl-item.is-active {
  background: #f4f4f4;
}

.pcl-item__top {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.pcl-item__title {
  font-weight: 600;
  color: #111;
  font-size: 14px;
}

.pcl-item__distance {
  font-weight: 600;
  font-size: 13px;
  color: #111;
  white-space: nowrap;
}

.pcl-item__addr {
  margin-top: 6px;
  color: #555;
  font-size: 13px;
  line-height: 1.3;
}

.pcl-item__actions {
  margin-top: 10px;
}

.pcl-item__earth {
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
}

.pcl-item__earth:hover {
  border-color: #111;
}

.pcl-map,
.pcl-map__canvas {
  width: 100%;
  height: 100%;
}

.pcl-map {
  grid-area: map;
}

.pcl-map__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #555;
  background: repeating-linear-gradient(
    45deg,
    #f7f7f7,
    #f7f7f7 10px,
    #ffffff 10px,
    #ffffff 20px
  );
}

@media (max-width: 980px) {
  .pcl-locator {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 80vh;
  }

  .pcl-map {
    order: 0;
  }

  .pcl-sidebar {
    order: 1;
  }

  .pcl-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e6e6e6;
  }

  .pcl-map__canvas {
    height: 55vh;
    min-height: 360px;
  }

  .pcl-list {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 600px) {
  .pcl-locator {
    border-left: 0;
    border-right: 0;
  }

  .pcl-search {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .pcl-search__btn {
    width: 100%;
  }

  .pcl-meta {
    padding: 10px 12px 0;
  }

  .pcl-item {
    padding: 12px;
  }

  .pcl-item__title {
    overflow-wrap: anywhere;
  }

  .pcl-map__canvas {
    min-height: 320px;
  }
}

/* Fixture layout (alignment-only: top search + left 10 projects + right map) */
.pcl-locator.pcl-locator--fixture {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: min(80vh, 820px);
  margin-top: var(--pcl-safe-top, 0px);
  background: transparent;
  border: 0;
  color: #fff;
}

/* Back-compat: hide any previously rendered fixture title heading */
.pcl-locator--fixture .pcl-fixture__title {
  display: none !important;
}

.pcl-fixture__search {
  display: flex;
  gap: 0;
  align-items: stretch;
  --pcl-fixture-control-height: 54px;
}

.pcl-fixture__search-input,
.pcl-fixture__search-btn {
  height: var(--pcl-fixture-control-height) !important;
  font-weight: 300;
  box-sizing: border-box;
  font-size: 16px;
}

.pcl-fixture__search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 18px;
  text-align: center;
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-right: 0 !important;
  color: #ffffff !important;
  outline: none;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  line-height: normal;
  appearance: none;
  min-height: 0 !important;
  max-height: var(--pcl-fixture-control-height);
}

.pcl-fixture__search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.pcl-fixture__search-input:focus {
  border-color: #9ac72c;
  box-shadow: 0 0 0 3px rgba(154, 199, 44, 0.22), 0 10px 24px rgba(0, 0, 0, 0.25);
}

.pcl-fixture__search-btn {
  min-width: 120px;
  padding: 0 22px !important;
  border: 1px solid #9ac72c !important;
  background: #9ac72c !important;
  color: #0b0b0b !important;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  min-height: 0 !important;
  max-height: var(--pcl-fixture-control-height);
  appearance: none;
}

.pcl-fixture__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 18px;
  align-items: stretch;
}

.pcl-fixture__sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pcl-fixture__meta {
  margin-bottom: 10px;
}

.pcl-locator--fixture .pcl-results-count,
.pcl-locator--fixture .pcl-error {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.pcl-locator--fixture .pcl-results-count {
  color: #ffffff;
}

.pcl-locator--fixture .pcl-error {
  color: #ff6b6b;
}

.pcl-fixture__list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.pcl-fixture__map {
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

.pcl-fixture__map-canvas {
  width: 100%;
  height: 100%;
}

.pcl-locator--fixture .pcl-item__title {
  font-weight: 400;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcl-locator--fixture .pcl-item {
  position: relative;
  border: 0;
  border-radius: 8px;
  margin: 0 0 14px;
  padding: 18px 18px 18px 92px;
  background: rgba(70, 70, 70, 0.9);
  color: #fff;
  min-height: 92px;
}

.pcl-locator--fixture .pcl-item:hover {
  background: rgba(82, 82, 82, 0.95);
}

.pcl-locator--fixture .pcl-item.is-active {
  outline: 2px solid rgba(154, 199, 44, 0.55);
  outline-offset: 0;
}

.pcl-locator--fixture .pcl-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(9, 44, 90, 0.95) url("../placemarker.png") no-repeat center;
  background-size: 30px 30px;
}

.pcl-locator--fixture .pcl-item__distance,
.pcl-locator--fixture .pcl-item__actions {
  display: none;
}

.pcl-locator--fixture .pcl-item__addr {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .pcl-fixture__grid {
    grid-template-columns: 35% 65%;
  }
}

@media (max-width: 980px) {
  .pcl-locator.pcl-locator--fixture {
    height: auto;
    min-height: 80vh;
  }

  .pcl-fixture__grid {
    display: flex;
    flex-direction: column;
  }

  .pcl-fixture__map {
    order: 0;
  }

  .pcl-fixture__sidebar {
    order: 1;
  }

  .pcl-fixture__map-canvas {
    height: 55vh;
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .pcl-fixture__search {
    flex-direction: column;
    height: auto;
  }

  /* On phone: show map first, then the 10 nearest projects below */
  .pcl-fixture__sidebar {
    display: flex;
  }

  .pcl-fixture__map-canvas {
    height: 48vh;
    min-height: 320px;
  }

  .pcl-fixture__list {
    max-height: 38vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pcl-fixture__search-btn {
    width: 100%;
    border-radius: 0 0 8px 8px;
  }

  .pcl-fixture__search-input {
    border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px 8px 0 0;
  }
}
