/*
*Theme Name:     CozyStay Child Theme
*Theme URI: 	 https://cozystay.loftocean.com/
*Description:    CozyStay child theme for user customization
*Author:         CT-Web
*Author URI:     http://www.loftocean.com
*License: 		 GNU General Public License v2 or later
*License URI: 	 http://www.gnu.org/licenses/gpl-2.0.html
*Tags: 			 full-width-template, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*Template:       cozystay
*Text Domain: 	 cozystay-child
*Version:        1.1.5
*/

 /** Add your styles below **/
.site-header.custom-sticky-header.sticky{
    background: #1b344f;
}
.room .post-header .entry-title{
    color: var(--secondary-color);
}
.room .post-header .cs-room-basic-info{
    margin-top: 5px;
}
.cs-reservation-form select.cs-city-select-dropdown {
    text-align-last: right;
    width: 100%;
    border-color: var(--form-bd);
    border-style: solid;
    border-width: var(--form-bd-width);
    border-radius: var(--form-radius);
    color: var(--text-color);
    background: transparent;
    padding: 5px var(--form-side-padding);
    font-family: inherit;
    font-size: 14px;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.cs-reservation-form select.cs-city-select-dropdown option {
    background: #fff;
    color: #000;
    text-align: left;
}
#booking-popup form .cs-form-field:first-child{
    margin-right: 0;
    width: 100%;
}
.footer-contact img.alignleft{
    margin: 0 10px 0 0;
}

.menu-destinations ul.menu {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-destinations ul.menu li {
    flex: 0 0 50%;
    box-sizing: border-box;
}

.item-regular-price{
    font-size: 15px;
}
.item-regular-price span{
    color: var(--primary-color);
    font-size: 1.3em;
}

#main-menu-popup .cs-menu-mobile > ul > li{
    position: relative !important;
}
#main-menu-popup .cs-menu-mobile > ul > li::before,
#main-menu-popup .cs-menu-mobile > ul > li::after {
    content: "";
    height: 1px;
    opacity: 0.8;
    position: absolute;
    bottom: 0;
    width: 30%;
    transition: width 0.4s, left 0.4s, right 0.4s, opacity 0.4s;
}
#main-menu-popup .cs-menu-mobile > ul > li::before {
    background: linear-gradient(to right, transparent, #fff);
    left: 20%;
}
#main-menu-popup .cs-menu-mobile > ul > li::after {
    background: linear-gradient(to left, transparent, #fff);
    right: 20%;
}
#main-menu-popup .cs-menu-mobile > ul > li:hover::before,
#main-menu-popup .cs-menu-mobile > ul > li:hover::after{
    opacity: 1;
    width: 20%;
}
#main-menu-popup .cs-menu-mobile > ul > li:hover::before {
    left: 30%;
}
#main-menu-popup .cs-menu-mobile > ul > li:hover::after {
    right: 30%;
}
#main-menu-popup .cs-menu-mobile > ul > li.current-menu-item > a{
    /*    position: relative;
        display: inline-block;*/
}
#main-menu-popup .cs-menu-mobile > ul > li.current-menu-ancestor:hover > a::after,
#main-menu-popup .cs-menu-mobile > ul > li.current-menu-item:hover > a::after {
    /*    content: "" !important;
        color: red;
        display: block !important;
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        height: 13px;
        width: 13px;
        opacity: 1;
        background: radial-gradient(circle, rgb(255, 255, 255) 10%, rgba(255, 255, 255, 0.55) 70%);
        box-shadow: 0 0px 10px 8px rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transition: opacity 0.4s;*/
}


@media screen and (min-width: 1024px) {
    body.rooms-search-results #shortcode-search-villa {
        width: 100%; /* Force la largeur à remplir la sidebar */
        box-sizing: border-box;
        will-change: transform; /* Aide le navigateur à rendre le scroll plus fluide */
    }

    .posts.layout-list .featured-img {
        margin-right: 35px;
    }
    .posts.layout-list .featured-img + .post-content {
        width: calc(50% - 35px);
    }

    /* Sitcky du moteur de recherche */
    #secondary {
        height: 100%;
    }
    body.rooms-search-results #page{
        overflow-x: clip;
    }
    #secondary {
        height: auto; /* Laisse le parent s'étirer */
        position: relative;
    }

    #shortcode-search-villa {
        position: -webkit-sticky;
        position: sticky;
        top: 200px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-self: flex-start;
        z-index: 10;
    }
}

.cs-room-booking-btn {
    display: none;
}

@media (max-width: 767px) {
}


@media (max-width: 768px) {
    .theme-cozystay .daterangepicker.single {
        position: fixed !important;
        top: calc(50% - 200px) !important;
        left: calc(50% - 140px) !important;
        transform: none !important;
    }
    .theme-cozystay .daterangepicker.single::before, .theme-cozystay .daterangepicker.single::after{
        display: none !important;
    }


    .cs-room-booking-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        text-decoration: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        width: 280px;
        text-align: center;
        font-size: 1.125rem;
        line-height: 3rem;
    }

    /* Classe activée par le JS pour masquer le bouton proprement */
    .cs-room-booking-btn.cs-btn-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    @media screen and (max-width: 768px) {
        /* On cible les inputs pour éviter le zoom iOS */
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="search"],
        textarea,
        select {
            font-size: 16px !important;
        }
    }
}

/* Cache le badge sur tout le site */
.grecaptcha-badge {
    visibility: hidden;
}

/* Le réaffiche uniquement sur la page avec le formulaire (si votre body a une classe spécifique) */
.page-id-123 .grecaptcha-badge {
    visibility: visible;
}