:root {
  --search-height: 100px;
  --section-gap: 24px;
}

.school-search {
  width: calc(100% - 48px);
  height: var(--search-height);
  margin: var(--section-gap) 24px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.school-search__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 24px;
}

.school-search__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c213f;
  margin-bottom: 6px;
}

.school-search__cant-find {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #c5143e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.school-search__cant-find:hover {
  color: #1c213f;
}

.school-search__input {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #1c213f;
  outline: none;
  color: #1c213f;
  transition: border-color 0.2s ease;
}

.school-search__input::placeholder {
  color: rgba(28, 33, 63, 0.5);
}

.school-search__input:focus {
  border-color: #c5143e;
}

.school-search__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-height: 36px;
  overflow-y: auto;
}

.school-search__item {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #c5143e;
  border: 1.5px solid #c5143e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.school-search__item:hover {
  background: #1c213f;
  border-color: #1c213f;
}

#map {
  width: 100%;
  height: calc(100vh - var(--nav-height) - var(--search-height) - (var(--section-gap) * 2));
  background: #e5e3df;
}

.nav-link--active {
  color: #c5143e;
}

.cka-cluster-icon {
  background: transparent;
  border: none;
}

.cka-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cka-cluster svg text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.leaflet-control-attribution {
  font-size: 11px;
}

@media (max-width: 768px) {
  :root {
    --search-height: 172px;
  }

  .school-search {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 8px 0;
  }

  .school-search__inner {
    padding: 4px 16px;
  }

  .school-search__label {
    font-size: 11px;
  }

  .school-search__cant-find {
    position: static;
    transform: none;
    align-self: flex-end;
    margin: 0 24px;
    font-size: 11px;
  }

  .school-search__list {
    max-height: 56px;
  }

  #map {
    height: calc(100vh - var(--nav-height) - var(--search-height) - (var(--section-gap) * 2));
  }
}

@media (max-width: 380px) {
  :root {
    --section-gap: 16px;
  }

  .school-search {
    margin: var(--section-gap) 12px;
    width: calc(100% - 24px);
  }
}

@media (max-height: 560px) {
  :root {
    --search-height: 84px;
    --section-gap: 12px;
  }

  .school-search__cant-find {
    display: none;
  }

  .school-search__list {
    max-height: 28px;
  }
}
