@charset "UTF-8";

/*BODY*/

.body {
  font-family: Poppins, roboto, sans-serif;
  font-weight: 400;
  letter-spacing: 0px;
  background-color: white;
  color: rgba(0, 0, 0, 1);
  margin: 0;
  font-size: 16px;
  touch-action: pan-x pan-y;
}

/*WRAPPER*/

.wrapper {
  display: grid;
  position: relative;
  grid-template-areas: "header" "main" "footer";
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  width: 100%;
  height: auto;
  overflow-x: hidden;
}

/*HEADER*/

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin: 0;
  padding: 0 120px;
}

@media (max-width: 1100px) {
  .header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 0;
    padding: 0 50px;
  }
}

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

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.information {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.information img:hover {
  transform: translateZ(1px);
}

.information img:active {
  transform: translateZ(1px);
}

@media (max-width: 1100px) {
  .information {
    padding-right: 0;
  }
}

/*MAIN*/

.main {
  grid-area: main;
  grid-template-areas: "serch_section" "card_section";
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr;
  padding: 0 120px;
}

@media (max-width: 1100px) {
  .main {
    padding: 0 50px;
  }
}

/*SEARCH SECTION*/

.search_section {
  max-width: 1100px;
  grid-area: search_section;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: 86px;
  margin: 10px auto 50px auto;
  border-radius: 38px;
  box-shadow: 3px 3px 17px rgba(0, 0, 0, 0.11),
    -3px -3px 17px rgba(0, 0, 0, 0.11);
}

.search_filters {
  display: flex;
  list-style: none;
  justify-content: space-between;
  padding: 0;
  margin: 0 0 0 20px;
}

.search_filters li {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  cursor: pointer;
}

.search_filters li::before {
  content: "";
  position: absolute;
  transform: translate(0%, 0%);
  border-radius: 50px;
  z-index: -1;
  transition: background-color 0.3s ease;
}

.search_filters .district:hover::before,
.search_filters .type:hover::before {
  background-color: rgba(247, 247, 247, 1);
  width: 150%;
  height: 60px;
}

.search_filters .rooms:hover::before {
  background-color: rgba(247, 247, 247, 1);
  width: 159%;
  height: 60px;
}

.search_filters .price:hover::before {
  background-color: rgba(247, 247, 247, 1);
  width: 150%;
  height: 60px;
}

.search_filters .rooms .input_fields:hover::before,
.search_filters .rooms .li_checkbox li:hover::before,
.search_filters .price .input_fields:hover::before,
.search_filters .price .li_checkbox li:hover::before {
  background-color: none;
}

.search_filters li a::first-line {
  font-weight: bold;
  color: rgba(69, 83, 111, 1);
}

.search_filters a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.search_filters a:visited {
  color: rgba(69, 83, 111, 1);
}

.search_icon {
  margin: 0 10px 0 0;
  padding: 0;
}

.sub_text {
  font-size: 16px;
  color: rgba(136, 136, 136, 1);
  font-weight: 400;
}

#district_input,
#type_input,
#rooms_input,
#price_input {
  line-height: 1.5;
  min-width: 147px;
}

.separator_line {
  position: relative;
  border: 1px solid rgba(237, 237, 237, 1);
  margin-right: 45px;
  margin-left: 45px;
}

.search_buttom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(104, 198, 120, 1);
  color: white;
  border-radius: 30px;
  transition: background-color 0.7s ease, color 0.7s ease;
  height: 47px;
  width: 58px;
  cursor: pointer;
  padding: 0;
  margin: 0 20px 0 0;
}

.search_buttom:hover {
  background-color: rgb(96, 190, 112);
}

.search_buttom:active {
  background-color: rgb(96, 190, 112);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2),
    -0.5px -0.5px 1px rgba(255, 255, 255, 0.5);
}

.dropdown_menu {
  font-family: Poppins, roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px 20px 21px 20px;
  z-index: 1000;
  width: auto;
  max-width: none;
  height: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: default;
  box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
    -1px -1px 1px rgba(110, 141, 192, 0.2);
}

.district .dropdown_menu {
  top: 55px;
  left: -47%;
}

.type_dropdown_menu {
  top: 55px;
  left: -45.9%;
}

.price .dropdown_menu {
  top: -14px;
  left: -45px;
}

.dropdown_menu.active {
  visibility: visible;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.dropdown_menu ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin: 0;
  margin-bottom: 0;
  list-style: none;
}

.dropdown_menu li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: auto;
  margin: 5px 5px 5px 5px;
  text-wrap: nowrap;
}

.type_dropdown_menu li {
  margin: 5px 0;
}

.dropdown_menu li.li_type_title {
  grid-column: 1 / -1;
}

.district_dropdown_menu .li_checkbox li:not(.li_type_title) {
  margin: 5px 0 5px 27px;
}

.type_dropdown_menu .li_checkbox li:not(.li_type_title) {
  margin: 5px 0 5px 27px;
}

.dropdown_menu li input {
  margin-right: 10px;
  cursor: pointer;
}

.dropdown_menu li label {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.dropdown_menu li input[type="checkbox"] {
  width: 15.9px;
  height: 15.9px;
  appearance: none;
  border-radius: 5px;
  border: 2px solid rgba(136, 136, 136, 1);
  margin-right: 10px;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dropdown_menu li input[type="checkbox"]:checked {
  background-color: rgba(72, 146, 191, 1);
  border-color: rgba(72, 146, 191, 0.5);
}

.dropdown_menu li::before {
  display: none;
}

.dropdown_menu li:hover::before {
  display: none;
}

.rooms_menu .li_checkbox {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 0 5px;
  color: rgba(136, 136, 136, 1);
}

.rooms_menu .li_checkbox li {
  cursor: default;
}

.rooms_menu .input_fields {
  padding: 0;
}

.rooms_menu .input_fields input[type="number"] {
  width: 50px;
  height: 20px;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0);
  text-align: center;
  cursor: text;
  border-bottom: 1.5px solid rgb(0, 0, 0);
}

.rooms_menu li_ .input_fields input[type="number"]:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.rooms_menu .input_fields input:focus {
  border-color: rgba(136, 136, 136, 0.3);
  outline: none;
}

.rooms_menu .input_fields {
  position: relative;
}

.rooms_menu .input_fields label {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.rooms_menu .input_fields input:focus + label,
.rooms_menu .input_fields input:valid + label {
  display: none;
}

.rooms_menu .input_fields input[type="number"]::-webkit-outer-spin-button,
.rooms_menu .input_fields input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rooms_menu .input_fields input[type="number"] {
  appearance: textfield;
}

.rooms_menu .input_fields input:nth-child(1) {
  margin: 0;
  padding: 0;
}

.price_dropdown_input_fields span {
  font-size: 17px;
  padding-top: 4px;
}

.price_dropdown_menu .currency_switcher,
.price_dropdown_menu .period_switcher {
  display: flex;
  align-items: center;
  justify-content: center;
}

.price {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 0 5px;
  color: rgba(136, 136, 136, 1);
  cursor: default;
}

.price .price_input {
  padding: 0;
}

.price_menu .price_input {
  width: 50px;
  height: 20px;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0);
  text-align: center;
  cursor: text;
  border-bottom: 1.5px solid rgb(0, 0, 0);
}

.price_menu .price_input:focus {
  border-color: rgba(136, 136, 136, 0.3);
  outline: none;
}

.price_menu .price_input {
  position: relative;
}

.price_menu span {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.price .input_fields input:focus ~ label,
.price .input_fields input:valid ~ label {
  display: none;
}

.price_menu .input_fields input[type="number"]::-webkit-outer-spin-button,
.price_menu .input_fields input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price_menu .input_fields input[type="number"] {
  appearance: textfield;
}

.price_menu .input_fields input:nth-child(1) {
  margin: 0;
  padding: 0;
}

.price_dropdown_menu .li_checkbox {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  margin-bottom: 5px;
  margin-left: 10px;
  margin-right: 10px;
  list-style: none;
  gap: 10px 0;
  color: rgba(120, 130, 140, 1);
}

.price_dropdown_menu .price_dropdown_title {
  font-size: 17px;
  font-weight: 600;
  color: rgba(69, 83, 111, 1);
}

.price_dropdown_menu .price_dropdown_input_fields {
  display: flex;
}

.price_dropdown_menu .input_fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
}

.price_dropdown_menu .input_fields input[type="number"] {
  width: 90px;
  height: 20px;
  font-size: 15px;
  border: none;
  outline: none;
  background-color: #fff;
  text-align: center;
  cursor: text;
  border-bottom: 1px solid rgba(120, 130, 140, 0.5);
}

.price_dropdown_menu .input_fields input:focus {
  border-color: rgba(72, 146, 191, 1);
  outline: none;
}

.price_dropdown_menu .input_fields label {
  position: absolute;
  top: 30%;
  left: 43%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.price_dropdown_menu .input_fields input:focus ~ label,
.price_dropdown_menu .input_fields input:valid ~ label,
.price_dropdown_menu .input_fields input:not(:placeholder-shown) ~ label {
  display: none;
}

.price
  .dropdown_menu
  .input_fields
  input[type="number"]::-webkit-outer-spin-button,
.price
  .dropdown_menu
  .input_fields
  input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price .dropdown_menu .input_fields input[type="number"] {
  appearance: textfield;
}

.price .dropdown_menu .input_fields input:nth-child(1) {
  margin: 0;
  padding: 0;
}

.price_dropdown_menu .currency_switcher .currency {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  width: 210px;
  height: 27px;
  background-color: white;
  color: white;
  border-radius: 10px;
  margin-top: 11px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
    -1px -1px 1px rgba(110, 141, 192, 0.2);
}

.price_dropdown_menu .currency_switcher .currency .usd,
.price_dropdown_menu .currency_switcher .currency .idr,
.price_dropdown_menu .currency_switcher .currency .rub {
  display: flex;
  position: static;
  width: 70px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.1s ease-in-out, transform 1s ease-in-out;
}

.price_dropdown_menu .currency_switcher .active {
  border: 1.7px solid rgba(104, 150, 198, 1);
  color: rgba(104, 150, 198, 1);
  z-index: 1000;
}

.price_dropdown_menu .currency_switcher .inactive {
  background-color: white;
  color: rgba(104, 150, 198, 1);
}

.price_dropdown_menu .currency_switcher .active:hover {
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.price_dropdown_menu .period_switcher .period {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  width: 210px;
  height: 27px;
  background-color: white;
  color: white;
  border-radius: 8px;
  margin-top: 11px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
    -1px -1px 1px rgba(110, 141, 192, 0.2);
}

.price_dropdown_menu .period_switcher .period .perDay,
.price_dropdown_menu .period_switcher .period .perMonth,
.price_dropdown_menu .period_switcher .period .perYear {
  display: flex;
  position: static;
  width: 70px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding-bottom: 1px;
  transition: background-color 0.1s ease-in-out, transform 1s ease-in-out;
}

.price_dropdown_menu .period_switcher .active {
  border: 1.7px solid rgba(104, 150, 198, 1);
  color: rgba(104, 150, 198, 1);
  z-index: 1000;
}

.price_dropdown_menu .period_switcher .inactive {
  background-color: white;
  color: rgba(104, 150, 198, 1);
}

.price_dropdown_menu .period_switcher .active:hover {
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.price_dropdown_menu .currency_switcher .currency .usd,
.price_dropdown_menu .currency_switcher .currency .idr,
.price_dropdown_menu .currency_switcher .currency .rub,
.price_dropdown_menu .period_switcher .period .perDay,
.price_dropdown_menu .period_switcher .period .perMonth,
.price_dropdown_menu .period_switcher .period .perYear {
  box-sizing: border-box;
}

.save_button {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(104, 198, 120, 1);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.7s ease, color 0.7s ease;
  height: 38px;
  width: 150px;
  cursor: pointer;
  padding: 0;
  margin: 20px auto 10px auto;
}

.save_button:hover {
  background-color: rgb(96, 190, 112);
}

.save_button:active {
  background-color: rgb(96, 190, 112);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2),
    -0.5px -0.5px 1px rgba(255, 255, 255, 0.5);
}

.button_icon {
  padding-top: 4px;
}

@media (max-width: 1295px) {
  .separator_line {
    position: relative;
    border: 1px solid rgba(237, 237, 237, 1);
    margin-right: 30px;
    margin-left: 30px;
  }

  .search_filters li::before {
    content: "";
    position: absolute;
    transform: translate(0%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district:hover::before,
  .search_filters .type:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 130%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .rooms:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 140%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .price:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 130%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }
}

@media (max-width: 1180px) {
  .separator_line {
    position: relative;
    border: 1px solid rgba(237, 237, 237, 1);
    margin-right: 18px;
    margin-left: 18px;
  }

  .search_filters li::before {
    content: "";
    position: absolute;
    transform: translate(0%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district:hover::before,
  .search_filters .type:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 120%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .rooms:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 125%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .price:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 120%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }
}

@media (max-width: 950px) {
  .search_filters .price::before {
    content: "";
    position: absolute;
    transform: translate(-2%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .price:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 110%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }
}

@media (max-width: 920px) {
  .search_section {
    grid-area: search_section;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    align-items: center;
    justify-items: center;
    min-width: 57%;
    width: 100%;
    height: auto;
    margin: 0 0 25px 0;
    padding: 30px 0;
    border-radius: 30px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
      -1px -1px 1px rgba(110, 141, 192, 0.2);
    gap: 20px 0;
  }

  .search_filters {
    display: contents;
  }

  .search_filters > li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: left;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    width: 65%;
    min-width: 210px;
    max-width: 250px;
  }

  .search_filters > li:nth-child(1) {
    margin: 0 0 0 80px;
    justify-content: flex-start;
  }

  .search_filters .type {
    margin: 0 0 0 80px;
    justify-content: flex-start;
  }

  .search_filters > li:nth-child(3) {
    justify-content: flex-start;
    margin: 0 0 0 20px;
  }

  .search_filters > li:last-child {
    justify-content: flex-start;
    margin: 0 0 0 20px;
  }

  .search_filters li::before {
    content: "";
    position: absolute;
    transform: translate(0%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district::before,
  .search_filters .type::before {
    content: "";
    position: absolute;
    transform: translate(-15%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .rooms::before,
  .search_filters .price::before {
    content: "";
    position: absolute;
    transform: translate(-15%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district:hover::before,
  .search_filters .type:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 110%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .rooms:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 110%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .price:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 110%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .separator_line {
    display: none;
  }

  .search_buttom {
    grid-column: span 2;
    margin-right: 0;
  }

  .dropdown_menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 45px;
    left: 0%;
    background-color: #fff;
    border-radius: 30px;
    padding: 20px 20px 20px 20px;
    z-index: 1000;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: default;
  }

  .dropdown_menu.active {
    visibility: visible;
    opacity: 1;
    align-items: center;
    justify-content: center;
  }

  .dropdown_menu ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
    list-style: none;
  }

  .dropdown_menu li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    height: auto;
    margin: 5px 10px;
  }

  .type_dropdown_menu li {
    margin: 5px 0;
  }

  .dropdown_menu li input {
    margin-right: 10px;
    cursor: pointer;
  }

  .dropdown_menu li label {
    margin: 0;
    font-size: 16px;
    cursor: pointer;
  }

  .district .dropdown_menu {
    top: 55px;
    left: 10%;
  }

  .type_dropdown_menu {
    top: 55px;
    left: 17%;
  }
}

@media (max-width: 800px) {
  .search_filters li::before {
    content: "";
    position: absolute;
    transform: translate(0%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district::before,
  .search_filters .type::before {
    content: "";
    position: absolute;
    transform: translate(-15%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .rooms::before,
  .search_filters .price::before {
    content: "";
    position: absolute;
    transform: translate(-15%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district:hover::before,
  .search_filters .type:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 100%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .rooms:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 100%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .price:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 100%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }
}

@media (max-width: 590px) {
  .search_section {
    grid-area: search_section;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    min-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 25px auto;
    padding: 40px 0;
    border-radius: 30px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
      -1px -1px 1px rgba(110, 141, 192, 0.2);
  }

  .search_filters {
    display: grid;
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    gap: 17px 0;
  }

  .type .dropdown_menu.active {
    width: 100%;
  }

  .price .dropdown_menu.active {
    width: 100%;
  }

  .type_dropdown_menu .li_checkbox {
    gap: 0;
  }

  .search_filters > li {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 300px;
    height: 100%;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    cursor: pointer;
  }

  .search_filters a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
  }

  .sub_text {
    font-size: 16px;
    color: rgba(120, 130, 140, 1);
    font-weight: 400;
  }

  .rooms_menu .input_fields label {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: 0.3s;
  }

  .price_menu .input_fields label {
    font-size: 16px;
  }

  .rooms_menu .input_fields input[type="number"] {
    width: 70px;
    height: 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0);
    text-align: center;
    cursor: text;
    border-bottom: 1.5px solid rgb(0, 0, 0);
  }

  .rooms_menu .li_checkbox,
  .price_menu .li_checkbox {
    gap: 0 7px;
  }

  .price_menu .input_fields input[type="number"] {
    width: 70px;
    height: 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0);
    text-align: center;
    cursor: text;
    border-bottom: 1.5px solid rgb(0, 0, 0);
  }

  .search_filters li::before {
    content: "";
    position: absolute;
    transform: translate(0%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district::before,
  .search_filters .type::before {
    content: "";
    position: absolute;
    transform: translate(-15%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .rooms::before,
  .search_filters .price::before {
    content: "";
    position: absolute;
    transform: translate(-15%, 0%);
    border-radius: 50px;
    z-index: -1;
    transition: background-color 0.3s ease;
  }

  .search_filters .district:hover::before,
  .search_filters .type:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 80%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .rooms:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 80%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters .price:hover::before {
    background-color: rgba(247, 247, 247, 1);
    width: 80%;
    height: 60px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.1),
      -1px -1px 1px rgba(110, 141, 192, 0.1);
  }

  .search_filters > li:nth-child(1) {
    margin: 0 0 0 50px;
  }

  .search_filters .type {
    margin: 0 0 0 50px;
  }

  .search_filters > li:nth-child(3) {
    justify-content: flex-start;
    margin: 0 0 0 50px;
  }

  .search_filters > li:last-child {
    justify-content: flex-start;
    margin: 0 0 0 50px;
  }

  .separator_line {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(69, 83, 111, 0.1);
    width: 100%;
  }

  .dropdown_menu li label {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
  }

  .district .dropdown_menu {
    top: 55px;
    left: -12%;
  }

  .type_dropdown_menu {
    top: 55px;
    left: -15%;
  }

  .price .dropdown_menu {
    top: -5px;
    left: -15%;
  }

  .price_dropdown_title {
    font-size: 16px;
  }

  .search_filters .district:hover::before,
  .search_filters .type:hover::before {
    background: rgba(247, 247, 247, 1);
    width: 100%;
    height: 60px;
  }

  .search_filters .rooms:hover::before {
    background: rgba(247, 247, 247, 1);
    width: 100%;
    height: 60px;
  }

  .search_filters .price:hover::before {
    background: rgba(247, 247, 247, 1);
    width: 100%;
    height: 60px;
  }

  .price_dropdown_menu .input_fields input[type="number"] {
    width: 90px;
    height: 20px;
  }

  .price_dropdown_menu .currency_switcher .currency {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    width: 210px;
    height: 35px;
    background-color: white;
    color: white;
    border-radius: 10px;
    margin-top: 11px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
      -1px -1px 1px rgba(110, 141, 192, 0.2);
  }

  .price_dropdown_menu .currency_switcher .currency .usd,
  .price_dropdown_menu .currency_switcher .currency .idr,
  .price_dropdown_menu .currency_switcher .currency .rub {
    display: flex;
    position: static;
    width: 70px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background-color 0.1s ease-in-out, transform 1s ease-in-out;
  }

  .price_dropdown_menu .period_switcher .period {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 210px;
    height: 35px;
    background-color: white;
    color: white;
    border-radius: 10px;
    margin-top: 11px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
      -1px -1px 1px rgba(110, 141, 192, 0.2);
  }

  .price_dropdown_menu .period_switcher .period .perDay,
  .price_dropdown_menu .period_switcher .period .perMonth,
  .price_dropdown_menu .period_switcher .period .perYear {
    display: flex;
    position: static;
    width: 70px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding-bottom: 1px;
    transition: background-color 0.1s ease-in-out, transform 1s ease-in-out;
  }

  .search_buttom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: rgba(104, 198, 120, 1);
    color: white;
    border-radius: 30px;
    transition: background-color 0.7s ease, color 0.7s ease;
    height: 47px;
    width: 58px;
    cursor: pointer;
    padding: 0;
    margin: 10px 0 0 0;
  }
}

@media (max-width: 450px) {
  .search_filters > li {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 280px;
    height: 100%;
    padding: 0 0 0 7px;
    margin: 0;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    cursor: pointer;
  }

  .district .dropdown_menu {
    top: 45px;
    left: 41%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
  }

  .type_dropdown_menu {
    top: 45px;
    left: -15.8%;
    padding: 20px 20px;
  }

  .price .dropdown_menu {
    top: -5px;
    left: -15.8%;
    padding: 20px 20px;
  }
}

/*CARD SECTION*/

.card_section {
  grid-area: card_section;
  display: grid;
  grid-template-areas: "card card card";
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  position: relative;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 50px;
}

.card_link {
  text-decoration: none;
  color: black;
}

.card {
  display: flex;
  position: relative;
  flex-direction: column;
  width: 100%;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  perspective: 1000px;
  transform-origin: center;
  backface-visibility: hidden;
  cursor: pointer;
}

.image_card {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image_card:hover img {
  transform: translateZ(1px);
}

.card_image_svg {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  z-index: 2;
  overflow: hidden;
  transition: filter 0.3s ease;
}

.card_image_svg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.card_image_svg img.active {
  opacity: 1;
}

.card_slider_btn {
  display: none;
  position: absolute;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  border: none;
  font-size: 30px;
  z-index: 1007;
}

.card_slider_btn img {
  display: block;
  position: relative;
  top: auto;
  left: auto;
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 1;
  transition: none;
  padding: 0;
  margin: 0;
}

.card.has-multiple-images:hover .card_slider_btn {
  display: flex;
}

.card_slider_btn_left {
  left: 1.3vw;
  cursor: pointer;
  padding: 0;
}

.card_slider_btn_left:active {
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
    -1px -1px 2px rgba(255, 255, 255, 0.5);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.card_slider_btn_right {
  right: 1.3vw;
  cursor: pointer;
  padding: 0;
}

.card_btn_right:active {
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
    -1px -1px 2px rgba(255, 255, 255, 0.5);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.star_icon {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 3;
  width: 30px;
  height: 30px;
  cursor: pointer;
  fill: #ccc;
  stroke: #fff;
}

.star_icon.selected path {
  fill: rgba(104, 198, 120, 1);
  stroke: #fff;
  stroke-width: 2;
}

.card_image_svg .slider_dots {
  display: none;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.card_image_svg .slider_dots.visible {
  display: flex;
}

.card_image_svg .slider_dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  cursor: pointer;
}

.card_image_svg .slider_dots .dot.active {
  background-color: #fff;
}

.card_image_svg slider_dots:empty {
  display: none;
}

.body_card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.body_card ul {
  display: flex;
  flex-direction: column;
  padding: 10px 0 5px 10px;
  list-style: none;
  font-size: 16px;
  margin: 0;
  min-height: 70px;
}

.body_card li {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  width: auto;
  height: auto;
}

.text_card li:nth-child(1) {
  font-weight: bold;
}

.text_card li:nth-child(2) {
  padding-bottom: 7px;
}

.text_card_price {
  font-weight: bold;
}

.text_card_period {
  color: rgba(193, 193, 193, 1);
}

@media (max-width: 1250px) {
  .card_section {
    grid-area: card_section;
    display: grid;
    grid-template-areas: "card card";
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 50px;
  }

  img.star_icon {
    top: 25px;
    right: 25px;
    z-index: 3;
    width: 23px;
    height: 23px;
    cursor: pointer;
  }
}

@media (max-width: 800px) {
  .card_section {
    grid-area: card_section;
    display: grid;
    grid-template-areas: "card";
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: 1fr;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 50px;
  }

  .card.has-multiple-images .card_slider_btn {
    display: flex;
  }
}

@media (max-width: 590px) {
  .header {
    width: 100%;
    max-width: 90%;
    padding: 0;
    margin: 0 auto;
  }

  .main {
    width: 100%;
    max-width: 93%;
    padding: 0;
    margin: 0 auto;
  }

  .card_section {
    grid-area: card_section;
    display: grid;
    grid-template-areas: "card";
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: 1fr;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 50px;
  }

  .card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    perspective: 1000px;
    transform-origin: center;
    backface-visibility: hidden;
    cursor: pointer;
  }

  .card img {
    border-radius: 10px;
  }

  .card_slider_btn {
    display: none;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    color: #fff;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: none;
    font-size: 30px;
    z-index: 1007;
  }

  .card_slider_btn img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .card_image_svg .slider_dots.visible {
    display: flex;
  }

  .card_slider_btn_left {
    left: 3vw;
    cursor: pointer;
    padding: 0;
  }

  .card_slider_btn_left:active {
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    transition: background-color 0.7s ease, box-shadow 0.3s ease,
      transform 0.3s ease;
  }

  .card_slider_btn_right {
    right: 3vw;
    cursor: pointer;
    padding: 0;
  }

  .card_btn_right:active {
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    transition: background-color 0.7s ease, box-shadow 0.3s ease,
      transform 0.3s ease;
  }

  .star_icon {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
    width: 35px;
    height: 35px;
    cursor: pointer;
    fill: #ccc;
    stroke: #fff;
  }

  .body_card ul {
    display: flex;
    flex-direction: column;
    padding: 10px 0 5px 10px;
    list-style: none;
    font-size: 16px;
    margin: 0;
  }

  .body_card li {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    width: auto;
    height: auto;
  }

  .text_card li:nth-child(1) {
    font-weight: bold;
    padding-bottom: 3px;
  }

  .text_card li:nth-child(2) {
    padding-bottom: 7px;
  }

  .text_card_price {
    font-weight: bold;
  }

  .text_card_period {
    color: rgba(120, 130, 140, 1);
  }
}

@media (max-width: 420px) {
  .card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    perspective: 1000px;
    transform-origin: center;
    backface-visibility: hidden;
    cursor: pointer;
  }
}

/*FOOTER*/

.footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  background-color: rgba(104, 150, 198, 1);
}

.footer_list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  color: white;
}

.footer_list li {
  text-align: center;
  cursor: pointer;
  padding-left: 20px;
}

.footer_list li a {
  text-decoration: none;
  color: white;
}

.footer_list li img {
  vertical-align: middle;
  cursor: pointer;
}

.footerd_baliarenda_left {
  font-size: 500;
  font-weight: bold;
}

.footer_channel {
  padding-right: 0px;
  font-size: 400;
}

.footer_bot {
  padding-right: 0px;
  font-size: 400;
}

.footer_list li:hover {
  text-decoration: underline;
  text-decoration-color: white;
  text-decoration-thickness: 1px;
}

.footer_list li:first-child:hover {
  text-decoration: none;
  cursor: default;
}

@media (max-width: 800px) {
  .footer {
    grid-area: footer;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 100px;
    height: auto;
    margin-top: 20px;
    padding: 20px 0;
    background-color: rgba(104, 150, 198, 1);
  }

  .footer_list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
  }

  .footer_list li:first-child {
    display: inline;
  }
}

/* SECOND PAGE*/

.wrapper_second_page {
  display: grid;
  position: relative;
  grid-template-areas: "header" "page_discription" "footer";
  grid-template-rows: auto;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100px;
  align-items: center;
  justify-content: center;
}

.wrapper_second_page .header {
  grid-area: header;
  width: 100%;
  max-width: 1000px;
  padding: 0;
  margin: 0 auto;
}

/* PAGE DESCRIPTION*/

.page_discription {
  display: grid;
  grid-template-areas:
    "section_gallery section_gallery"
    "section_main section_sidebar"
    "section_map section_map"
    "discription_offer discription_offer";
  grid-template-rows: auto auto auto auto;
  grid-template-columns: 1fr auto;
  width: 100%;
  max-width: 1000px;
  padding: 0 0 30px 0;
  gap: 40px 40px;
  margin: 0 auto;
}

/* SECTION TITLE MOBILE*/

.section_title {
  display: none !important;
}

/* SECTION GALLERY*/

.section_gallery {
  grid-area: section_gallery;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "main_photo first_photo third_photo"
    "main_photo second_photo fourth_photo";
  gap: 5px 5px;
  width: 100%;
  height: 420px;
}

.main_photo {
  grid-area: main_photo;
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  perspective: 1000px;
  transform-origin: center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.main_photo_slider_btn {
  display: none;
}

.main_photo:hover {
  transform: scale(1.007) translateZ(2px);
}

.first_photo {
  grid-area: first_photo;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  perspective: 1000px;
  overflow: hidden;
  transform-origin: center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.first_photo:hover {
  transform: scale(1.02) translateZ(2px);
}

.second_photo {
  grid-area: second_photo;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  perspective: 1000px;
  transform-origin: center;
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.second_photo:hover {
  transform: scale(1.02) translateZ(2px);
}

.third_photo {
  grid-area: third_photo;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  perspective: 1000px;
  transform-origin: center;
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.third_photo:hover {
  transform: scale(1.02) translateZ(2px);
}

.fourth_photo {
  grid-area: fourth_photo;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  perspective: 1000px;
  transform-origin: center;
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fourth_photo:hover {
  transform: scale(1.02) translateZ(2px);
}

.main_photo img {
  width: 100%;
  height: 100%;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  object-fit: cover;
}

.first_photo img,
.second_photo img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.third_photo img {
  width: 100%;
  height: 100%;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 5px;
  object-fit: cover;
}

.fourth_photo img {
  width: 100%;
  height: 100%;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 30px;
  object-fit: cover;
}

.first_photo {
  grid-area: first_photo;
}

.second_photo {
  grid-area: second_photo;
}

.third_photo {
  grid-area: third_photo;
}

.fourth_photo {
  grid-area: fourth_photo;
}

.slider {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(250, 251, 255);
  pointer-events: none;
  z-index: 7000;
  transition: opacity 0.17s ease, visibility 0.17s;
}

.slider.active {
  opacity: 1;
  pointer-events: all;
}

.slider_container {
  display: flex;
  flex-direction: row;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: none;
  width: 70vw;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  padding: 0 100px;
  overflow: visible;
}

.blurred_background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(70%);
  z-index: 1;
}

.slider_main_photo {
  flex: 1;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: stretch;
  justify-content: center;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.slider_main_photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  z-index: 2;
  filter: none;
}

.main_photo .slider_dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.main_photo .slider_dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  cursor: pointer;
}

.main_photo .slider_dots .dot.active {
  background-color: #fff;
}

.slider_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgb(250, 251, 255);
  border-radius: 50%;
  border: none;
  font-size: 30px;
  z-index: 1007;
}

.slider_gallery_wrapper {
  display: flex;
  align-items: center;
  height: auto;
  overflow: hidden;
}

.slider_gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 230px;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}

.slider_gallery div {
  margin-bottom: 5px;
}

.slider_gallery img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.slider_gallery img:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Стили для WebKit-браузеров (Chrome, Safari, Edge) */
.slider_gallery::-webkit-scrollbar {
  width: 8px;
}

.slider_gallery::-webkit-scrollbar-track {
  background: rgb(235, 247, 255);
  border-radius: 4px;
}

.slider_gallery::-webkit-scrollbar-thumb {
  background: rgba(72, 146, 191, 0.5);
  border-radius: 4px;
}

.slider_gallery:hover::-webkit-scrollbar-thumb {
  background: rgba(72, 146, 191, 1);
}

/* Стили для Firefox и macOC*/
.slider_gallery {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 146, 191, 0.5) rgb(235, 247, 255);
}

.slider_gallery:hover {
  scrollbar-color: rgba(72, 146, 191, 1) rgb(235, 247, 255);
}

.slider_btn_left {
  left: 1.5vw;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
    -1px -1px 2px rgba(255, 255, 255, 0.5);
}

.slider_btn_left:hover {
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15),
    -1px -1px 1px rgba(255, 255, 255, 0.2);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.slider_btn_left:active {
  box-shadow: 1px 1px 1px rgba(44, 43, 43, 0),
    -0.5px -0.5px 1px rgba(255, 255, 255, 0.5);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.slider_btn_right {
  right: 1.5vw;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
    -1px -1px 2px rgba(255, 255, 255, 0.5);
}

.slider_btn_right:hover {
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15),
    -1px -1px 1px rgba(255, 255, 255, 0.2);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.slider_btn_right:active {
  box-shadow: 1px 1px 1px rgba(44, 43, 43, 0),
    -0.5px -0.5px 1px rgba(255, 255, 255, 0.5);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.slider_close {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  top: -4vw;
  right: 4vw;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 4px 0 0 0;
  background-color: rgb(250, 251, 255);
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
    -1px -1px 2px rgba(255, 255, 255, 0.5);
  border: none;
  z-index: 7007;
}

.slider_close img {
  padding: 0;
  justify-content: center;
  align-items: center;
}

.slider_close:hover {
  box-shadow: 1px 1px 1px rgba(44, 43, 43, 0),
    -0.5px -0.5px 1px rgba(255, 255, 255, 0.5);
  transition: background-color 1s ease, box-shadow 0.7s ease, transform 3s ease;
}

.slider_close:active {
  box-shadow: 1px 1px 1px rgba(44, 43, 43, 0),
    -0.5px -0.5px 1px rgba(255, 255, 255, 0.5);
  transition: background-color 0.7s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

@media (max-width: 1290px) {
  .slider_container {
    display: flex;
    flex-direction: row;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: none;
    width: 75vw;
    max-width: 80vw;
    max-height: 80vh;
    aspect-ratio: 16 / 9;
    padding: 0 70px;
    overflow: visible;
  }

  .slider_close {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: -4vw;
    right: 3vw;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 4px 0 0 0;
    color: white;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    background-color: rgb(255, 255, 255);
    border: none;
    z-index: 7007;
  }
}

@media (max-width: 1100px) {
  .slider_gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 175px;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .slider_gallery img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
  }

  .slider_gallery div {
    margin-bottom: 3px;
  }

  .slider_close {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: -4vw;
    right: 2vw;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 4px 0 0 0;
    color: white;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    background-color: rgb(255, 255, 255);
    border: none;
    z-index: 7007;
  }
}

@media (max-width: 900px) {
  .slider_btn.slider_btn_left,
  .slider_btn.slider_btn_right {
    display: none !important;
  }

  .slider_gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 150px;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .slider_gallery img {
    width: 130px;
    height: 110px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.7s ease, box-shadow 0.7s ease;
  }

  .slider_gallery div {
    margin-bottom: 0.5px;
  }

  .slider_close {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: -4vw;
    right: 4vw;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 4px 0 0 0;
    color: white;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    background-color: rgb(255, 255, 255);
    border: none;
    z-index: 7007;
  }
}

@media (max-width: 750px) {
  .slider {
    display: none;
  }

  .main_photo_slider_btn {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: none;
    font-size: 30px;
    z-index: 1007;
  }

  .main_slider_btn_left {
    left: 1.7vw;
    cursor: pointer;
    padding: 0;
  }

  .main_slider_btn_left:hover {
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    transition: background-color 0.7s ease, box-shadow 0.3s ease,
      transform 0.3s ease;
  }

  .main_slider_btn_right {
    right: 1.7vw;
    cursor: pointer;
    padding: 0;
  }

  .main_slider_btn_right:hover {
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2),
      -1px -1px 2px rgba(255, 255, 255, 0.5);
    transition: background-color 0.7s ease, box-shadow 0.3s ease,
      transform 0.3s ease;
  }
}

/* SECTION SIDEBAR*/
.section_sidebar {
  grid-area: section_sidebar;
  display: flex;
  flex-direction: column;
  position: static;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 35px;
  min-width: 100%;
  height: max-content;
  min-height: auto;
  max-height: 463px;
  box-sizing: border-box;
  border-radius: 30px;
  margin-bottom: 0;
  box-shadow: 1px 1px 17px rgba(110, 141, 192, 0.11),
    -1px -1px 17px rgba(110, 141, 192, 0.11);
  transition: top 0.3s ease, bottom 0.3s ease;
}

.sidebar_container {
  display: grid;
  grid-template-areas:
    "price"
    "separator_top"
    "published"
    "update"
    "id"
    "separator_buttom"
    "sidebar_link";
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  gap: 0 20px;
}

.sidebar_price {
  grid-area: price;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  transform: translateX(7%);
}

.sidebar_price_main {
  font-size: 18px;
  font-weight: 600;
}

.sidebar_price p {
  margin: 0;
}

.sidebar_price_per_day,
.sidebar_price_per_week,
.sidebar_price_per_month,
.sidebar_price_per_year,
.sidebar_price_per_year,
.sidebar_price_per_period {
  color: #888;
}

.sidebar_price .sidebar_price_common span {
  color: #888;
}

.sidebar_separator_top {
  grid-area: separator_top;
  width: 100%;
  height: 1.1px;
  background-color: rgba(69, 83, 111, 0.2);
  margin-bottom: 15px;
}

.sidebar_published {
  grid-area: published;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  height: 25px;
  margin-bottom: 10px;
}

.paragraph_published {
  margin: 0;
  padding-right: 10px;
}

.paragraph_name {
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.sidebar_update {
  grid-area: update;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  height: 25px;
  margin-bottom: 10px;
}

.paragraph_name {
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.paragraph_update {
  margin: 0;
  padding-right: 10px;
}

.sidebar_id {
  grid-area: id;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  height: 25px;
  margin-bottom: 15px;
}

.sidebar_id a {
  text-decoration: none;
  color: black;
}

.paragraph_name {
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.paragraph_id {
  margin: 0;
  padding-right: 10px;
}

.sidebar_separator_buttom {
  grid-area: separator_buttom;
  width: 100%;
  height: 1.1px;
  background-color: rgba(69, 83, 111, 0.2);
  margin-bottom: 15px;
}

.sidebar_link {
  grid-area: sidebar_link;
}

.feedback_link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  gap: 10px;
  font-weight: bold;
}

.feedback_link_telegram {
  display: inline-block;
  align-items: center;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 30ch;
}

.feedback_link_telegram a {
  color: black;
  text-decoration: none;
}

/* SECTION MAIN*/

.section_main {
  grid-area: section_main;
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  gap: 15px 0;
  box-sizing: border-box;
}

.section_discription {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
}

.discirption_title {
  padding-bottom: 10px;
}

.discription_title_district {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding-bottom: 3px;
}

.discription_title_type,
.discription_title_rooms {
  display: inline;
  font-size: 16px;
  font-weight: 400;
}

.discription_title_period {
  font-size: 16px;
  font-weight: 400;
  margin: 5px 0 0 0;
}

.discription_separator_top,
.discription_separator_bottom {
  border: 1px solid rgba(224, 224, 224, 1);
}

.discription_info {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
}

.discription_content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
}

.main_avatar {
  display: flex;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  margin-right: 10px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.main_text {
  display: flex;
  flex-direction: column;
}

.main_name {
  display: flex;
  font-size: 16px;
  font-weight: bold;
}

.discription_text {
  padding-bottom: 5px;
}

.discription_text a {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.main_button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(104, 198, 120, 1);
  color: white;
  border-radius: 16px;
  transition: background-color 0.7s ease, color 0.7s ease;
  height: 38px;
  width: auto;
  cursor: pointer;
  padding: 0 15px;
  margin: 0 9px 0 0;
}

.main_button a {
  text-decoration: none;
  color: white;
}

.main_button:hover {
  background-color: rgb(96, 190, 112);
}

.main_button:active {
  background-color: rgb(96, 190, 112);
}

.main_button_text {
  display: inline;
}

.main_button_icon {
  display: none;
}

/* SECTION MAP*/

.section_map {
  grid-area: section_map;
  display: flex;
  flex-direction: column;
}

.map_text {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 12px;
}

.map_container {
  max-height: 420px;
  border-radius: 38px;
  overflow: hidden;
}

.section_map img {
  min-width: 640px;
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 30px;
  object-fit: cover;
}

/* DISCRIPTION OFFER*/

.discription_offer {
  grid-area: discription_offer;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  height: auto;
  box-sizing: border-box;
}

.offer_title {
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 15px;
}

.offer_text {
  display: flex;
  flex-direction: row;
  font-size: 16px;
  gap: 50px;
}

.offer_first {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  font-size: 16px;
  gap: 10px;
  cursor: pointer;
}

.offer_first::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-5%, -11%);
  border-radius: 30px;
  z-index: -1;
  transition: background-color 0.3s ease;
}

.offer_first:hover::before {
  background-color: rgba(247, 247, 247, 1);
  width: 120%;
  height: 130%;
}

.offer_second {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  font-size: 16px;
  gap: 10px;
  cursor: pointer;
}

.offer_second::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-5%, -11%);
  border-radius: 30px;
  z-index: -1;
  transition: background-color 0.3s ease;
}

.offer_second:hover::before {
  background-color: rgba(247, 247, 247, 1);
  width: 120%;
  height: 130%;
}

.offer_info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer_info a {
  text-decoration: none;
  color: black;
}

.offer_avatar {
  display: flex;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.offer_name {
  font-weight: bold;
}

@media (max-width: 1100px) {
  .wrapper_second_page .header {
    grid-area: header;
    width: 100%;
    max-width: 90%;
    padding: 0;
    margin: 0 auto;
  }

  .page_discription {
    display: grid;
    grid-template-areas:
      "section_gallery section_gallery"
      "section_main section_sidebar"
      "section_map section_map"
      "discription_offer discription_offer";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr auto;
    width: 100%;
    max-width: 90%;
    padding: 0 0 30px 0;
    gap: 20px 20px;
    margin: 0 auto;
  }
}

@media (max-width: 1050px) {
  .section_gallery {
    grid-area: section_gallery;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "main_photo first_photo third_photo"
      "main_photo second_photo fourth_photo";
    gap: 5px 5px;
    width: 100%;
    height: 400px;
  }

  .main_nic {
    max-width: 170px;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

@media (max-width: 950px) {
  .wrapper_second_page .header {
    grid-area: header;
    width: 100%;
    max-width: 90%;
    padding: 0;
    margin: 0 auto;
  }

  .section_gallery {
    grid-area: section_gallery;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "main_photo first_photo"
      "main_photo second_photo";
    gap: 5px 5px;
    width: 100%;
    height: 420px;
  }

  .third_photo,
  .fourth_photo {
    display: none;
  }

  .first_photo img {
    border-radius: 5px 25px 5px 5px;
  }

  .second_photo img {
    border-radius: 5px 5px 25px 5px;
  }

  .main_button_text {
    display: none;
  }

  .main_button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: rgba(104, 198, 120, 1);
    color: white;
    border-radius: 50%;
    transition: background-color 0.7s ease, color 0.7s ease;
    height: 55px;
    width: 55px;
    cursor: pointer;
    padding: 0;
    margin: 0 9px 0 0;
  }

  .main_button_icon {
    display: inline !important;
  }

  .main_button_icon img {
    padding-top: 5px;
    padding-right: 3px;
    width: 25px;
    height: 25px;
  }

  .discription_text {
    max-width: 100%;
    display: inline-block;
    overflow-wrap: break-word;
  }
}

@media (max-width: 850px) {
  .section_gallery {
    grid-area: section_gallery;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "main_photo first_photo"
      "main_photo second_photo";
    gap: 5px 5px;
    width: 100%;
    height: 400px;
  }
}

@media (max-width: 750px) {
  .page_discription {
    display: grid;
    grid-template-areas:
      "section_gallery"
      "section_title"
      "section_sidebar"
      "section_main"
      "section_map"
      "discription_offer ";
    grid-template-rows: auto auto auto auto;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 90%;
    height: auto;
    padding: 0 0 30px 0;
    gap: 35px;
    margin: 0 auto;
  }

  .section_title {
    grid-area: section_title;
    display: block !important;
    padding-left: 25px;
    margin: -10px 0;
  }

  .section_title_district_mobile {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    padding-bottom: 3px;
  }

  .section_title_type_mobile,
  .section_title_rooms_mobile {
    display: inline;
    font-size: 16px;
    font-weight: 400;
  }

  .discirption_title {
    display: none;
  }

  .section_gallery {
    grid-area: section_gallery;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "main_photo";
    gap: 5px 5px;
    width: 100vw;
    max-width: 98.4vw;
    margin-left: calc(-50vw + 50%);
    height: 400px;
  }

  .main_photo {
    grid-area: main_photo;
    width: 100%;
    min-width: 70%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 70%;
    border-radius: 30px;
    object-fit: cover;
    cursor: pointer;
    perspective: 1000px;
    transform-origin: center;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .main_photo img {
    border-radius: 0;
  }

  .first_photo,
  .second_photo,
  .third_photo {
    display: none;
  }

  .sidebar_price {
    margin: 0 auto;
    text-align: left;
    white-space: nowrap;
    transform: translateX(0%);
  }

  .sidebar_published,
  .sidebar_update,
  .sidebar_id,
  .sidebar_link {
    width: 55%;
    margin: 0 auto;
    text-align: left;
    white-space: nowrap;
  }

  .sidebar_price,
  .sidebar_published,
  .sidebar_update,
  .sidebar_id {
    margin-bottom: 15px;
  }

  .section_map img {
    min-width: 300px;
    width: 100%;
    height: auto;
    max-height: 550px;
    min-height: 350px;
    border-radius: 30px;
    object-fit: cover;
  }
}

@media (max-width: 550px) {
  .wrapper_second_page .header {
    width: 100%;
    max-width: 93%;
    padding: 0;
  }

  .page_discription {
    display: grid;
    grid-template-areas:
      "section_gallery"
      "section_title"
      "section_sidebar"
      "section_main"
      "section_map"
      "discription_offer ";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 93%;
    height: auto;
    padding: 0 0 30px 0;
    gap: 35px;
    margin: 0 auto;
  }

  .section_gallery {
    grid-area: section_gallery;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "main_photo";
    position: relative;
    gap: 5px 5px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: auto;
    max-height: 450px;
    min-height: 450px;
    border-radius: 0 !important;
  }

  .main_photo {
    grid-area: main_photo;
    width: 100%;
    min-width: 70%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 70%;
    max-height: 100%;
    border-radius: 30px;
    object-fit: cover;
    cursor: pointer;
    perspective: 1000px;
    transform-origin: center;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .first_photo,
  .second_photo,
  .third_photo {
    display: none;
  }

  .section_main {
    align-items: center;
    justify-content: center;
  }

  .section_discription {
    width: 90%;
    max-width: 90%;
  }

  .sidebar_price {
    width: 80%;
    margin: 0 auto;
    text-align: left;
    white-space: nowrap;
  }

  .sidebar_published,
  .sidebar_update,
  .sidebar_id,
  .sidebar_link {
    width: 90%;
    margin: 0 auto;
    text-align: left;
    white-space: nowrap;
  }

  .sidebar_price,
  .sidebar_published,
  .sidebar_update,
  .sidebar_id {
    margin-bottom: 15px;
  }

  .section_map {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 440px) {
  .wrapper_second_page {
    margin: 0 auto;
  }

  .wrapper_second_page .header {
    margin: 0 20px;
    padding: 0;
  }

  .section_gallery {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 400px;
    min-height: 400px;
  }

  .section_map {
    grid-area: section_map;
    display: flex;
  }

  .section_map img {
    min-width: 300px;
    width: 100%;
    height: auto;
    max-height: 400px;
    min-height: 400px;
    border-radius: 10px;
    object-fit: cover;
  }

  .discription_offer {
    grid-area: discription_offer;
    display: flex;
    flex-direction: column;
    padding: 30px;
    min-width: 250px;
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 1px 1px 1px rgba(110, 141, 192, 0.2),
      -1px -1px 1px rgba(110, 141, 192, 0.2);
  }

  .offer_text {
    flex-direction: column;
  }

  .map_container {
    height: 400px;
    border-radius: 38px;
    overflow: hidden;
  }
}
