.container {
  max-width: 1500px;
  margin: 0 auto;
}

.search-container {
  background: #212121;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #404040;
}

.leaflet-container {
  font-size: 13px;
  word-break: break-all;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #404040;
  border-radius: 4px;
  background-color: #333333;
  color: #e0e0e0;
}

.search-input::placeholder {
  color: #888888;
}

.search-select,
.search-button {
  padding: 10px 15px;
  border: 1px solid #404040;
  border-radius: 4px;
  background-color: #333333;
  color: #e0e0e0;
}

.search-button {
  background: #6c757d;
  color: white;
  cursor: pointer;
  // border-color: #efefef;
}

.search-button:hover {
  background: #212121;
}

.search-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.coordinates-display {
  background: #212121;
  border: 1px solid #404040;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 20px;
}

.coordinates-display h3 {
  margin: 0 0 10px 0;
  color: #efefef;
  font-size: 16px;
}

.coordinates-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.coordinate-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coordinate-label {
  font-weight: bold;
  color: #d0d0d0;
}

.coordinate-value {
  background: #333333;
  padding: 5px 10px;
  border: 1px solid #404040;
  border-radius: 4px;
  font-family: monospace;
  min-width: 120px;
  user-select: all;
  color: #e0e0e0;
}

.coordinate-value:focus {
  outline: none;
  border-color: #efefef;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.coordinate-value.invalid {
  border-color: #dc3545;
  background-color: #2d1a1a;
}

.coordinate-value.valid {
  border-color: #28a745;
  background-color: #1a2d1a;
}

.copy-button {
  //  background: #28a745;
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #404040;
  cursor: pointer;
  font-size: 12px;
}

.copy-button:hover {
  background: #212121;
  border: 1px solid #404040;
}

.copy-button.copied {
  background: #6c757d;
}

.click-instruction {
  font-size: 14px;
  color: #888888;
  margin-top: 10px;
}

.main-content {
  display: flex;
  gap: 20px;
  height: 600px;
}

#map {
  flex: 2;
  border-radius: 8px;
  border: 1px solid #404040;
  cursor: crosshair;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.store-list {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #404040;
  border-radius: 8px;
  background: #212121;
}

.store-item {
  padding: 1rem;
  border-bottom: 1px solid #404040;
  cursor: pointer;
  transition: background-color 0.2s;
}

.store-item:hover {
  background-color: #333333;
}

.store-item:last-child {
  border-bottom: none;
}

.store-name {
  font-weight: bold;
  color: #e0e0e0;
  margin-bottom: 5px;
}

.store-address,
.store-phone,
.store-postcode {
  color: #d0d0d0;
  font-size: 14px;
  margin-bottom: 3px;
}

.store-website {
  color: #efefef;
  font-size: 14px;
  margin-bottom: 3px;
}

.store-website a {
  color: #efefef;
  text-decoration: none;
}

.store-website a:hover {
  text-decoration: underline;
}

.distance-info {
  color: #28a745;
  font-weight: bold;
  font-size: 12px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #d0d0d0;
}

.error {
  text-align: center;
  padding: 20px;
  color: #dc3545;
  background: #2d1a1a;
  border: 1px solid #dc3545;
  border-radius: 4px;
  margin: 10px;
}

.search-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

.search-status.info {
  background: #1a2d2d;
  color: #b0e0e0;
  border: 1px solid #efefef;
}

.search-status.success {
  background: #1a2d1a;
  color: #b0e0b0;
  border: 1px solid #28a745;
}

.search-status.error {
  background: #2d1a1a;
  color: #e0b0b0;
  border: 1px solid #dc3545;
}

.search-help {
  margin-top: 5px;
  font-size: 12px;
  color: #888888;
}

.search-progress {
  width: 100%;
  height: 6px;
  background: #404040;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.search-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #efefef, #0056b3);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.search-progress.active .search-progress-bar {
  animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.click-marker {
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    height: auto;
  }

  #map {
    height: 400px;
  }

  .store-list {
    height: 400px;
  }

  .search-row,
  .coordinates-row {
    flex-direction: column;
  }

  .search-input,
  .search-select,
  .search-button {
    width: 100%;
  }

  .coordinate-item {
    width: 100%;
  }

  .coordinate-value {
    min-width: auto;
    flex: 1;
  }
}
