/* .cpf-wrapper {
    display: flex;
    gap: 40px;
} */
/*new css*/
.map-title {
    padding-top: 30px;
    max-width: 80%;
    margin: 0 auto;
}
.map-title h3{
    text-align: center;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 20px !important;
    line-height: 30px !important;
}
.cpf-filter-wrapper-trak{
    display: flex;
    justify-content: center;
}
.cpf-filter-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/************/
.upper-cpf-year-filter select#cpf-year-filter:focus,
.cpf-multiselect select.common-eutotrak:focus,
.upper-cpf-year-filter select#cpf-exclude-year-filter {
    box-shadow: none !important;
    border: none;
    outline: none;
}
.upper-cpf-year-filter select#cpf-year-filter:focus-visible,
.cpf-multiselect select.common-eutotrak:focus-visible,
.upper-cpf-year-filter select#cpf-exclude-year-filter:focus-visible {
    outline: none !important;
}
.cpf-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.cpf-category{
    padding: 6px 15px;
}
#cpf-category-filter,.cpf-exclude-category-filter {
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    gap: 16px !important;
    margin-left: 0px !important;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
div#cpf-display img{
    max-height: 500px !important;
}
div#cpf-display {
    text-align:center;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}
#cpf-category-filter li,
.cpf-exclude-category-filter li {
    white-space: nowrap !important;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    padding: 19px 20px;
    border-radius: 12px;
    color: #1A1A1A !important;
    background: #ffffff;
    border: 1px solid #1A1A1A4D;
    transition: 0.3s;
}
#cpf-category-filter li.active,
.cpf-exclude-category-filter li.active{
    font-weight: 700 !important;
}
#cpf-category-filter li.active,
.cpf-exclude-category-filter li.active,
#cpf-category-filter li.active:hover,
.cpf-exclude-category-filter li.active:hover
 {
    background: #ff6a00;
    color: #fff !important;
    border: 1px solid #ff6a00 !important;
}

#cpf-category-filter li:hover,
.cpf-exclude-category-filter li:hover {
    background: #ddd;
}
.upper-cpf-year-filter {
    border: 1px solid #1A1A1A4D !important;
    padding: 19px 10px 20px 20px;
    background: #F9F9F9 !important;
    border-radius: 12px !important;
}
#cpf-year-filter,
#cpf-exclude-year-filter {
    width: fit-content !important;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    /* border-radius: 12px !important; */
    background: #f9f9f900 !important;
    color: #1a1a1a !important;
    border: none !important;
    padding: 0 10px 0 0;
}
#cpf-year-filter option,
.cpf-slide-country-name
{
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 100% !important;
    color: #1a1a1a !important;
}
.swiper-button-next, .swiper-button-prev{
    color: #1a1a1a !important;
}
.swiper-button-next:after, .swiper-button-prev:after{
    font-size: 20px !important;
}

.swiper-slide.cpf-country-slide.swiper-slide-active {
    display: flex !important;
    flex-wrap: wrap;
    justify-content:center !important;
    align-items:center !important;
    gap: 20px !important;
}

.cpf-grid, #cpf-results,
#cpf-post-grid,
.cpf-exclude-post-grid,
.cpf-posts-grid {
    padding-top: 40px;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.cpf-country-content-block img{
    max-width: 200px !important;
}

.cpf-right-content {
    padding-top: 30px
}

.cpf-card img,
.cpf-card .cpf-image img,
.cpf-post-card a img{
    width: 100%;
    border-radius: 20px 20px 0 0;
    /* height: 300px !important; */
    object-fit: cover;
}

.cpf-card h4,
.cpf-post-card h4
{
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    margin-top: 15px !important;
    color: #1a1a1a !important;
}
.cpf-card .cpf-date{
    padding-bottom: 0px !important;
    color: #00778A !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 28px !important;
}

/* Loading state */
.cpf-grid.loading {
    opacity: 0.5;
}

.cpf-dots {
    padding: 6px 10px;
    font-size: 14px;
    color: #999;
    user-select: none;
    align-self: center;
}

.cpf-page-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.cpf-page-btn.cpf-prev,
.cpf-page-btn.cpf-next {
    font-weight: 500 !important;
    padding: 6px 16px !important;
}
.cpf-pagination button.cpf-page-btn,
#cpf-research-pagination button.cpf-research-page {
    background-color: #ffffff !important;
    padding: 6px 10px;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 10px !important;
    margin: 0 5px;
    box-shadow: none !important;
}
.cpf-pagination button.cpf-page-btn.active,
#cpf-research-pagination button.cpf-research-page.active
{
    background: #EE7525 !important;
    color: #ffffff !important;
    border: 1px solid #EE7525 !important;
}
.cpf-main-pagination {
    display: flex;
    padding-top: 30px;
    justify-content: center;
}
.cpf-card a img{
    margin-bottom: 20px !important
}
.common-res-drop{
    width: fit-content !important;
    background: none !important;
    color: #1A1A1A !important;
    font-weight: 600;
    font-size: 18px !important;
    line-height: 100%;
    outline: none !important;
    border: none !important;
    }
.common-res-drop:focus{
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.cpf-filter-wrapper-inner {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 9px 10px !important;
    gap: 50px;
    border: 0.5px solid #1A1A1A4D !important;
    border-radius: 12px !important;
    background-color: #F9F9F9;
    width: fit-content;
}
.common-res-drop:focus-visible{
    outline: none !important;
    border: none !important;
}
.common-res-drop {
    border-radius: 0px !important;
}
/*bar chart*/
.cpf-split-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cpf-left-graph {
    flex: 1;
    position: sticky;
    top: 100px;
    height: 500px;
}

.cpf-right-content {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
}

.cpf-country-content-block {
    margin-bottom: 40px;
}

.cpf-country-content-block h3 {
    margin-bottom: 15px;
}
/* .cpf-spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #ddd;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
} */
.cpf-overlay-loader {
   position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(158, 74, 74, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* increase */
}

/* .cpf-overlay-loader .cpf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
} */

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.common-eutotrak {
    width: fit-content;
      background: none;
    border: none;
    padding: 10px !important;
}
 
.cpf-eurotrak-filter {
    display: flex;
    justify-content: center;
}
 
.cpf-multiselect {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 40px;
    margin-top: 15px;
    background: #F9F9F9;
    border: 1px solid #1A1A1A4D;
    border-radius: 12px;
    padding: 9px 10px !important;
}

.cpf-multiselect-toggle {
    position: relative;
    border: 0 !important;
    cursor: pointer;
    background: transparent;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.cpf-multiselect-options {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ccc;
    /* border-top: none; */
    background: #fff;
    z-index: 999;
    padding: 10px;
    border-radius: 0 0 4px 4px;
}
button.cpf-page-btn.cpf-prev {
    margin-bottom: 10px !important;
}

.cpf-multiselect-options label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

.cpf-multiselect.active .cpf-multiselect-options {
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .cpf-wrapper {
        flex-direction: column;
    }
    .cpf-grid,
    .cpf-results, #cpf-post-grid,.cpf-exclude-post-grid,.cpf-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* select#cpf-data-type{
        line-height: 160% !important;
    } */
    .map-title {
        max-width: 100%;
    }
    .cpf-split-layout{
        flex-wrap: wrap !important;
        align-items: center;
    }
    .cpf-left-graph{
        height: auto;
    }
    .cpf-right-content{
        flex: auto !important;
        overflow-y: visible;
        max-height: 100%;
    }
    .cpf-multiselect{
        gap: 16px;
        justify-content: center;
    }
    #cpf-category-filter li,
    .cpf-exclude-category-filter li{
        font-size: 16px;
        line-height: 26px;
        padding: 13px 17px;
        border-radius: 8px;
        margin-bottom: 3px !important;
    }
    #cpf-category-filter,
    .cpf-exclude-category-filter {
        gap: 8px !important;
    }
}
@media (max-width: 695px) {

    .cpf-grid,
    #cpf-results,#cpf-post-grid,.cpf-exclude-post-grid,.cpf-posts-grid{
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
      .cpf-filter-wrapper-inner{
        gap: 10px !important;
    }
    .common-res-drop{
        width: 100% !important;
    }
    #cpf-year-filter,
    #cpf-year-filter option,
    #cpf-exclude-year-filter,
    #cpf-exclude-year-filter option
     {
        font-size: 16px;
        line-height: 26px;
        border-radius: 8px !important;
        padding: 13px 17px;
    }
    #cpf-year-filter option,
    #cpf-exclude-year-filter
     {
        padding: 13px 17px;
    }
    #cpf-year-filter,
    #cpf-exclude-year-filter
     {
        padding: 0px 5px 0px 0px;
    }
    .upper-cpf-year-filter{
        padding: 13px 10px 13px 17px;
    }
}



/* Remove old #cpf-loader styles and replace with this */

#cpf-post-grid {
    position: relative;
    min-height: 300px;
}

#cpf-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

#cpf-loader.active {
    display: flex;
}
.swiper-pagination-bullet-active{
    background: #EE7525 !important;

}
.cpf-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e5e7eb;
    border-top-color: #EE7525;
    border-radius: 50%;
    animation: cpf-spin 0.7s linear infinite;
}

@keyframes cpf-spin {
    to { transform: rotate(360deg); }
}

/* ===== Loader Spinner ===== */
#cpf-loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}

/* .cpf-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e0e0e0;
    border-top-color: #0073aa; 
    border-radius: 50%;
    animation: cpf-spin 0.8s linear infinite;
} */

@keyframes cpf-spin {
    to { transform: rotate(360deg); }
}

/* ===== Chart wrapper hidden by default ===== */
#cpf-chart-wrapper {
    display: none;
    max-width: 700px;
    height: 400px;
    margin-top: 30px;
}

/* ===== Split layout for chart + content ===== */
.cpf-split-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cpf-left-graph {
    flex: 1;
    min-height: 400px;
}

.cpf-right-content {
    flex: 1;
}

#cpf-chart-inline {
    width: 100% !important;
    height: 500px !important;
}
.cpf-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

#cpf-data-type:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.dropdown-icon{
    width: 14px !important;
    height: 14px !important;
    margin-bottom: 0px !important;
}
.cpf-country-content-block h3,
.cpf-country-content-block div p{
    color: #1A1A1A;
}
.cpf-country-content-block div p a{
    color: #EE7525;
}
div#cpf-region-toggle,
div#cpf-country-toggle,
select#cpf-data-type,
select#cpf-data-type option {
     font-weight: 600;
    font-size: 18px !important;
    line-height: 100%;
    color: #1a1a1a;
}
#cpf-region-toggle,
#cpf-country-toggle,
#cpf-data-type{
    min-width: 210px !important;
}