@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* hamburuger menu */
  --bar-width: 60px;
  --bar-height: 8px;
  --hamburger-gap: 6px;

  /* general */
  --ff-merriweather: "Merriweather", serif;
  --ff-rubik: "Rubik", sans-serif;
  --clr-auburn: 166, 38, 57;
  --clr-cerise: 216, 65, 102;
  --clr-white: 255, 255, 255;
  --clr-black: 0, 0, 0;
  --clr-yellow: 255, 255, 0;
}

body {
  font-family: var(--ff-rubik);
}

h1,
h2 {
  font-family: var(--ff-merriweather);
  font-weight: 900;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header {
  background-color: rgb(var(--clr-auburn));
}

.menu-container {
  display: flex;
  justify-content: space-around;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50vh;
  color: whitesmoke;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
      rgba(var(--clr-auburn), 0.5),
      rgba(var(--clr-cerise), 0.5)
    ),
    url("/assets/imgs/photos/DSC_0821.jpg") no-repeat center center/cover;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  font-size: 1.2rem;
  text-decoration: none;
  color: rgb(var(--clr-white));
  background-color: rgb(var(--clr-auburn));
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.btn:hover,
.btn:active {
  background-color: rgb(var(--clr-cerise));
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

/* features section */
.amenities {
  margin: 2rem 0;
}
.apt-features {
  color: rgb(var(--clr-black));
}

.apt-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apt-description h2 {
  text-align: center;
  color: rgb(var(--clr-auburn));
}

.apt-amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "guests wifi"
    "bed parking"
    "bathroom garden";
  gap: 1rem;
  padding-left: 2rem;
}

.guests {
  grid-area: guests;
}

.bed {
  grid-area: bed;
}

.bathroom {
  grid-area: bathroom;
}

.wifi {
  grid-area: wifi;
}

.parking {
  grid-area: parking;
}

.garden {
  grid-area: garden;
}

.apt-amenities div {
  display: flex;
  gap: 1rem;
}

.apt-amenities div div {
  width: 1rem;
}

.apt-amenities i {
  color: rgb(var(--clr-auburn));
}

/* image gallery */
.carousel {
  position: relative;
  width: 90%;
  margin-inline: auto;
  overflow: hidden;
  transition: 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  display: none;
}

img.display-image {
  display: block;
  animation-name: fade;
  animation-duration: 1.5s;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  padding: 0.3rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  color: rgb(var(--clr-auburn));
  background-color: whitesmoke;
  cursor: pointer;
}

.prev {
  left: 1rem;
}

.after {
  right: 1rem;
}

@keyframes fade {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

/* google map */

.location-header,
.contact h2 {
  font-family: var(--ff-merriweather);
  color: rgb(var(--clr-auburn));
  text-align: center;
  margin: 1rem 0;
  margin-inline: auto;
}
.map {
  height: 250px;
  width: 90%;
  margin-bottom: 1rem;
}

/* contact */
.contact {
  margin: 1rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-form::placeholder,
.contact-form label,
input,
textarea {
  width: 100%;
  font-family: rgb(var(--ff-rubik));
  border: 1px solid rgba(var(--clr-auburn), 0.3);
  border-radius: 5px;
  padding: 0.5rem;
}

.contact-form label {
  border: none;
}

/* footer */
footer {
  background-color: rgb(var(--clr-auburn));
  color: rgb(var(--clr-white));
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* menu */

a {
  text-decoration: none;
  color: rgb(var(--clr-white));
}

.link:hover {
  border-bottom: 2px solid rgb(var(--clr-yellow));
  padding-bottom: 0.5rem;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.full-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  color: #fff;
  cursor: pointer;
  list-style-type: none;
  display: none;
}

/* off-screen menu */

.off-screen-menu {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: #fff;
  cursor: pointer;
  list-style-type: none;
  padding-left: 2rem;
  z-index: 10;
}

.menu li {
  font-family: var(--ff-merriweather);
}

.off-screen-menu {
  background-color: rgb(var(--clr-auburn));
  height: 100vh;
  width: 100%;
  max-width: 450px;
  position: fixed;
  top: 0;
  right: -450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 3rem;
  transition: 0.3s ease;
}

.off-screen-menu.active {
  right: 0;
}

nav {
  padding: 1rem;
  display: flex;
}

/* hamburger menu */

.ham-menu {
  height: 50px;
  width: 50px;
  margin-left: auto;
  position: relative;
  z-index: 11;
}

.ham-menu span {
  height: 5px;
  width: 100%;
  background-color: #fff;
  border-radius: 25px;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}

.ham-menu span:nth-child(1) {
  top: 95%;
}

.ham-menu span:nth-child(3) {
  top: 145%;
}

.ham-menu.active span:nth-child(1) {
  top: 100%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
  opacity: 0;
}

.ham-menu.active span:nth-child(3) {
  top: 90%;
  transform: translate(-50%, 50%) rotate(-45deg);
}

.logo {
  width: 9rem;
}

@media (min-width: 600px) {
  header {
    justify-content: space-between;
    align-items: center;
  }

  .map {
    height: 400px;
  }

  .apt-amenities {
    text-emphasis: center;
    padding-left: 4rem;
  }

  .off-screen-menu,
  .ham-menu {
    display: none;
  }

  .full-menu {
    display: block;
    display: flex;
  }
}

@media (min-width: 800px) {
  .apt-amenities {
    text-emphasis: center;
    width: 60%;
    padding-left: 10rem;
  }
}
