@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');
@import 'menu.css';
@import 'calendar.css';
@import 'dist/jquery.fancybox.css';


/* CORE STYLES */
:root {
    --background2: #e5dfd0; 
    --background3: #dbd5c6; 
    --background: #f7f4ec; 
    --white: #fff;
    --writing: #444;
    --black: #000; 
    --charcoal: #222;
    /* --green: #2D5F2D;  */
    --green: #3A593A;
    --alternate: #789d84;  
    --alternate2: #F1D307; 
    --grey: #627b7e; 
    --lightgrey: #EFF1F2;
    --lightgrey2: #e0e0e0;
    --transgrey: rgba(30,30,30, 0.7);
    --trans: rgba(125, 168, 136, 0.8);
    --nearlywhite: #f0f0f0;
    --othercolour: #bbceb4;
    --othercolour2: #9eac99;
    --pale: #f0f0f0;
    --grey: #dedede; 
    --transred: rgba(237, 28, 36, 0.9);
    --halfgrey: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35));
    --transwhite: rgba(255,255,255,0.7);
    --darker: #789d84;

    
    --width: 1024px; 
    --sliderwidth: calc(100svw - 2rem); 
    --transition: 800ms;
    --controls-size: 48px;
  }

html{
     scroll-behavior: smooth; 
}

body{
    background-color: var(--white);
    color: var(--writing); 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    position: relative;

}
input, textarea, select {
    font-family: system-ui, Open Sans, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	padding: 7px;
	background-color: var(--white);
	border: 2px solid var(--green);
	max-width: 100%;
  color: var(--writing); 
}
a[href^="mailto:"], h1, h2 {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}
table{
  width: 100%;
  border-collapse: collapse;
}
td{
  vertical-align: top;
  padding: 4px; 
}
img{
    max-width: 100%;
    height: auto;
    display: block;
}
a{
    color: var(--writing); 
}
strong{
    font-weight: 600;
}
table tr:nth-child(2n+1):not(.formheading) td{
  background-color: var(--background2);
}
h1,
h2,
h3,
h4{
    font-weight: 400;
}









.wrapper .sidebar{
    background-color: var(--green);
    color: var(--white);
    box-shadow: 0 0 50px rgba(0,0,0,0.2) inset;
}
.wrapper .sidebar a{
    color: var(--white);
    text-decoration: none;
}
.wrapper .sidebar .logo{
    display: block;
    margin: auto;
    max-width: 200px;  
}
.wrapper .sidebar .address{
    padding: 1rem;
    line-height: 1.5rem;
}
.tel{
    display: grid;
}
.tel a{
    display: block;
    text-decoration: none;
    color: var(--white);
    text-align: center;
    padding: 1rem;
    background-color: var(--othercolour);
}
.tel a:hover{
    background-color: var(--othercolour2);
    color: var(--black);
    transition: var(--transition);
}
.welcome h1{
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
    padding: 1rem;
}

/* full-screen carousel container */
.carouselcontainer{
    position: relative;
    /* height: 100vh; */
}
.carousel{
    height: 50svh;
}
.carousel{
    inset:0;
    width:100%;
    overflow:hidden;
    z-index:0;
    position: relative;
}
.carousel .slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    opacity:0;
    transition:opacity var(--transition) ease;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    padding:2rem;
}

.carousel .slide.active{ opacity:1; z-index:1; }

.slide-content{
    position:relative;
    z-index:2;
    max-width:1200px;
    text-align:center;
    text-shadow: 6px 6px 12px rgba(0,0,0,0.8);  
}
.slide-content h2, 
section .cottages h3{ 
    font-size:clamp(1.6rem, 10vw, 6rem); 
    margin:0 0 .4rem; 
    font-family: "Prata", serif;
}
section .cottages h3{
    font-size:clamp(1.6rem, 5vw, 4rem); 
}
.slide-content p, 
section .cottages p{ 
    font-size:clamp(1rem, 2vw, 1.8rem); 
    margin:0; 
    color: var(--white); 
    text-shadow: 2px 2px 3px rgba(0,0,0,0.9);

}
.slide-content p{
    text-transform: uppercase; 
}
section .cottages h3{
    color: var(--white);
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8)
}


/* controls */
.carousel .controls{
    position:absolute;
    top:50%;
    left:0;
    right:0;
    transform:translateY(-50%);
    display:flex;
    justify-content:space-between;
    pointer-events:none;
    padding:0 1rem;
    z-index:3;
}
.carousel button.control{
    pointer-events:auto;
    border:0;
    background:rgba(0,0,0,0.45);
    color:#fff;
    width:var(--controls-size);
    height:var(--controls-size);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .2s;
    backdrop-filter: blur(4px);
}
.carousel button.control:hover{ background:rgba(0,0,0,0.65); }

/* indicators */
.indicators{
    position:absolute;
    left:50%;
    bottom:1.1rem;
    transform:translateX(-50%);
    display:flex;
    gap:.6rem;
    z-index:3;
}
.indicators button{
    width:12px; height:12px; border-radius:999px; border:0; background:rgba(255,255,255,0.5); 
    cursor:pointer;
}
.indicators button.active{ 
    background:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.35); 
}
.maintext{
    padding: 1rem;
    line-height: 1.7;
}
footer, .iw{
    background: var(--alternate);
    color: var(--white);
}
footer > div{
    max-width: var(--width);
    margin: auto;
    padding: 2rem 1rem;
    line-height: 1.7;
    font-size: 1.1rem;

}
footer a, 
.iw a{
    color: var(--white);
    text-decoration: none;
    transition: 0.4s;
}
.iw{
  text-align: right;
  font-size: 0.8rem;
  padding: 0.5rem 2rem; 
}
footer a:hover{
    color: var(--black);
}
.page{
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 400px;

    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    padding:2rem;


}
#map{
	height: 500px; 
	max-height: 70vh;
	margin-block: 2rem;
}
.maintext p a {
    text-decoration-color: var(--alternate);
    text-decoration-thickness: 2px;
    transition: var(--transition);
}
.maintext p a:hover {
    color: var(--alternate); 
}
/* main .cottages{
  max-width: 1200px;
  margin: 5vw auto;
} */
.cottages{

  color: var(--white);
  line-height: 1.4;
display: flex;
flex-flow: wrap; 
}
.cottages > div {
background-color: var(--darker); 
display: inline-block;
width: 30%; 
}
@supports(display:grid) {
.cottages{
gap: 1rem;
display: grid;

}
.cottages > div {
display: block; 
width: auto;
}
}
.maintext + .cottages{
margin: 1rem;
}

.cottages > .desc, 
.cottages > .bookme {
padding: 20px;
}
.cottages > .facilities,
.facilities {
display: grid;
/* flex-flow: wrap; */
justify-content: center; 
align-items: center; 
max-width: 800px; 
margin: auto; 
grid-template-columns: 1fr 1fr;
}
.cottages .facilities {
margin: 0; 
}
.facilities img{
width: 50px; 	
display: block;
margin: auto;
}
.facilities > div {
text-align: center; 
flex: 1 1 auto;
padding: 0.5rem; 
line-height: 1;
}
.cottages a{
color: var(--white);
text-decoration: none; 
}
.cottages a:hover{
background-color: var(--black); 
}
.cottages h3{
  font-weight: 400; 
}
.cottages h4{
  font-weight: 400; 
}
.cottages > div > img,
.cottages > div > a > img{
  width: 100%; 
  display: block; 
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.cottages .toosmall{
display: none; 
}
@supports(aspect-ratio: 3 / 2){
.cottages > div > img,
.cottages > div > a > img{
aspect-ratio: 3 / 2;
height: auto;
}
}
.cottages.bookingtable .fade{
  opacity: 0.5;
}
.icons > div{
	display: flex;
	gap: 0.25rem; 
	flex-wrap: wrap;
}
.icons > div > div{
	flex: 1 1 200px; 
	display: grid;
	justify-content: center;
	align-items: center;
	background-color: var(--darker);
	box-shadow: 0 0 100px rgba(0, 0, 0, 0.1) inset;
	/* border-radius: 1rem; */
	padding: 2rem; 
	transition: background-color 0.4s;
	color: var(--white); 
	gap: 1rem; 
	text-align: center;
}
.icons > div > div > a{
	display: grid;
	gap: 1rem; 
	color: #fff; 
	text-decoration: none;
	text-align: center;
}
.icons img{
	height: 45px; 
	display: block;
	margin: auto;
}
.icons > div > div:has(a:hover){
	background-color: var(--darker);
}
.icons{
	display: block;
	margin-block: 0.5rem; 
}
.icons > div >  div:has(a){
  background-color: var(--darker);
}

div#contact{
  display: grid;
}
#contact textarea:focus,
#contact input[type=text]:focus,
#contact input[type=email]:focus,
#contact input[type=email] :focus
{
  border: 2px solid var(--alternate);
}

#contact input[type=submit],
#contact input[type=button]{
  background: var(--alternate);
  border: none;
  padding: 8px 10px 8px 10px;
  color: #fff;
width: 300px;
}
#contact input[type=submit]:hover,
#contact input[type=button]:hover{
background: #394D61;
}
#contact input:not([type="submit"]),
#contact textarea {
  border: 2px solid var(--alternate);

}
#contact:focus-within input:not([type="submit"]):invalid,
#contact:focus-within textarea:invalid {
border: 2px solid red !important;

}
#contact:focus-within input:not([type="submit"]):valid,
#contact:focus-within textarea:valid {
border: 2px solid green !important;

}
#contact:focus-within input[type="radio"]:invalid{
outline: 2px solid red;
  outline-offset: 2px;
}
#contact div:nth-of-type(4n+3), 
#contact div:nth-of-type(4n+4){
  background-color: var(--nearlywhite);
}
#contact > div{
  position: relative;
  padding: 1rem;
}
#contact > div:has(textarea:required)::after, 
#contact > div:has(input:required)::after, 
#contact > div:has(select:required)::after{
  content: "\002A";
  color: #800; 
  font-size: 2rem;
  inset: 0 1rem auto auto; 
  position: absolute;
}
.oops{
  font-size: 10rem; 
  float: left; 
  margin: 1rem; 
}
  .grid#pictures{
      display: grid;
      grid-template-columns: repeat(auto-fill,minmax(calc(150px + 10vw), 1fr));
      justify-items: center;
      margin: 1rem;
      gap: 1rem;

  }














@media only screen and ( min-width: 800px ) {
    .wrapper{
        display: grid;
        grid-template-columns: 260px auto ;
        min-height: 100svh;
    }
    .sticky{
        position: sticky;
        top: 20px; 
}
.tel{
    grid-template-columns: 1fr 1fr 1fr;
}
.maintext, 
footer > div{
    padding: 2rem;
    max-width: 950px;
    margin: auto;
}
.maintext.admin{
    max-width: unset;
}
  .cottages.bookingtable > div > a > img{
    height: 100%; 
  }
      .cottages {
      grid-template-columns: 1fr 1fr 1fr;
    }
      .icons > div{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: auto auto;
    gap: 1rem; 
  }
  .icons > div > div{
    grid-template-rows: subgrid;
    grid-row: span 2; 
  }
  .grid#pictures > div > img{
      width: 100%;
      height: 100%;
    display: block; 
  }




  
  @supports(object-fit: cover){
  .grid#pictures > div > img,
  .grid#pictures > div > a img, 
  .flex.pictures > div > a img{
      object-fit: cover;
      height: 100%;
      width: 100%;  
      display: block;
  }
  .grid#pictures > div, 
  .flex.pictures > div {
      /* height: 25vh; */
      width: 100%;
      max-height: 500px; 
      aspect-ratio: 1/1;
  }
  }


    div#contact{
        grid-template-columns: 1fr 1fr;

    }
#contact textarea, #contact input:not([type="radio"]):not([type="checkbox"]) {
	width: 280px;
}
	input, textarea, select {
        border: 1px solid var(--alternate2);
        background-color: var(--white);
        max-width: 100%;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
        font-size: 1rem;
        padding: 7px;
    }
    #contact textarea, 
    #contact input:not([type="radio"]):not([type="checkbox"]){
        width: 280px;
    } 
    #contact select{
        width: 296px; 
    }
	.form.contactform > div:has(input[type="radio"]) {
		display: grid;
		grid-template-columns: 3fr 2fr;
	}
	.form.contactform   input[type="radio"]{
		width: 20px; 
	}
}





@media screen and (orientation:landscape)
and (min-width: 1024px) {
  .wrapper{
    grid-template-columns: 300px auto;
  }
  nav > ul > li > a{
    padding: 0 2rem;
  }
  .wrapper .sidebar .address{
    padding: 2rem;
  }
   header{
        position: relative;
        z-index: 20;
        backdrop-filter: blur(4px);
    }
    .slidee{
        background-attachment: fixed;
    }
    .carousel{
    position:absolute;
        height:100svh;
    }
    /* .page{
    position:absolute;
    aspect-ratio: unset;
    } */
    .carouselcontainer{
        height:100svh;
    }
    .carouselcontainer:has(.page){
        height: calc(100svh - 125px - 2rem)         
    }
    .page{
        position: absolute;
        inset: 0;
    }
    .tel a{
        padding: 1.5rem; 
        background-color: var(--trans);
} 
    /* .bookings{
        position: absolute;
        inset: auto 0 0 0;
    } */
    /* header .tel{
        padding: 1rem; 
        gap: 1rem; 
    } */
}


@media (min-width: 1200px) {
    .icons{
        gap: 1rem; 
        margin: 1rem; 
    }
}





@media only screen and ( max-width: 480px ) {
.carousel button.control{
  display: none;
}
  .cottages > div:nth-of-type(3n){
    margin-bottom: 40px; 
  }
  .cottages {
    gap: 0;
  }

#contact input[type="submit"], 
#contact input[type="button"],
input, 
textarea,
select{
  width: auto;
}
#contact > div:has(textarea:required)::after, 
#contact > div:has(input:required)::after, 
#contact > div:has(select:required)::after{
  inset: unset; 
}
#contact > div{
  padding: unset;
}
#contact.table
#contact tr, 
#contact td{
  display: block;
}
} 