/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#eventDetailModal {
    display: none;
    position: fixed;
    /* Stay in place */
    z-index: 800;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

#eventDetailModal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/*full width modal on mobile*/
@media screen and (max-width: 600px) {
    #eventDetailModal .modal-content {
        width: 100%;
    }

    #filters {
        width: 100%;
    }

    #eventDetailModal {
        padding: 10px;
    }
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Close button base styles */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    /* Adjusting line height for better vertical alignment */
    opacity: 0.8;
    /* Slight transparency to make it more subtle */
    text-shadow: 0 1px 0 #ffffff;
    /* Slight shadow for lift */
    background: transparent;
    /* Ensuring there's no background */
    border: 0;
    /* Removing any borders */
    padding: 10px;
    /* Some space around the icon for better touch/target area */
    cursor: pointer;
    /* Indicate interactivity */
    transition: opacity 0.2s;
    /* Smooth transition for hover effect */
}

/* Close button hover state */
.close:hover {
    opacity: 1;
    /* Full opacity on hover */
    text-decoration: none;
    /* Ensure no underline appears */
    color: #888888;
    /* Slightly darker on hover */
}

/* Close button focus state */
.close:focus {
    outline: none;
    /* Remove the browser default outline */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
    /* A blue glow as focus indicator, adjust color to match your design if needed */
}


/* Base button style */
.btn {
    background-color: #62a800;
    /* Vibrant green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    /* Rounded corners for modern look */
    transition: background-color 0.3s, transform 0.3s;
    /* Smooth transition */
}

/* Button hover effect */
.btn:hover {
    background-color: #539700;
    /* Slightly darker green on hover */
    transform: translateY(-2px);
    /* Button raises slightly on hover */
}

/* Button active state */
.btn:active {
    transform: translateY(0);
    /* Reset translate on active state */
}

/* Style for the join course button */
.btn.btn-light a {
    color: white;
    /* White color for contrast against green background */
    transition: color 0.3s;
    /* Smooth transition */
}

.btn.btn-light a:hover,
.btn.btn-light a:focus {
    color: #e5e5e5;
    /* Slightly grayed white on hover/focus for better feedback */
}

/* Style for the close modal button */
.btn.btn-secondary {
    background-color: #62a800;
    /* Vibrant green */
    color: white;
    /* White text for contrast */
}

.btn.btn-secondary:hover {
    background-color: #539700;
    /* Slightly darker green on hover */
}

/* Base disabled styles */
.btn[disabled] {
    background-color: #d9d9d9;
    /* Grayish color */
    color: #b3b3b3;
    /* Dimmed text */
    cursor: not-allowed;
    /* Cursor indicating the action is not permitted */
    border: none;
    /* Removing border for consistency */
}

/* Disabling any hover or active styles for disabled button */
.btn[disabled]:hover,
.btn[disabled]:active {
    background-color: #d9d9d9;
    /* Keep the same grayish color */
    transform: none;
    /* No movement */
}

/* For nested <a> tags in disabled buttons */
.btn[disabled] a {
    pointer-events: none;
    /* Ensure links are not clickable */
    color: #b3b3b3;
    /* Matching dimmed text color */
    text-decoration: none;
    /* Removing underline */
}


/* Tooltip container */
/* Tooltip container */
[data-toggle="tooltip"] {
    position: relative;
    /* Relative positioning for absolute positioned tooltip */
}

/* Tooltip text */
[data-toggle="tooltip"]:before {
    content: attr(title);
    /* Fetch the content from the title attribute */
    position: absolute;
    bottom: 100%;
    /* Position it just above the element */
    left: 50%;
    /* Center it horizontally */
    transform: translateX(-50%);
    /* Ensures the tooltip is centered above the parent */
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black */
    color: #fff;
    /* White text */
    font-size: 12px;
    white-space: nowrap;
    /* Keeps the tooltip text in a single line */
    opacity: 0;
    /* Initial state: Hidden */
    pointer-events: none;
    /* Ensures the tooltip does not block any interactions */
    transition: opacity 0.2s;
    /* For smooth fade-in */
    z-index: 1000;
    /* Ensure the tooltip appears on top */
}

/* Tooltip arrow */
[data-toggle="tooltip"]:after {
    content: "";
    position: absolute;
    top: -5px;
    /* Position it right above the tooltip text */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    /* Creates an upward pointing arrow with the same color as the tooltip */
    opacity: 0;
    /* Initial state: Hidden */
    transition: opacity 0.2s;
    /* For smooth fade-in */
}

/* Show tooltip when hovered */
[data-toggle="tooltip"]:hover:before,
[data-toggle="tooltip"]:hover:after {
    opacity: 1;
    /* Show the tooltip and arrow */
}

/* Tooltip container END */


/*Card in Bootstrap 4 style - display as stacked rows */
.card-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Collapsible Filters Header - visually distinct group header */
.filters-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    color: #fff;
    background: linear-gradient(135deg, #76ac33 0%, #8bc34a 100%);
    border-radius: 6px;
    margin-bottom: 8px;
    user-select: none;
    box-shadow: 0 2px 4px rgba(118, 172, 51, 0.3);
}

.filters-header:hover {
    background: linear-gradient(135deg, #6a9c2d 0%, #7fb03e 100%);
}

.filters-header .filter-count-badge {
    background-color: #fff;
    color: #76ac33;
}

.filters-header .fa-chevron-down {
    transition: transform 0.2s ease;
    margin-left: auto;
    font-size: 0.8em;
}

.filters-header.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

/* Open filter layout - gray background container */
.filters-open {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.filters-open.collapsed {
    display: none;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-heading {
    font-size: 0.7em;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.filter-heading.filter-active {
    color: #76ac33;
    font-weight: 700;
}

.filter-content {
    display: block;
}

.filter-content form {
    margin-bottom: 0 !important;
}

.section-count {
    font-weight: 400;
    margin-left: 4px;
    font-size: 0.9em;
}

/* Date filter with clear buttons */
.date-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.date-input-wrapper label {
    font-size: 0.8em;
    color: #666;
    margin: 0;
}

.date-input-wrapper .input_datepicker {
    width: 110px;
    padding: 6px 12px;
    font-size: 0.9em;
    border: 1.5px solid #a8d48a !important;
    border-radius: 20px !important;
    background-color: #f9fcf5 !important;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.date-clear-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2em;
    padding: 0 4px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.date-clear-btn:hover {
    opacity: 1;
    color: #e31e25;
}

/* Age slider - constrained width on desktop */
.age-slider-container {
    max-width: 350px;
}

.form-check {
    display: block;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.collapse:not(.show) {
    display: none
}

.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height .35s cubic-bezier(1, 0.05, 0.08, 0.94)
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}


.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.page-item {
    display: inline;
    background-color: #62a800;
}

.pagination>li {
    display: inline;
}

/* RESET DataTables default styling for pagination buttons (li elements)
   This removes the dark box/gradient/border that appears on hover/active
*/
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .paginate_button,
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .paginate_button:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
}

/* DataTables pagination - green theme styling override */
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
    border-radius: 50% !important;
    background-color: white !important;
    color: #62a800 !important;
    border: 1px solid #ddd !important;
    min-width: 36px;
    min-height: 36px;
    margin: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:hover,
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:focus {
    background-color: #f1f8e9 !important;
    /* Very light green */
    color: #4a8500 !important;
    border-color: #62a800 !important;
    transform: scale(1.1);
    z-index: 2;
    text-decoration: none !important;
}

/* Current active page - Green background, white text */
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link,
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link:hover {
    background-color: #62a800 !important;
    color: white !important;
    border-color: #62a800 !important;
    cursor: default;
    transform: none;
}

/* Disabled buttons */
#domecek-wordpress-plugin .dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link {
    background-color: #f8f9fa !important;
    color: #ccc !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/*scrollable table to the side*/
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

/*badge rounded-pill*/
.capacity {
    display: inline-block;
    margin: .25em;
    padding: .35em .6em;
    font-size: 100%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
    /* Makes it pill-shaped */
    color: #fff;
}

.capacity-free {
    background-color: #62a800;
}

.capacity-full {
    background-color: #a80000;
}

.capacity-almost-full {
    background-color: #a8a800;
}

.floating-box {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgb(175, 197, 145);
    /*background: rgb(98 168 0 / 60%);*/
    padding: 6px;
    border: 2px solid rgb(98, 168, 0);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;

    font-weight: normal;
    transition: background-color 0.5s ease-in-out, font-weight 0.5s ease-in-out;

    /*margin-top: 10px;*/
    /*font-size: 14px;*/
    /*font-weight: normal;*/
    /*transition: background-color 0.5s ease-in-out;*/

    /*transition: opacity 0.5s ease-in-out;*/
    /*opacity: 1;*/
    /*transition: background-color 0.5s ease-in-out;*/
}

.shake {
    animation: shake 0.5s;
    background-color: rgb(98, 168, 0);
    font-weight: bold;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

/*.highlight {*/
/*    background-color: yellow;*/
/*}*/

.stredisko {
    padding: .35em .6em;
    margin: .25em;
}

/* Novinka (New) badge styles */
.badge-novinka {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: novinka-pulse 2s infinite;
    margin-left: 6px;
}

.badge-novinka-table {
    display: inline-block;
    padding: 0.3em 0.7em;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 4px;
}

.badge-novinka-modal {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    box-shadow: 0 3px 6px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    animation: novinka-pulse 2s infinite;
}

@keyframes novinka-pulse {

    0%,
    100% {
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
    }
}

/* Container for capacity and novinka badge in table */
.capacity-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Age Range Slider Styles */
.age-slider-container {
    padding: 0;
    margin-top: 10px;
}

.age-slider-label {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
}

.age-slider-wrapper {
    position: relative;
    height: 40px;
    margin: 0 10px;
}

.age-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    transform: translateY(-50%);
}

.age-slider-range {
    position: absolute;
    top: 50%;
    height: 6px;
    background: linear-gradient(90deg, #76ac33, #8bc34a);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
}

.age-slider-thumb {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.age-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #76ac33;
    cursor: pointer;
    pointer-events: auto;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.age-slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(118, 172, 51, 0.4);
}

.age-slider-thumb::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #76ac33;
    cursor: pointer;
    pointer-events: auto;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.age-input-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 20px;
}

.age-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-input-group label {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.age-input {
    width: 65px !important;
    text-align: center;
    padding: 6px 8px !important;
    font-size: 1em;
    border: 1.5px solid #a8d48a !important;
    border-radius: 20px !important;
    background-color: #f9fcf5 !important;
}

.age-input:focus {
    border-color: #76ac33;
    outline: none;
    box-shadow: 0 0 0 2px rgba(118, 172, 51, 0.2);
}

/* =====================================================
   BUBBLE BUTTON FILTER STYLES
   Organization colors: #76ac33 (green), #fac311 (yellow), #e31e25 (red)
   ===================================================== */

/* Container for bubble filter items */
.bubble-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 3px 0;
}

/* Base bubble button style - more visible with darker border */
.bubble-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1.5px solid #a8d48a !important;
    background-color: #fff;
    color: #3d5c23;
    font-size: 0.82em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bubble-filter-item img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Hover state */
.bubble-filter-item:hover {
    border-color: #76ac33 !important;
    background-color: #ecf5e0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(118, 172, 51, 0.25);
}

/* Selected/Active state */
.bubble-filter-item.active,
.bubble-filter-item:has(input:checked) {
    background: linear-gradient(135deg, #76ac33 0%, #8bc34a 100%);
    border-color: #5d8a29;
    color: #fff;
    box-shadow: 0 3px 10px rgba(118, 172, 51, 0.4);
}

.bubble-filter-item.active:hover,
.bubble-filter-item:has(input:checked):hover {
    background: linear-gradient(135deg, #6a9c2d 0%, #7fb03e 100%);
    transform: translateY(-1px);
}

/* Hide the actual checkbox inside bubble */
.bubble-filter-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Hide checkmark SVG completely */
.bubble-filter-item .bubble-check {
    display: none !important;
}

/* Secondary color variant (yellow) for special filters */
.bubble-filter-item.bubble-yellow {
    border-color: #f5e3a3;
    background-color: #fffdf5;
    color: #8a6d00;
}

.bubble-filter-item.bubble-yellow:hover {
    border-color: #fac311;
    background-color: #fff9e6;
}

.bubble-filter-item.bubble-yellow.active,
.bubble-filter-item.bubble-yellow:has(input:checked) {
    background: linear-gradient(135deg, #fac311 0%, #ffd54f 100%);
    border-color: #d4a50f;
    color: #5c4a00;
}

/* Alert color variant (red) for urgent filters */
.bubble-filter-item.bubble-red {
    border-color: #f5b7b7;
    background-color: #fff8f8;
    color: #8a2020;
}

.bubble-filter-item.bubble-red:hover {
    border-color: #e31e25;
    background-color: #ffeeee;
}

.bubble-filter-item.bubble-red.active,
.bubble-filter-item.bubble-red:has(input:checked) {
    background: linear-gradient(135deg, #e31e25 0%, #ef5350 100%);
    border-color: #b71c1c;
    color: #fff;
}

.age-unit {
    font-size: 0.9em;
    color: #666;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 600px) {
    .age-input-row {
        gap: 10px;
    }

    .age-input {
        width: 55px !important;
    }
}

/* Fix for italic and bold text rendering */
#domecek-wordpress-plugin i,
#domecek-wordpress-plugin em,
#eventDetailModal i,
#eventDetailModal em {
    font-style: italic !important;
}

#domecek-wordpress-plugin b,
#domecek-wordpress-plugin strong,
#eventDetailModal b,
#eventDetailModal strong {
    font-weight: bold !important;
}

/* DataTables Top Controls Layout */
.table-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.table-top-controls .dataTables_info {
    padding-top: 0 !important;
    font-size: 0.9em;
    color: #666;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

.datatable_search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_filter {
    float: none !important;
    text-align: left !important;
}

.dataTables_filter label {
    font-weight: normal;
    font-size: 0.9em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* Styled Inputs (Search, etc) */
.dataTables_filter input {
    border: 1.5px solid #a8d48a !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    background-color: #fff !important;
    outline: none;
    margin-left: 8px !important;
    font-size: 0.9em;
    height: auto !important;
    width: 200px !important;
}

.dataTables_filter input:focus {
    border-color: #76ac33 !important;
}

/* Clear Filters Button adjustment */
.clear-filters-btn {
    border-radius: 20px !important;
    /* Ensure consistency */
    padding: 6px 15px !important;
    margin-right: 5px !important;
    background-color: #e31e25 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 0.85em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.clear-filters-btn:hover {
    background-color: #c91920 !important;
}

/* Mobile Filter Improvements */
#filtersMobileCard .card {
    border: none !important;
    margin-bottom: 12px !important;
    /* Increased gap */
    border-radius: 8px !important;
    overflow: hidden;
    /* Ensure corners are clipped */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#filtersMobileCard .card-header {
    background-color: #76ac33 !important;
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
    padding: 12px 15px !important;
    color: #fff !important;
}

/* When expanded, remove bottom radius */
#filtersMobileCard .card-header[aria-expanded="true"] {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Ensure all text/icons in header are white */
#filtersMobileCard .card-header,
#filtersMobileCard .card-header * {
    color: #fff !important;
}

/* Filter count badge styling - white circular badge */
#filtersMobileCard .filter-count-badge {
    background-color: #fff !important;
    color: #76ac33 !important;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 700;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#filtersMobileCard .card-body {
    background-color: #f5f5f5 !important;
    /* Gray background */
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    padding: 15px !important;
}

/* Ensure date inputs on mobile match desktop style */
#filtersMobileCard .input_datepicker {
    border: 1.5px solid #a8d48a !important;
    border-radius: 20px !important;
    background-color: #f9fcf5 !important;
    padding: 8px 12px !important;
    width: 100% !important;
    /* Full width on mobile */
    max-width: 200px;
    /* Limit width */
    margin-bottom: 5px;
    height: auto !important;
}

/* Mobile clear date button */
.btn-clear-date-mobile {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85em;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.btn-clear-date-mobile:hover {
    background-color: #c82333;
}