/*
 * PostList Styles
 *
 * Provides styling for the PostList shortcode and related wrappers,
 * including layout resets, search filters, category links, pagination,
 * responsive column classes, and hover states.
 *
 * @package     iw-wp-utils
 * @subpackage  assets/style/PostList
 * @since       1.0.0
 -------------------------------------------------------------- */

/* List Shortcode */
.iw-slider,
.iw-post-list {
    margin-left: -15px;
    margin-right: -15px;
}

.iw-post-list form {
    max-width: 790px;
    margin: 15px auto;
}

.iw-post-list svg {
    fill: #101010;
}

/* Slider Fallback: Hide items until JS initializes to prevent FOUC */
.iw-slider .iw-post-list__items {
    overflow: hidden;
    max-height: 0;
}

.iw-slider .iw-slider__fallback {
    display: block;
}

.iw-slider.iw-slider--initialized .iw-post-list__items {
    max-height: none;
}

.iw-slider.iw-slider--initialized .iw-slider__fallback {
    display: none;
}

/* Typation */
.iw-post-list .iw-post-list__typation {
    display: flex;
    gap: 17px;
    padding: 17px;
}

.iw-post-list .iw-post-list__typation .list_style_type_button button {
    cursor: pointer;
    border: none;
    background: none;
}

.iw-post-list .iw-post-list__typation .list_style_type_button button svg {
    fill: #17EFEF;
}

.iw-post-list .iw-post-list__typation .list_style_type_button button.active svg {
    fill: #EF17EF;
}

/* Search Filter */
.iw-post-list .iw-post-list__search {
    padding: 0 0 50px 0;
}

.iw-post-list .liw-post-list__search form.search_form,
.iw-post-list form {
    max-width: 790px;
    margin: 0 auto;
}

.iw-post-list .iw-post-list__search input[type="text"] {
    font-size: 16px;
    line-height: 21px;
    width: calc(100% - 54px);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #EF17EF;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}

.iw-post-list .iw-post-list__search.two_buttons input[type="text"] {
    width: calc(100% - 108px);
}

.iw-post-list .iw-post-list__search input::-webkit-input-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input::-moz-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input:-ms-input-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input::-ms-input-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input::placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input:focus {
    outline: none;
}

.iw-post-list .iw-post-list__search button.search_button {
    border: none;
    cursor: pointer;
    width: 54px;
    height: 54px;
    background-color: inherit;
    padding: 17px;
}

.iw-post-list .iw-post-list__search button.search_button:focus {
    outline: none;
}

.iw-post-list .iw-post-list__search .search_button svg {
    width: 20px;
    height: 20px;
}

.iw-post-list .iw-post-list__search .search_notification {
    min-height: 26px;
}

/* Radius Filter */
.iw-post-list__radius_filter {
    display: none;
    padding: 15px;
}

.iw-post-list__radius_filter.active {
    display: flex;
}

/* Input Checkbox Switch */
.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    float: left;
    margin: 3px 15px 0 15px;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch .switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch .switch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input:checked + .switch {
    background-color: #ef17ef;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input:focus + .switch {
    box-shadow: 0 0 1px #ef17ef;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input:checked + .switch:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper {
    display: flex;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #ccc;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ef17ef;
    cursor: pointer;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]:disabled::-webkit-slider-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ef17ef;
    cursor: pointer;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]:disabled::-moz-range-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper #radius-filter-range-text {
    padding-left: 10px;
}

/* Category Link Style */
.iw-post-list .taxonomy_link_wrapper a.taxonomy_link {
    text-decoration: none;
}

.iw-post-list .taxonomy_link_wrapper a.taxonomy_link:hover {
    color: #efef17;
}

.iw-post-list .taxonomy_link_wrapper.active a.taxonomy_link {
    color: #efef17;
}

/* Category Wrapper - Multi Line */
.iw-post-list .iw-post-list__taxonomies {
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.hide_taxonomies {
    padding: 0;
}

.iw-post-list .iw-post-list__taxonomies .category_wrapper_inner.clearfix {
    padding: 17px;
}

.iw-post-list .taxonomy_link_wrapper {
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .iw-post-list__categories_headline {
    float: left;
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .all_links {
    float: left;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .category_wrapper_inner .taxonomy_link_wrapper {
    float: left;
}

.iw-post-list .iw-post-list__taxonomies.multi_line button.open_rect {
    border: none;
    cursor: pointer;
    width: 54px;
    height: 54px;
    background-color: inherit;
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line button:focus {
    outline: none;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .open_rect svg {
    width: 20px;
    height: 20px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .category_wrapper_inner {
    padding: 17px;
    display: none;
}

/* Category Wrapper - One Line */
.iw-post-list .iw-post-list__taxonomies.single_line .taxonomy_link_wrapper_area {
    display: flex;
    display: -ms-flexbox;
    justify-content: flex-start;
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
}

.iw-post-list .iw-post-list__taxonomies.single_line .taxonomy_link_wrapper_area .taxonomy_link_wrapper {
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    text-align: left;
    flex-grow: 0;
}

/* Post List */
.iw-post-list .iw-post-list__items {
    display: flex;
    flex-wrap: wrap;
}

.iw-post-list .iw-post-list__item {
    padding: 17px;
    display: flex;
    flex-direction: column;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area {
    overflow: hidden;
    position: relative;
    background: transparent;
}

.iw-a11y-hide_images .iw-post-list .iw-post-list__item .post_thumbnail_area {
    border: 2px solid #101010;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.iw-a11y-hide_images .iw-post-list .iw-post-list__item .post_thumbnail_area img {
    visibility: hidden;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area.no-image {
    background: #ef17ef;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area.no-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.iw-post-list .no-image-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.iw-post-list .no-image-icon-wrapper .no-image-icon {
    width: 48px;
    height: 48px;
    fill: #ccc;
}

.iw-post-list .post_thumbnail_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    text-align: center;
    background: none;
    transition: all 300ms;
}

.iw-a11y-hide_images .iw-post-list .post_thumbnail_overlay {
    display: none;
}

.iw-post-list .post_thumbnail_overlay:hover {
    background: rgba(255, 255, 255, 0.6);
}

.iw-post-list .post_thumbnail_overlay .post_thumbnail_overlay_text_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 300ms;
    visibility: hidden;
    opacity: 0;
}

.iw-post-list .post_thumbnail_overlay:hover .post_thumbnail_overlay_text_wrapper {
    visibility: visible;
    opacity: 1;
}

.iw-post-list .post_thumbnail_overlay_text_wrapper .post_thumbnail_overlay_text {
    color: #EF17EF;
    font-size: 17px;
    line-height: 17px;
}

.iw-post-list .iw-post-list__item .post_content_area,
.iw-post-list .iw-post-list__item.even .post_content_area {
    background-color: #EFEF17;
    margin: 17px;
    flex: 1;
}

.iw-post-list .iw-post-list__item .post_content_area_headline a {
    margin: 0;
    padding: 0;
    font-size: unset;
    line-height: unset;
    font-weight: unset;
    text-decoration: none;
}

.iw-post-list .iw-post-list__item .post_content_area_headline a p.headline {
    padding: 17px;
    display: -webkit-box;
    height: 52px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    line-height: 17px;
    margin: 17px;
}

.iw-post-list .iw-post-list__item p.excerpt {
    padding: 17px;
    display: -webkit-box;
    height: 86px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    line-height: 17px;
    margin: 17px;
}

.iw-post-list .iw-post-list__item span.meta_info {
    padding: 17px;
}

/* Loading and no result */
.iw-post-list .loading_results,
.iw-post-list .no_result {
    text-align: center;
    width: 100%;
}

/* Pagination */
.iw-post-list .iw-post-list__pagination {
    display: flex;
    display: -ms-flexbox;
    justify-content: center;
    -ms-flex-pack: center;
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    padding: 17px;
    width: 100%;
}

.iw-post-list.without_pagination .iw-post-list__pagination {
    display: none;
}

.iw-post-list .iw-post-list__pagination .page {
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    padding: 0 17px;
}

.iw-post-list .iw-post-list__pagination .prev_area,
.iw-post-list .iw-post-list__pagination .next_area {
    cursor: pointer;
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    padding: 0 17px;
    visibility: hidden;
    opacity: 0;
}

.iw-post-list .iw-post-list__pagination .prev_area.active,
.iw-post-list .iw-post-list__pagination .next_area.active {
    visibility: visible;
    opacity: 1;
}

.iw-post-list .iw-post-list__pagination .prev_arrow,
.iw-post-list .iw-post-list__pagination .next_arrow {
    width: 20px;
    height: 20px;
}

.iw-post-list .iw-post-list__pagination .prev_text {
    float: left;
    margin: 0 0 0 17px;
}

.iw-post-list .iw-post-list__pagination .prev_arrow {
    float: left;
}

.iw-post-list .iw-post-list__pagination .next_text {
    float: left;
    text-align: right;
    margin: 0 17px 0 0;
}

.iw-post-list .iw-post-list__pagination .next_arrow {
    float: right;
}

.iw-post-list .iw-post-list__pagination .prev_area .prev_arrow svg,
.iw-post-list .iw-post-list__pagination .next_area .next_arrow svg {
    width: 20px;
    height: 20px;
}

.iw-slider .iw-slider__pagination {
    display: flex;
    justify-content: center;
}

.iw-slider.without_pagination .iw-slider__pagination {
    display: none;
}

.iw-slider .iw-slider__pagination .prev_arrow,
.iw-slider .iw-slider__pagination .next_arrow {
    cursor: pointer;
    height: 24px;
}

.iw-slider .iw-slider__pagination .dots_area {
    text-align: center;
    min-height: 24px;
    height: fit-content;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots {
    padding: 0;
    margin: 0;
    height: 24px;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li {
    display: inline-block;
    border: none;
    background: none;
    position: relative;
    cursor: pointer;
    margin: 5px;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li button {
    display: none;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid black;
    background-color: white;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li.slick-active::before {
    background-color: black;
    color: white;
}

/* Columns */
.iw-post-list .col-1-1 {
    width: 100%;
    float: left;
}

.iw-post-list .col-1-2 {
    width: 50%;
    float: left;
}

.iw-post-list .col-1-3 {
    width: 33.333333%;
    float: left;
}

.iw-post-list .col-1-4 {
    width: 25%;
    float: left;
}

.iw-post-list.typation_list .col-1-1,
.iw-post-list.typation_list .col-1-2,
.iw-post-list.typation_list .col-1-3,
.iw-post-list.typation_list .col-1-4 {
    width: 100%;
    float: unset;
}

.iw-post-list.typation_list .post_thumbnail_area {
    display: none;
}

/* Carousel Slider */
.iw-slider.iw-carousel {
    position: relative;
    margin-left: 0;
    margin-right: 0;
}

.iw-slider.iw-carousel .fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    cursor: pointer;
}

.iw-slider.iw-carousel .fade.fade_prev.slick-arrow {
    left: 0;
    justify-content: center;
    flex-direction: column;
}

.iw-slider.iw-carousel .fade.fade_next.slick-arrow {
    right: 0;
    justify-content: center;
    flex-direction: column;
}

.iw-slider.iw-carousel .fade.slick-arrow {
    display: flex;
    cursor: pointer;
}

.iw-slider.iw-carousel .fade.slick-arrow .inner {
    display: flex;
    background: #EF17EF;
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 13px;
}

.iw-slider.iw-carousel .fade.slick-arrow .outer {
    width: 100px;
}

.iw-slider.iw-carousel .fade svg {
    width: 24px;
    height: 24px;
}

.iw-slider.iw-carousel .fade svg path {
    fill: #17EFEF;
}

/* Carousel Edge Layout */
.iw-slider.iw-carousel-edge.edge-left .iw-carousel-clip {
    clip-path: inset(0 0 0 -100vw);
}

.iw-slider.iw-carousel-edge.edge-right .iw-carousel-clip {
    clip-path: inset(0 -100vw 0 0);
}

.iw-slider.iw-carousel-edge.edge-right .slick-slide {
    direction: ltr;
    text-align: left;
}

.iw-slider.iw-carousel-edge .slick-list {
    overflow: visible !important;
}


.iw-slider.iw-carousel-edge .fade.slick-arrow {
    display: flex !important;
}

.iw-slider.iw-carousel-edge.edge-left .fade.slick-arrow.slick-disabled,
.iw-slider.iw-carousel-edge .fade.slick-arrow.iw-arrow-hidden {
    display: none !important;
}

@media screen and (max-width: 850px) {

    /* Search */
    .iw-post-list .iw-post-list__search {
        width: 66.6666666%;
        margin: 0 auto;
    }

}

@media screen and (max-width: 767px) {

    /* Columns */
    .iw-post-list .col-1-3,
    .iw-post-list .col-1-4 {
        width: 50%;
    }

    /* Pagination */
    .iw-post-list .iw-post-list__pagination .prev_text,
    .iw-post-list .iw-post-list__pagination .next_text {
        display: none;
    }

    .iw-slider.iw-carousel .fade.slick-arrow .outer {
        display: none;
    }

    .iw-slider.iw-carousel .fade.slick-arrow .inner {
        background: transparent;
    }

}

@media screen and (max-width: 640px) {

    /* Columns */
    .iw-post-list .col-1-2,
    .iw-post-list .col-1-3,
    .iw-post-list .col-1-4 {
        width: 100%;
    }

}
