/*
Theme Name: TownHub Child
Theme URI: https://townhub.cththemes.com
Author: CTHthemes
Author URI: http://themeforest.net/user/cththemes/
Description: TownHub – Directory & Listing WordPress Theme is perfect if you like a clean and modern design. This theme will help you create, manage and monetize a local or global directory site.
Version: 1.0.0
Tags: custom-background, custom-menu, editor-style, featured-images, post-formats, sticky-post, theme-options, translation-ready
Template: townhub
Text Domain: townhub-child
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
/* =Theme customization starts here
------------------------------------------------------- */

/* -- nav bar -- */

/* logo modifs */
.logo-holder {
    float: left;
    height: 60px;
    position: relative;
    top: 10px;
    /* order: 1; */
}

.main-header {
    background-color: #046ca4;
}

.color-bg {
    background-color: #046ca4;
}

@media only screen and (max-width: 650px) {
    .logo-holder {
        top: 15px;
        height: 45px;
    }
}

@media only screen and (max-width: 1373px) {
    .logo-holder {
        top: 10px;
    }
}

#top-menu .current-menu-item > a {
    color: #ffffff;
}
#top-menu a {
    color: #ffffff;
}
.nav-holder nav li a{
    font-weight: 400;
}

/* surcharge breackpoint burger menu */
@media only screen and (min-width: 1373px) {
    .user-profile-menu-wrap {
      display: block !important;
    }
}
@media only screen and (max-width: 1372px) {
    #wrapper {
      overflow-x: hidden;
    }
    .nav-button-wrap, .mob-bg, .mob-nav-content-btn, .map-close, .close_sbfilters {
      display: block;
    }
    .header-search-input, .header-search-input.header-search_selectinpt {
      margin-bottom: 10px;
    }
    #footer-twiit .timePosted a, .header-search-input, .header-search-input.header-search_selectinpt, .menusb, .main-menu .menusb ul, .menusb li, .faq-nav, .col-list-wrap, .menusb a, .subscribe-widget {
      width: 100%;
    }
    .faq-nav, .list-main-wrap-header.anim_clw, .menusb, .main-menu .menusb ul, .menusb li, .menusb a, .subscribe-widget {
      float: left;
    }
    .col-list-wrap.anim_clw {
      padding-top: 0;
    }
    .col-list-wrap.anim_clw.hidsb_act {
      left: 380px !important;
    }
    .list-main-wrap-header.anim_clw.hidsb_act {
      left: 0 !important;
    }
    .list-main-wrap-header.anim_clw {
      position: relative;
      width: 100%;
      top: 0;
    }
    .header-search_container {
      bottom: inherit;
      top: 95%;
    }
    .vis-head-search {
      bottom: inherit;
      top: 100%;
    }
    .ntm {
      margin-top: 0;
    }
    .main-menu nav ul, .main-footer .footer-wave, .counter-widget:before, .back-tofilters, .lws_mobile, .show-hidden-sb, .top-breadcrumbs {
      display: none;
    }
    .back-to-filters {
      display: none !important;
    }
    .map-container.column-map.right-pos-map, .map-container.fw-map.big_map.hid-mob-map {
      width: 100%;
      right: -100%;
      position: fixed;
      z-index: 100 !important;
      -webkit-transform: translate3d(0, 0, 0);
    }
    .map-container.column-map.right-pos-map #map-main.main-map-osm, .map-container.fw-map.big_map.hid-mob-map #map-main.main-map-osm {
      position: fixed;
    }
    .main-menu {
      position: absolute;
      top: 80px;
      right: -20px;
      width: 300px;
      z-index: 50;
      padding: 15px 10px;
      background: #fff;
      border-radius: 0 0 0 6px;
      border-right: 1px solid #eee;
      border-bottom: 1px solid #eee;
      visibility: hidden;
      opacity: 0;
      -webkit-transition: all 0.4s ease-in-out;
      -o-transition: all 0.4s ease-in-out;
      transition: all 0.4s ease-in-out;
      -webkit-box-shadow: 0px 0px 90px 0px rgba(0, 0, 0, 0.07);
              box-shadow: 0px 0px 90px 0px rgba(0, 0, 0, 0.07);
    }
    .vismobmenu {
      opacity: 1;
      right: 0;
      visibility: visible;
    }
    .menusb {
      display: block;
      position: relative;
      overflow: hidden;
    }
    .main-menu .menusb ul {
      display: block;
      position: relative;
    }
    .menusb li {
      margin: 0;
      position: relative;
      overflow: hidden;
      padding: 0 20px;
    }
    .menusb li i {
      position: absolute;
      right: 18px;
      top: 16px;
    }
    .menusb a {
      padding: 15px 0;
      position: relative;
      font-weight: 600;
      color: #6e5850;
      line-height: 14px;
      text-align: left;
      display: inline-block;
    }
    .menusb a.act-link {
      color: #4DB7FE;
    }
    .menusb a i {
      -webkit-transform: rotate(-90deg);
          -ms-transform: rotate(-90deg);
              transform: rotate(-90deg);
    }
    .menusb a.back {
      padding-left: 24px;
    }
    .menusb a.back:before {
      font-family: Font Awesome\ 5 Pro;
      content: "\f177";
      font-size: 1.077em;
    }
    section.hero-section {
      padding: 50px 0 80px;
      z-index: 20;
    }
    .intro-item h1 {
      font-size: 32px;
      line-height: 40px;
    }
    .main-search-input-tabs {
      margin-top: 30px;
    }
    .gallery-item, .three-columns-grid .listing-item {
      width: 50%;
    }
    .subscribe-widget {
      margin-top: 20px;
    }
    .footer-social, .footer-link {
      margin-top: 10px;
    }
    .footer-widget-posts li:last-child {
      margin-bottom: 0;
    }
    .features-box-container .features-box {
      margin-bottom: 10px;
    }
    .footer-logo, .faq-nav, .footer-social, .footer-link {
      margin-bottom: 20px;
    }
    .hero-slider-item {
      padding: 50px 0 150px;
    }
    .shb {
      top: 100%;
      margin-top: -100px;
    }
    .hero-map-search-wrap {
      margin-top: 0;
      padding: 0;
    }
    .pagination, .bookiing-form-wrap {
      margin-bottom: 20px;
      margin-top: 0;
    }
    .col-list-wrap .pagination, .fwmpag {
      margin-bottom: 0;
      margin-top: 20px;
    }
    .post-container .post-article {
      margin-bottom: 0;
    }
    section.parallax-section {
      padding: 80px 0;
    }
    .list-single-header-column {
      margin-top: 22px;
    }
    .inline-facts-wrap {
      margin-bottom: 10px;
    }
    .listing-carousel-wrap {
      height: 400px;
    }
    .listing-carousel-wrap .listing-carousel-button {
      margin-top: -25px;
    }
    .counter-widget {
      width: 100%;
      margin: 20px 0;
      top: 0;
    }
    .cws, .post-article .btn {
      margin-top: 10px;
    }
    .post-article .btn {
      margin-top: 20px;
    }
    .cws li {
      margin-left: 0;
      margin-right: 20px;
    }
    .listing-hero-section {
      padding: 150px 0 0;
    }
    .listing-hero-section.hmap-section {
      padding-top: 0;
    }
    .price-head .footer-wave {
      bottom: -28px;
    }
    .page-scroll-nav {
      right: 0;
    }
    .page-scroll-nav nav {
      border-radius: 20px 0 0 20px;
    }
    .to-top, .chat-widget-button, .fchat-wrapper {
      right: 20px;
    }
    .header-user-menu {
      top: 22px;
    }
    .main-header:before {
      width: 50% !important;
    }
    .list-single-header_bottom {
      display: block;
    }
    .show_toggle_filter .show-hidden-sb {
      display: none;
    }
    .mmb-item {
      display: block;
    }
}

/* cache la preview elementor sur le responsive */
@media only screen and (max-width: 1064px) {
    .elementor-hidden-mobile,
    .elementor-hidden-tablet {
        display: none !important;
    }
}
@media only screen and (min-width: 1065px) {
    .elementor-hidden-desktop {
        display: none !important;
    }
}

/* Language popup */
.mfp-language-widget .mfp-content {
    max-width: 400px;
    margin: 0 auto;
}
#pll_switcher .sub-menu .mfp-close {
    top: -10px; 
    right: -10px;
}
#pll_switcher {
    text-align: center;
    padding: 15%;
    background-color: white;
}

.main-menu .pll-parent-menu-item ul {
    display: none;
}

#pll_switcher .sub-menu {
    display: flex;
    justify-content: space-evenly;
    margin: 0;
}

#pll_switcher ul {
    list-style: none;
    padding: 0;
}
#pll_switcher li a {
    text-decoration: none;
    color: inherit;
}
#pll_switcher li a:hover {
    text-decoration: underline; 
}

.main-menu.vismobmenu ul li a img,
#pll_switcher .sub-menu li a img,
#top-menu li a[href="#pll_switcher"] img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
}

/** trait menu **/
.nav-holder nav > ul > li {
    position: relative;
}
.nav-holder nav > ul > li:not(:last-of-type):after {
    position: absolute;
    content: "";
    top: 10px;
    bottom: 15px;
    
    border-right: 1px solid #EF7B44;
}


/* -- Homepage -- */
/* Hero */
.elementor-image-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#custom-home-title {
    background-color: none;
    border: 2px solid #ffffff;
    padding: 5px;
}

/* carousel */
@media (max-width: 1024px) and (min-width: 768px) {
    .elementor-image-carousel-wrapper {
        height: 100%; /* S'assurer que le wrapper prend toute la hauteur du conteneur */
    }

    .elementor-image-carousel .swiper-slide-inner {
        height: 100%;
    }

    .elementor-image-carousel .swiper-slide-image {
        object-fit: cover; /* Les images couvriront le conteneur */
    }
}

/** titre des images */
div.elementor-image-carousel.swiper-wrapper {
    figure {
        position: relative;

        figcaption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: center;
            color: white;
            padding-bottom: 5%;
            font-size: 22px;
            text-shadow: black 1px 0 5px;
            font-weight: bold;
            z-index: 10;
        }
    }
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
    }
}

.wp-block-column.is-layout-flow.wp-block-column-is-layout-flow {
    min-width: 50%;
}

@media (max-width: 767px) {
    #header-home .elementor-image-box-img {
        margin-top: 25px;
        margin-bottom: 6rem;
    }
    #header-home .elementor-image-box-title {
        text-shadow: black 1px 0 4px;
        margin-bottom: 3rem;
    }
}


/* -- widget disciplines -- */
/* logos */
.elementor-widget-les_disciplines_widget .disciplines-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.elementor-widget-les_disciplines_widget .discipline {
    flex: 0 0 calc(33.33% - 20px);
    margin-bottom: 20px;
    display: flex;
}
.elementor-widget-les_disciplines_widget .discipline a {
    display: flex;
    align-items: center;
}
.elementor-widget-les_disciplines_widget .discipline-title {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .elementor-widget-les_disciplines_widget .discipline {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .elementor-widget-les_disciplines_widget .discipline {
        flex: 0 0 100%;
    }
}

/* modal */
/* Styles pour la modal custom */
.mfp-custom-size{
    z-index: 999999 !important;
}
.mfp-custom-size .mfp-content figure > img {
    height: fit-content;
    width: 100%;  
}
.mfp-custom-size .mfp-content div:first-child {
    flex-direction: column;
}
.mfp-custom-size .mfp-content .mfp-close {
    color: black;
    opacity: 1;
}

@media (min-width: 768px) {
    .mfp-custom-size .mfp-content {
        max-width: 90%;
        margin: 0 auto;
    }
    .mfp-custom-size .mfp-content div:first-child {
        flex-direction: row;
    }
    .mfp-custom-size .mfp-content figure > img {
        height: fit-content;
        width: 100%;
    }
    .mfp-custom-size .mfp-content .mfp-close {
        color: rgb(255, 255, 255);
        opacity: 1;
    }
    .mfp-custom-size .mfp-content .mfp-close:hover {
        opacity: .65;
    }
}

/* -- single discipline page -- */
.single-discipline-writing-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wp-block-column-is-layout-flow > figure {
    margin: 0;
}
.single-discipline-logo {
    margin: 11% 0 4% 0;
}
.single-discipline-title {
    font-size: 20px;
    margin-bottom: 4%;
}
.single-discipline-paragraph {
    font-size: 15px;
    width: 55%;
}

/* -- search page --  */
.search-container-height {
    height: calc(100vh - 80px);
}
.search-form {
    color: #0f5f99;
}
.search-container .row-form {
    order: 1;
}
.search-container .row-map {
    order: 2;
}
.mobile-title {
    display: none;
}
@media (max-width: 767px) {
    .desktop-title {
      display: none;
    }
    .mobile-title {
      display: inline;
    }
}

/* form */
#club-search-form label {
    font-size: 14px;
    margin-bottom: 0;
}
#club-search-form div select {
    width: 100%;
}
.search-button {
    height: 40px;
    background-color: #f07b44;
    font-size: 14px;
    color: white;
    font-weight: bold;
    padding: 4%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 5px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.search-button:hover {
    background-color: white;
    font-size: 14px;
    color: #f07b44;
    font-weight: bold;
    padding: 4%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 5px;
    border: 1px solid #f07b44;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* select 2 */
.select2-container.select2 {
    width: 100% !important;
}
.select2-search__field::placeholder {
    font-style: italic;
    font-size: 14px;
}
.select2-container--default > .selection .select2-selection--multiple {
    padding: 3px;
    min-height: 40px;
}
.select2-container--open .select2-dropdown--below {
    top: -2px;
    font-size: 14px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #0f5f99 !important;
    color: white;
    margin: 0;
    font-size: 14px;
}
.select2-container--default .select2-results__option--selected {
    background-color: rgb(233, 233, 233) !important;
}
.select2-results__option--selectable {
    cursor: pointer;
    color: #0f5f99;
}
.select2-selection__choice__display {
    font-size: 14px;
}
.select2-container .select2-selection .select2-selection__choice {
    background-color: rgb(233, 233, 233) !important;
    margin: 0;
}
.select2-container .select2-selection .select2-selection__rendered {
    margin: 0;
    padding-right: 30px;
}
.select2-container--open .select2-dropdown--below {
    border: 1px solid !important;
    border-top: none !important;
}

/* title */
.search-seo-title {
    background-color: #0f5f99;
}
.search-seo-title h1 {
    background-color: #0f5f99;
    color: white;
    font-size: 17px;
}
.search-seo-title a {
    background-color: white;
    color: #0f5f99;
    font-size: 15px;
    border-radius: 20px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.search-seo-title a:hover {
    background-color: #0f5f99;
    color: white;
    border: 1px solid white;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* result */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* result title */
.search-results .arrow-img {
    max-height: 42px;
    object-fit: contain;
}
.search-results hr {
    flex: 1;
    height: 1px;
    background-color: #0f5f99;
}
.search-results h3 {
    font-size: 17px;
    font-weight: bold;
    color: #0f5f99;
    margin: 0;
    padding: 0 10px;
    white-space: nowrap;
}

/* result card */
.club-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}
.club {
    flex: 0 0 calc(33.33% - 20px);
    border: solid 2px rgb(198, 198, 198);
    padding: 10px;
}
.club-image-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.club-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.club h4 {
    font-size: 15px;
    color: #0f5f99;
    font-weight: bold;
}
.club p {
    font-size: 14px;
    color: #0f5f99;
    font-weight: bold;
}
.club a {
    background-color: #0f5f99;
    font-size: 15px;
    color: white;
    font-weight: bold;
    padding: 4%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 6px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.club a:hover {
    background-color: white;
    font-size: 15px;
    color: #0f5f99;
    font-weight: bold;
    padding: 4%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 6px;
    border: 1px solid #0f5f99;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

@media (max-width: 767px) {
    .search-container .row-form {
        order: 2;
        padding: 30px !important;
    }
    .search-container .row-map {
        order: 1;
        max-height: 190px;
    }
    .search-form h2 {
        font-size: 18px;
    }
    .search-button {
        height: 40px;
        background-color: #f07b44;
        font-size: 14px;
        color: white;
        font-weight: bold;
        padding: 2%;
        display: inline-block;
        text-align: center;
        vertical-align: middle;
        border-radius: 5px;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }
    .search-button:hover {
        background-color: white;
        font-size: 14px;
        color: #f07b44;
        font-weight: bold;
        padding: 2%;
        display: inline-block;
        text-align: center;
        vertical-align: middle;
        border-radius: 5px;
        border: 1px solid #f07b44;
        text-decoration: none;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }
    .select2-container--open .select2-dropdown--below {
        top: 45px;
        font-size: 14px;
        border: solid 1px black;
    }
    .select2-container--open  .select2-dropdown--above {
        top: 48px;
        font-size: 14px;
        border: solid 1px black;

    }
    .club-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* -- club detail -- */
/* logos */
.club-detail-image-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.club-detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.club-description-photo {
    width: 100%; /* Assurez-vous que la div prend toute la largeur de son parent */
    height: auto; /* Ajustez la hauteur automatiquement */
    position: relative; /* Positionner correctement l'image */
    overflow: hidden; /* Assurez-vous que l'image ne dépasse pas la div */
}
.club-description-photo img {
    width: 100%; /* L'image prendra toute la largeur de la div */
    max-height: 300px; /* Ajustez cette valeur selon vos besoins */
    height: auto; /* Maintenir l'aspect ratio */
    display: block; /* Supprimer les espaces blancs sous l'image */
    object-fit: cover; /* Remplir la div tout en gardant l'aspect ratio */
}

#title-choose-club {
    color: #f07b44;
}

/* start gallery */
.container-gallery {
    position: relative;
}
.my-slides {
    display: none;
}
.container-gallery .my-slides img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
}
.cursor {
    cursor: pointer;
}
/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* Container for image text */
.caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
}
.row:after {
    content: "";
    display: table;
    clear: both;
}
/* Container for the thumbnail images */
.thumbnail-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}
/* Thumbnail image */
.thumbnail-container .column {
    flex: 0 0 auto; /* Ensure flex item doesn't shrink or grow */
    margin-right: 5px; /* Add some space between thumbnails */
}
.thumbnail-container .column img {
    height: 100px; /* Set a fixed height */
    width: 100px; /* Set a fixed width */
    object-fit: cover; /* Ensure the image covers the whole container while maintaining aspect ratio */
}
/* Add a transparency effect for thumbnail images */
.thumbnail-hover {
    opacity: 0.6;
}
.active,
.thumbnail-hover:hover {
    opacity: 1;
}
/* end gallery */

/* equipement */
.equipment-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}
.equipment-list li {
    display: flex;
    align-items: center;
    width: 33%;
    margin-bottom: 10px;
}
.equipment-list li::before {
    content: '\2714';
    color: green;
    margin-right: 10px;
    font-weight: bold;
}

/* installation */
.installations-list {
    list-style-type: none; /* Remove list bullets */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
.installation-item {
    flex: 0 0 calc(33.33% - 10px); /* Three columns, adjust margin as needed */
    margin: 5px;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}
.installation-logo {
    width: 100px; /* Adjust the size of the logos as needed */
    height: auto;
}

/* contact */
.club-contact > p, .club-contact > div a, 
.club-description > p, .club-coatching > p, 
.equipment-list > li, .installations-list > li span {
    color: #565656;
}

@media (max-width: 767px) {
    .equipment-list li {
        width: 50%;
    }

    .installation-item {
        flex: 0 0 calc(50% - 10px); /* Two columns for smaller screens */
    }
}

/* -- footer -- */
.footer-custom-class a {
    color: white;
    font-size: 15px;
}
.footer-custom-class a:hover {
    color: white;
    font-size: 15px;
    text-decoration: underline;
}
.content {
    background-color: #f6f6f6;
}
.bg-white {
    background-color: white;
}
