


/* CORE STYLES */
:root {
    --coloured-background: #39A3D2;
    --alternate: #2f87af;
    --lighter: #7caddd; 
    --white: #fff;
    --text: #555;
    --black: #000;
    --grey: #f6f6f6; 
    --othercolour: #af2020; 
    --othercolour2: #c42424; 
    --colour: #70db62; 
    --othergreen: #51a346;     
    --lightcolour: #619db7; 
    --nearlywhite: #f3f3f3;
    --lightgrey: #eeeeee;
    --lesslight: #ddd; 
    --trans: rgba(255,255,255,0.5)
  }

  /* --black: #111; 
  --background: #191919;
  --dark: #333;  
  --dark: #0f0f0f; 
  --text: #f0f0f0; 
  --colour: #70db62; 
  --blue: #92abf0; 
  --othergreen: #82e275; 
  --othercolour: #af2020; 
  --othercolour2: #c42424; 
  --othercolour3: #db6262; 
  --darktext: #222; 
  --cream: #e4e2cf; 
  --midgrey: #666; 
  --hotpink: #ff91ca;  */

body{
    margin: 0;
    min-height: 100svh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
    position: relative;
    color: var(--text);
    background-color: var(--white);
}
input, textarea, select {
    border: 1px solid var(--coloured-background);
    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;
    color: var(--black); 
}

header, 
footer{
    background-color: var(--coloured-background);
}
img{
    max-width: 100%;
}
h1, h2, h3{
    font-weight: 400; 
    /* max-width: 800px;
    margin-inline: auto; */
}
h1{
    font-size: 1.75rem;
}
h2{
    font-size: 1.5rem;
}
h3{
    font-size: 1.2rem;
}

nav{
    background-color: var(--coloured-background);
    min-height: 60px; 
    line-height: 60px;
    font-size: 1rem;
}
nav > div{
    max-width: 800px; 
    margin: auto;
    display: grid;
    position: relative;
    z-index: 10;
}
nav div a{
    color: var(--white);
    text-decoration: none; 
    text-align: center;
    transition: background-color 0.5s;
    background-color:transparent;
}
nav div a:hover{
    background-color: var(--alternate); 
    color: var(--white);
}
header{
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

header a{
    color: var(--white);
    text-decoration: none; 
}
header p{
    font-size: 1.5rem;
    color: var(--white); 
    margin-block: 0.5rem;
}
header img{
    margin: 1rem; 
}
header img, 
footer img{
    height: 40px;
}
main{
    line-height: 1.7;
    font-size: 1.1rem;
    padding: 2rem; 
    background-color: var(--white);
    color: var(--text); 
}
main h1{
    font-size: 1.5rem;
}
main div{
    max-width: 800px;
    margin: auto;
}
main a{
    color: var(--text); 
    transition: 0.4s;
}
main a:hover{
    color: var(--coloured-background);
}
footer{
    padding: 6rem 3svw;
    z-index: 1;
    position: relative;
}
footer, 
footer a{
    color: var(--white);
    font-size: 1.2rem;
}
footer a:hover{
    color: var(--black);
}
footer a{
    text-decoration: none;
    transition: 0.4s;
}
footer > div{
    max-width: 800px; 
    margin: auto;
    display: grid;
    gap: 1rem;
    align-items: center;
    width: min-content;
}
section{
    background-color: var(--white);
}
section.title{
    padding: 2rem;
}
section.title h1,
section.title h2,
section.title h2 a{
    font-family: 'Shadows Into Light', cursive;
    color: var(--text);
    font-size: 2rem;
    text-decoration: none;
}
section.title > div{
    max-width: 800px;
    margin: auto;
}
section.threepics{
    display: grid;
}
section.threepics > div{
    background-color: var(--white);
    padding: 3svw;
}
section.threepics > div:nth-of-type(2n+1){
    background-color: var(--grey);
}
section.threepics > div > div{
    display: grid;
    max-width: 1000px;
    margin: auto;
    align-items: center;
}
section.threepics h3{
    font-weight: 400;
    font-family: 'Shadows Into Light', cursive;
    font-size: 3rem;
    color: var(--alternate);
    margin-top: 0.25rem;
    line-height: 1;
}
section.threepics h3 a{
    color: var(--alternate); 
    text-decoration: none;
    transition: 0.4s;
}
section.threepics h3 a:hover{
    color: var(--coloured-background); 
}
section.threepics > div > div > div{
   padding: max(1.5svw, 2rem);
}
section p{
    line-height: 1.7;
}
section.threepics button{
    margin: 1rem 0;
    padding: 0;
    border: 0;
}
section.threepics button a{
    background-color: var(--alternate);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.4rem; 
    border-radius: 10px; 
    transition: 0.4s;
    font-size: 1.2rem;
}
section.threepics button a:hover{
    background-color: var(--lighter) ;
}
/* section.threepics img{
    height: 100%;
    object-fit: cover;
} */
.bannerimage img{
    display: block;
}
.bigpicture{
    min-height: 600px; 
    line-height: 1.7;
    display: grid;
    align-items: center;
    justify-content: center;
}
.bigpicture > div {
    max-width: 700px;
    margin: auto;
    position: relative;
    padding: 3rem;
    text-align: center;
    color: var(--white);
}

.gallery{
    background-color: var(--alternate); 
}

.bigpicture > div p:after{
   margin-left: 23px;
}
.slidercontainer .layer{
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;


}
.slidercontainer .layer div{
    z-index: 1;
    text-align: center;
    max-width: 80vw;
}

.slidercontainer{
    position: relative;
}
.bigpicture {
	background-size: cover;
	background-position: center center;
    height: 100%;

}
.bigpicture h4{
    font-weight: 400;
    font-size: 1.5rem;
}
.gallery-cell {
	width: 100%;
	/* max-height: 600px; */
	margin-right: 10px; 
}
.bookings{
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 10;
}
.bookings form{
    display: grid;
    justify-content: center;
    background-color: var(--lightcolour);
    gap: 1px; 
    grid-template-columns: 1fr;
}
/* .bookings form > div{
    padding: 0.5rem; 
    background-color: var(--alternate);
} */
.bookings input, .bookings select, .bookings input[type="submit"] {
    background-color: var(--alternate);
    color: var(--white);
    text-decoration: none;
    /* padding: 1rem 1.4rem;  */
    transition: 0.4s;
    font-size: 1rem;
	max-width: 200px; 
	text-align: center;
	letter-spacing: 1px ; 
	border: 0;
    appearance: none;
    margin-top: 5px;
    transition : 0.2s;
	text-transform: uppercase; 
    width: 100%; 
}
.bookings select option{
    text-align: center;
}
.bookings input[type=date]{
    max-width: 140px !important;
    width: 100%; 
	text-align: center !important;
    /* padding: 1rem 1.4rem;  */
	border: 0;
}
.bookings input:focus, 
.bookings select:focus, 
.bookings input[type="submit"]:focus,
.bookings input:hover, 
.bookings select:hover, 
.bookings input[type="submit"]:hover {
    box-shadow: 0 0 0 var(--alternate);
}
.bookings div {
    vertical-align: baseline;
    display: contents;
}
.bookings label{
    display: block;
    padding: 0.5rem; 
    background-color: var(--alternate);
    transition : 0.2s;
}
.bookings label:hover, 
.bookings label:hover input,
.bookings label:hover select{
    background-color: var(--lightcolour);
}
.maintext{
    background-color: var(--white);
    padding: 3svw;
}
.maintext.admin > div{
    max-width: 1200px;
    margin: auto;
}
.maintext a{
    color: var(--text); 
}
table{
    width: 100%;
    border-collapse: collapse;
}
td, 
th{
    padding: 10px 5px;
    vertical-align: top;
}
th{
    text-align: left;
    background-color: var(--alternate);
    color: var(--white); 
}
tr:nth-child(2n+1) td{
    background-color: var(--grey);
}
.cottages > .facilities, .facilities {
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	align-items: center;
	max-width: 800px;
	margin: auto;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.facilities div{
    text-align: center;
    padding: 1rem;
}
.facilities img{
    width: 50px; 
}
.toplinks{
	background-color: #F3F3F3;
	display: flex;
	align-items: center; 
	justify-content: center; 
    text-transform: capitalize;
    text-align: center;
}
.toplinks a{
	display: block;
	padding: 30px; 
	color: #333;
	text-decoration: none; 
	transition: 0.3s;
    text-align: center;
}
.toplinks a:hover{
	background-color: var(--coloured-background); 
	color: #fff;
}
.page{
	height: 500px;
	max-height: 70vh;
	background-size: cover;
	background-position: center center; 
	display: flex;
	align-items: center; 
	justify-content: center; 
    position: relative;
}
.page h1{
	font-size: max(12vw, 1.5rem);
	opacity: 0.6;
	color: #fff; 
}
.page h4{
	font-size: min(12vw, 1.5rem);
    line-height: 1;
    margin: 0; 
	opacity: 0.6;
	color: var(--white); 
    position: absolute;
    bottom: 2svw; 
    right: 2svw;
    text-transform: uppercase;
}
.maingrid{
    display: grid;
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: var(--white);
}
.maingrid img{
    display: block;
    margin: auto;
}
.maingrid .summary,
.maingrid .bookme{
    padding: 2svw;
    line-height: 1.7;
}
.maingrid.three:nth-child(2n),
.maingrid.three:nth-child(2n) section {
    background-color: var(--nearlywhite);
}

.grid{
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border: 10px solid var(--white);
}
.grid > div{
    flex: 1 1 400px; 

}
.grid > div > img{
    width: 100%;
    height: 100%;
}
@supports(display: grid) {
.grid{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(calc(150px + 15vw), 1fr));
    justify-items: center;
    gap: 10px; 
}
}
@supports(gap: 10px){
    .grid > div{
        margin: 0;
    }
}

@supports(object-fit: cover){
.grid > div > img,
.grid > div > a img{
    object-fit: cover;
	height: 100%;
	width: 100%;  
}
.grid > div {
    height: 30vh;
    width: 100%;
    max-height: 500px; 
}
} 
.white{
    background-color: var(--white);
}
.floorplan{
    display: flex;
    gap: 10px; 
    justify-content: center;
}
.floorplan > div{
    text-align: center;
    flex: 1 1 auto;
}

#inline1 {
	max-width: 800px;
	display: none;
    height: 80vh;
    margin: 3vw;
    line-height: 1.5;
}


#nav > a
{
display: none;

}
.up{
    display: block;
    position: fixed;
    opacity: 0;
    bottom: 2rem;
    left: 2rem; 
    height: 3rem;
    width: 3rem; 
    transition: opacity 1s;
}
.upbutton.up{
    opacity: 0.8;
    transition: 0.3;
    mix-blend-mode: difference;
}
.upbutton.up:hover{
    filter: drop-shadow(2px 2px 3px var(--shadow));
    transform: translateY(-2px);
}
div.labels{
    display: grid;
    gap: 3px; 
}
label{
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-transform: capitalize;
    border: 1px solid var(--coloured-background);
    padding: 7px; 

}
input[type="radio"] {
    width:initial; 
    max-width: unset;
}
label:has(input:checked) {
    background-color: var(--alternate);
    color: var(--white); 
}

@supports selector(:has(*)) {
    label:has(input:checked) {
        background-color: var(--alternate);
        color: var(--white); 
    } 
    input[type="radio"] {
        display: none;
}
}
td:has(input:invalid) {
    background-color: var(--lightcolour);
    color: var(--white); 
}
td:has(input:invalid) label{
    border-color: var(--white);
}
label{
    position: relative;
}
label:has(input:checked):after{
    position: absolute;
    right: 1rem;
    top: 0.25rem;
    content: '\2713';
}
td:has(input:invalid) label:after{
    position: absolute;
    right: 1rem;
    top: 0.25rem;
    content: "\00d7";
}
#loginbox.contactdiv > div{
    padding-block: 0.5rem; 
}
form:has(input:invalid) input[type="submit"]{
    opacity: 0.5;
    cursor:not-allowed; 
    position: relative;
}





@media only screen and ( min-width: 700px ){
    nav a{
        flex: 1 1 auto; 
    }
    nav > div{
        display: flex;
}
    header h1{
        letter-spacing: 3px;

    }
    section.threepics > div > div {
        grid-template-columns: 1fr 1fr;
    }
    section.threepics button a 

    {
        box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.12);
    }
    section.threepics button a:hover
    {
        box-shadow: none;
    }
    section.threepics img{
        border: 10px solid var(--white);
        box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.12);
        border-radius: 7px;
    }
    section.threepics > div:nth-of-type(2n) > div > div:nth-child(1){
        grid-column: 2/3; 
        grid-row: 1/2;
}
    section.threepics > div:nth-of-type(2n) > div > div:nth-child(2){
        grid-column: 1/2; 
        grid-row: 1/2;
        text-align: right;
    }
    footer > div{
        grid-template-columns: 60px auto;
    }
    footer > div >  div{ 
        width: max-content;
}
    .bookings form{
        grid-template-columns: 1fr 1fr;
    }  
    .bigpicture > div p:before,
    .bigpicture > div p:after{
    font-family: Georgia, Times New Roman; 
    position: absolute;
    top: 13px;
    color: var(--white);
    font-size: 60px;
    }
    .bigpicture > div p:before{
    content: "\201C";
    margin-right: 13px;
    right: 100%;
    }
    .bigpicture > div p:after{
    content: "\201D";
    margin-left: 13px;
    left: 100%;  
    bottom: 13px;
    }

    #loginbox.contactdiv{
        margin: auto;
        width: max-content;
        padding: 1rem;
        border-radius: 0.5rem;
        border: 6px solid var(--coloured-background);
    }
    div.labels{
        display: flex;
        flex-wrap: wrap;
        gap: 3px; 
    }
    label{
        flex: 1 1 auto;
    }
}


@media only screen and ( min-width: 1000px ){
    .bannerimage{
        max-height: 500px;
    }
    .bannerimage img{
        object-fit: cover;
        max-height: 500px;
        width: 100%;
    }
    .reveal{
        position: relative;
        opacity: 0;
        transition: 3s all ease;
    } 
    .reveal.active{
    opacity: 1;
    }
    .reveal:not(.fade):not(.up){
    transform: scaleX(0);
    transition: 2s all ease;
    }
    .reveal.active:not(.fade):not(.up){
    transform: scaleX(1);
    }
    .bookings input, .bookings select, .bookings input[type="submit"] {
        width: 200px; 
    }
    .bookings input[type=date]{
        width: 160px; 
    }
    .bookings form{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }  
    nav{
        min-height: 60px; 
}

.maingrid{
    grid-template-columns: 1fr 1fr;
}
.maingrid.three{
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1rem;
}
/* .floorplan{
    grid-template-columns: 1fr 1fr 1fr;
} */
.admin.contactform{
    display: grid;
    grid-template-columns: unset;
}
.contactform{
    grid-template-columns: 1fr 1fr;
}
.contactform > div:has(input:required)::after{
    inset: 0 -1rem auto auto; 

}
.four04{
    font-size: 8rem;
    line-height: 1;
    margin: 0.25rem 0;
}
}


@media only screen and ( min-width: 1260px ){
nav{
    background-color: var(--nearlywhite); 
}
nav div a{
    color: var(--text);
    background-color: transparent; 
}
nav div a:hover{
    background-color: var(--coloured-background); 
    color: var(--white);
}
}



@media only screen and ( max-width: 900px ){
    main, section.threepics > div > div > div {
        padding: 1rem;
    }

}






@media only screen and ( max-width: 700px ){
    footer{
        padding: 1rem;
    }
    footer > div{
        width: auto;
        text-align: center;
        justify-content: center;
    }
    footer > div > div{
        text-align: center;
    }
a[href^="mailto:"]
{
  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;
}
input{
    max-width: 100%;
}
.floorplan{
    flex-wrap: wrap;
}
.toplinks{
    display: block;
}
.bookings label{
    padding: 1rem 0.5rem; 
}

#nav > a
{
width: 50px; 
height: 50px; 
text-align: center;
text-indent: -9999px; 
margin: auto;
background-image: url('/images/menu.svg');
background-repeat: no-repeat;
background-size: 75%;
background-position: center;
position: relative;
}

#nav:not( :target ) > a:first-of-type,
#nav:target > a:last-of-type
{
display: block;
}
#nav:target > a:last-of-type{
  background-image: url('/images/close.svg');
}
#nav > div{
    display: none; 
}
#nav:target > div
{
display: grid;
}
/* header{
    padding-top: 0;
} */
.flickity-page-dots{
    display: none;
}
#contact th,
#contact td{
    display: block;
}
#loginbox input{
    width: 200px;
    max-width: 80svw;
}
#loginbox {
    text-align: center;
}
} 



@media only screen and ( max-width: 800px ){
    th, td{
        display: block;
    }
	.hasdata{
		display: grid;
		gap: 1rem;
	}
	.hasdata tr{
		width: auto;
		display: block; 
	}
	.hasdata th{
		display: none;
	}
	.hasdata td[colspan="100%"]{
		display: block;
		/* background-color: var(--black) !important;
        color: var(--white) */
	}
	.hasdata td:not(:empty){
		display: grid;
		/* grid-template-columns: 1fr 1fr; */
		gap: 1rem;
	}
	.hasdata td:not(:empty)::before{
		content: attr(data-cell); 
		display: block;
        font-weight: 800;
	}
	.hasdata td:not(:empty):first-of-type{
		padding-top: 1rem !important;
	}
	.hasdata td:not(:empty):last-of-type{
		padding-bottom: 1rem !important;
	}
	.hasdata .to{
		display: none;
	}
    input{
        width: 100%;
        box-sizing: border-box;
    }
    td:empty,
    th:empty{
        display: none;
    }
}