.open-search-map {
  --osm-blue: #1565c0;
  --osm-blue-hover: #0f56a5;
  --osm-text: #263238;
  --osm-muted: #607d8b;
  --osm-border: #dce3e8;
  --osm-surface: #ffffff;
  --osm-soft: #f6f8fa;
  max-width: 100%;
  color: var(--osm-text);
}

.open-search-map *,
.open-search-map *::before,
.open-search-map *::after {
  box-sizing: border-box;
}

.open-search-map .osm-search-form {
  width: 100%;
  margin: 0;
}

.open-search-map .osm-search-form__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.open-search-map .osm-search-form__input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  margin: 0 !important;
  padding: 11px 14px;
  border: 1px solid var(--osm-border) !important;
  border-radius: 8px;
  outline: none;
  background-color: var(--osm-surface);
  box-shadow: none !important;
  color: var(--osm-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.25;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.open-search-map .osm-search-form__input::placeholder {
  color: #83929d;
  opacity: 1;
}

.open-search-map .osm-search-form__input:focus {
  border-color: var(--osm-blue) !important;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.13) !important;
}

.open-search-map .osm-search-form__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 18px;
  border: 1px solid var(--osm-blue) !important;
  border-radius: 8px;
  background: var(--osm-blue) !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.open-search-map .osm-search-form__button:hover,
.open-search-map .osm-search-form__button:focus {
  border-color: var(--osm-blue-hover) !important;
  background: var(--osm-blue-hover) !important;
  color: #ffffff !important;
}

.open-search-map .osm-search-form__button:active {
  transform: translateY(1px);
}

.open-search-map .osm-search-form__button:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.28);
  outline-offset: 2px;
}

.open-search-map .osm-search-status:empty,
.open-search-map .osm-search-results:empty {
  display: none;
}

.open-search-map .osm-search-status {
  margin: 16px 0 0;
  color: var(--osm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.open-search-map .osm-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.open-search-map .osm-result-card {
  overflow: hidden;
  border: 1px solid var(--osm-border);
  border-radius: 8px;
  background: var(--osm-surface);
}

.open-search-map .osm-result-card__image {
  aspect-ratio: 16 / 9;
  background: var(--osm-soft);
}

.open-search-map .osm-result-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.open-search-map .osm-result-card__content {
  padding: 14px;
}

.open-search-map .osm-result-card__title {
  margin: 0 0 7px;
  color: var(--osm-text);
  font-size: 18px;
  line-height: 1.25;
}

.open-search-map .osm-result-card__types,
.open-search-map .osm-result-card__address,
.open-search-map .osm-result-card__description {
  margin: 0 0 8px;
  color: var(--osm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.open-search-map .osm-result-card__types {
  color: var(--osm-blue);
  font-weight: 600;
}

.open-search-map .osm-result-card__description {
  margin-bottom: 0;
  color: var(--osm-text);
}

.open-search-map .osm-notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff8e8;
  color: #6b4b00;
  font-size: 14px;
  line-height: 1.45;
}

.open-search-map .osm-notice--warning {
  border-color: #f0c36d;
}

@media screen and (max-width: 900px) {
  .open-search-map .osm-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .open-search-map .osm-search-form__row {
    flex-direction: column;
    gap: 10px;
  }

  .open-search-map .osm-search-form__input,
  .open-search-map .osm-search-form__button {
    width: 100%;
    min-height: 45px;
  }

  .open-search-map .osm-search-form__button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .open-search-map .osm-search-status {
    margin-top: 14px;
  }

  .open-search-map .osm-search-results {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }
}
