/* The Pie Pizzeria — delivery area maps */
.pdm {
  --pdm-red: #a31e22;
  --pdm-red-dark: #82181b;
  margin: 0 0 1.5rem;
}
.pdm-map {
  height: 480px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  z-index: 0; /* keep under Joomla sticky headers / menus */
}
@media (max-width: 600px) {
  .pdm-map { height: 360px; }
}

.pdm-checker { margin-bottom: 0.75rem; }
.pdm-heading { margin: 0 0 0.5rem; }
.pdm-heading label { display: block; cursor: pointer; }
.pdm-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pdm-row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid #adb5bd;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font: inherit;
}
.pdm-row input::placeholder { color: #6c757d; }
.pdm-row input:focus { outline: 2px solid var(--pdm-red); outline-offset: 1px; }
.pdm-row button {
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 6px;
  background: var(--pdm-red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pdm-row button:hover { background: var(--pdm-red-dark); }
.pdm-row button:disabled { opacity: 0.6; cursor: wait; }

.pdm-result:empty { display: none; }
.pdm-result {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  background: #f8f9fa;
  border-left: 4px solid #6c757d;
  color: #000;
}
/* Light boxes on a dark site: force dark text and links */
.pdm-result strong { color: #000; font-size: 110%; }
.pdm-result a,
.pdm .leaflet-popup-content a { color: var(--pdm-red-dark); text-decoration: underline; }
.pdm .leaflet-popup-content,
.pdm .leaflet-popup-content strong,
.pdm .leaflet-tooltip { color: #000; }
.pdm-result.pdm-yes { background: #edf7ef; border-left-color: #2e8b57; }
.pdm-result.pdm-maybe { background: #fff8e6; border-left-color: #d9822b; }
.pdm-result.pdm-no { background: #fee8eb; border-left-color: var(--pdm-red); }
.pdm-store {
  margin-top: 0.5rem;
  line-height: 1.2;
  font-size: 90%;
}
.pdm-matched { margin-top: 0.5rem; font-size: 0.8em; color: #495057; }

.pdm-legend {
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  line-height: 1.6;
  color: #212529;
}
.pdm-legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
  opacity: 0.8;
}
.pdm-error { padding: 1rem; color: var(--pdm-red); }
