.osm-search-card {
  margin-bottom: 20px;
}

.osm-search-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(130px, .7fr) auto auto;
  gap: 14px;
  align-items: end;
}

.osm-button-field .btn {
  width: 100%;
  min-height: 46px;
  white-space: nowrap;
}

.osm-result-tools {
  margin: 20px 0;
}

.osm-directory-list {
  margin-top: 20px;
}

.osm-result {
  position: relative;
  overflow: hidden;
}

.osm-result[data-source="verified"] {
  border-inline-start: 5px solid var(--green, #285b4b);
}

.osm-result[data-source="openstreetmap"] {
  border-inline-start: 5px solid var(--bronze, #a67c52);
}

.osm-result-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.osm-result h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.osm-result p {
  margin: 8px 0;
}

.osm-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.osm-result-actions a {
  text-decoration: none;
}

.osm-source-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.osm-source-label.verified {
  background: #ddf2e8;
  color: #174f3b;
}

.osm-source-label.external {
  background: #f4eadc;
  color: #67431f;
}

.osm-attribution {
  margin-top: 24px;
  padding: 14px 16px;
  font-size: .86rem;
  color: var(--muted, #596364);
  border-top: 1px solid var(--line, #dfd4c5);
}

.osm-welcome {
  text-align: center;
}

.osm-loading {
  text-align: center;
}

.osm-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 4px solid rgba(110, 36, 55, .18);
  border-top-color: var(--wine, #6e2437);
  border-radius: 50%;
  animation: osm-spin .8s linear infinite;
}

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

@media (max-width: 920px) {
  .osm-search-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .osm-search-grid {
    grid-template-columns: 1fr;
  }

  .osm-button-field label {
    display: none;
  }

  .osm-result-actions .btn {
    width: 100%;
  }
}
