* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.header_navigation img {
  width: 48px;
  height: 48px;
}

.header_navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1640px;
  width: 100%;
  padding-top: 40px;
  margin: auto;
}

.header_navigation ul {
  display: flex;
  gap: 48px;
  list-style: none;
}

.header_navigation ul li a {
  text-decoration: none;
  color: black;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.header_navigation ul li a:hover {
  font-size: 20px;
  text-decoration: underline;
}

.header_navigation button {
  border: none;
  padding: 13px 26px;
  border-radius: 12px;
  background-color: #29b24e;
  color: white;
  cursor: pointer;
}

.header_navigation button:hover {
  padding: 16px 32px;
}

.container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  max-width: 1640px;
  width: 100%;
  margin: 40px auto;
  align-items: start;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0px;
}

.location select {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 0 10px;
}

.property,
.price_range input {
  accent-color: green;
}

.price_range h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: medium;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0px;
  margin-bottom: 13px;
}

.property,
.price_range {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: medium;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0px;
  margin-bottom: 13px;
}

.property label {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
}

.price_range label {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
}

span.count {
  opacity: 0.7;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.search img {
  max-width: 1225px;
  width: 100%;
  height: 751px;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  position: relative;
}

.absolute_text {
  position: absolute;
  margin-top: 60px;
  left: 41%;
  gap: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #111;
  z-index: 2;
}

.absolute_text h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: 0px;
}

.absolute_text p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 100%;
  letter-spacing: 0px;
}

.search_box {
  position: relative;
  display: inline-block;
  margin-top: 40px;
}

.search_box input {
  width: 320px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 0 48px 0 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  outline: none;
}

.search_box img {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.6;
  cursor: pointer;
}

.trending {
  margin-top: 32px;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 32px 0;
  width: 100%;
}

.trending .title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  padding-left: 250px;
}

.cards_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  cursor: pointer;
}

.main_card {
  position: relative;
  height: 300px;
  width: 385px;
}

.main_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vip {
  position: absolute;
  left: 16px;
  top: 12px;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0px;
}

.btn_bookmark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn_bookmark:hover {
  width: 40px;
  height: 40px;
  background-color: rgb(57, 100, 57);
}

.btn_bookmark img {
  width: 18px;
  height: 18px;
}

.card__body {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0px;
}

.card__title {
  grid-column: 1 / 3;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
}

.card__subtitle {
  grid-column: 1 / 2;
  color: #6b7280;
  font-size: 13px;
}

.card__price {
  grid-column: 2 / 3;
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}

.card__body span:hover {
  text-decoration: underline;
}

.card__meta span {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
}

.card__meta span:hover {
  text-decoration: underline;
}

.card__price .value {
  color: #29b24e;
  font-weight: 800;
  font-size: 22px;
}

.card__price .unit {
  font-size: 12px;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 16px;
  color: #374151;
  font-size: 13px;
  border-top: 1px solid #eef2f7;
}

.footer {
  background: #29b24e;
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 32px 140px;
  width: 100%;
  margin: 40px auto;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: Medium;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__nav,
.footer__social {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
}

.footer__nav a,
.footer__social a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer__nav a:hover,
.footer__social a:hover {
  text-decoration: underline;
}

.footer__email {
  font-size: 14px;
  font-weight: 500;
}

.footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 16px 0;
}

.footer__copy {
  font-size: 13px;
  opacity: 0.9;
}

@media (min-width: 481px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
  }

  .mobile-tabbar {
    display: none;
    height: 0;
    padding: 0;
    border: 0;
  }

  .footer {
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-radius: 20px;
  }
}

@media (max-width: 375px) {
  body {
    background: #f3f4f6;
  }

  .header_navigation {
    max-width: none;
    width: 100%;
    padding: 12px 16px 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .header_navigation ul,
  .header_navigation .sell_button {
    display: none;
  }
  .header_navigation img {
    width: 44px;
    height: 44px;
  }

  .header_navigation::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    background-image: url("../img/search-normal.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 1000;
  }

  .container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 14px;
    max-width: 375px;
    margin: 0 auto;
  }

  .search {
    order: 0;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    background: #fff;
    margin-top: 6px;
  }

  .filters {
    order: 1;
  }

  .search img {
    max-width: 335px;
    width: 100%;
    height: 425px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
  }

  .absolute_text {
    position: absolute;
    left: 50%;
    gap: 0px;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    color: #232323;
    z-index: 2;
    pointer-events: none;
  }

  .absolute_text h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    width: 241px;
    height: 72px;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0px;
  }

  .absolute_text p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    opacity: 80%;
    width: 294px;
    height: 21px;
    line-height: 100%;
    letter-spacing: 0px;
  }

  .search::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 56%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 30%,
      rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .search_box {
    display: none;
  }
  .trending .title {
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
  }

  .cards_grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
    max-width: 420px;
    margin: 0 auto;
  }

  .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  .main_card {
    position: relative;
    width: 100%;
    background: #eef1f3;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main_card img {
    width: 303px;
    height: 202px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .vip {
    position: absolute;
    left: 35px;
    top: 64px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
  }

  .btn_bookmark {
    position: absolute;
    right: 35px;
    bottom: 35px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    display: grid;
    place-items: center;
    z-index: 5;
  }

  .btn_bookmark img {
    width: 18px;
    height: 18px;
  }

  .card__body {
    padding: 12px 12px 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
  }
  .card__title {
    font-size: 15px;
    line-height: 1.25;
  }
  .card__subtitle {
    font-size: 12px;
    color: #6b7280;
  }

  .card__price {
    margin-top: 4px;
    gap: 4px;
    display: flex;
    align-items: baseline;
    justify-self: end;
  }
  .card__price .value {
    font-size: 20px;
    color: #29b24e;
  }
  .card__price .unit {
    font-size: 11px;
    opacity: 0.85;
  }

  .card__meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px 12px;
    font-size: 12px;
    color: #374151;
    border-top: 1px solid #eef2f7;
  }
  .card__meta span {
    font-size: 12px;
    white-space: nowrap;
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    height: 326px;
    border-radius: 20px;
    padding: 20px 18px 14px;
    margin: 0px 0px 70px;
    background: #29b24e;
    color: #fff;
    text-align: left;
  }

  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
    column-gap: 28px;
    align-items: start;
  }

  .footer__nav,
  .footer__social {
    display: grid;
    row-gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer__social {
    text-align: right;
  }

  .footer__nav a,
  .footer__social a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
  }

  .footer__email {
    display: none;
  }
  .footer hr {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    margin: 14px 0;
  }

  .footer__copy {
    display: block;
    text-align: center;
    font-size: 14px;
    opacity: 0.95;
  }

  .footer__email {
    display: none;
  }

  .footer__copy {
    text-align: center;
    font-size: 14px;
    opacity: 0.95;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    gap: 20px;
    z-index: 999;
  }
  .mobile-tabbar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    min-width: 56px;
  }
  .mobile-tabbar .tab-item img {
    width: 22px;
    height: 22px;
    display: block;
  }
  .mobile-tabbar .tab-item.is-active {
    color: #111827;
  }

  .mobile-tabbar .tab-fab {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -22px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: #29b24e;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(41, 178, 78, 0.45);
  }
  .mobile-tabbar .tab-fab:active,
  .mobile-tabbar .tab-fab:focus {
    outline: none;
  }
}
