* {
  margin: 0;
  padding: 0;
}

html { height: 100%; }

body {
  background-color: #f8f5f3;
  box-sizing: border-box;
  color: #1a130c;
  font: 300 18px "Merriweather Sans", sans-serif;
  font-optical-sizing: auto;
  min-height: 100%;
  position: relative;
}

h1 {
  font: 400 48px 'Noto Serif', serif;
  margin-bottom: 1em;
}

h2 {
  font: 400 48px 'Noto Serif', serif;
  font-weight: 400;
  line-height: 1.2em;
  margin-bottom: 0.75em;
}

h2 span {
  display: block;
  font-style: italic;
  font-weight: 700;
}

h3 {
  font: 400 32px 'Noto Serif', serif;
  line-height: 1.2em;
  margin: 1.2em 0 0.8em;
}

h3:first-child { margin-top: 0; }

h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 1.2em 0 0.667em;
}

h5 {
  font: 400 24px 'Noto Serif', serif;
  margin: 1.2em 0 0.667em;
}

h6 {
  font-size: 18px;
  font-weight: 600;
  margin: 1em 0 0.5em;
}

h6:first-child { margin-top: 0; }

p {
  line-height: 1.5em;
  margin: 1em 0;
}

p:first-of-type { margin-top: 0; }

p:last-of-type { margin-bottom: 0; }

p.larger {
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
}

img { vertical-align: middle; }

img.rounded { border-radius: 20px; }

a { transition: 300ms; }

strong { font-weight: 600; }

input { font: 300 16px "Merriweather Sans", sans-serif; }

.button-group {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

.button-wrapper { margin-top: 1.5em; }

.button {
  background-color: #5ba2a8;
  border-radius: 22px;
  color: #fff !important;
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 30px;
  text-decoration: none;
}

.button:hover { background-color: #72bbc2; }

.button.brown { background-color: #b09575; }

.button.brown:hover { background-color: #c9af8f; }

.intro {
  margin-bottom: 80px;
  max-width: 100%;
  width: 800px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header-wrapper:not(.home) { background-color: #f0e7df; }

.header {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 10px 40px;
  margin: 0 auto;
  max-width: 1600px;
  padding: 30px 20px;
  place-items: center end;
  position: relative;
  z-index: 100;
}

.logo img { max-width: 100%; }

.header ul { list-style: none; }

.header a {
  color: #1a130c;
  display: block;
  text-decoration: none;
}

.home .header a { color: #fff; }

#menu-main-menu {
  display: flex;
  flex-flow: row nowrap;
  gap: 40px;
}

#menu-main-menu > li > a {
  font-size: 18px;
  font-weight: 400;
  padding: 20px 0;
}

#menu-main-menu > li:hover > ul { display: block; }

#menu-main-menu .menu-item-has-children {
  background: url("../images/arrow.png") right center no-repeat;
  padding-right: 23px;
}

.home .header #menu-main-menu .menu-item-has-children { background-image: url("../images/arrow-bw.png"); }

#menu-main-menu ul {
  background-color: #10283b;
  border-radius: 20px;
  display: none;
  font-size: 16px;
  padding: 14px 10px;
  position: absolute;
  white-space: nowrap;
}

#menu-main-menu ul::after {
	border: 20px solid transparent;
	border-top: 0;
	border-bottom-color: #10283b;
	content: '';
	height: 0;
	margin-top: -20px;
	position: absolute;
		top: 0;
		left: 20px;
	width: 0;
}

#menu-main-menu ul a {
  border-radius: 20px;
  color: #fff;
  padding: 8px 12px;
}

#menu-main-menu ul a:hover { background-color: #1a3b54; }

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

#mainMenu {
  background-color: #222a30;
  height: 100vh;
  overflow-x: hidden;
  position: fixed;
    top: 0;
    right: 0;
  transition: 1s;
  width: 0;
  z-index: 998;
}

#mainMenu.show { width: 100%; }

#mainMenu ul { list-style: none; }

#mainMenu .mobile-menu { margin: 0 30px; }

#mainMenu .mobile-menu:first-child { margin-top: 30px; }

.mobile-menu {
  color: #fff;
  white-space: nowrap;
}

.mobile-menu a {
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 300;
  margin: 15px 0;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
    Mobile Menu Toggle
   ========================================================================== */
  
#openMenu {
  background-color: #222a30;
  display: none;
  padding: 20px 15px;
  position: fixed;
    top: 0;
    right: 0;
  transition: .5s;
  width: 41px;
  z-index: 999;
}

#openMenu.open {
  background-color: #222a30;
  color: #fff;
}

#menuTitle {
  position: relative;
  text-align: center;
  transition: .5s;
}
  
/* ==========================================================================
    Mobile Menu Icon Transition Effect
   ========================================================================== */
  
#btn {
  cursor: pointer;
  display: block;
  height: 30px;
  position: relative;
  transition: .5s;
  z-index: 200;
}

#btn .icon,
#btn .icon::before,
#btn .icon::after {
  background: #fff;
  content: '';
  display: block;
  height: 2px;
  position: absolute;
  transition: top ease .5s .5s, transform ease .5s;
  width: 41px;
}

#btn .icon {
  top: 14px;
  left: 2px;
}

#btn .icon::before { top: -8px; }

#btn .icon::after { top: 8px; }

#btn.active .icon { background: transparent; }

#btn.active .icon::before { transform: rotate(45deg); }

#btn.active .icon::after { transform: rotate(-45deg); }

#btn.active .icon::before,
#btn.active .icon::after {
  background-color: #fff;
  top: 0;
  transition: top ease .5s, transform ease .5s .5s;
}

/* ==========================================================================
   Banner
   ========================================================================== */

.banner {
  margin-top: -126px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.overlay {
  padding: 0 20px;
  position: absolute;
    right: 0;
    bottom: 160px;
    left: 0;
}

.banner .text {
  color: #fff;
  margin: 0 auto;
  max-width: 1600px;
}

.banner .text h1 { margin-bottom: 1.5em; }

.banner .text span { display: block; }

.banner .text span:last-child {
  font-style: italic;
  font-weight: 700;
}

.banner .search {
  align-items: center;
  background-color: #fff;
  border-radius: 51px;
  display: grid;
  grid-template-columns: repeat(4, auto) max-content;
  margin: 0 auto;
  max-width: 1600px;
}

.banner .search .field {
  border-left: 1px solid #e1e1e1;
  padding: 30px;
}

.banner .search .field:first-child { border-left: none; }

.banner .search span {
  display: block;
  font-size: 14px;
}

.banner .search input {
  border: none;
  color: #000;
  font: 600 20px "Merriweather Sans", sans-serif;
  width: 100%;
}

.banner .search input::placeholder {
  color: #000;
  opacity: 1;
}

.banner .search input:focus {
  background-color: #f3f3f3;
  outline: 0;
}

.banner .search .submit { padding: 20px; }

.banner .search button {
  background-color: #5ba2a8;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  padding: 15px;
  transition: 300ms;
}

.banner .search button:hover { background-color: #72bbc2; }

/* ==========================================================================
   Frontpage
   ========================================================================== */

.frontpage {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.frontpage .bottom {
  margin-top: 40px;
  text-align: center;
}

.search-bar {
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.search-bar .search input {
  border: none;
  border-radius: 22px;
  max-width: 100%;
  padding: 12px 15px;
  width: 400px;
}

.search-bar .search input:focus {
  box-shadow: 0 0 5px #5ba2a8;
  outline: 0;
}

.products.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.products .grid-item {
  background-color: #fff;
  border-radius: 20px;
  font-size: 16px;
  overflow: hidden;
}

.products.grid img { max-width: 100%; }

.products .text { padding: 20px; }

.products .title {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin-bottom: 1em;
}

.products h4 {
  font-size: 20px;
  margin: 0;
}

.products .rating {
  background: url("../images/star.png") left center no-repeat;
  background-size: auto 100%;
  font-size: 20px;
  font-weight: 400;
  padding-left: 33px;
}

.products .short-description {
  font-style: italic;
  line-height: 1.5em;
  margin: 1em 0;
}

.products .short-details {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.products .location { font-weight: 400; }

.products .price {
  font-size: 24px;
  font-weight: 600;
}

/* ==========================================================================
   Content
   ========================================================================== */

.content {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.content a {
  color: #1a130c;
  font-weight: 400;
}

.content ol {
  margin: 1em 0;
  overflow: hidden;
}

.content ol li { margin: 12px 0 0 1em; }

.content ol li:first-child { margin-top: 0; }

.images {
  border-radius: 20px;
  display: grid;
  gap: 5px;
  grid-template-columns: 2fr repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  margin-bottom: 80px;
  overflow: hidden;
}

.images img { max-width: 100%; }

.images .main-image { grid-row: 1 / span 2; }

.images .main-image img { height: 100%; }

.main {
  display: grid;
  gap: 80px;
  grid-template-columns: 2fr 1fr;
}

.left {
  border-right: 1px solid #c7c3bf;
  padding-right: 80px;
}

.info {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.lister {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  font-size: 20px;
  font-weight: 400;
  gap: 15px;
}

.lister .profile-pic img {
  border-radius: 30px;
  width: 60px;
}

.rating-info {
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
}

.rating-summary {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
}

.rating-summary .number {
  font-size: 40px;
  font-weight: 600;
}

.rating-details .text-rating { font-weight: 700; }

.rating-details .star-rating img { width: 15px; }

.details {
  line-height: 1.5em;
  margin: 40px 0;
}

.description { margin: 40px 0; }

.terms {
  background-color: #f0e7df;
  border-radius: 20px;
  padding: 40px;
}

.terms h3 { margin-top: 0; }

.terms ol { margin: 0; }

.rate-details { line-height: 1.5em; }

.rate {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 30px;
}

.dates { margin: 30px 0; }

.content input[type="date"] {
  border: none;
  border-radius: 25px;
  box-sizing: border-box;
  padding: 15px 20px;
  width: 100%;
}

.rental-request .button {
  display: block;
  text-align: center;
}

.review-summary {
  font-size: 24px;
  margin-bottom: 30px;
}

.review-summary img {
  margin-right: 12px;
  width: 30px;
}

.review {
  border-bottom: 1px solid #c7c3bf;
  padding: 30px 0;
}

.review:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-info {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: max-content 1fr max-content;
  margin-bottom: 1em;
}

.reviewer {
  font-size: 20px;
  font-weight: 500;
}

.review .date { font-style: italic; }

.review .star-rating {
  font-size: 20px;
  font-weight: 600;
}

.review .star-rating img {
  margin-right: 8px;
  width: 24px;
}

h6 + p { margin-top: 0; }

.profile {
  display: grid;
  gap: 30px 80px;
  grid-template-columns: repeat(2, 2fr) 3fr;
}

.profile img { max-width: 100%; }

.registration {
  display: grid;
  gap: 30px 80px;
  grid-template-columns: repeat(2, 1fr);
}

.content input,
.content select,
.content textarea {
  background-color: #fff;
  border: none;
  border-radius: 25px;
  box-sizing: border-box;
  font: 300 18px "Merriweather Sans", sans-serif;
  padding: 15px 20px;
  width: 100%;
}

.content input:focus {
  box-shadow: 0 0 5px #5ba2a8;
  outline: 0;
}

.rental {
  display: grid;
  gap: 30px 80px;
  grid-template-columns: repeat(2, 1fr);
}

.content table {
  background-color: #fff;
  border-collapse: collapse;
  width: 100%;
}

.content th,
.content td { padding: 10px; }

.content th {
  background-color: #b09575;
  color: #fff;
  font-weight: 400;
  text-align: left;
}

.content tr:nth-child(even) { background-color: #f0e7df; }

.posting {
  background-color: #f0e7df;
  margin-top: 80px;
  padding: 40px;
}

.posting .grid {
  display: grid;
  gap: 80px;
  grid-template-columns: repeat(2, 1fr);
}

.posting .input-group {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
}

.posting .button { white-space: nowrap; }

/* ==========================================================================
   Section 1
   ========================================================================== */

.section1 {
  align-items: center;
  display: grid;
  grid-template-columns: 10fr 9fr;
  gap: 30px 80px;
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.section1 img { max-width: 100%; }

.testimonial {
  background-color: #fff;
  border-radius: 20px;
  margin: 2em 0 1em;
  padding: 30px;
}

.testimonial .name {
  display: block;
  font-weight: 400;
  margin-bottom: 0;
}

.testimonial-wrapper .bottom {
  align-items: start;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.bullets {
  display: flex;
  flex-flow: row nowrap;
  gap: 7px;
}

.bullets li {
  background-color: #b09575;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  padding: 8px;
}

.bullets li.active { background-color: #5ba2a8; }

.button-nav {
  display: flex;
  flex-flow: row nowrap;
  gap: 8px;
}

.arrow {
  background: #5ba2a8 url("../images/right-arrow.png") center center no-repeat;
  border-radius: 20px;
  display: block;
  padding: 20px;
  text-align: center;
}

.arrow.left { background-image: url("../images/left-arrow.png"); }

.arrow:hover { background-color: #72bbc2; }

/* ==========================================================================
   Section 2
   ========================================================================== */

.section2-wrapper { background-color: #f0e7df; }

.section2 {
  align-items: center;
  display: grid;
  grid-template-columns: 9fr 10fr;
  gap: 30px 80px;
  margin: 0 auto;
  max-width: 1600px;
  padding: 120px 20px;
}

.section2 img { max-width: 100%; }

/* ==========================================================================
   Section 3
   ========================================================================== */

.section3 {
  margin: 120px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.section3 h3 { margin: 0 0 0.25em; }

.section3 img { width: 100%; }

.section3 .bottom {
  margin-top: 40px;
  text-align: center;
}

.section3 .grid {
  display: grid;
  font-size: 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.section3 .grid-item { position: relative; }

.section3 .image {
  border-radius: 20px;
  overflow: hidden;
  position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  z-index: 0;
}

.section3 .image::before {
  background-image: linear-gradient(transparent, rgba(0,0,0,0.75));
  content: " ";
  position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.section3 .text {
  color: #fff;
  padding: 120px 40px 40px;
  position: relative;
  text-align: right;
  z-index: 100;
}

/* ==========================================================================
   Section 4
   ========================================================================== */

.section4-wrapper { background-color: #f0e7df; }

.section4 {
  margin: 0 auto;
  max-width: 1600px;
  padding: 120px 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-wrapper { background-color: #46403c; }

.footer {
  color: #fff;
  display: grid;
  gap: 40px 120px;
  grid-template-columns: 1fr repeat(3, max-content);
  margin: 0 auto;
  max-width: 1600px;
  padding: 60px 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover { color: #dbdad9; }

.footer h5 { margin-top: 0; }

.bottom-menu .menu { list-style: none; }

.bottom-menu .menu li {
  font-size: 16px;
  margin-top: 10px;
}

.footer .contact { margin: 30px 0; }

.footer .email { margin-bottom: 10px; }

.footer .social {
  display: flex;
  flex-flow: row nowrap;
  gap: 12px;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media only screen  
and (max-width : 1279px) {

body { font-size: 16px; }

h1, h2 { font-size: 40px; }

.header {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  justify-items: center;
}

.header .logo { grid-column: 1 / span 2; }

.banner { margin-top: -199px; }

.banner .image img { height: 800px; }

.footer {
  grid-template-columns: repeat(3, max-content);
  justify-items: center;
  justify-content: center;
}

.footer .branding {
  grid-column: 1 / span 3;
  text-align: center;
}

.footer .social { justify-content: center; }

.main { gap: 60px 40px; }

.left { padding-right: 40px; }

.rate { font-size: 36px; }

}

@media only screen  
and (max-width : 1023px) {

.header { grid-template-columns: auto; }

.header .logo { grid-column: auto; }

.banner { margin-top: -253px; }

.intro { margin-bottom: 60px; }

.frontpage,
.content,
.section1,
.section3 { margin: 80px auto; }

.section2,
.section4 { padding: 80px 20px; }

.section1,
.section2 { grid-template-columns: auto; }

.section1 .image { grid-row: 1; }

.section3 .grid { grid-template-columns: auto; }

.images {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 60px;
}

.main-image {
  grid-column: 1 / span 4;
  grid-row: auto;
}

.main-image img {
  height: auto;
  width: 100%;
}

.main { grid-template-columns: auto; }

.left {
  border-right: none;
  padding-right: 0;
}

.right { grid-row: 1; }

.profile { grid-template-columns: repeat(2, auto); }

.profile .image {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.rental { grid-template-columns: auto; }

}

@media only screen  
and (max-width : 767px) {

#openMenu { display: block; }

.main-menu { display: none; }

h1, h2 { font-size: 36px; }

.header { gap: 20px; }

.banner {
  background: url("../images/banner.jpg") left center no-repeat;
  background-size: cover;
  margin-top: -190px;
  padding-top: 190px;
}

.banner .text span { display: inline; }

.banner .overlay {
  padding: 40px 20px 80px;
  position: relative;
    bottom: 0;
}

.banner .search {
  background-color: transparent;
  gap: 20px;
  grid-template-columns: auto;
}

.banner .search .field {
  background-color: #fff;
  border-radius: 50px;
  padding: 20px 30px;
}

.banner .search .submit {
  justify-self: center;
  padding: 0;
}

.banner .search button { width: 200px; }

.banner .image { display: none; }

.footer {
  grid-template-columns: auto;
  justify-content: start;
  justify-items: start;
  padding: 40px 20px;
}

.footer .branding {
  grid-column: auto;
  text-align: left;
}

.footer .social { justify-content: start; }

.terms { padding: 30px; }

}

@media only screen  
and (max-width : 499px) {

h1, h2 { font-size: 32px; }

h2 span { display: inline; }

h3 { font-size: 28px; }

.search-bar { display: block; }

.search { margin-bottom: 20px; }

.products.grid { grid-template-columns: auto; }

.section3 .text { padding: 90px 30px 30px; }

.section3 img {
  height: 100%;
  width: auto;
}

.profile { grid-template-columns: auto; }

.profile .image { grid-column: auto; }

}