@import url('https://fonts.googleapis.com/css2?family=Taviraj:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

*{
    font-family: "Mulish", sans-serif;
}   

body{
    margin: 0;
}

/* header subheader */

header, .subheader{
    background-color: #F0F0F0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header > div, .subheader > div{
    width: 960px;
    max-width: 90vw;
}

header{
    height: 15ch;
}

header > div{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

header > div > img{
    width: 10ch;
}

header > div > div{
    background-color: white;
    border-radius: 100vw;
    display: flex;
    align-items: center;
}

header button, .airbnb-btn-full{
    background-color: transparent;
    border: none;
    border-radius: 100vw;
    padding: 1ch 3ch;
    cursor: pointer;
}

header button > img, .airbnb-btn-full > img{
    height: 4ch;
}

header > div > button{
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.header-btn-on{
    color: white;
    background-color: #2B3D75;
}

.header-btn-venta{
    background-color: #167AC0;
}

.header-btn-renta, .airbnb-btn-full{
    background-color: #FF385C;
}

.header-btn-renta{
    height: 4ch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-btn-renta img{
    height: 100%;
    height: 4ch;
}
      
.subheader{
    padding-bottom: 1dvh;
    min-height: calc(100vh - 15ch - 1dvh);
}

.subheader > div{
    height: 100%;
    position: relative;
}

.subheader > div > div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4vh;
}

.subheader > div > div p{
    max-width: 35%;
    font-family: sans-serif;
    color: #3A3A3A;
}

.subheader > div img{
    background-color: white;
    justify-self: flex-end;
    display: flex;
    border-radius: 2ch;
    width: 100%;
    aspect-ratio: 3/1;
    margin-top: 4dvh;
}

.subheader h1{
    color: #2B3D75;
    font-size: 2.7ch;
    font-family: "Taviraj", serif;
    font-weight: 400;
    line-height: 2.4ch;
}
        
.subheader h1 span{
    color: #BEAF94;
}
        
/* tiles */
.section-tiles{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.section-tiles > div{
    background-color: #F0F0F0;
    border-radius: 4ch;
    width: 960px;
    max-width: 960px !important;
    padding: 4ch 4ch;
    margin: 1dvh 0;
}

.section-tiles > div > div{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-tiles > div > div h2{
    max-width: 60%;
}

.section-tiles > div > div p{
    max-width: 40%;
    font-family: sans-serif;
    font-size: 1.5ch;
    color: #3A3A3A;
}

.section-tiles > div > button{
    color: white;
    background-color: #2B3D75;
    border: none;
    border-radius: 100vw;
    padding: 1ch 5ch;
    cursor: pointer;
}

.section-tiles h2{
    color: #BEAF94;
    font-size: 2.8ch;
    margin-top: 0;
    font-family: "Taviraj", serif;
    font-weight: 400;
    line-height: 2.2ch;
}

.section-tiles h2 span{
    color: #2B3D75;
    font-size: 1.5ch;
    font-family: "Taviraj", serif;
}

.dynamic-tiles{
    display: flex;
    justify-content: center;
    margin-top: 4ch;
    cursor: pointer;
}

.dynamic-tiles > div{
    margin: 0 1ch;
    border-radius: 2ch;
    background: linear-gradient(#9C8D80 50%, white 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 50dvh;
    min-height: fit-content !important;
    margin-bottom: 4ch;
    transition: all 0.2s;
    box-shadow: 0 0 1ch rgba(0, 0, 0, 0.1);
}

.dynamic-tiles > div > img:nth-child(1){
    width: 5ch;
    margin-top: 2ch;
    z-index: 1;
    cursor: pointer;
}

.dynamic-tiles > div > img:nth-child(2){
    width: 70%;
    aspect-ratio: 4/5;
    border-radius: 1ch;
    object-fit: cover;
    object-position: center;
    margin-top: -20%;
}

.dynamic-tiles > div h3{
    color: #9C8D80;
    display: none;
    text-align: center;
    font-family: "Taviraj", serif;
    font-weight: 500;
}

.dynamic-tiles > div p{
    text-align: center;
    font-style: italic;
    font-weight: bold;
    color: #3A3A3A;
    margin-top: -30%;
    margin-bottom: 30%;
    font-size: 1.5ch;
}

.dynamic-tiles > div p span{
    font-weight: 100;
    font-style: normal;
    font-family: sans-serif;
    font-size: 1.5ch;
}

.dynamic-tile-active-true{
    min-width: 30%;
    width: 30%;
    transition: all 0.2s;
}

.dynamic-tile-active-true > img:nth-child(1){
    align-self: flex-end;
    margin-right: 2ch;
}

.dynamic-tile-active-true > img:nth-child(1):hover{
    cursor: pointer;;
    scale: 1.1;;
    transition: all 0.2s;
}

.dynamic-tile-active-true > img:nth-child(2){
    margin-top: -6ch !important;
    margin-bottom: 0 !important;
}

.dynamic-tile-active-true > img:nth-child(2):hover{
    cursor: pointer;
    scale: 1.025;
    transition: all 0.2s;
}
    
.dynamic-tile-active-true h3{
    display: flex !important;
    margin-bottom: 0;
}

.dynamic-tile-active-true p{
    margin-top: 0 !important;
    margin-bottom: 1ch !important;
}

/* amenities */
.section-amenities{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.section-amenities > h2{
    color: #BEAF94;
    font-family: "Taviraj", serif;
    font-weight: 500;
    margin-top: 0;
}

.section-amenities > div{
    width: calc(960px - (1.5ch * 10));
    max-width: calc(100vw - (1.5ch * 10));
    display: grid;
    grid-template-areas: "alberca alberca terraza terraza gym"
                         "seguridad pet terraza terraza elevador"
                         "verdes verdes verdes club club";
    grid-template-columns: 23% 23% 4% 20% 30%;
    grid-gap: 1.5ch;
    justify-content: center;
    height: 75vh;
    margin-bottom: 6ch;
}
    
.section-amenities > div > div{
    background-color: #F0F0F0;
    width: 100%;
    height: 100%;
    border-radius: 1ch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.section-amenities > div > div:nth-child(1){ background-image: url('./assets/grid-alberca.png'); }
.section-amenities > div > div:nth-child(2){ background-image: url('./assets/grid-seguridad.png'); }
.section-amenities > div > div:nth-child(3){ background-image: url('./assets/grid-pet.png'); }
.section-amenities > div > div:nth-child(4){ background-image: url('./assets/grid-terraza.png'); }
.section-amenities > div > div:nth-child(5){ background-image: url('./assets/grid-gym.png'); }
.section-amenities > div > div:nth-child(6){ background-image: url('./assets/grid-elevador.png'); }
.section-amenities > div > div:nth-child(7){ background-image: url('./assets/grid-verdes.png'); }
.section-amenities > div > div:nth-child(8){ background-image: url('./assets/grid-club.png'); }

.section-amenities > div > div > img{
    width: 5ch;
    aspect-ratio: 1/1;
    border-radius: 100vw;
    margin-left: 1ch;
}

.section-amenities > div > div > p{
    color: white;
    font-family: "Mulish", sans-serif;
    margin-top: 5px;
    margin-bottom: 1.5ch;
    margin-left: 1.5ch;
    text-shadow: 0 0 1ch rgba(0, 0, 0, 0.5);
    font-size: 1.25ch;
}

/* .section-contact */
.section-contact{
    height: fit-content;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('./assets/alberca-gym-acapulco-diamante-imagen-de-familia-en-secci-n-de-formulario-sand-diamante.png');
    background-size: cover;
    background-position: top left;
}

.section-contact > div{
    box-shadow: 0 0 2ch rgba(0, 0, 0, 0.25);
    border-radius: 2ch;
    padding: 3ch;
    background-color: white;
    display: grid;
    grid-template-areas: "contactanos contactanos"
                         "nombre apellido" 
                         "telefono telefono"
                         "email email"
                         "mensaje mensaje"
                         "captcha captcha"
                         "enviar enviar";
    grid-gap: 1ch 3ch;
    height: fit-content;
    margin-left: calc(100% - 30% - 24%);
    margin-top: 1dvh;
    margin-bottom: 1dvh;
    min-height: 80vh;
    width: 30%;
    max-width: 36ch;
}

.section-contact > div > button{
    background-color: #2B3D75;
    color: white;
    border: none;
    border-radius: 100vw;
    padding: 1ch 6ch;
    cursor: pointer;
    width: fit-content;
    margin: 0 auto;
}

.section-contact h3{
    text-align: center;
    margin-top: 0;
    color: #BEAF94;
    font-family: "Taviraj", serif;
    font-weight: 400;
    font-size: 3ch;
}

.form-in p{
    color: #2B3D75;
    font-family: "Mulish", sans-serif;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-in input, .form-in textarea{
    font-family: sans-serif;
    padding: 0.75ch 1ch;
    font-size: 1.4ch;
    border: 1px solid #F0F0F0;
    width: calc(100% - 2ch);
}

.form-in textarea{
    resize: none;
    height: 10ch;
}

/* footer */
footer{
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer > section{
    width: 80%;
    display: flex;
    justify-content: space-between;
}

footer > section > div{
    display: flex;
    flex-direction: column;
    color: #3A3A3A;
    font-family: sans-serif;
}

footer > section > div:nth-child(1),
footer > section > div:nth-child(3){
    width: 35% !important;
}

footer > section > div:nth-child(1) p,
footer > section > div:nth-child(3) p{
    font-size: 1.5ch;
}

footer > section > div:nth-child(1) > img{
    height: 18ch;
    width: 12.9ch;
    margin-top: 5ch;
    margin-bottom: 2ch;
}
                
footer > section > div:nth-child(1) > div{
    display: flex;
    align-items: center;
}

footer > section > div:nth-child(1) > div img{
    margin-right: 1ch;
    width: 5ch;
    margin-left: -0.5ch;
    margin-top: 1ch;
    margin-bottom: 1ch;
}

footer > section > div:nth-child(2){
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer > section > div:nth-child(2) >p :not(:first-child){
    font-weight: bold;
    text-decoration: underline;
}
                
footer > section > div:nth-child(2) > p:not(:first-child) > a{
    color: #3A3A3A;
}
                    
footer > section > div:nth-child(3){
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer > section > div:nth-child(3)> div,
footer > section > div:nth-child(3)> div img{
    width: 100%;
    margin-top: 0.5ch;
    margin-bottom: 1ch;
}

footer > hr{
    width: 99%;
}

footer > p{
    text-decoration: none;
    margin: 2ch 0;
    font-family: sans-serif;
    font-size: 1.5ch;
    color: #3A3A3A;
    cursor: pointer;
}

/* float buttons */
.float-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 2ch;
    bottom: 1ch;
}

.float-buttons a{
    overflow: hidden;
}

.float-buttons img{
    width: 7ch;
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 0% 80%);
    scale: 1.2;
    border-radius: 100vw;
}

/* TermsConditions */
.TermsConditions-MAIN{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2ch solid #F0F0F0;
    display: none;
}

.TermsConditions-MAIN > img{
    height: 3.4ch;
    margin: 5ch 0;
}

.TermsConditions-MAIN p{
    width: 75vw;
    color: #4b8bbc;
}

/* TypologyView */
.TypologyView-MAIN{
    background-color: white;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    display: none;
}

.TypologyView-MAIN > div{
    scale: 0.85;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
}

.TypologyView-MAIN > div > div{
    display: flex;
    width: 960px;
    max-width: 90vw;
    max-height: calc(100% - 8ch);
}

.TypologyView-MAIN > div > img:first-child{
    align-self: flex-end;
    margin-right: -3ch;
    margin-bottom: 1ch;
    padding: 0;
    width: auto;
}

.TypologyView-MAIN > div > a,
.TypologyView-MAIN > div > a img,
.TypologyView-MAIN > div > img{
    align-self: flex-end;
    margin-top: 2ch;
    margin-right: -3ch;
    height: 3.5ch;
    width: fit-content;
    z-index: 2;
    border: 1px solid white;
    width: auto;
}

.TypologyView-btn{
    height: 4ch !important;
    border-radius: 100vw;
    border: none;
    padding-left: 2ch;
    padding-right: 2ch;
    cursor: pointer;
}

/* info */
.TypologyView-info{
    width: 40%;
    height: 100%;
    background-color: #F0F0F0;
    border-radius: 2ch;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.TypologyView-info > h2{
    font-family: "Taviraj", serif;
    font-weight: 400;
    color: #BEAF94;
    margin-bottom: 0;
}

.TypologyView-info > p:nth-child(2){
    font-style: italic;
    text-decoration: dotted;
    margin-top: 0;
}

.TypologyView-info > p:nth-child(3){
    font-weight: bold;
    color: #167AC0;
    margin-top: 0;
}

.TypologyView-info > div{
    width: 80%;
    display: inline-flex;
    justify-content: space-between;
    margin: 0.5ch 0;
}

.TypologyView-info > div p{
    margin: 0;
    font-weight: bold;
    color: #1E2944;
}

.TypologyView-info > div span{
    color: #167AC0;
}

.TypologyView-info > img{
    max-width: 100%;
    max-height: 60%;
    scale: 0.8;
}

.TypologyView-info .TypologyView-btn{
    color: white;
    background-color: #2B3D75;
    margin-bottom: -2ch;
}

/* grid */
.TypologyView-grid{
    width: calc(60% - 1ch);
    margin-left: 1ch;
    display: grid;
    grid-template-areas: "tip1 tip1 tip2 tip2" "tip3 tip4 tip4 tip5";
    grid-template-columns: 33.3% 30% 3.3% 33.3%;
    grid-gap: 1ch;
}

.TypologyView-grid div{
    width: 100%;
    height: 100%;
}

.TypologyView-grid img{
    width: 100%;
    height: 100%;
}

.TypologyView-grid > div:last-child{
    scale: 1.03;
}

.control-left,
.control-right{
    position: fixed;
    top: 0;
    bottom: 0;
    margin: auto 0;
    z-index: 1;
    max-width: 5ch;
    max-height: 5ch;
    cursor: pointer;
}

.control-left{
    left: 2.5ch;
    rotate: 180deg;
}

.control-right{
    right: 2.5ch;
}

/* SearchBar */
.SearchBar-MAIN{
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 2ch;
    box-shadow: 0 1ch 1ch rgba(73, 73, 73, 0.1);
    padding: 2ch 4ch;
    padding-bottom: 3ch;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -12dvh !important;
    scale: 0.9;
}

.SearchBar-MAIN > p{
    margin-top: 0;
    color: #2B3D75;
    font-family: sans-serif;
}

.SearchBar-MAIN > div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.SearchBar-MAIN > div img{
    width: 4ch;
    cursor: pointer;
    aspect-ratio: unset;
    margin-top: unset;
}

.SearchBar-in{
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #1C7DC1;
    font-size: 1.4ch;
    white-space: nowrap;
}

.SearchBar-in span{
    display: flex;
    align-items: center;
}

.SearchBar-in span img{
    max-width: 2ch !important;
    max-height: 2ch;
    margin-right: 1ch;
    aspect-ratio: 1/1;
    border-radius: 0 !important;
    margin-top: 0 !important;
}

.SearchBar-in > input,
.SearchBar-in > select{
    border: none;
    margin-top: 5px;
    border-bottom: 1px solid #1C7DC1;
    padding: 5px;
}

.search-bar-venta .SearchBar-in{
    color: #9C9C9C;
    width: unset;
    width: 20%;
}

.search-bar-venta .SearchBar-in > p{
    margin-bottom: 0;
    color: #3A3A3A;
    font-weight: bold;
}

.datos-huesped-title{
    width: 100%
}

.datos-huesped{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: 0 2ch;
}

.datos-huesped > div{
    width: 100% !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.datos-huesped > div p{
    margin-top: 10 !important;
    margin-bottom: 5px !important;
    font-weight: bold !important;
    color: black;
    font-style: normal !important;
    margin-left: 1ch;
}

.datos-huesped > div input{
    border: 1px solid #ECECEC;
    padding: 7px;
}

.accept-terms{
    font-size: 1.5ch;
}

.accept-terms a{
    color: #167AC0;
    cursor: pointer;
}

/* RESPONSIVE */
@media all and (max-width:780px){

    /* header subheader */
    header{
        height: 18dvh;
    }

    header > div{
        display: grid;
        grid-template-areas: "logo switches" "logo btn";
    }

    header > div >img:first-child{
        margin: auto;
        top: 0;
        bottom: 0;
        scale: 0.9;
    }

    header > div >div:nth-child(2){
        width: fit-content;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    header > div >div:nth-child(2) button{
        padding: 0.75ch 1.75ch;
    }
            
    header > div >button,
    header > div >a,
    header > div >div:not(:nth-child(2)){
        margin: auto;
        top: 0;
        bottom: 0;
    }

    .subheader{
        min-height: calc(100vh - 18dvh - 1dvh);
        height: fit-content !important;
        max-height: unset !important;
        justify-content: center;
    }

    .subheader > div{
        margin-top: 0
    }

    .subheader > div > div{
        flex-direction: column;
        align-items: flex-start;
    }

    .subheader > div > div p{
        max-width: unset;
    }
        
    .subheader > div > div:last-child{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* tiles */
    .section-tiles{
        margin-top: 0 !important;
    }
    
    .section-tiles > div{
        padding-left: 0;
        padding-right: 0;
        width: 90vw;
    }

    .section-tiles > div > div:first-child{
        flex-direction: column;
        align-items: flex-start;
    }

    .section-tiles > div > div:first-child h2{
        max-width: unset;
        margin-bottom: 0;
        padding: 0 5vw;
    }

    .section-tiles > div > div:first-child p{
        max-width: unset;
        padding: 0 5vw;
    }

    .dynamic-tiles{
        width: 100vw;
        margin-left: -5vw;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dynamic-tiles::-webkit-scrollbar{
        display: none;
    }

    .dynamic-tile-active-true,
    .dynamic-tile-active-false{
        width: 50vw;
        min-width: 50vw;
    }

    .dynamic-tile-active-true > img:nth-child(1),
    .dynamic-tile-active-false > img:nth-child(1){
        align-self: flex-end;
        margin-right: 2ch;
    }

    .dynamic-tile-active-true > img:nth-child(2),
    .dynamic-tile-active-false > img:nth-child(2){
        margin-top: -6ch !important;
        margin-bottom: 0 !important;
    }

    .dynamic-tile-active-true h3,
    .dynamic-tile-active-false h3{
        display: flex !important;
        margin-bottom: 0;
    }

    .dynamic-tile-active-true p,
    .dynamic-tile-active-false p{
        margin-top: 0 !important;
        margin-bottom: 1ch !important;
    }

    /* amenities */
    .section-amenities > div{
        width: calc(100vw - (1.5ch * 5));
        max-width: calc(100vw - (1.5ch * 6));
    }

    /* .section-contact */
    .section-contact > div{
        margin: unset;
        width: 85vw;
        min-width: fit-content;
    }

    .section-contact > div h3{
        margin: 0;
    }

    /* footer */
    footer > section{
        flex-direction: column;
    }

    footer > section > div{
        width: 100% !important;
    }

    footer > section > div:nth-child(1),
    footer > section > div:nth-child(3){
        width: 100% !important;
    }

    /* TypologyView */
    .TypologyView-MAIN{
        overflow-y: auto;
        justify-content: flex-start;
    }

    .TypologyView-MAIN > div{
        scale: 1;
        margin: 2dvh 0;
        max-height: unset;
        height: fit-content;
        margin: unset;
    }

    .TypologyView-MAIN > div > div{
        flex-direction: column;
    }

    .TypologyView-MAIN > div > img{
        margin-right: 0 !important;
    }

    .TypologyView-MAIN > div > img:last-child{
        margin-bottom: 2dvh;
    }
    
    /* info */
    .TypologyView-info{
        width: 100%;
    }

    .TypologyView-info .TypologyView-btn{
        margin-bottom: 1.5dvh;
    }

    /* grid */
    .TypologyView-grid{
        width: calc(100% - 5ch);
        margin-top: 2dvh;
    }

    .control-left,
    .control-right{
        max-width: 10vw;
        max-height: 10vw;
        cursor: pointer;
    }

    .control-left{
        left: 2vw;
        rotate: 180deg;
    }

    .control-right{
        right: 2vw;
    }

    /* SearchBar */
    .SearchBar-MAIN{
        width: 70vw;
        margin: 0;
    }

    .search-bar-venta,
    .search-bar-renta{
        flex-direction: column;
    }
    
    .search-bar-venta .SearchBar-in,
    .search-bar-renta .SearchBar-in{
        width: 100%;
        margin-bottom: 2dvh;
    }

    .ReservaRenta > section{
        min-width: unset;
        max-width: 90vw;
        width: 90vw;
    }

}