/**
 * LK Store Locator Frontend Styles
 */
#lk-store-locator-container {
  max-width: 100%;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lk-locator-body {
  display: flex;
  min-height: 600px;
}

.lk-sidebar {
  width: 40%;
  max-width: 380px;
  border-right: 1px solid #e1e5e9;
  display: flex;
  flex-direction: column;
}

.lk-search-wrapper {
  display: flex;
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
  flex-shrink: 0;
}

#lk-search-address {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #c3c4c7;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

#lk-search-btn {
  padding: 12px 25px;
  border: 1px solid #2271b1;
  background-color: #2271b1;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.2s ease;
}

#lk-search-btn:hover {
  background-color: #1d5f96;
}

#lk-search-btn.loading {
  cursor: wait;
  background-color: #1d5f96;
  position: relative;
  color: transparent;
}

#lk-search-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#lk-locations-list {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 600px;
}

#lk-map-container {
  width: 60%;
  flex-grow: 1;
  min-height: 600px;
}

.lk-results-placeholder {
  padding: 20px;
  color: #50575e;
  text-align: center;
}

.lk-location-item {
  padding: 15px 20px;
  border-bottom: 1px solid #e1e5e9;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lk-location-item:hover {
  background-color: #f0f6fa;
}

.lk-location-item.active {
  background-color: #e6f3ff;
  border-left: 3px solid #2271b1;
}


#lk-locations-list button.lk-directions-btn {
  float: right;
  padding: 4px 10px;
  font-size: 11px;
  border: none;
  border-radius: 4px;
  color: #666;
}


#lk-map-container button.lk-directions-btn-info {
  display: block;
  width: 100%;
  background-color: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 10px;
  padding: 6px;
  transition: background-color 0.2s ease;
}

#lk-locations-list button.lk-directions-btn:hover,
#lk-map-container button.lk-directions-btn-info:hover {
  background-color: #1d5f96;
  color: white;
}

.lk-location-item h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #1d2327;
}

.lk-location-item p {
  margin: 3px 0;
  font-size: 14px;
  color: #50575e;
  line-height: 1.4;
}

.lk-infowindow {
  font-size: 14px;
  line-height: 1.5;
}
.lk-infowindow h4 {
  font-size: 18px;
}

.lk-location-item p.lk-distance {
  color: #900;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .lk-locator-body {
    flex-direction: column-reverse;
  }

  .lk-sidebar,
  #lk-map-container {
    width: 100%;
    max-width: none;
  }

  .lk-sidebar {
    max-height: 500px;
  }

  #lk-locations-list {
    max-height: 320px;
  }

  #lk-map-container {
    height: 400px;
    min-height: 400px;
    border-bottom: 1px solid #e1e5e9;
  }
}
