/**
 * Theme Name: Astra Kinder
 * Template: astra
 * Version: 1.0
 */

/* MENU *******************************************************************************************************/

/* menu header sticky */
header#masthead {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* menu mobile full page */
#ast-mobile-header .ast-mobile-header-content {
    height: calc(100vh - 110px);
}

/* --- LIGHTBOX MENU --- */
.menu-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}  
.menu-lightbox:not(.hidden) {
    opacity: 1;
    visibility: visible;
}
.menu-lightbox-content {
    background: #fff;
    color: #000;
    padding: 1.5rem 2rem 0.5rem 2rem;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
} 
.menu-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 2px 10px 10px 10px;
    height: 40px;
    width: 42px;
}
.menu-lightbox-close:hover {
    background-color: transparent;
} 
.menu-lightbox-inner {
    text-align: center;
    font-size: 1.2rem;
}
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-lightbox-trigger {
    display: block !important;
    height: auto !important;
    line-height: normal !important;
    align-self: center !important;
    padding: 0 !important;
    margin-left: 20px;
}
.menu-lightbox-trigger > a {
    display: inline-block !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: auto !important;
}
.menu-lightbox-trigger > a:hover,
.menu-lightbox-trigger > a:focus {
    color: #fff !important;
}
.ast-desktop .ast-primary-header-bar .main-header-menu {
    display: flex !important;
    align-items: center !important;
}

/* === Correction mobile (menu Astra) === */
@media (max-width: 921px) {
    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-lightbox-trigger > a {
        background-color: var(--ast-global-color-1) !important;
        color: #fff !important;
    }
    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-lightbox-trigger > a:hover,
    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-lightbox-trigger > a:focus {
        background-color: var(--ast-global-color-1) !important;
        color: #fff !important;
    }
    li.menu-lightbox-trigger.ast-button {
        background-color: transparent;
    }
    .main-navigation ul li a {
        text-align: center;
    }
}

/* CONTENU LIGHTBOX MENU */
/* #hbook-booking-form-1 {
    transition: opacity 0.3s ease;
    opacity: 0;
} */
#hbook-booking-form-1.active {
    opacity: 1;
}
.button-louer-le-gite {
    margin: 1.75em auto;
}
#hbook-booking-form-1 h3 {
    margin-bottom: 25px;
}
.menu-lightbox-inner a.wp-element-button,
.menu-lightbox-inner a.wp-element-button:hover,
#hbook-booking-form-1 input[type="submit"] {
    color: #FFFFFF;
}
.wp-block-buttons.wp-container-core-buttons-is-layout-a89b3969 {
    margin-bottom: 1.5rem;
}

/* HOMEPAGE ***************************************************************************************************/

body.home .bienvenue {
  padding-top: 15px;
}

/*
.bienvenue {
    margin: -174px auto 20px;
    z-index: 9;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px 25px 63px !important;
    color: #000;
}
.bienvenue p {
    margin: 10px auto 0;
    font-size: 1.4em;
} */

body.home .uagb-slider-container .swiper-content {
    display: flex;
}
/* Réduction du slider sur mobile */
@media (max-width: 1000px) {

    body.home .swiper-wrapper {
        height: 56vw;
        min-height: 0 !important;
    }
    
}
/*
@media (max-width: 768px) {

    body.home .uagb-slider-container .swiper-content,
    body.home .uagb-slider-container .uagb-slider-child-wrap {
        height: 35vh !important;
    }
    
}*/


/* PAGE GITE ***************************************************************************************************/

body.page-id-41 .photos-gite-x2 .wp-block-uagb-container {
    width: 50% !important;
}
body.page-id-41 h1 {
    margin-top: 20px;
    text-align: center;
}
body.page-id-41 .hb-search-fields-and-submit select.hb-adults,
body.page-id-41 .hb-search-fields-and-submit select.hb-children {
    height: 44px;    
}
/* prix barrés */
body.page-id-41 .tarifs-formules sup {
    font-size: 88%;
}
body.page-id-41 .tarifs-formules s {
  position: relative;
  text-decoration: none; /* remove default line */
  display: inline-block; /* ensures ::after sizing works predictably */
  padding: 0 2px;
}
body.page-id-41 .tarifs-formules s::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;                    /* center vertically; adjust if needed */
  height: 1px;                 /* thickness of the line */
  background: currentColor;    /* same color as the text */
  transform-origin: center;
  transform: translateY(-50%) rotate(-12deg); /* rotate the line */
  pointer-events: none;        /* don't block text selection/clicks */
}
body.page-id-41 .chambres-gite .wp-block-uagb-container {
    cursor: pointer;
}
body.page-id-41 .wp-block-uagb-image-gallery {
    display: none;
}
body.page-id-41 .wp-block-uagb-slider {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.page-id-41 .wp-block-uagb-slider.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.page-id-41 .wp-block-uagb-slider.slider-infos-chambre {
    z-index: 999999999;
    position: fixed;
    bottom: 0;
    width: calc(100% - 40px);
}
body.page-id-41 .spectra-image-gallery__control-lightbox--main .swiper-slide {
    margin-top: -50px;
}
body.page-id-41 .swiper-button-prev,
body.page-id-41 .swiper-button-next {
    margin-top: -72px;
}
swiper-button-prev
/* non disponible */
body.page-id-41 p.hb-avail-caption-wrapper {
    float: right;
}

/* HBOOK *******************************************************************************************************/

.hb-datepick-popup .hb-dp-day a {
    color: #888888;
}

/* PAGE AUTOUR ***************************************************************************************************/

body.page-id-115 h1 {
    margin-top: 20px;
}
body.page-id-115 h2 {
    font-size: 48px;
}

@media (max-width: 767px) {

    body.page-id-115 main img {
        aspect-ratio: 1 / 0.6;
        object-fit: cover;
    }

}

/* PAGE MERCI ***************************************************************************************************/

body.page-id-349 h3 {
    text-align: center;
    margin-top: 20px;
}
body.page-id-349 #hb-resa-confirm-done p {
    text-align: center;
}

/* FOOTER ******************************************************************************************************/

footer {
    margin-top: 20px;
}

@media (max-width: 1240px) {
    
    aside.footer-widget-area.widget-area.site-footer-focus-item.footer-widget-area-inner {
        text-align: center;
    }
    ul.wp-block-social-links {
        justify-content: center;
    }

}
@media (max-width: 544px) {
    
    ul.wp-block-social-links {
        margin-bottom: 15px;
    }

}
