@import url("basic.css");

.full-width-container {
  width: 100%;
}

.find-location {
  max-width: 100% !important;
  color: var(--brand-blue);
  min-height: var(--min-map-height);
  background-color: #fff;
}

.find-location[hidden] {
  display: none;
}

.find-location *,
.find-location *::after,
.find-location *::before {
  box-sizing: border-box;
}

.find-location__row {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.find-location-map {
  width: 60%;
  height: var(--min-map-height);
}

#find-location-map h1 {
  font-size: 24px;
  margin: 0;
}

.find-location-map #find-location-map {
  width: 100%;
  height: 100%;
}

.find-location-sidebar {
  max-width: 40%;
  width: 100%;
  flex-grow: 1;
  flex-shrink: 0;
  max-height: var(--min-map-height);
  position: relative;
}

.find-location-item__about {
  flex-shrink: 0;
}

.find-location-item__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background-color: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  color: var(--brand-blue);
  outline: none;
}

.find-location-list {
  height: calc(100% - var(--filter-heading-height));
  overflow-y: auto;
  outline: none;
}

.find-location-filter {
  padding: 24px 64px;
  border-bottom: 3px solid var(--brand-blue);
}

.find-location-filter-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
}

.find-location-filter-form__input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--brand-blue);
  padding: 8px 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--brand-blue);
  outline: none;
  padding-right: 58px;
  box-sizing: border-box;
}

.find-location-filter-form__label {
  font-size: 16px;
  font-weight: bold;
  color: var(--brand-blue);
  position: absolute;
  top: 5px;
}

.find-location-filter-form__wrapper {
  position: relative;
  width: 100%;
}

.find-location-filter-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #233a7a;
  border-radius: 3px;
  background-color: white;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
  position: absolute;
  right: 0;
  bottom: 6px;
  transition: background-color 0.3s;
}

.find-location-filter-form__submit:hover {
  background-color: #f9f9f9;
}

.find-location-item,
.find-location-filter-modal__heading {
  padding: 24px 64px;
}

.find-location-item {
  transition: background-color 0.3s;
}

.find-location-item:hover {
  background-color: #f1f4ff;
}

.find-location-item:not(:last-of-type) {
  border-bottom: 1px solid var(--brand-blue);
}

.find-location-item__name {
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  margin-top: 0;
  margin-bottom: 4px;
}

.find-location-item__main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.find-location-item__address {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  margin-bottom: 4px;
}

.find-location-item__additional {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.find-location-item__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.find-location-item__footer {
  display: flex;
  gap: 8px;
}

.find-location-tag {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.find-location-item__phone {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.find-location-item__phone a {
  color: #233a7a;
  text-decoration: none;
  font-weight: 500;
}

.find-location-item__links {
  display: flex;
  gap: 4px;
  margin-top: 1.5rem;
}

.find-location-button {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  padding: 4px 8px;
  text-decoration: none;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.3s;
}

.find-location-button:hover {
  filter: saturate(1.2);
}

.find-location-button--green {
  background-color: var(--brand-green);
}

.find-location-button--blue {
  background-color: var(--brand-breeze);
}

.find-location-button-bordered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  padding: 8px 16px;
  color: var(--brand-blue);
  border: 2px solid #233a7a;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s;
}

.find-location-button-bordered:hover {
  background-color: #f9f9f9;
}

.figure-icon {
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0%, 100% 35%, 100% 100%, 0% 100%, 0% 35%);
  display: inline-block;
}

.figure-icon--yellow {
  background-color: var(--brand-yellow);
}

.find-location-filter-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 2;
}

.find-location-filter-form__clear {
  position: absolute;
  right: 40px;
  bottom: 17px;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.find-location-filter-modal__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.find-location-filter-modal__heading h3 {
  color: var(--brand-blue);
  font-weight: 600;
  font-family: inherit;
  font-size: 24px;
  margin: 0;
}

.find-location-filter-modal__buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.find-location-filter-modal__close {
  padding: 8px 10px;
}

.find-location-filter-modal__list {
  overflow-y: auto;
  height: calc(100% - 90px);
  width: 100%;
  outline: none;
}

.find-location-filter-section h4 {
  color: #fff;
  background-color: var(--brand-blue);
  font-weight: 600;
  font-family: inherit;
  font-size: 20px;
  margin: 0;
  padding: 16px 64px;
}

.find-location-filter-section__button {
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--brand-blue);
  cursor: pointer;
  outline: none;
}

.find-location-filter-section__name {
  font-weight: 600;
  font-family: inherit;
  font-size: 20px;
  color: var(--brand-blue);
  text-align: left;
}

.find-location-filter-section__image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-image: url("../images/empty-image.png");
  background-position: center;
  background-size: cover;
}

.find-location-filter-section__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.find-location-filter-section__button.active {
  background-color: #f0f4ff;
}

.no-bg {
  background-image: none !important;
}

.find-location-filter-form__loader {
  position: absolute;
  right: 60px;
  width: 24px;
  height: 24px;
  border: 5px solid #cbcbcb;
  border-bottom-color: #5dc869;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.find-location-filter-form__loader[hidden] {
  display: none;
}

@media (max-width: 992px) {
  .find-location-filter,
  .find-location-item,
  .find-location-filter-modal__heading,
  .find-location-filter-section__button {
    padding-left: 16px;
    padding-right: 16px;
  }

  .find-location-filter-form {
    gap: 20px;
  }

  .find-location-item__tags {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .find-location__row {
    flex-direction: column;
  }

  .find-location-sidebar {
    max-width: 100%;
    max-height: 500px;
  }

  .find-location-list {
    max-height: 400px;
  }

  .find-location-map {
    height: 400px;
    width: 100%;
    max-width: 100%;
  }

  .find-location-filter-form__label {
    font-size: 12px;
    top: 7px;
  }
}
