/*******************************************************************************
DETAIL VILLA
*******************************************************************************/
#tm-villa {
    background-color: rgb(240, 239, 238);
    background-color: white;
}

#tm-villa-header-wrapper {
    position: relative;
}

#tm-villa-video {
    width: 100%;
    height: 536px; /* Keep it for reference (not applied anymore because of rule below) */
    height: calc(100vh - 80px - 160px); /* Variabalize 160px for mobile */
    object-fit: cover;
}

#tm-villa-title {
    text-align: center;
    font-size: 1.6rem;
    color: rgb(95, 92, 86);
    margin: auto;
}

#tm-villa-location {
    text-align: center;
    color: rgb(59, 92, 138);
    font-weight: bold;
    font-size: 1rem;
    margin-top: 0.6rem;
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
}

#tm-villa-gallery-button {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: absolute;
    right: 24px;
    bottom: 24px;
}

#tm-villa-features {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.tm-villa-detail {
    overflow: scroll;
    color: rgb(12, 68, 38);
    background-color: rgb(232, 237, 234);
    padding: 1rem;
    height: 100%;
    margin: 1rem;
    width: 200px;
    height: 280px;
    text-align: center;
}

.tm-villa-detail-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tm-villa-detail-icon-description {
    background-image: url("../images/villa-icons/villa-description.svg");
    background-size: contain;
}

/*******************************************************************************
CALENDAR BLOCK
*******************************************************************************/
#tm-calendar-block {
    width: 380px;
    background-color: white;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 12px;
    padding: 1.5rem;
    padding-bottom: 0;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
}

#tm-calendar-villa-name {
    font-family: 'Playfairdisplay';
    font-weight: bold;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

#tm-calendar-villa-price {
    font-weight: bold;
}

#tm-calendar-villa-date {
    font-size: 0.9rem;
    margin-top: 1rem;
}

#tm-calendar-date-button {
    margin-top: 0.4rem;
    background-color: white;
    padding: 0.8rem;
    border: 1px solid lightgray;
    color: gray;
    cursor: pointer;
    position: relative;
}

#tm-villa-infos-wrapper {
    display: flex;
    align-items: flex-start;
    margin-top: 1.6rem;
}

#tm-villa-container {
    width: 70%;
}

#tm-calendar-block {
    width: 30%;
}

#tm-calendar-action-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

#tm-calendar-info-text {
    text-align: center;
}

#tm-calendar-info-text a {
    font-size: 1rem;
    font-weight: bold;
    color: #9F967F;
}

#tm-calendar-info-text a:hover {
    text-decoration: underline;
}

article>p {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.tm-line {
    display: block;
    border-top: 1px solid lightgray;
    margin-top: 2rem;
    width: 100%;
}

#tm-calendar-date-button {
    margin-top: 0.4rem;
    background-color: white;
    padding: 0.8rem;
    border: 1px solid lightgray;
    color: gray;
    cursor: pointer;
    position: relative;
}

#tm-calendar-clear-button {
    display: none;
    color: black;
}

#datepicker {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding-right: 0;
    font-size: 0.9rem;
}

#tm-calendar-computed-price {
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    display: none;
}

#tm-calendar-computed-price p {
    margin-bottom: 0;
}

#tm-info-on-price {
    margin-top: 0.6rem;
    width: 100%;
    font-style: italic;
    font-weight: normal;
    font-size: 0.8rem;
}

/*******************************************************************************
CONTACT FORM IN CALENDAR BLOCK
*******************************************************************************/
#tm-contact-form {
    display: none;
}

#tm-contact-form-title {
    font-size: 1.2rem;
    margin-left: 1rem;
}

.tm-action-button,
.tm-action-button-reverse {
    cursor: pointer;
}

#tm-title-input,
#tm-dates-input {
    background-color: white;
    border: none;
    color: black;
    padding-left: 0;
    padding-bottom: 0;
}

#tm-title-input {
    font-family: 'Playfairdisplay';
    font-weight: bold;
}

.wpcf7-form {
    display: block;
}

.wpcf7-response-output {
    margin-top: 0 !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

.wpcf7-form p:nth-child(9) input {
    width: auto;
}

.wpcf7-form p:nth-child(9) .wpcf7-list-item {
    margin: 0;
}

.wpcf7-form p:nth-child(10) {
    text-align: center;
    margin-bottom: 1.4rem;
}

/*******************************************************************************
/*******************************************************************************
/******************************************************************************/

/*******************************************************************************
MOBILE
*******************************************************************************/

@media only screen and (max-width: 1024px) {
    main {
        padding-top: 0;
    }

    #tm-villa-infos-wrapper {
        flex-wrap: wrap;
        align-items: center;
        flex-direction: column-reverse;
        margin-top: 1rem;
        /*align-items: flex-start;
        margin-top: 2.6rem;*/
    }

    #tm-villa-container {
        width: 100%;
    }

    #tm-calendar-block {
        width: 90%;
        margin-bottom: 1rem;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgb(221, 221, 221);
    }

    #tm-villa-video {
        width: 100%;
        height: 340px; /* Keep it for reference (not applied anymore because of rule below) */
        height: calc(100vh - 80px - 160px);
        object-fit: cover;
    }

    #tm-villa-gallery-button {
        right: 12px;
        bottom: 12px;
    }

    .tm-villa-detail {
        height: auto;
    }
}