/*!
 * Custom css - Version - 1.1.1
 * Copyright (c) 2023 Webstudio <info@astrolab.com> and another company

 * L’autorisation est accordée à toute personne qui en obtient une copie de ce style.
 * Il est strictement interdit de publier(vendre) sans l'autorisation préalable des auteurs.
 * Des spécialistes sont à l'origine des documents fournis.
*/
@import url('../vendor/jarallax/jarallax.min.css');

/* Section Home */
#home {
    height: 100vh;
    /* min-height: calc(100vh - 80px); */
    min-height: 620px;
    position: relative;
}

#home .content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.overlaye {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.097);
    /* noir semi-transparent */
    z-index: 1;
}

.yh-custom-h {
    height: 85% !important;
}

.booking {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.booking .btn-picker {
    background-color: #eae5d7 !important;
}

/*  ===================================================
*   ================== Properties ==================
*/

#equipments.primary {
    background: #EAE5D7;
}

#equipments.secondary {
    background: #E3E6E3;
}

.equipment:hover img {
    -ms-transform: scale(1.25);
    -webkit-transform: scale(1.25);
    transform: scale(1.25);
}

.icon-shape {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.icon-shape img {
    height: 25px;
    transition: transform .3s;
}

.icon-shape.secondary {
    background-color: var(--secondary);
}

.icon-shape.primary {
    background-color: var(--primary);
}

.icon-xxl {
    height: 4rem;
    line-height: 4rem;
    width: 4rem;
}

#properties h2,
#properties p {
    color: var(--primary);
}

.property-bg-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background-color: var(--gray);
    z-index: 0;
}

.property-bg-bottom.primary {
    background-color: var(--primary);
}

.property-bg-bottom.secondary {
    background-color: var(--secondary);
}

.card-property {
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    width: 334px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.card-property:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.property-image {
    transition: all 0.5s ease;
    object-fit: cover;
}

.card-property:hover .property-image {
    transform: scale(1.05);
}

/*  ==============================================
*   ================== Services ==================
*/

.card-service {
    position: relative;
}

.card-service .card-service-image {
    transition: transform .3s;
}

.card-service .card-service-title {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(28, 51, 28, .75);
    transition: background-color, height .3s;
}

.card-service:hover .card-service-title {
    height: 0px;
}

.card-service:hover .card-service-title h3 {
    display: none;
}

.card-service:hover .card-service-image {
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}


/*  ==============================================
*   ================== Forms ==================
*/
.form-control,
.form-select {
    --bs-border-color: #e0e0e0;
    --bs-border-width: 2px;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease !important;
}

.form-control:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px #4a90e21a !important;
}

/*  ==============================================
*   ================== End Forms ==================
*/

.image-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #eee, #ddd, #eee);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    z-index: 1;
}

.real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    position: relative;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/*  ====================================================
*   ================== Mobile devices ==================
*/
@media only screen and (max-width: 600px) {
    .property-bg-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--gray);
        z-index: 0;
    }

    #properties:has(.primary) h2,
    #properties:has(.primary) p {
        color: var(--light) !important;
    }

    #home .content {
        display: flex;
        justify-content: start;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

/*  ========================================================
*   ================== End Mobile devices ==================
*/