

/* *{
    outline: 1px solid red;
} */

.contact-nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

input.search-contact{
    gap: 8px;
    opacity: 1;
    display: block;
    border-radius: 30px;
    border-width: 1px;
    padding: 15px 15px 15px 60px;
    max-width: 460px;
    width: 460px;
}

@media (max-width: 768px) {
    input.search-contact{
        padding: 8px 8px 8px 50px;
    }
}

.search-contact-wrapper{
    position: relative;
    display: inline-block;
}

.search-contact-wrapper:before{
content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  width: 18px;
  height: 18px;
  background-image: url('/wp-content/themes/smartcity/custom-wcwi/img/search.svg'); /* zamień na swoją lupę */
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 1;
  /* color: red; */
}
@media (max-width: 768px) {
    .search-contact-wrapper:before{
        left: 30px;
    }
}

.option-contact-wrapper{
    display: flex;
    flex-direction: row;
    justify-items: flex-end;
    margin: 0;
    padding: 0;
    align-items: center;
}
.company-contact-wrapper{
    padding: 0;
    margin-right: 0;
    position: relative;
    &:before{
        content: '';
        position: relative;
        left: 40px;
        top: 6px;
        margin-top: auto;
        margin-bottom: auto;
        width: 24px;
        height: 24px;
        background-image: url('/wp-content/themes/smartcity/custom-wcwi/img/work.svg'); /* zamień na swoją ikonę firmy */
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
        display: inline-block;
        z-index: 2;
    }
    &:after {
        content: '';
        position: absolute;
        right: 30px;
        margin-right: 0;
        margin-left: 0;
        top: 0px;
        bottom: 0px;
        margin-bottom: auto;
        margin-top: auto;
        width: 12px;
        height: 8px;
        pointer-events: none;
        background-image: url('img/keyboard_arrow_down.svg'); /* zamień na swoją ikonę firmy */
        background-size: contain;
        background-color: #101010;
        background-repeat: no-repeat;
        pointer-events: none;
        display: inline-block;
        z-index: 2;
    }
    .tags-contact-select{
        padding-left: 45px;
        
        color: #aeaeae;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border-radius: 10px;
        border: 1px solid #3F3B3B;
        option{
            background-color: #101010;
            color: #aeaeae;
        }
        
    }
}

.tags-contact-wrapper{
    margin: 0;
    padding: 0;
    position: relative;
    
    &:before{
        content: '';
        position: absolute;
        left: 15px;
        top: 0px;
        bottom: 0;
        margin-top: auto;
        margin-bottom: auto;
        width: 24px;
        height: 24px;
        background-image: url('/wp-content/themes/smartcity/custom-wcwi/img/work.svg'); /* zamień na swoją ikonę firmy */
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
        display: inline-block;
        z-index: 2;
    }
    &:after {
        content: '';
        position: absolute;
        right: 14px;
        top: 0px;
        bottom: 0px;
        margin-bottom: auto;
        margin-top: auto;
        width: 12px;
        height: 8px;
        pointer-events: none;
        background-image: url('img/keyboard_arrow_down.svg'); /* zamień na swoją ikonę firmy */
        background-size: contain;
        background-color: #101010;
        background-repeat: no-repeat;
        pointer-events: none;
        display: inline-block;
        z-index: 2;
    }
    .tags-contact-select{
        position: relative;
        text-indent: 30px;
        padding-left: 15px;
        padding-right: 15px;
        width: 200px;
        color: #aeaeae;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border-radius: 10px;
        border: 1px solid #3F3B3B;
        option{
            background-color: #101010;
            color: #aeaeae;
            padding-right: 15px;
        }
        
    }
}

.role-contact-wrapper{
    margin-left: 15px;
    padding: 0;
    position: relative;
    /* width: 200px; */
    &:before{
        content: '';
        position: absolute;
        left: 15px;
        top: 0px;
        bottom: 0;
        margin-top: auto;
        margin-bottom: auto;
        width: 18px;
        height: 18px;
        background-image: url('/wp-content/themes/smartcity/custom-wcwi/img/account_box.svg'); /* zamień na swoją ikonę firmy */
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
        display: inline-block;
        z-index: 2;
    }
    &:after {
        content: '';
        position: absolute;
        right: 14px;
        top: 0px;
        bottom: 0px;
        margin-bottom: auto;
        margin-top: auto;
        width: 12px;
        height: 8px;
        pointer-events: none;
        background-image: url('img/keyboard_arrow_down.svg'); /* zamień na swoją ikonę firmy */
        background-size: contain;
        background-color: #101010;
        background-repeat: no-repeat;
        pointer-events: none;
        display: inline-block;
        z-index: 2;
    }
    .role-contact-select{
        text-indent: 30px;
        padding-left: 15px;
        padding-right: 15px;
        width: 200px;
        color: #aeaeae;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border-radius: 10px;
        border: 1px solid #3F3B3B;
        option{
            background-color: #101010;
            color: #aeaeae;
            padding-right: 15px;
        }
        
    }
}
.page-template-page-twarze-tdp, .tdp-all-wrapper{
    .output-content{
        #contact-list{
            display: flex;
            flex-direction: row;
            gap: 25px;
            flex-wrap: wrap;
            div{
                border: none;
                /* padding: 0; */
                a{
                    color: #ffffff;
                    display: block;
                    padding: 15px;
                }
            }
        }
        
        .row{
            background: #141414;
            outline: 1px solid #3F3B3B;
            border-radius: 10px;
            display: flex;
            color: #ffffff;
            /* justify-content: space-between; */
            align-items: center;
            flex-direction: column;
            /* padding: 10px; */
            width: calc(33.333% - 16.666px);
            gap: 25px;
            padding: 25px;
            .wrapper-text{
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                flex-grow: 1;
            }
        }
        .fullname{
            font-family: Montserrat;
            font-weight: 700;
            font-size: 32px;
            line-height: 100%;
            text-align: center;
            padding-bottom: 15px;
        }
        .short-description{
            font-family: Montserrat;
            font-weight: 300;
            font-style: Italic;
            font-size: 20px;
            line-height: 100%;
            text-align: center;

        }
        .image-wrapper {
            aspect-ratio: 1 / 1;
            overflow: hidden;
            width: 100%;
            img{
                object-fit: cover;
                width: 100%;
                height: 100%;
                border-radius: 10px;
                
                /* height: 350px; */
            }
        }

    }
}
@media (max-width: 768px) {
    .tdp-all-wrapper .output-content .row{
        margin-top: 15px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .row.grid-container{
        
        display: grid;
        grid-template-columns: 80px 1fr; /* cztery kolumny */
        grid-template-rows: repeat(3, 1fr);     /* trzy równe wiersze */
        gap: 0;
        justify-content: center;
        align-items: center;
       
    }

}
/* @media (max-width: 768px) {
    .output-content{
        padding: 0 15px;
    }
} */
#pagination-wrapper {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    margin-top: 10px;
    height: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

#pagination-wrapper li {
    cursor: pointer;
    padding: 12px;
    /* background: #3F3B3B; */
    background: #fff;
    border-radius: 4px;
    transition: 0.2s;
    margin: 0;
    width: 48px;
    height: 48px;
    display: inline-block;
    text-align: center;
    &.disabled{
        background-color: #aeaeae;
        cursor:not-allowed;
    }
}
@media (max-width: 768px) {
    #pagination-wrapper li{
        width: 36px;
        height: 36px;
        line-height: 12px;
        font-size: 18px;
    }
}
#pagination-wrapper li.page-link:hover {
    background: #f0f0f0;
    color: #3F3B3B;
}

#pagination-wrapper li.active {
    font-weight: bold;
    background: #3F3B3B;
    color: white;
}
.ajax-pagination li {

  margin: 14px;
  display: block;
  text-decoration: none;
  list-style: none;
  
}
.ajax-pagination li:hover {
  text-decoration: underline;
}

.loader {
  border: 4px solid #eee;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#spinner{
    display:none; 
    text-align:center; 
    margin-top:1em;
    justify-content: center;
}

#spinner.active{
    display: flex;
}
.output-content{
    margin-bottom: 25px;
    /* min-height: calc(100vh -  100px); */
    /* min-height: 500px; */
    transition: min-height 0.3s ease;
}
@media (max-width: 768px) {
    .output-content{
        /* min-height: calc(100vh -  100px); */
        min-height: auto;
    }
}
@media (max-width: 768px) {
    .contact-nav{
        flex-direction: column;
        padding: 0px;
        margin: 0;
        width: 100%;
        .option-contact-wrapper{
            display: none;
            
        }
        .search-contact-wrapper{
            display: flex;
            justify-content: space-between;
            width: 100%;
        }
        .search-contact{
            width: calc(100% - 50px);
            max-width: calc(100% - 50px);
        }
    }
}

@media (min-width: 768px) {
    #contact-filter-toggle{
        display: none;
    }
}

/* modal window */
.contact-filter-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#inner-body .contact-filter-modal-content {
  background: #000;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  color: #fff;
    .role-contact-wrapper{
        margin-left: 0;
    }
    .tags-contact-select,
    .role-contact-select {
        width: 100%;
        margin: 10px 0;
        padding: 10px;
        border-radius: 4px;
        border: 1px solid #fff;
    }
    .contact-filter-close {
        position: absolute;
        top: 10px; right: 15px;
        font-size: 24px;
        border: none;
        background: none;
        cursor: pointer;
    }
    .buttons-filter{
        background: #fff;
        color: #101010;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        margin-top: 15px;
        text-align: center;
        width: 100%;
        &:hover {
            background: #3F3B3B;
        }
    }
}




@media (min-width: 767px) and (max-width: 992px) {
    .page-template-page-twarze-tdp
        .contact-nav{
            flex-direction: column;
        }
    }
}

@media (min-width: 767px) and (max-width: 1440px) {
    .page-template-page-twarze-tdp{
        .contact-list, .contact-nav{
            padding: 15px;
        }
    }
}


@media (max-width: 767px) {
    .page-template-page-twarze-tdp{
        .contact-nav .search-contact-wrapper{
            padding: 15px;
        }
        .output-content #contact-list{
            flex-direction: column;
            .row{
                width: calc(100% -  30px);
                margin: 0 15px;
            }
        }
    }
}


.page-template-page-twarze-tdp{
    #inner-body{
        background-color: #101010!important;
        color: #fff;
        a{
            color: #fff;
        }
    }
}

