/* ===== OnePlant-ish Location Modal ===== */
.pl-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.pl-trigger:hover {
  color: #fff;
  text-decoration: underline;
}
.sub-arrow {
  color: #fff;
  font-size: 14px;
  margin-left: 5px;
}
.pl-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pl-modal[data-open="1"] {
  display: flex;
}

.pl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pl-panel {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 480px;
}

.pl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eceef2;
}

.pl-header h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.pl-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  color: #111827;
  padding: 0;
}

.pl-x:hover {
  background: #f3f4f6;
}

.pl-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0; /* allow list to scroll */
}

.pl-search {
  position: relative;
}

.pl-search-ico {
  background-image: url("../img/icon-feather-search.svg");
  background-size: 18px 18px;
  display: inline-block; /* or: display:flex */
  width: 18px;
  height: 18px;
  position: absolute;
  top: 13px;
  left: 18px;
}
#pl-search-input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 40px;
  border-radius: 12px;
  border: 1px solid #e4e6f1;
  outline: none;
  font-size: 14px;
  background: #fff;
}

#pl-search-input:focus {
  border-color: #c7cedb;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.pl-hint {
  font-size: 12px;
  color: #6b7280;
  min-height: 16px;
}

.pl-list {
  border-radius: 14px;
  overflow: auto;
  min-height: 0;
  max-height: 420px;
  background: #fff;
}

.pl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: center;
  gap: 12px;
  border: 1px solid #eceef2;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
  min-height: 77px;
}

.pl-item:last-child {
  margin-bottom: 0;
}

.pl-left {
  min-width: 0;
  margin-left: 15px;
}

.pl-name {
  margin: 0;
  font-weight: 800;
  color: #111827;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.pl-addr {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

.pl-action {
  width: 46px;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 0;
  background: #0b0b0c;
  color: #fff; /* SVG uses currentColor */
  cursor: pointer;
  flex: 0 0 auto;
  min-height: 77px;
}

.pl-action:hover {
  filter: brightness(1.06);
}
.pl-action:active {
  transform: translateY(1px);
}

.pl-badge {
  display: inline-flex;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
}

/* Scrollbar (looks close to screenshot on WebKit) */
.pl-list::-webkit-scrollbar {
  width: 10px;
}
.pl-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}
.pl-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}
.pl-list::-webkit-scrollbar-thumb:hover {
  background: #bfc5ce;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .pl-header h3 {
    font-size: 20px;
  }
  .pl-list {
    max-height: 55vh;
  }
}
