/*
Theme Name: Britannia
Text Domain: britannia
Version: 1.4
Keyword:
*/
:root {
    --blue: #00A3B3;
    --gap: 100px;
}



* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

p {
    margin-bottom: 1em;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #231f20;
}

.inner {
    padding: 0 20px;
    max-width: 1240px;
    margin: auto;
}

.container {
    max-width: 1240px;
    padding: 0 20px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: normal;
    font-family: 'AvenirNext', sans-serif;
}

h1 {
}

h1 {
    font-size: 80px;
}

h2 {
    font-size: 3em;
}

/*fade slide*/
.swiper-fade.swiper-free-mode .swiper-slide {
    transition-timing-function: ease-out
}

.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity
}

.swiper-fade .swiper-slide .swiper-slide {
    pointer-events: none
}

.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active {
    pointer-events: auto
}

/*menu btn*/
.m-menu {
    width: 30px;
    height: 32px;
    position: relative;
}

.m-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #000;
    opacity: 1;
    left: 0;
    border-radius: 2px;
}

.mm-open .m-menu span {
    background: #fff;
}

.m-menu span:nth-child(1) {
    top: 0;
}

.m-menu span:nth-child(2) {
    top: 15px;
}

.m-menu span:nth-child(3) {
    top: 30px;
}

.m-menu {
    transform: rotate(0);
    transition: 0.5s ease-in-out;
    cursor: pointer;
    margin-right: 0;
    z-index: 11;
    position: absolute;
    right: 30px;
    top: 30px;
    /* display: none; */
}

.m-menu span {
    transform: rotate(0);
    transition: 0.25s ease-in-out;
}

.mm-open .m-menu span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.mm-open .m-menu span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mm-open .m-menu span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

.mm-open .m-menu span {
}

body{
    overflow:hidden;
}
body.page-template-page-gallery{
    overflow:auto;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--gap);
    background: #fff;
    z-index: 88;
    display: flex;
    align-items: center;
    padding-left: var(--gap);
}

.admin-bar #header {
    top: 32px;
}

#header .logo {
    display: block;
}

#header nav {
    background: #231f20;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 390px;
    padding-right: var(--gap);
    padding-top: var(--gap);
    text-align: right;
    z-index: 9;
    transform: translate(100%, 0);
    transition: all 0.3s ease;
}

.mm-open #header nav {
    transform: translate(0, 0);
}

nav .sub-menu {
    display: none;
}

#header nav a {
    color: #fff;
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 500;
    font-family: 'AvenirNext', sans-serif;
    display: block;
    transition: none;
    padding: 10px 0;
}

#header nav a:hover {
    color: var(--blue);
}

#header nav li {
    display: block;
}

#header nav ul.menu>li {
    margin-bottom: 30px;
}

#header nav ul ul a {
    font-size: 20px;
    padding: 5px 0;
}

#header nav ul.menu>li>a:hover, #header nav ul.menu>li:hover>a {
    font-weight: bold;
    color: var(--blue);
}

#main {
    padding-top: var(--gap);
    padding-left: var(--gap);
    padding-bottom: var(--gap);
    height: 100vh;
}
.page-template-page-gallery #main{
    height:auto;
}
.hero {
    margin-left: -100px;
}

.hero .img {
    padding-left: var(--gap);
}

.hero img {
    width: 100%;
    height: calc(100vh - 200px);
    object-fit: cover;
    display: block;
}

.hero .cap {
    position: absolute;
    top: 50%;
    left: 0;
    background: #78c5dbe6;
    border-left: 100px solid #78c5db;
    border-radius: 0 40px 0 0;
    padding: 40px 170px 30px 0;
    color: #fff;
    transform: translateY(-50%);
}

.hero .cap:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: rgb(120,197,219);
    background: linear-gradient(90deg, rgba(120,197,219,1) 0%, rgba(120,197,219,0) 100%);
}

.hero .cap * {
    position: relative;
}

.hero .cap p {
    font-family: Georgia,Times,Times New Roman,serif;
    font-weight: bold;
    font-size: 40px;
    font-style: italic;
    margin-bottom: 0;
    line-height: 1;
    opacity: 0;
    transform: translate(50px,0);
}

.hero .cap h2 {
    font-size: 80px;
    line-height: 1;
    transform: translate(-50px,0);
    opacity: 0;
}

.hero .swiper-slide-active .cap p, .hero .swiper-slide-active .cap h2 {
    opacity: 1;
    transform: translate(0px,0);
    transition: all 0.7s ease;
    transition-delay: 0.5s;
}

.hero .swiper-slide-active .cap h2 {
    transition: all 0.8s ease;
    transition-delay: 0.7s;
}

.hero .cap:after {
    content: '';
    display: block;
    position: absolute;
    width: 110px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 442.65 50'%3E%3Cpolygon fill='%23ffffff' points='417.65 0 416.06 1.59 438.34 23.87 0 23.87 0 26.12 438.34 26.12 416.06 48.41 417.65 50 442.65 25 417.65 0'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right 90px center;
    right: 40px;
    bottom: 36px;
    transition: all 1s ease-out;
    transition-delay: 1s;
    opacity: 0;
}

.hero .swiper-slide-active .cap:after {
    opacity: 1;
    background-position: right 0px center;
    width: 70px;
}

.hero .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 120px;
    z-index: 1;
}

.hero .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    border: 1px solid #fff;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}

.hero .swiper-pagination-bullet-active.swiper-pagination-bullet {
    background: #fff;
}

#footer {
    display: flex;
    height: var(--gap);
    padding-left: var(--gap);
    padding-right: var(--gap);
    justify-content: space-between;
    align-items: center;
    color: var(--blue);
    font-size: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
}

#footer img {
    width: 25px;
    margin-right: 5px;
    display: block;
}

#footer .info, .copyright {
    display: flex;
    align-items: center;
}

#footer a {
    display: block;
    color: var(--blue);
}

#footer a:hover {
    text-decoration: underline;
}

#footer .info a {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.copyright span {
    margin: 0 10px;
}

.content {
    background: #f4f4f4;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.content h1 {
    margin-bottom: 30px;
}

.content .text {
    flex: 0 0 500px;
    padding: 60px 50px 0px;
    max-width: 500px;
    height: 100%;
}

.content .image {
    flex-grow: 1;
    position: sticky;
    top: 100px;
    height: 100%;
    object-fit: cover;
}
.content .image>img{
    height:100%;
}

.content .image img.full {
    width: 100%;
    height: calc(100vh - 200px);
    display: block;
    object-fit: cover;
}

.villa-link {
    display: flex;
    border-top: 1px solid #fff;
    justify-content: space-between;
    padding-top: 25px;
    text-align: center;
    font-size: 11px;
    position: sticky;
    bottom: 0;
    background: #f4f4f4;
}

.villa-link svg {
    height: 46px;
    display: block;
    margin: auto auto 10px;
    transition: all 0.4s ease;
}

.villa-link a {
    color: var(--blue);
}

.villa-link a:hover svg {
    transform: translate(0,-10px);
}

h1 {
    color: var(--blue);
    line-height: 1;
}

h1 span {
    font-family: Georgia,Times,Times New Roman,serif;
    font-weight: bold;
    font-size: 0.6em;
    font-style: italic;
    display: block;
    color: #231f20;
}

ul.tab-menu,
ul.tab-select{
    display: flex;
    margin-bottom: 20px;
    margin-top: -30px;
    text-transform: uppercase;
}

ul.tab-menu li,
ul.tab-select li{
    display: block;
    font-size: 13px;
    font-family: 'AvenirNext', sans-serif;
    font-weight: 500;
    border-right: 1px solid #d3d2d2;
    line-height: 1;
    padding-right: 10px;
    margin-right: 10px;
    color: var(--blue);
    cursor: pointer;
}

ul.tab-menu li:last-child,
ul.tab-select li:last-child{
    padding-right: 0;
    margin-right: 0;
    border: none;
}

ul.tab-menu li.current-menu-item a,
ul.tab-select li.act{
    color: #231f20;
    pointer-events: none;
}
ul.tab-menu li a{
    color:var(--blue);
}



.tabs li::marker {
    color: var(--blue);
}

.tabs ul {
    margin-left: 20px;
}

.tabs {
    min-height: calc(100vh - 370px);
}

input.wpcf7-text, textarea {
    border: none;
    border-bottom: 2px solid #fff;
    background: transparent;
    height: 50px;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
    width: 100%;
    font-size: 18px;
}

input.wpcf7-text:focus, textarea:focus {
    border-color: var(--blue);
}

.wpcf7-submit {
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 15px 30px;
    margin-top: 30px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

.wpcf7-submit:hover {
    background: var(--blue);
    color: #fff;
}

.abox {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    height: 100%;
}

.abox img {
    width: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
}

.abox .box {
    position: relative;
    display: flex;
    align-items: center;
}

.abox h3 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    background: transparent;
    transition: all 0.6s ease;
    text-align: center;
}

.box:hover h3 {
    background: #76c5dbe6;
}

.text.sticky {
    position: sticky;
    top: 100px;
}

.box h3 span {
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: 0.2s;
    transform: translateY(20px);
}

.box:hover h3 span {
    opacity: 1;
    transform: translateY(0);
}

.floor-plan {
    padding-right: var(--gap);
}

#floorslider img {
    width: 100%;
    height: calc(100vh - 200px);
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg id='Floor_Plan' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%2378c5db;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M51.07,32.42l17.15,15.39-17.15,15.29-2.02-2.27,12.91-11.51h-27.89v-3.04h27.92l-12.94-11.61,2.03-2.26Zm48.93,17.58c0,27.57-22.43,50-50,50S0,77.57,0,50,22.43,0,50,0s50,22.43,50,50Zm-3.04,0c0-25.9-21.07-46.96-46.96-46.96S3.04,24.1,3.04,50s21.07,46.96,46.97,46.96,46.96-21.07,46.96-46.96Z'/%3E%3C/svg%3E");
    width: 32px;
    height: 32px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%;
    position: absolute;
    z-index: 11;
    border-radius: 50%;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-image: url("data:image/svg+xml,%3Csvg id='Floor_Plan' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23ffffff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M51.07,32.42l17.15,15.39-17.15,15.29-2.02-2.27,12.91-11.51h-27.89v-3.04h27.92l-12.94-11.61,2.03-2.26Zm48.93,17.58c0,27.57-22.43,50-50,50S0,77.57,0,50,22.43,0,50,0s50,22.43,50,50Zm-3.04,0c0-25.9-21.07-46.96-46.96-46.96S3.04,24.1,3.04,50s21.07,46.96,46.97,46.96,46.96-21.07,46.96-46.96Z'/%3E%3C/svg%3E");
    background-color: var(--blue);
}

#floorslider .swiper-button-next {
    right: 100px;
}

#floorslider .swiper-button-prev {
    left: 100px;
    transform: rotate(180deg);
}

#floorslider .cap {
    position: absolute;
    top: 10px;
    left: 10px;
}

#floorslider h2 {
    font-weight: bold;
    font-style: italic;
    font-size: 30px;
    font-family: Georgia,Times,Times New Roman,serif;
}

#floorslider h3 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    color: var(--blue);
    text-transform: uppercase;
}

.content .tab-content h1 {
    /* white-space: nowrap; */
}

.content .tab-content h1 br {
    display: none;
}

.content .tab-content h1 em {
    font-family: Georgia,Times,Times New Roman,serif;
    font-weight: bold;
    font-size: 0.6em;
    font-style: italic;
    display: block;
    color: #231f20;
}

.pbox-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #e9e9e9;
}
.team-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    background: #e9e9e9;
    height: 100%;
}

.team-box .pbox img{
    position:absolute;
    left: 0;
    right: 0;
    object-fit: cover;
    top: 0;
    height: calc(100% - 100px);
}

.pbox .info {
    padding: 0px 50px;
    position: relative;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #e9e9e9;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}
.pbox{
    position:relative;
    overflow: hidden;
}

.pbox .info p {
    margin-bottom: 0;
    font-size: 14px;
    font-family: 'AvenirNext', sans-serif;
    font-weight: 500;
    color: #bdbcbc;
}

.pbox h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
    line-height: 1;
}

.pbox h4 {
    font-family: Georgia,Times,Times New Roman,serif;
    font-style: italic;
    margin-bottom: 10px;
}

.pbox .info p a {
    color: var(--blue);
}

.pbox .info p a:first-child {
    margin-right: 10px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

.pbox .info p br {
    display: none;
}

.pbox:nth-child(2n+1) .info:after {
    content: '';
    display: block;
    width: 2px;
    top: 15px;
    bottom: 15px;
    position: absolute;
    background: #fff;
    right: -1px;
}

.image-grid ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.image-grid ul li {
    display: block;
}

.image-grid ul img {
    display: block;
    width: 100%;
    height: 13vw;
    cursor: pointer;
    object-fit: cover;
}

.image-grid {
    width: 100%;
}

.lbox-gallery {
    position: fixed;
    background: #fff;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 99;
    padding: 100px 0px 0 0px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.gallery-open .lbox-gallery {
    opacity: 1;
    visibility: visible;
}

.lbox-gallery .close {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg id='Gallery_2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31.41 31.41'%3E%3Cpolygon fill='%2378c5db' points='31.41 1.41 30 0 15.71 14.29 1.41 0 0 1.41 14.29 15.71 0 30 1.41 31.41 15.71 17.12 30 31.41 31.41 30 17.12 15.71 31.41 1.41'/%3E%3C/svg%3E");
    width: 30px;
    height: 30px;
    right: 40px;
    top: 40px;
    background-color: transparent;
    background-size: contain;
    border: none;
    cursor: pointer;
}

#slider-gallery {
    padding: 0 100px;
}

#slider-gallery img {
    width: 100%;
    height: calc(100vh - 200px);
    object-fit: cover;
}

#slider-gallery .swiper-button-next {
    right: 34px;
}

#slider-gallery .swiper-button-prev {
    transform: rotate(180deg);
    left: 34px;
}

.svgmap{
    height:100%;
    display:flex;
    width: 100%;
    background: #4ca3db;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.svgmap img,
.svgmap svg{
    height: 1700px;
    width: 759px;
}
.svgmap img{
    max-width: 2000px;
    display: block;
    
    margin-left: -1px;
    position: relative;
}
.svgmap svg{
    position:absolute;
    left:-1px;
    top:50%;
    z-index: 1;
    transform: translateY(-50%);
}

.tabs .sp ul{
    margin:0;
    font-size:26px;
    text-transform:uppercase;
    font-family: 'AvenirNext', sans-serif;
    line-height: 1.8;
    max-width: 300px;
}
.tabs .sp ul li::marker{
    display: none;
}
.tabs .sp ul li{
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tabs .sp ul li:after{
    content:'';
    display:block;
    height:20px;
    flex-grow:1;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 786.94 80'%3E%3Cpolygon fill='%2378c5db' points='746.94 0 744.39 2.55 780.05 38.2 0 38.2 0 41.8 780.05 41.8 744.39 77.45 746.94 80 786.94 40 746.94 0'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-size:300px;
    background-position:right 300px center;
    transition:all 0.3s ease;
}

.tabs .sp ul li.act,
.tabs .sp ul li:hover{
    color:var(--blue);
}
.tabs .sp ul li.act:after{
    background-position:right 0 center;
}
.svgmap .st0{
    cursor:pointer;
    opacity:0;
    transition:all 0.3s ease;
}
.svgmap svg[data-show="1"] #map1{
    opacity:1;
}
.svgmap svg[data-show="2"] #map2{
    opacity:1;
}
.svgmap svg[data-show="3"] #map3{
    opacity:1;
}
.svgmap svg[data-show="4"] #map4{
    opacity:1;
}
.svgmap svg[data-show="5"] #map5{
    opacity:1;
}
.svgmap svg[data-show="6"] #map6{
    opacity:1;
}


@media(max-height: 900px) {
    body{
        overflow:auto;
    }
    #main{
        height:auto;
    }
    #header nav ul.menu>li{
        margin-bottom:20px;
    }
    .svgmap{
        height: 670px;
    }
    .abox img{
        position:relative;
    }
}


@media(max-width: 1300px) {
    .content .text {
        flex: 0 0 400px;
        max-width: 490px;
    }

    .content h1 {
        font-size: 60px;
    }
    body{
        overflow:auto;
    }
    #main{
        height:auto;
    }
    .abox,
    .content .image{
        height:auto;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .svgmap img, .svgmap svg {
        height: 1400px;
        width: 625px;
    }
    .svgmap svg{
    }
}

@media(max-width: 1100px) {
    
    #main {
        padding-left:0;
        padding-bottom: 20px;
    }

    #header {
        padding-left: 30px;
    }

    .hero .cap {
        padding: 30px 120px 25px 30px;
    }

    .hero .cap h2 {
        font-size: 60px;
    }

    .hero .cap p {
        font-size: 30px
    }

    .hero .cap:after {
        right: 30px
    }

    #footer {
        height: 70px;
        padding: 0 30px;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    .content {
        display: block;
    }

    .content .text {
        max-width: 100%;
        position: relative;
        top: 0;
        padding: 40px 30px 10px;
    }

    .tabs {
        min-height: auto;
        padding-bottom: 20px
    }
    .tabs .sp{
        /* display:none; */
    }

    .image-grid ul {
        grid-template-columns: repeat(4, 1fr);
    }

    .image-grid ul img {
        height: 20vh
    }
    .floor-plan{
        padding-right:0;
    }
    .content .image img.full{
        height:auto;
    }
    ul.tab-menu, ul.tab-select{
        margin-top:-20px;
    }
    .abox img {
        position: relative;
    }
    .copyright{
        margin-bottom:10px;
    }
    .svgmap {
        height: 670px;
    }
}

@media(max-width: 767px) {
    #header {
        height:60px
    ;
        padding-left: 20px;
    }
    #main{
        padding-top: 60px;
    }
    #header .logo{
        height: 40px;
            width:
        auto;
    }
    #footer{
        flex-direction: column-reverse;
        height:auto;
        padding-top:20px;
    }
    #footer .info span{
        display:none;
    }
    .copyright {
        font-size:11px;
        padding-top:20px
    ;
        padding-bottom: 20px;
    }
    .copyright a{
        white-space:nowrap;
        
    }
    .m-menu{
        top: 15px;
        right: 20px;
    }
    .hero .cap{
        position:
        relative;
        top: 0;
        transform: translate(0);
        padding-right: 50px;
        white-space: nowrap;
        padding-left: 20px;
    }
    .hero .cap p{
        font-size:25px;
    }
    .hero .cap h2{
        font-size:50px;
    }
    .hero .cap:after{
        right:20px;
        width: 40px;
    }
    .hero .swiper-slide-active .cap:after{
        width:30px;
    }
    .hero img{
        height: calc(100vh - 190px);
    }
    #header nav{
        width: 240px;
        padding-right: 30px;
    }
    .content{
        padding-top:30px;
    }
    .pbox-wrap{
        display:block;
        text-align:center;
    }
    .pbox .info{
        padding:20px 0;
    }
    .content .image img.full{
        height:auto;
    }
    .image-grid ul{
        grid-template-columns: 1fr 1fr;
    }
    #slider-gallery{
        padding: 0 20px;
    }
    #slider-gallery img{
        object-fit:contain;
    }
    #slider-gallery .swiper-button-next,
    #slider-gallery .swiper-button-prev{
        margin-top:-15px;
    }
    .lbox-gallery .close{
        right:20px;
        top:0px;
    }

    #floorslider .swiper-button-prev{
        left:20px;
    }
    #floorslider .swiper-button-next{
        right:20px;
    }
    ul.tab-menu, ul.tab-select{
        margin-top:-30px;
    }
    .abox h3,
    .tabs .sp ul{
        font-size:20px;
    }
    .svgmap img, .svgmap svg{
        height:800px;
        width:357px;
    }
    .svgmap svg{
        margin-top:-400px;
    }
    .svgmap{
        height:300px;
    }
    .page-template-page-gallery-php .content{
        padding-top:0;
    }
}


