/*
Theme Name: SamsTheme
Author: Sam Edwards
Description: Cornish Holiday Cottages
Version: 1.0.0
Tags: Responsive - custom logo - custom menu - custom colours
*/
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

* {
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--body-colour);
  color: var(--text);
  background-image: var(--body-img);
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

ul {
  list-style: none;
}

:is(a, button, input, textarea, summary):focus {
  box-shadow: 0 0 0 2px #007fd4;
  outline: 0;
}

h1, h2, h3, h4, h5, h6, th {
  color: var(--heading);
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3 {
  font-weight: 400;
}

h1 {
  font-size: clamp(30px, 4vw, 55px);
}

h2 {
  font-size: 30px;
}

h3, th {
  font-size: 20px;
}

p, label, td {
  font-size: 17px;
  font-family: 'roboto', sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
  font-family: 'roboto', sans-serif;
}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter, div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

@media only screen and (max-width: 480px) {
  .single .alignright, .single .alignleft {
    float: none;
  }
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.header {
  background-color: var(--header);
  z-index: 10;
  transition: 300ms;
  border-bottom: var(--border-colour);
  padding: 0 10px;
}

.header.sticky {
  position: sticky;
  top: 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.site-home {
  display: inline-flex;
  justify-content: center;
}

.footer {
  background-color: var(--footer);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  width: 100%;
}

.footer img {
  width: 240px;
  height: 240px;
}

.widgets {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  align-items: center;
  justify-content: space-evenly;
}

.widgets.centered {
  flex-direction: column;
  align-items: center;
}

.widgets > * {
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .widgets {
    flex-direction: row;
  }
}

.copyright {
  align-self: center;
}

.full-width > *:not(.full, .menu) {
  max-width: 100%;
  margin: 0 2rem;
}

.boxed, .full-width > .boxed {
  margin: auto;
  max-width: 1500px;
}

.full > img {
  width: 100%;
  height: 100%;
}

.content-container {
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
}

.properties {
  padding: 5rem 0;
}

.grid-container {
  display: grid;
  grid-template-areas: "title"
 "img"
 "info"
 "cta"
 "details"
 "gallery"
 "reviews"
 "other-properties";
  grid-auto-columns: 1fr;
  margin: 0 1rem;
  column-gap: 2rem;
  row-gap: 2rem;
  justify-items: center;
}

.grid-container .page-title {
  grid-area: title;
}

.grid-container .img {
  grid-area: img;
}

.grid-container .img img {
  width: 100%;
  max-width: 600px;
  height: 100%;
  object-fit: cover;
}

.grid-container .info {
  grid-area: info;
}

.grid-container .cta {
  grid-area: cta;
}

.grid-container .details {
  grid-area: details;
  align-self: end;
}

.grid-container .gallery {
  grid-area: gallery;
}

.grid-container .reviews {
  grid-area: reviews;
}

.grid-container .other-properties {
  grid-area: other-properties;
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-areas: "title title img"
 "info info img"
 "details details img"
 "details details cta"
 "gallery gallery gallery"
 "reviews reviews reviews"
 "other-properties other-properties other-properties";
    justify-items: unset;
  }
}

.site-home {
  padding: var(--logo-padding);
}

.logo {
  max-width: 200px;
  max-height: 300px;
  width: var(--width);
  height: var(--height);
  border-radius: var(--border-radius);
}

.separator {
  width: 100px;
  height: 100px;
  background-color: red;
}

.full {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.rounded {
  border-radius: 10px;
}

.form-container {
  width: 90%;
  max-width: 480px;
  background-color: #ffffff59;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 3px 0px;
  backdrop-filter: blur(7px);
  border-radius: 5px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.form-container .heading {
  text-align: center;
  margin: 20px auto;
  position: relative;
  border-bottom: 2px solid var(--primary);
}

.form-container div p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.form-container div p > br {
  display: none;
}

.form-container div p > label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-container div p > label input,
.form-container div p > label select,
.form-container div p > label textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #a7b3bb;
  border-radius: 5px;
  cursor: pointer;
}

.form-container div p .wpcf7-spinner {
  position: absolute;
  top: -50px;
  right: 0;
}

.form-container div p .button {
  cursor: pointer;
}

@media (min-width: 1024px) {
  .form-container div p {
    justify-content: space-evenly;
  }
}

.menu-button {
  border: 0;
  color: var(--link);
  background: unset;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: 300ms color;
}

.menu-button i {
  font-size: 40px;
}

.menu-button:hover {
  color: var(--hover);
}

.button {
  padding: 10px;
  background-color: white;
  border: 0;
  border-radius: 5px;
  transition: background-color 300ms;
}

.button.disabled {
  pointer-events: none;
}

.button:hover {
  background-color: var(--primary);
  filter: brightness(0.8);
}

.icons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.icons .icon-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icons .icon-wrapper i {
  color: var(--primary);
  font-size: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icons .icon-wrapper span {
  font-family: 'roboto', sans-serif;
  color: var(--primary);
}

@media (min-width: 1024px) {
  .icons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.property-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  justify-content: center;
  justify-items: center;
  gap: 1rem;
  margin: 1rem;
}

.property-cards .card {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  min-height: 300px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: flex-end;
  color: white;
  position: relative;
}

.property-cards .card > * {
  z-index: 1;
  padding: 1rem;
}

.property-cards .card .icons-wrapper {
  flex: 1;
}

.property-cards .card .icons-wrapper .icons {
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: 300ms opacity;
}

.property-cards .card .short-desc {
  visibility: hidden;
  opacity: 0;
  transition: 300ms opacity;
}

.property-cards .card::before, .property-cards .card::after {
  position: absolute;
  height: 100%;
  width: 100%;
  content: '';
}

.property-cards .card::before {
  background: linear-gradient(180deg, #ffffff00, #000000ab);
}

.property-cards .card::after {
  opacity: 0;
  background: rgba(0, 0, 0, 0.603);
  transition: 300ms opacity;
}

.property-cards .card:hover .icons,
.property-cards .card:hover .short-desc {
  opacity: 1;
  visibility: visible;
}

.property-cards .card:hover::after {
  opacity: 1;
}

@media (min-width: 1024px) {
  .property-cards {
    flex-direction: row;
    align-items: stretch;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid a {
  position: relative;
}

.gallery-grid a::after {
  content: '';
  background-color: black;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  transition: opacity 300ms;
  top: 0;
  left: 0;
}

.gallery-grid a:hover::after {
  opacity: 0.5;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  max-width: 600px;
  object-fit: cover;
  object-position: center;
  margin-bottom: -4px;
}

.custom-login-page {
  background-color: var(--primary);
}

.custom-login-page .form-container {
  justify-self: center;
  margin-top: 5rem;
  gap: 2rem;
  align-items: center;
}

.custom-login-page .form-container p {
  display: flex;
  gap: 10px;
}

.custom-login-page .form-container form {
  align-items: center;
}

.side-nav {
  display: flex;
  position: fixed;
  visibility: hidden;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 300ms, visibility 300ms;
}

.side-nav.open {
  visibility: visible;
  opacity: 1;
}

.side-nav .aside {
  display: none;
  height: 100%;
  background-color: #000000ab;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .side-nav .aside {
    display: block;
    flex-basis: 80%;
  }
}

.side-nav .inner-wrapper {
  flex-basis: 100%;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  padding-top: 3rem;
}

.side-nav .inner-wrapper .menu-button.nav-closer {
  align-self: flex-end;
  margin-right: 10px;
  color: var(--menu-link);
}

.side-nav .inner-wrapper .menu-button.nav-closer:hover {
  color: var(--hover);
}

.side-nav .inner-wrapper .menu-main-container {
  height: 100%;
  padding-top: 6rem;
}

.side-nav .inner-wrapper .menu-main-container .menu {
  height: 68rem;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 10px;
  overflow: auto;
}

.side-nav .inner-wrapper .menu-main-container .menu > li {
  font-size: clamp(20px, 4vw, 30px);
  border-bottom: 1px solid var(--menu-link);
  font-weight: 100;
  position: relative;
}

.side-nav .inner-wrapper .menu-main-container .menu > li i {
  color: var(--menu-link);
  font-size: inherit;
  position: absolute;
  right: 0;
  top: 0;
  transition: color 300ms;
  cursor: pointer;
}

.side-nav .inner-wrapper .menu-main-container .menu > li i:hover {
  color: var(--hover);
}

.side-nav .inner-wrapper .menu-main-container .menu .sub-menu {
  padding: 10px 0 5px 0;
  display: none;
}

.side-nav .inner-wrapper .menu-main-container .menu .sub-menu.open {
  display: block;
}

.side-nav .inner-wrapper .menu-main-container .menu .sub-menu li {
  font-size: clamp(17px, 4vw, 20px);
}

.side-nav .inner-wrapper .menu-main-container .menu .sub-menu li::before {
  content: '-';
  width: 20px;
  height: 100%;
  color: var(--link);
  transition: 300ms color;
}

.side-nav .inner-wrapper .menu-main-container .menu .sub-menu li:hover::before {
  color: var(--hover);
}

.side-nav .inner-wrapper .menu-main-container .menu .menu-item a {
  color: var(--menu-link);
  transition: 0.3s;
}

.side-nav .inner-wrapper .menu-main-container .menu .menu-item a:hover, .side-nav .inner-wrapper .menu-main-container .menu .menu-item a:focus {
  color: var(--hover);
}

@media (min-width: 1024px) {
  .side-nav .inner-wrapper {
    flex-basis: 20%;
  }
}

.header-img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.header-img::after {
  background-color: black;
  opacity: 0.2;
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
}

.header-img > * {
  z-index: 1;
}

.header-img .main-heading {
  color: white;
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(55px, 4vw, 95px);
  padding: 5px;
  margin-top: 1rem;
}

.header-img .form-container {
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .header-img {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }
  .header-img .form-container, .header-img .main-heading, .header-img .contact-details {
    margin: 0rem;
  }
}

.properties {
  padding: 5rem 1rem;
}

.properties h2 {
  padding-bottom: 2rem;
}

.properties .property-cards {
  margin: 0;
}

.home-gallery {
  padding: 5rem 1rem;
}

.home-gallery h2 {
  padding-bottom: 2rem;
}

.home-gallery .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cta {
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  border-radius: 5px;
  padding: 1rem;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 3px 0px;
  width: 100%;
  max-width: 600px;
  margin: 1rem 0;
}

.cta > * {
  margin-bottom: 12px;
}

.cta h3 {
  font-weight: bold;
}

.cta .button {
  max-width: 100px;
}

.cta .button:hover, .cta .button:focus {
  color: black;
}

@media (min-width: 1024px) {
  .cta {
    margin: 0;
  }
}

.info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  justify-content: space-between;
}

.info .desc {
  line-height: 1.3;
}

.details table {
  width: 100%;
}

.details table td,
.details table th {
  border: 1px solid #9B9B9B;
}

.details table tr:nth-child(odd) {
  background: #D8D8D8;
}

.details table td {
  padding: 1rem;
  word-break: break-word;
}

.details table td ul {
  padding-left: 1rem;
  list-style-type: disc;
}

.details table td:nth-child(odd) {
  font-weight: bold;
}

.grid-container .page-title {
  place-self: center start;
  border-bottom: 2px solid var(--primary);
}

.grid-container h2 {
  margin-bottom: 1rem;
}

.grid-container .img {
  position: relative;
}

.grid-container .img::after {
  content: '';
  background-color: black;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  transition: opacity 300ms;
  top: 0;
  left: 0;
}

.grid-container .img:hover::after {
  opacity: 0.5;
}

.grid-container .reviews .glsr.glsr-default.glsr-ltr {
  margin: 1rem 0;
}

.grid-container .reviews span, .grid-container .reviews input, .grid-container .reviews textarea {
  font-family: 'roboto', 'sans-serif' !important;
}

.grid-container .reviews .glsr-default form.glsr-form .glsr-toggle input[type=checkbox]:checked + .glsr-toggle-track::before {
  background-color: var(--primary);
}

.grid-container .reviews button {
  background-color: var(--primary);
  transition: background-color, 300ms;
}

.grid-container .other-properties .property-cards {
  justify-content: flex-start;
  margin: 0;
}

.contact-details {
  background-color: #ffffff59;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 3px 0px;
  backdrop-filter: blur(7px);
  border-radius: 5px;
  padding: 1rem;
  margin: 4rem 1rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
}

.contact-details .main-heading {
  margin: 0;
  font-size: 40px;
  color: black;
  text-align: left;
}

.contact-details .address {
  color: black;
}
