#cbesos-map-container {
    width: 100%;
    height: 600px;
   /* margin-bottom: 200vh;  scroll 3D */
    position: relative;
    z-index: 1;
}

.cbesos-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* margin-bottom: 1.25rem; */
}

.cbesos-filter-group {
    flex: 1 1 210px;
    min-width: 200px;
    max-width: 400px;
}

.cbesos-filter-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1c1c1c;
}

.cbesos-filter-multiselect {
    width: 100%;
    min-height: 60px;
    border-radius: 6px;
    border: 1px solid #c9c9c9;
}

.cbesos-filter-multiselect:focus {
    outline: none;
    border-color: #004ca3;
    box-shadow: 0 0 0 1px rgba(0, 76, 163, 0.4);
}

.select2-container .select2-selection--multiple,
.select2-container .select2-selection--single {
    min-height: 42px;
    border-radius: 6px;
    border: 1px solid #c9c9c9;
}

.select2-container .select2-selection--single {
    height: 42px;
    display: flex;
    align-items: center;
}

.select2-container {
    max-width: 100%;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0.3rem;
}

.cbesos-filter-date-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* margin-bottom: 1rem; */
}

.cbesos-filter-date-field {
    flex: 1;
    min-width: 200px;
}

.cbesos-filter-date-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1c1c1c;
}

.cbesos-filter-date-field input[type="date"],
.cbesos-date-range-input,
.cbesos-year-select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    font-size: 0.95rem;
    height: 42px;
    box-sizing: border-box;
}

.cbesos-date-range-input {
    background: #fff;
    cursor: pointer;
}


.cbesos-filter-form{
    gap: 10px;
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.cbesos-filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cbesos-filter-actions button {
    background: #B2C4CB;
    color: #2E7B7A;
    border: 1px solid #2E7B7A;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.cbesos-filter-actions button:hover, .cbesos-filter-actions button:focus {
    background: white;
    color: #2E7B7A;
    border: 1px solid #2E7B7A;
}


.calendar-table table td, .calendar-table table th{
    padding: 0 !important;
}

.calendar-table select {
    display: inherit;
}

table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: inherit;
}

table tbody tr:hover>td, table tbody tr:hover>th {
    background-color: inherit;
}


.select2-container .select2-search--inline .select2-search__field {

    padding: 0 6px !important;
    height: 26px !important;
    margin-top: 7px !important;
   
}
[type=button], [type=submit], button{
    border: 1px solid #B2C4CB;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #B2C4CB !important;
    color: #fff;
}
.select2-container--default.select2-container--open .select2-dropdown {
    border-color: #B2C4CB !important;
}
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #c9c9c9 !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    color: #03303E !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ABC5CF !important;
    border: 1px solid #ABC5CF !important;
    color: #03303E !important;
}

/* Fix for single select arrow and text */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    top: 1px;
    right: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 42px;
    padding-left: 10px;
}

.cbesos-filter-actions button {
    background: white;
    color: #003544;
    border: 1px solid #B2C4CB;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
}

/* .cbesos-filter-form .select2-container--classic .select2-selection--multiple{
    padding-bottom: 0;;
} */
.cbesos-filter-form .daterangepicker td.in-range {
    background-color: #ebf4f8 !important;
}
.cbesos-filter-form .daterangepicker td.active,.cbesos-filter-form  .daterangepicker td.active:hover {
    background-color: #357ebd !important;
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea{
    border: 1px solid #aaa;
    border-radius: 4px;
}

.calendar-table  table tbody tr:hover>td, .calendar-table table tbody tr:hover>th {
    background-color: inherit;
}

.cbesos-filter-actions .cbesos-filter-reset {
    text-decoration: underline;
    font-weight: 400;
    font-size: 16px;
}

.cbesos-filter-empty {
    color: #6d6d6d;
    font-size: 0.95rem;
    margin: 0;
}


@media (max-width: 767px) {
   
}
  



.cbesos-webgl-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 40px;
    background: #fdfdfd;
    color: #333;
    text-align: center;
    border-radius: 12px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cbesos-webgl-error h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #03303E;
}

.cbesos-webgl-error p {
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.cbesos-webgl-error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #B2C4CB;
}

.cbesos-webgl-error a {
    color: #2E7B7A;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cbesos-webgl-error a:hover {
    border-bottom-color: #2E7B7A;
}
.cbesos-map-wrapper {
    margin-bottom: 30px;
}

.cbesos-map-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.cbesos-map-filters .cbesos-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cbesos-map-filters .cbesos-filter-group {
    flex: 1;
    min-width: 200px;
}

#cbesos-map-container {
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Specific Select2 styles for the map filters */
.cbesos-map-filters .select2-container--default .select2-selection--multiple {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.mapboxgl-popup-content {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cbesos-map-popup {
    width: 220px;
    background: #fff;
}

.cbesos-popup-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.cbesos-popup-content {
    padding: 15px;
}

.cbesos-map-popup h4 {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #1c1c1c;
}

.cbesos-popup-link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: #039591 !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cbesos-popup-link:hover {
    background: #027a77 !important;
}

.cbesos-documentacio-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cbesos-documentacio-extra__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 15px;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    border-style: none;
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-primary) !important;
    text-decoration: none !important;
    font-family: PT Sans, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cbesos-documentacio-extra__button:hover,
.cbesos-documentacio-extra__button:focus {
    background: #0A3E4C;
    color: #FFFFFF !important;
}

.cbesos-documentacio-extra__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.mapboxgl-popup-close-button {
    padding: 5px 8px;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border: 0;
    color: white !important;

}
