.search-container1440 {
  padding-bottom: 80px;
}

.search-container {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 100px auto 0;
  max-width: 1440px;
  width: 100%;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.search-save-button {
  background-color: #1582E7;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 4px 4px 12px;
  color: white;
  font-family: Medium;
  transition: ease 0.4s;
  min-width: 154px;
}

.save-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1375D0;
  border-radius: 4px;
  height: 36px;
  width: 36px;
  transition: ease 0.3s;
}
.save-btn-icon svg {
  width: 12px;
  height: 14px;
  fill: white;
}

.search-save-button:hover {
  cursor: pointer;
  background-color: #1375D0;
}
.search-save-button:hover .save-btn-icon {
  background-color: #0F5BA2;
}

.search-primary {
  display: flex;
  gap: 8px;
}

.search-input-wrapper {
  position: relative;
}

.search-field {
  width: 320px;
}

.search-list {
  display: none;
  position: absolute;
  bottom: -4px;
  left: 0;
  transform: translateY(100%);
  z-index: 1;
  width: 100%;
  padding: 8px;
  background: white;
  border-radius: 6px;
  border: 1px solid #E9E9EA;
  box-shadow: 0px 20px 25px -5px #64666E;
  max-height: 200px;
  overflow-y: scroll;
}
.search-list::-webkit-scrollbar {
  width: 6px;
}
.search-list::-webkit-scrollbar-thumb {
  background: #E9E9EA;
  border-radius: 5px;
  border: 1px solid #D3D3D6;
}
.search-list::-webkit-scrollbar-button {
  display: none;
}

.search-item {
  width: 100%;
  padding: 4px 8px;
  background: white;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  transition: 0.3s;
}
.search-item svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  fill: #64666E;
  transition: 0.3s;
}
.search-item:hover {
  background: #E8F2FD;
}
.search-item:hover .src-item-link {
  color: #1582E7;
}
.search-item:hover svg {
  fill: #1582E7;
}
.search-item:not(:last-child) {
  margin-bottom: 4px;
}

.src-item-link {
  all: unset;
  color: #64666E;
  cursor: pointer;
  transition: 0.3s;
}

.miss-container {
  color: #64666E;
}

.search-dropdown {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #E9E9EA;
  border-radius: 8px;
  font-family: Medium;
  line-height: 1.5;
  padding: 10px 16px;
  transition: ease 0.5s;
}
.search-dropdown svg {
  width: 7px;
  height: 11px;
  transform: rotate(90deg);
  fill: #64666E;
}
.search-dropdown:hover {
  border: 1px solid #D3D3D6;
  cursor: pointer;
}

.filters-icon {
  display: none;
}

.dropdown-content {
  position: absolute;
  top: 48px;
  right: -1px;
  display: none;
  flex-direction: column;
  width: 420px;
  border: 1px solid #E9E9EA;
  border-radius: 12px;
  padding: 20px;
  background-color: white;
  cursor: default;
  z-index: 10;
  box-shadow: 0 9px 21px 0 rgba(0, 0, 0, 0.08), 0 38px 38px 0 rgba(0, 0, 0, 0.07), 0 85px 51px 0 rgba(0, 0, 0, 0.04), 0 151px 60px 0 rgba(0, 0, 0, 0.01), 0 236px 66px 0 rgba(0, 0, 0, 0);
}

.dropdown-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-family: Semi;
  line-height: 1.6;
}

.dropdown-options {
  display: flex;
  gap: 16px;
}

.option-group {
  width: 100%;
}

.option-label {
  font-size: 14px;
  font-family: Regular;
  line-height: 1.4;
  margin-bottom: 4px;
}

.search-secondary {
  position: relative;
}

.filters-expanded-content {
  position: absolute;
  display: none;
  top: 48px;
  right: -1px;
  flex-direction: column;
  width: 518px;
  border: 1px solid #E9E9EA;
  border-radius: 12px;
  padding: 20px;
  max-height: 80dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: white;
  cursor: default;
  z-index: 12;
  box-shadow: 0 9px 21px 0 rgba(0, 0, 0, 0.08), 0 38px 38px 0 rgba(0, 0, 0, 0.07), 0 85px 51px 0 rgba(0, 0, 0, 0.04), 0 151px 60px 0 rgba(0, 0, 0, 0.01), 0 236px 66px 0 rgba(0, 0, 0, 0);
}

.dropdown-content.active {
  display: flex;
}

.filters-expanded-content.active {
  display: flex;
}

.dropdown-apply-btn {
  margin-top: 16px;
}

.radio-group {
  display: flex;
  width: 100%;
}

.dropdown-section {
  margin-bottom: 32px;
}
.dropdown-section:last-child {
  margin-bottom: 0;
}

.search-location {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #E9E9EA;
  border-radius: 8px;
  font-family: Medium;
  line-height: 1.5;
  padding: 10px 16px;
  transition: ease 0.5s;
}
.search-location svg {
  width: 22px;
  height: 22px;
  fill: #1582E7;
}
.search-location:hover {
  border: 1px solid #D3D3D6;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 1300px) {
  .search-save-button {
    min-width: unset;
    padding: 5px;
  }
  .search-save-button .save-label {
    display: none;
  }
}
@media (max-width: 1200px) {
  .search-form {
    gap: 48px;
  }
  .search-price, .search-beds, .search-baths, .search-location {
    display: none;
  }
  .search-input-wrapper, .search-field {
    width: 100%;
  }
  .search-primary {
    width: 100%;
  }
  .search-expanded-filters {
    width: max-content;
  }
}
@media (max-width: 768px) {
  .search-container {
    margin: 65px auto 0;
  }
  .search-form {
    gap: 8px;
  }
  .search-save-button {
    padding: 0;
  }
  .search-expanded-filters {
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-expanded-filters span {
    display: none;
  }
  .search-expanded-filters .dropdown-arrow {
    display: none;
  }
  .filters-icon {
    display: flex;
    width: 15px !important;
    height: 15px !important;
    transform: unset !important;
    fill: #212530 !important;
  }
  .dropdown-title {
    font-size: 16px;
  }
  .dropdown-section {
    margin-bottom: 24px;
  }
  .dropdown-options input {
    width: 100%;
  }
}
@media (max-width: 540px) {
  .filters-expanded-content {
    right: -40px;
    width: calc(100vw - 32px);
  }
}
@media (max-width: 480px) {
  .search-list {
    width: calc(100vw - 32px);
  }
}
.head {
  margin: 64px auto 48px;
  display: flex;
  gap: 64px;
  justify-content: space-between;
  align-items: center;
}
.head .regular {
  margin-top: 4px;
  color: #64666E;
}

.head-row {
  flex: 0 0 auto;
  max-width: 316px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.view-switch {
  display: flex;
  gap: 2px;
  width: fit-content;
  padding: 4px;
  border: 1px solid #E9E9EA;
  border-radius: 8px;
}

.view-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease 0.3s;
}
.view-icon svg {
  width: 18px;
  height: 18px;
  fill: #212530;
  transition: ease 0.3s;
}
.view-icon:hover {
  cursor: pointer;
  background-color: #E8F2FD;
}

.view-icon-active {
  background-color: #1582E7;
}
.view-icon-active svg {
  fill: white;
}
.view-icon-active:hover {
  background-color: #1582E7;
}
.view-icon-active:hover svg {
  fill: white;
}

.sort-select {
  width: 200px;
}

@media (max-width: 1200px) {
  .head-row {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .head {
    margin: 24px 0;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .head-row {
    width: 100%;
    flex-direction: row-reverse;
  }
  .view-icon:hover {
    background-color: #1582E7;
  }
  .view-icon:hover svg {
    fill: white;
  }
}
.view-cont {
  display: flex;
}

.miss-subtitle {
  margin-top: 4px;
  color: #64666E;
}

.grid-view {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 48px;
  column-gap: 32px;
  overflow: hidden;
}

.card {
  width: calc((100% - 96px) / 4);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 320/260;
}
.card-img-wrap img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.card-images img {
  opacity: 0;
}

.card-images .visible-img {
  opacity: 1;
}

.img-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  width: 24px;
  height: 24px;
  background-color: rgba(33, 37, 48, 0.5);
  transition: ease 0.3s;
  opacity: 0;
}
.img-nav svg {
  fill: white;
  width: 7px;
  height: 11px;
}
.img-nav:hover {
  cursor: pointer;
  background-color: #212530;
}

.img-prev {
  left: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.img-prev svg {
  transform: rotate(180deg);
  margin-left: -1px;
}

.img-next {
  right: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.img-next svg {
  margin-right: -1px;
}

.card-img-counter {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 1;
  right: 0;
  bottom: 0;
  color: white;
  font-family: Medium;
  font-size: 14px;
  line-height: 1;
  background-color: rgba(33, 37, 48, 0.5);
  padding: 6px;
  border-top-left-radius: 4px;
  opacity: 0;
  transition: ease 0.3s;
}
.card-img-counter svg {
  margin-right: 6px;
  width: 12px;
  height: 12px;
}

.card-img-label {
  position: absolute;
  left: 8px;
  top: 8px;
  background-color: rgba(33, 37, 48, 0.5);
  border-radius: 4px;
  z-index: 1;
  font-size: 12px;
  font-family: Medium;
  color: white;
  line-height: 1;
  padding: 6px 8px;
}

.card-price {
  display: flex;
  font-size: 20px;
  font-family: Semi;
  line-height: 1.7;
  margin: 12px 0;
  text-decoration: none;
  color: #212530;
  width: fit-content;
}
.card-price:visited {
  color: #212530;
}

.card-tags {
  display: flex;
  gap: 4px;
}

.card-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #E9E9EA;
  border-radius: 4px;
  padding: 4px 6px;
  color: #7A7C83;
  line-height: 1;
  font-size: 14px;
  font-family: Medium;
}
.card-tag svg {
  width: 13px;
  height: 13px;
  fill: #BCBEC1;
}

.card-location {
  margin: 4px 0 12px;
  font-family: Medium;
  line-height: 1.5;
}

.card-rieltor {
  font-size: 14px;
  line-height: 1.4;
  color: #7A7C83;
}

.card-img-wrap:hover .img-nav {
  opacity: 1;
}
.card-img-wrap:hover .card-img-counter {
  opacity: 1;
}

@media (max-width: 768px) {
  .img-nav {
    width: 32px;
    height: 34px;
  }
  .img-nav svg {
    width: 9px;
    height: 14px;
  }
}
.map-pin {
  position: relative;
  width: max-content;
  padding: 4px 6px;
  background: #062745;
  border-radius: 6px;
  transition: 0.3s;
  z-index: 1000;
}
.map-pin::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #062745;
  transition: 0.3s;
}
.map-pin .map-icon {
  color: white;
}
.map-pin:hover {
  background: #1582E7;
}
.map-pin:hover::before {
  border-top: 6px solid #1582E7;
}
.map-pin.highlight {
  background: #1582E7;
}
.map-pin.highlight::before {
  border-top: 6px solid #1582E7;
}
.map-pin.highlight .pin-details {
  display: block;
}

.pin-details {
  display: none;
  position: absolute;
  left: 0;
  bottom: -10px;
  transform: translate(0, 100%);
  width: 260px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.mob-pin-details {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  max-width: 260px;
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
}
.mob-pin-details.visible {
  display: block;
}

.pin-img {
  position: relative;
  width: 100%;
  aspect-ratio: 13/8;
}
.pin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin-btn {
  position: absolute;
  top: 8px;
  width: 24px;
  height: 24px;
  background: rgba(33, 37, 48, 0.3);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pin-btn-favorite {
  left: 8px;
}
.pin-btn-favorite svg {
  width: 17px;
  height: 15px;
  fill: white;
}
.pin-btn-close {
  right: 8px;
}
.pin-btn-close svg {
  width: 12px;
  height: 12px;
  fill: white;
}

.pin-footer {
  padding: 10px 12px;
}

.pin-tags {
  margin: 6px 0 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pin-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #E9E9EA;
  border-radius: 4px;
  padding: 4px 6px;
  color: #7A7C83;
  line-height: 1;
  font-size: 14px;
  font-family: Medium;
}
.pin-tag svg {
  width: 13px;
  height: 13px;
  fill: #BCBEC1;
}

.pin-location {
  margin: 4px 0 12px 0;
  font-family: Medium;
  line-height: 1.5;
}

.map-view {
  position: relative;
  width: 0;
  overflow: hidden;
}

.map-view-inner {
  width: 100%;
  height: 836px;
}

.map-view-active {
  max-width: 680px;
  width: 100%;
  margin-right: 8px;
}

.grid-view-condensed {
  overflow-y: scroll;
  max-height: 800px;
}
.grid-view-condensed::-webkit-scrollbar {
  width: 8px;
}
.grid-view-condensed::-webkit-scrollbar-thumb {
  background: #E9E9EA;
  border-radius: 5px;
  border: 1px solid #D3D3D6;
}
.grid-view-condensed::-webkit-scrollbar-button {
  display: none;
}

.grid-view-condensed .card {
  width: calc((100% - 40px) / 2);
}

.properties-mob {
  display: none;
}

@media (max-width: 1200px) {
  .card {
    width: calc((100% - 64px) / 3);
  }
  .grid-view-condensed .card {
    width: calc(100% - 8px);
  }
}
@media (max-width: 900px) {
  .card {
    width: calc((100% - 32px) / 2);
  }
}
@media (max-width: 768px) {
  .map-view {
    height: 0;
  }
  .map-view-active {
    margin: 0 -16px;
    max-width: 100vw;
    width: calc(100vw + 32px);
    height: calc(100vh - 154px);
  }
  .map-view-inner {
    height: 100%;
  }
  .grid-view-condensed {
    display: none;
  }
  .grid-view {
    gap: 24px;
  }
  .card {
    width: 100%;
  }
  .card-location {
    font-size: 14px;
    margin: 6px 0 8px;
  }
  .drag-btn {
    margin: 8px auto 12px;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background-color: #D3D3D6;
  }
  .properties-mob {
    display: block;
    text-align: center;
    font-family: Semi;
    line-height: 1.5;
  }
  .img-nav, .card-img-counter {
    opacity: 1;
  }
  .mob-pin-details {
    max-width: calc(100vw - 32px);
    top: unset;
    bottom: 16px;
    left: 50%;
    transform: translate(-50%, 0);
  }
  .mob-pin-details .pin-img {
    aspect-ratio: 20/9;
  }
  .mob-pin-details .pin-footer {
    padding: 8px 10px;
  }
  .mob-pin-details .pin-tags {
    gap: 4px;
  }
  .mob-pin-details .pin-tag {
    padding: 0;
    gap: 5px;
    color: #64666E;
  }
  .mob-pin-details .pin-tag:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-top: 1px;
    border-radius: 10px;
    background: #64666E;
  }
  .mob-pin-details .pin-location {
    display: none;
  }
}
.pagination {
  display: flex;
  gap: 8px;
  margin: 64px auto 0;
  width: fit-content;
}

.pag-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: #7A7C83;
  font-family: Medium;
  transition: ease 0.6s;
  border: 1px solid white;
}
.pag-nav:hover {
  border-color: #E9E9EA;
}
.pag-nav svg {
  width: 12px;
  height: 10px;
  fill: #7A7C83;
}
.pag-nav.prev svg {
  transform: rotate(180deg);
}

.pag-nav-active {
  pointer-events: none;
  border: 1px solid #E9E9EA;
  color: #2C303A;
}

.pag-space:hover {
  border-color: transparent;
  cursor: default;
}

@media (max-width: 768px) {
  .pagination {
    margin: 48px auto 0;
  }
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 37, 48, 0.3);
  justify-content: center;
  align-items: center;
  z-index: 100;
}
.modal form {
  width: 100%;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  width: 480px;
  max-width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 0px;
  right: 14px;
  font-size: 42px;
  cursor: pointer;
  color: #212530;
  font-family: Semi;
}

.modal-header {
  margin: 12px 0;
  font-family: Semi;
  font-size: 24px;
  line-height: 1.3;
}

.modal-text {
  line-height: 1.5;
  color: #64666E;
  text-align: center;
}

.modal-email {
  margin: 32px 0;
  width: 100%;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.cancel {
  display: flex;
  font-size: 14px;
  font-family: Medium;
  line-height: 1.4;
  justify-content: center;
  background-color: white;
  width: 100%;
  border: 1px solid #E9E9EA;
  border-radius: 6px;
  padding: 10px 8px 9px;
  transition: ease 0.3s;
  text-decoration: none;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 16px;
  }
  .modal-text {
    font-size: 14px;
  }
  .modal-email {
    margin: 24px 0;
  }
}