/* Retailer Map Locator - Minimal CSS (Works with existing site styling) */

#store-locator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-family: inherit;
}

#store-locator-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#store-locator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

#store-locator-header h3 {
  margin: 0;
  font-size: inherit;
}

#store-locator-header h6 {
  margin: 3px 0 0 0;
  font-size: 0.8em;
}

.store-locator-secondary-button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-size: inherit;
}

.store-locator-secondary-button:hover {
  background: #eee;
}

.store-locator-control-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.store-locator-control-group.separator {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
}

.flex-noshrink {
  flex-shrink: 0;
}

#store-locator-filters-primary input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: inherit;
}

.round-button {
  padding: 6px 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
}

.round-button:hover {
  background: #222;
}

#store-locator-sortandfilters h3 {
  margin: 0 0 8px 0;
  font-size: inherit;
}

.store-locator-control-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.store-locator-control-selector-item {
  padding: 6px 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-locator-control-selector-item:hover {
  background: #eee;
}

.store-locator-control-selector-item.active {
  background: #333;
  color: white;
  border-color: #333;
}

.store-locator-control-selector-item img {
  width: 15px;
  height: 15px;
}

#store-locator-error {
  padding: 8px 10px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 3px;
  color: #c33;
  font-size: 0.9em;
}

#store-locator-error.hidden {
  display: none;
}

#store-locator-results-list {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 3px;
}

.rml-card {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.rml-card:hover {
  background: #f9f9f9;
}

.rml-card:last-child {
  border-bottom: none;
}

.rml-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.rml-name {
  font-weight: 600;
  font-size: 0.95em;
}

.rml-dist {
  font-size: 0.85em;
  color: #666;
  white-space: nowrap;
}

.rml-addr {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 6px;
}

.rml-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.rml-badge {
  font-size: 0.8em !important;
  padding: 3px 6px !important;
  border-radius: 3px !important;
  display: inline-block !important;
  font-weight: 500 !important;
}

.rml-badge.rml-medical {
  background: #d4edda !important;
  color: #155724 !important;
}

.rml-badge.rml-adult {
  background: #fff3cd !important;
  color: #856404 !important;
}

.rml-badge.rml-both {
  background: #d1ecf1 !important;
  color: #0c5460 !important;
}

.rml-delivery {
  background: #d4edda !important;
  color: #155724 !important;
  font-size: 0.8em !important;
  padding: 3px 6px !important;
  border-radius: 3px !important;
  display: inline-block !important;
}

.rml-priority-text {
  font-size: 0.85em;
  color: #555;
  margin: 6px 0;
}

.rml-actions {
  display: flex;
  gap: 4px;
}

.rml-btn {
  padding: 4px 8px;
  background: #333;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.8em;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.rml-btn:hover {
  background: #222;
}

.rml-empty {
  padding: 15px;
  text-align: center;
  color: #999;
}

#store-locator-map-container {
  position: relative;
}

#store-locator-map {
  width: 100%;
  height: 600px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.rml-popup .rml-name {
  font-weight: 600;
  margin-bottom: 3px;
}

.rml-popup .rml-addr {
  margin-bottom: 5px;
}

.rml-popup .rml-meta {
  margin-bottom: 5px;
}

label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: inherit;
}

label input[type="checkbox"] {
  cursor: pointer;
}

@media (max-width: 1024px) {
  #store-locator-container {
    grid-template-columns: 1fr;
  }
}
