/* Layout */
.hrl-locator {
  display: grid;
  gap: 14px;
  --hrl-map-height: 560px;
  --hrl-radius: 12px;
  --hrl-shadow: 0 6px 18px rgba(0,0,0,.06);
  --hrl-border: 1px solid #eef0f2;
  --hrl-bg: #fff;
  --hrl-muted: #667085;
  --hrl-primary: #111827;
  --hrl-accent: #10b981; /* subtle green */
}

.hrl-card {
  background: var(--hrl-bg);
  border: var(--hrl-border);
  border-radius: 16px;
  box-shadow: var(--hrl-shadow);
}

/* Global link color */
.hrl-locator a {
  color: #1a433b;
  text-decoration: none;
}
.hrl-locator a:hover {
  text-decoration: underline;
}

/* Controls */
.hrl-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.hrl-control-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hrl-controls input.hrl-zip {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  min-width: 220px;
  font-size: 15px;
  outline: none;
}

.hrl-controls input.hrl-zip:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

.hrl-controls button.hrl-use-loc {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

.hrl-controls button.hrl-use-loc:hover {
  background: #f1f5f9;
}

/* Radius select */
.hrl-control-right {
  display: flex; align-items: center; gap: 10px;
}

.hrl-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--hrl-muted);
}

.hrl-select-wrap select.hrl-radius-select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

/* Map */
.hrl-map {
  height: var(--hrl-map-height);
  border-radius: 16px;
  overflow: hidden;
}

/* Results */
.hrl-results { padding: 12px; }
.hrl-results h3 {
  margin: 6px 8px 10px;
  font-size: 1.1rem;
  color: var(--hrl-primary);
}

.hrl-results ul.hrl-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}

.hrl-results li {
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.hrl-item-title { font-weight: 600; margin: 0 0 4px; }
.hrl-item-title .hrl-item-link {
  color: #1a433b; /* clickable store name */
}
.hrl-item-meta { font-size: .95rem; color: var(--hrl-muted); }

.hrl-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.hrl-actions a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  font-size: .92rem;
}

.hrl-actions a:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* Optional: refine Leaflet popup typography */
.leaflet-popup-content {
  font-size: 14px;
  line-height: 1.35;
}
.leaflet-container a {
  color: #1a433b; /* ensure popups use brand link color too */
}

/* Style popup links like buttons */
.hrl-popup a {
    display: inline-block;
    background-color: #1a433b; /* brand green */
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 5px;
}

.hrl-popup a:hover {
    background-color: #145033; /* slightly darker green on hover */
}

.hrl-popup a.order-online {
    background-color: #ff6800;
}
.hrl-popup a.order-online:hover {
    background-color: #e85f00;
}

.hrl-popup a.directions {
    background-color: #1a433b;
}
.hrl-popup a.directions:hover {
    background-color: #145033;
}
