/* ========== MAIN ========== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== HERO ========== */
.hero {
  width: 100%;
  height: 22.5rem;
  background: url("../assets/hero.webp") no-repeat center/cover;
  display: flex;
  justify-content: center;  
  align-items: center;
  overflow-y: visible;
}

.hero__search {
  min-width: 64rem;
  display: flex;
  align-items: center;
  background-color: var(--color-background);
  border: 0.5rem solid var(--color-background);
  border-radius: 0.375rem;
}

.hero__actions {
  display: flex;
}

.hero__select {
  position: relative;
  display: flex;
  align-items: center;
}

.hero__select-trigger {
  height: 2.75rem;
  min-width: 12rem;
  padding: 0.625rem 1rem;
  border: none;
  border-left: 1px solid var(--color-neutral-lighter);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 1rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.hero__select-text {
  white-space: nowrap;
}

.hero__select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 100%;
  background: var(--color-background);
  border-radius: 0.5rem;
  padding: 0.25rem 0;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  display: none;
  z-index: 60;
}

.hero__select--open .hero__select-menu {
  display: block;
}

.hero__select-option {
  width: 100%;
  border: none;
  background: none;
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 1rem;
  font-family: "Source Sans 3", sans-serif;
  cursor: pointer;
}

.hero__select-option:hover {
  background: var(--color-neutral-lightest);
}

.hero__input {
  flex: 1;
  border-radius: 0;
}

.hero__button {
  border-radius: 0;
}

.hero__actions .hero__button--rent {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.hero__actions .hero__button--buy {
  border-radius: 0;
}

.hero__search .hero__button--search {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ========== SEARCH MODAL ========== */
.search-modal {
  display: none;
  outline: 0;
  overflow: hidden;
  position: absolute;
  top: 18rem;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  -webkit-overflow-scrolling: touch;
}

.search-modal__dialog {
  max-width: 64rem;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 0.375rem;
  margin: auto;
  padding: 1.5rem 2rem;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.search-modal__section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-modal__label {
  color: var(--color-neutral);
}

.search-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-modal__tag {
  font-weight: 600;
  border: 1px solid var(--color-neutral-lighter);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-modal__tag:hover {
  background: var(--color-neutral-lightest);
}

.search-modal__tag--selected {
  background: var(--color-neutral-lightest);
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1060px) {
  .hero__search {
    min-width: 45rem;
  }

  .search-modal__dialog {
    max-width: 45rem;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    width: 100%;
    height: 16rem;
    padding: 1rem 1.5rem;
  }

  .hero__search {
    min-width: auto;
    width: 100%;
  }

  .search-modal {
    top: 15rem;
  }

  .search-modal__dialog {
    width: 90%;
  }
}

@media screen and (max-width: 640px) {
  .hero__search {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero__select {
    width: 100%;
  }

  .hero__select-trigger {
    width: 100%;
    border-radius: 0.375rem;
    border-left: none;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .hero__button--rent {
    width: 50%;
  }

  .hero__actions .hero__button--buy {
    width: 50%;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
  }

  .hero__search .hero__button--search {
    width: 100%;
    border-radius: 0.375rem;
  }

  .hero__input {
    width: 100%;
    border-radius: 0.375rem;
  }

  .search-modal {
    top: 18rem;
  }
}

/* ========== ABOUT SECTION ========== */
.about {
  max-width: 90rem;
  padding: 3.5rem 6.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__title {
  font-weight: 600;
}

.about__text {
  max-width: 44.5rem;
  margin: 0 auto;
}

.about__divider {
  width: 31.25rem;
  height: 1px;
  background-color: var(--color-neutral-lighter);
}

.about__subtitle {
  font-weight: 600;
}

.about__subtitle--contact {
  color: var(--color-accent);
}

.about__contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.about__contact .about__contact-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.about__contact .about__follow-button {
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  background: #C0C0C0;
  border: 0.125rem solid #C0C0C0;
  font-size: 2.5rem;
  padding: 0
}

.about__contact .about__follow-button:hover {
  background: var(--color-neutral);
  border: 0.125rem solid var(--color-neutral);
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 640px) {
  .about {
    padding: 4rem 3rem;
  }

  .about__contact {
    gap: 0.5rem;
  }

  .about__divider {
    width: 100%;
  }
}

/* ========== LATEST PROPERTIES SECTION ========== */
.latest-properties {
  width: 100%;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  background: var(--color-neutral-lightest);
}

.latest-properties__title {
  color: var(--color-accent);
}

.latest-properties__category {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.latest-properties__heading {
  color: var(--color-text);
}

/* Swiper container */
.slide-container {
  width: 100%;
  height: max-content;
  position: relative;
}

.slide-content {
  padding: 2rem 1rem;
  margin: 0 6rem;
  overflow-x: hidden;
}

/* ========== PROPERTY CARD ========== */
.property-card {
  background: var(--color-background);
  border-radius: 0.375rem;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.property-card__image {
  width: 100%;
  height: 14rem;
  background-position: center;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.property-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
}

.property-card__title {
  color: var(--color-accent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.property-card__location {
  color: var(--color-neutral);
}

.property-card__details {
  display: flex;
}

.property-card__detail {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-card__divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-neutral-lighter);
}

.property-card__price {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-card__type {
  color: var(--color-neutral);
}

.property-card__amount {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-sundance);
}

/* ========== SWIPER OVERRIDES ========== */
.swiper-navBtn {
  color: var(--color-neutral) !important;
  z-index: 999;
}

.swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 2rem !important;
  z-index: 999;
}

.swiper-button-next {
  right: 3rem !important;
}

.swiper-button-prev {
  left: 3rem !important;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
  .slide-content {
    margin: 0 3rem;
  }

  .swiper-button-next {
    right: 1.5rem !important;
  }

  .swiper-button-prev {
    left: 1.5rem !important;
  }
}

@media screen and (max-width: 640px) {
  .latest-properties {
    padding: 4rem 0;
  }

  .slide-content {
    margin: 0 1.75rem;
  }

  .property-card__image {
    height: 10rem;
  }

  .property-card__content {
    padding: 1.5rem 1.25rem;
  }

  .swiper-navBtn::before,
  .swiper-navBtn::after {
    font-size: 1rem !important;
  }

  .swiper-button-next {
    right: 0.5rem !important;
  }

  .swiper-button-prev {
    left: 0.5rem !important;
  }
}
