@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: #879b2f; 
    --alternate: #c2b19a;  
    --alternate2: #ac9d88; 
    --grey: #627b7e; 
    --lightgrey: #EFF1F2;
    --lightgrey2: #e0e0e0;
    --transgrey: rgba(30,30,30, 0.7);
    --trans: rgba(194, 177, 154, 0.8);
    --nearlywhite: #f0f0f0;
    --othercolour: #c14b4b;
    --othercolour2: #ed4e4e;
    --pale: #f0f0f0;
    --green: #9BC500; 
    --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);
    
    --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;
}
header{
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--white);
    text-align:center;
    padding:1.6rem 1rem;
    margin:0;
    background: var(--transgrey);
}
header h1{
    text-align: center;
    margin: 1rem 0 0.25rem 0;
    font-size: 2.5rem;
    font-weight: 400;
}
header h2{
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    margin: 0.25rem 0 1rem 0 ;
}
section, 
main, 
.maintext{
    background-color: var(--background);
}
.maintext.admin > div{
    margin: 1rem;
    line-height: 1.7;
    padding: 1rem; 
}
main > div{
    max-width: var(--width);
    margin: auto;
    padding: 1rem;
    line-height: 1.7;
}
main h1, 
main h2,
main h3{
    font-weight: 400;
    line-height: 1.1;
}
section div h3{
    font-size: 1.3rem; 
    font-weight: 400;
    text-align: center;
    line-height: 1.7;
    max-width: 600px;
}
section .hero{
    max-width: var(--width);
    margin: auto;
    padding: 1rem;
}
section .hero p{
    line-height: 1.7;
    font-size:1.1rem; 
    text-align: center;
    max-width: 600px;
}
section.grid{
    display: grid;
    }
section .cottages {
    background-position: center center; 
    background-size: cover;
    height: 100%; 
    width: 100%; 
    aspect-ratio: 1.5;
    text-align: center;
    display: grid;
    align-items: end;
    justify-content: center;
}
section .cottages > div{
    padding: 1rem;
}
section .cottages a{
    text-decoration: none;
    transition: 0.4s;
    display: block;
    height: 100%; 
}
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;
    aspect-ratio: 1.3;
}

/* full-screen carousel container */
.carouselcontainer{
    position: relative;
    /* height: 100vh; */
}
.carousel{
    height: 50svh;
}
.carousel, 
.page{
    inset:0;
    width:100%;
    overflow:hidden;
    z-index:0;
    background-color:#000;
    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; }

/* optional dark overlay to improve text contrast
 .carousel .slide::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
    pointer-events:none;
}  */

.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); }

/* keep page content above carousel */
header, .navigation, main, footer{
    position:relative; 
    z-index:1;
}
.navigation{
  z-index: 25;
}
.cottages2{


  line-height: 1.4;
display: flex;
flex-flow: wrap; 
}
.cottages2 > div {
background-color: var(--background2); 
display: inline-block;
width: 30%; 
}
@supports(display:grid) {
.cottages2{
gap: 10px;
display: grid;

}
.cottages2 > div {
display: block; 
width: auto;
}
}
.maintext + .cottages2{
margin-top: 1vw;
}

.cottages2 > .desc, 
.cottages2 > .bookme {
padding: 20px;
}
.cottages2 > .desc h2, 
.cottages2 > .desc p{
  margin-block: 1rem;
}
.cottages2 > .facilities,
.facilities {
display: flex;
 flex-flow: wrap; 
justify-content: center; 
align-items: center; 
max-width: 800px; 
margin: 2rem auto; 
grid-template-columns: 1fr 1fr;
gap: 1rem;
line-height: 1;
}
.cottages2 .facilities {
margin: 0; 
}
.facilities img{
width: 30px; 	
margin: auto;
}
.facilities > div {
text-align: center; 
flex: 1 0 auto;
padding: 0.5rem; 
font-size: 0.9rem;
}
.cottages2 a{
text-decoration: none; 
}
.cottages2 a:hover{
background-color: var(--black); 
}
.cottages2 h3{
  font-weight: 400; 
}
.cottages2 h4{
  font-weight: 400; 
}
.cottages2 > div > img,
.cottages2 > div > a > img{
  width: 100%; 
  display: block; 
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.cottages2 .toosmall{
display: none; 
}
@supports(aspect-ratio: 3 / 2){
.cottages2 > div > img,
.cottages2 > div > a > img{
/* aspect-ratio: 3 / 2; */
height: 100%;
object-fit: cover;

}
}
.bookingtable{
  text-align: center;
}
#inline1 {
	max-width: 800px;
	display: none;
    height: 80vh;
    margin: 3vw;
    line-height: 1.5;
}
.oops{
  font-size: 10rem; 
  float: left; 
  margin: 1rem; 
}
.button{
    background-color: var(--alternate2);        
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 0;
    transition: background-color 0.4s;
    cursor: pointer;
    margin-block: 1rem;
}
.button:hover{
  background-color: var(--alternate);
}

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;
}
.moreferries {
  display: none;
}
tr:has(select.wightlink[data-chosen="yes"]) ~ .moreferries {
	display: table-row;
}
.icons > div{
	display: flex;
	gap: 0.25rem; 
	flex-wrap: wrap;
}
.icons > div > div{
	flex: 1 1 auto; 
	display: grid;
	justify-content: center;
	align-items: center;
	background-color: var(--alternate);
	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(--alternate);
}

.icons > div >  div:has(a){
  background-color: var(--alternate2);
}
.grid#pictures, 
.flex.pictures{
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}

.grid#pictures > div, 
.flex.pictures > div{
    flex: 1 1 250px; 

}
.grecaptcha-badge{
  z-index: 1;
}
.paypal{
  background-color: unset;
  width: 250px; 
  border: 0; 
}
#map{
    height: 500px; 
    margin-block: 1rem;
}
div.pound{
  position: relative;
}
div.pound::before{
  content: "\00A3";
  position: absolute;
  left: -10px; 
}




@media only screen and ( min-width: 800px ) {
    main, 
    #pictures{
        margin: 1rem;
    }
    .cottages2 {
        grid-template-columns: 1fr 1fr 1fr;
        margin: 1rem  ;
        gap: 1rem;  
    }
    section  .hero {
        padding: 2rem;
    }
    .icons{
        display: block;
        margin: 1rem; 
    }
    section.grid{
        margin: 1rem
    }
      .icons > div >  div:has(a){
        grid-column: span 2;
      }
        .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{
    gap: 1rem;
}
.grid#pictures > div > img{
      width: 100%;
      height: 100%;
  display: block; 
  }

  @supports(display: grid) {
  .grid#pictures{
      display: grid;
      grid-template-columns: repeat(auto-fill,minmax(calc(150px + 10vw), 1fr));
      justify-items: center;

  }
  }
  @supports(gap: 10px){
      .grid#pictures > div{
          margin: 0;
      }
  }
  
  @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.5;
  }
  }
  /* kevin powell grid centering */
.container{
  container-type: inline-size;
  margin: 1rem; 
}
.grid#pictures {
  display: grid;

  /*   grid-template-columns: repeat(calc(var(--column-count, 3) * 2), 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  @container (width >= calc(150px * 2 + 0.5rem)) {
    div {
      grid-column: span 2;
    }
  }

  @container (calc(150px * 4 + 1.5rem) < width < calc(150px * 6 + 2.5rem) ) {
    div:last-child:nth-child(odd) {
      grid-column: 2 / span 2;
    }
  }

  @container (calc(150px * 6 + 2.5rem) < width < calc(150px * 8 + 3.5rem)) {
    div:nth-child(3n + 4):last-child {
      grid-column: 3 / 5;
    }

    &:has(:nth-child(3n + 5):last-child) > :nth-last-child(2) {
      grid-column: 2 / 4;
    }
  }

  @container (calc(150px * 8 + 3.5rem) < width < calc(150px * 10 + 4.5rem)) {
    div:nth-child(4n + 5):last-child {
      grid-column: 4 / 6;
    }

    &:has(:nth-child(4n + 6):last-child) > :nth-last-child(2) {
      grid-column: 3 / 5;
    }

    &:has(:nth-child(4n + 7):last-child) > :nth-last-child(3) {
      grid-column: 2 / 4;
    }
  }


@container (calc(150px * 10 + 4.5rem) < width < calc(150px * 12 + 5.5rem)) {
  div:nth-child(5n + 6):last-child {
    grid-column: 5 / 7;
  }

  &:has(:nth-child(5n + 7):last-child) > :nth-last-child(2) {
    grid-column: 4 / 6;
  }

  &:has(:nth-child(5n + 8):last-child) > :nth-last-child(3) {
    grid-column: 3 / 5;
  }

  &:has(:nth-child(5n + 9):last-child) > :nth-last-child(4) {
    grid-column: 2 / 4;
  }

}
}
      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; 
	}
    .four04{
    font-size: 8rem;
    line-height: 1;
    margin: 0.25rem auto;
}
.bulletpoints ul{
  columns: 3;
  list-style: none;
}
.bulletpoints ul li:before { 
  content:"\2714\0020"; 
  color: var(--charcoal); 
}
.bulletpoints ul li{
  text-transform: capitalize;
}
} 











@media screen and (orientation:landscape)
and (min-width: 1024px) {

    section.grid{
        grid-template-columns: 1fr 1fr;
    } 
    section div h3{
        margin: 1rem auto;
    }
    header, 
    .navigation{
        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),
    .page{
        height: 80vh; 
    }

} 



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

section.grid{
    gap: 1rem;
}
body:has( #nav:target > a:last-of-type) {
    .bookings, 
    main,
    .carousel,
    .page,
    section,
    footer,
    .cottages2{
        filter: blur(5px) grayscale(100%);
    }
    } 




@media only screen and ( max-width: 640px ) {
	.hasdata{
		display: grid;
		gap: 1rem;
	}
	.hasdata tr{
		width: auto;
		display: block; 
	}
	.hasdata th{
		display: none;
	}
	.hasdata td[colspan="100%"]{
		display: block;
		background-color: rgba(0, 0, 0, 0.5) !important;
	}
	.hasdata td{
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
	.hasdata td::before{
		content: attr(data-cell); 
		display: block;
	
	}
	.hasdata td:first-of-type{
		padding-top: 1rem !important;
	}
	.hasdata td:last-of-type{
		padding-bottom: 1rem !important;
	}
	.hasdata .to{
		display: none;
	}
}
}




@media only screen and ( max-width: 480px ) {
.carousel button.control{
  display: none;
}
#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;
}
} 