.map-container .map {
    min-height: 400px;
    margin-bottom: 30px;
}

.map-placeholder {
    background: #eee;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    border-radius: 8px;
    font-size: 1.2em;
}

.separator {
    border-top: 1px solid var(--global-color-8);
    margin: 2px auto;
    width: 80%;
    height: 3px;
}

::-webkit-scrollbar {
    height: 4px;
    /* height of horizontal scrollbar*/
    width: 4px;
    /* width of vertical scrollbar */
}

input::disabled {
    color: #888;
}

.filter-group input[type="number"] {
    width: 49%;
}

span.checkbox,
select,
input[type="number"],
input[type="text"] {
    font-size: 14px;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 100px;
}


span.checkbox input {
    margin-left: 6px;
    margin-bottom: 2px;
}

span.checkbox label {
    color: var(--global-color-11);
}

input[type=submit] {
    display: inline-flex;
    padding: 5px 20px;
    border-radius: 30px;
    border: 1px solid var(--global-color-9);
    background-color: var(--base-3);
    color: var(--contrast);
    text-decoration: none;
    font-size: 14px;
}

input[type=range] {
    width: 100%;
    min-width: 100px;
    height: 45px;
}

.validity-inputs input {
    margin-bottom: 5px;
}

.select2-results {
    font-size: 14px;
    padding: 2px 0;
}


#filter-form .select2-container--default .select2-selection--multiple {
    align-content: center;
    border: 1px solid var(--base);
    font-size: 15px;
    height: 45px;
    padding: 0 5px;
    line-height: 2;
    display: inline-flex;

}

#filter-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: relative !important;
    border-right: none;
}

#filter-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--global-color-8);
    border: none;
    border-radius: var(--border-radius-lg);
    margin-right: 5px;
    min-width: fit-content;
    padding-left: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}


#filter-form .select2-container--default .select2-selection--multiple .select2-search {}

#filter-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    align-items: center;
    display: flex;
    margin: 0;
}

.select2-container--open .select2-dropdown {
    top: 100% !important;
}

.select2-scroll-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 2px;
    position: relative;
}

.scroll-arrow {
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    color: var(--global-color-9) !important;
    background-color: #fff;
    padding: 0;
    border-radius: 4px;
    transition: background 0.2s;
}

.scroll-arrow:hover {
    opacity: .4;
}

.select2-scroll-inner {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-grow: 1;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple {
    white-space: nowrap !important;
    overflow: hidden;
    /* bude scrollovat rodič */
    height: auto;
}

#product-selectbox {
    min-width: 240px;
    width: 100%;
}

#products-dropdown {
    position: relative;
}

#products-dropdown .select2-dropdown,
.select2-container .select2-dropdown {
    border-color: var(--base);
    border-radius: var(--border-radius);
    padding: 15px 5px;
    box-shadow: 0 0 9px var(--base);
}

.select2-container .select2-dropdown .select2-search .select2-search__field {
    background-color: var(--base-3);
    border-color: var(--base);
    border-radius: var(--border-radius);
}

.select2-container .select2-dropdown .select2-results__options .select2-results__option--highlighted {
    background-color: var(--global-color-8);
    color: var(--contrast);
}

#map {
    flex: 2;
    width: 100%;
    max-height: 100%;
}

.account_wrapper {
    width: 100%;
}

.offers-wrapper {
    width: 100%;
}



.offers-wrapper .drafts-wrapper {
    padding: 2em 0;
    display: flex;
    gap: 1em;
    align-items: baseline;
}

.account_wrapper .filter-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: start;
}

.items-list .icons {
    display: flex;
    font-style: 9px;
}

.list-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    gap: 10px;
    max-height: 660px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em;
    border-radius: 5px;
    font-size: 12px;

    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 240px;
}


.filter-group button[type="submit"] {
    margin: auto;
}

.filter-group>label {
    color: var(--global-color-11);
    font-weight: bold;
}

.filter-group.highlight {
    background-color: var(--global-color-15);
    padding: 6px;
}

.frontpage_wrapper #filter-form .filter-group>label {
    margin-bottom: 5px;
    padding-bottom: 0;
    border-bottom: none;
}

.frontpage_wrapper #filter-form .filter-group button[type="submit"] {
    margin-top: 27px;
}

.offers-archive {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

button {
    align-self: flex-end;
}


#offers-list {
    flex: 1;
    /* Seznam zabere 1/3 šířky */
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 300px;
    height: 100%;
    max-height: 100vh;
}

/* Styl jednotlivých položek v seznamu */
.offer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.offer-item .details {
    width: 100%;
}


.offer-item .details .right {
    display: flex;
    flex-direction: row;
}

.gb-tabs .offer-item .details {
    display: flex;
    align-content: center;
    justify-content: space-between;
    flex-direction: column;
}

.offer-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.frontpage_wrapper .offer-item img {
    width: 140px;
    height: 140px;
}

.offer-item h3 {
    margin: 0 0 4px 0;
    color: var(--contrast);
}

.offer-item h3 a {
    color: var(--contrast);
}

.offer-item .price {
    font-size: 80%;
    font-weight: 600;
}

.offer-item p {
    font-size: 1rem;
    margin: 4px 0;
}

.offer-item .toolbar {
    font-size: 14px;
    margin: 0;
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    align-items: center;
}

.account_wrapper .offer-item .toolbar {
    display: block;
}

.offer-item .toolbar .btn-outline {
    border: 1px solid var(--contrast-2);
    border-radius: 6px;
    padding: 4px 10px;
    margin: 4px;
    width: max-content;
    font-size: 18px;
    background-color: var(--global-color-15);
    color: var(--contrast);
}

.frontpage_wrapper .offer-item .toolbar .btn-outline {
    font-size: 24px;
}

.offer-item .toolbar .btn-outline:hover {
    background-color: var(--global-color-9);
    color: var(--base-2);
}

.offer-item .toolbar .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
}

.offer-item .toolbar .valid {
    background: url('check.png') no-repeat;
    background-size: 20px;
}

.offer-item .toolbar .notvalid {
    background: url('do-not.png') no-repeat;
    background-size: 20px;
}

.offer-item.highlight {
    background: #fffae5;
}

.leaflet-popup {
    margin: 1em 0;
    min-width: 120px;

}

.leaflet-popup-content h3 {
    font-weight: bold;
    border-bottom: 1px solid var(--global-color-8);
}

.leaflet-popup-content h4 {
    margin-bottom: 4px;
    font-size: 08;
}

.leaflet-container a.leaflet-popup-close-button {
    font-size: 30px;
    width: 30px;
    height: 30px;
    background: var(--global-color-8);
}

.leaflet-control.offer-count {
    background: var(--global-color-15);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

@media screen and (min-width: 480px) {

    .gb-tabs .offer-item .details {
        flex-direction: row;
    }

    .offer-item .toolbar {
        justify-content: end;
    }

    .toolbar .date {
        display: flex;
        align-content: center;
        margin: 4px 0;
    }


    .frontpage_wrapper .list-wrapper {
        width: 100%;
    }


}

@media screen and (min-width: 600px) {

    .account_wrapper .offer-item .toolbar {
        display: flex;
    }

    .account_wrapper .filter-form {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .filter-form {
        flex-direction: row;

    }

    .filter-group {
        min-width: 220px;
        max-width: 280px;
    }

    .frontpage_wrapper #submit-group {
        min-width: 120px;
        width: min-content;
        margin-top: 4px;
        line-height: 2;
    }



    .frontpage_wrapper #product-selectbox {
        min-width: 400px;
        width: auto;
        max-width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .offers-wrapper {
        display: flex;
        flex-direction: column;
    }

    .map-container .map {
        min-height: 500px;
    }

    #offers-list {
        min-width: 300px;
    }

}

@media screen and (min-width: 960px) {

    .filter-form {
        flex-wrap: nowrap;
    }

    .filter-group {
        /* blok s filtry se opět zmenší */
        min-width: 120px;
        width: auto;
        max-width: 240px;
    }

    .frontpage_wrapper #product-selectbox {
        min-width: 220px;
    }



    .account_wrapper .filter-form .filter-group {
        max-width: 260px;
        width: 100%;
    }

    .offers-wrapper {
        flex-direction: row;
        gap: 1em;
        max-height: 100%;
    }

    .list-wrapper,
    .frontpage_wrapper .list-wrapper {
        width: 40%;
    }

    .account_wrapper .list-wrapper {
        max-height: 1300px;
    }

    .map-container {
        width: 60%;
    }

    .offer-item .toolbar {
        justify-content: space-between
    }

}

@media screen and (min-width: 1100px) {

    .account_wrapper .map-container {
        width: 80%;
        display: flex;
        gap: 1em;
        flex-direction: row;
    }

    .account_wrapper .list-wrapper {
        width: 20%;
        max-height: 660px;
    }

    .account_wrapper .filter-form {
        flex-direction: column;
        gap: 1em;
        justify-content: space-between;
        width: 30%;
    }

    .account_wrapper #map {
        width: 70%;
        max-height: 600px;
    }

    .offer-item .toolbar {
        flex-direction: row;
        align-items: start;
    }
}