/* bibeholder tekstens linjeskift 
 * anvendes til annoncebeskrivelser
 * Twig: {{ adDetails.description|nl2br }}
*/

form.email-seller-form {
    width: 100% !important;
    box-sizing: border-box;
}
.form-group {
    width: 100% !important;
    box-sizing: border-box;
}

.preserve-whitespace {
    white-space: pre-line;
}

.line-count-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.4em;
    line-height: 1.4em;
}
.line-count-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    line-height: 1.4em;
}
.line-count-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 3) + 8;
    line-height: 1.4em;
}

/* uses over all */
.main-page-container {
    width: 100%;
    min-height: calc(100vh - var(--top-nav-height, 164.2px));
    height: fit-content;
    height: auto;
    margin: 0;
    padding: 0;
    background-color: var(--bg-basic, #ffffff);  

}
.ads-of-same-category {
    width: 100%!important;
    height: fit-content;
    margin: 0rem auto;
    padding: 1rem 0.5rem;
    color: var(--font-dark);
    border: 1px solid var(--border-500, #d1d5db);

    > h1 {
        font-size: 1.25rem!important;
        font-weight: 400;
        margin-bottom: 1rem;
    }
    .ads-grid-container {
        width: 100%!important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        /* grid-template-columns: repeat(4, minmax(320px, 1fr)); */
        gap: 1rem;
        margin: 0 auto;
        height: auto;
        color: var(--font-color);

        >.card-wrapper {
            width: 100%!important;
            margin: 0!important;
            padding: 0!important;
            border-radius: var(--box-border-radius)!important;

            >.ad-image {
                height: 225px!important;
                width: 100%;
                > img {
                    height: 225px!important;
                    width: 100%!important;
                    object-fit: cover;
                    object-position: center;
                }
            } 
            >.ad-details {
                padding: .5rem .75rem!important;
                padding: 0rem 1rem!important;
                >.ad-title {
                    font-size: 1rem!important;
                    font-weight: 500!important;
                    margin-bottom: .5rem!important;
                }
                >.ad-price {
                    font-size: 1.1rem!important;
                    font-weight: 600!important;
                    color: var(--primary-green, #447904)!important;
                }
            }   
        }

    }
}

/* vis en enkelt annonce */
.ad-details-page-wrapper {
    margin: 0 auto;
    width: var(--large-width, 1200px);
    height: fit-content;
    padding: .5rem;
    color: var(--font-dark);

    .breadcrumbs {
        width: 100%;
        height: fit-content;
        margin: 1.5rem 0;
        padding: 0rem 0.5rem;
        font-size: .9rem;
        color: var(--font-dark, #4a5568);
        display: flex;
        align-items: center;
        gap: 0.25rem;

        > a {
            color: var(--font-dark, #4a5568);
            text-decoration: none;
            &:hover {
                text-decoration: underline;
            }
        }
    }

    >.ad-details-column-wrapper {
        width: 100%;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 0rem;
        margin: 1rem 0;
        border: 1px solid var(--border-500, #d1d5db);


        >.ad-details-left-column {
            width: 100%;
            height: auto;
            background-color: var(--bg-md-light, #f1f3f5);

            >.first-ad-image {
                position: relative;
                width: 100%;
                height: 640px;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;

                >.status-badge {
                    position: absolute;
                    top: 1rem;
                    right: 1rem;
                    background-color: var(--bs-yellow, #ffc107);
                    color: var(--bs-danger);
                    padding: .25rem .5rem;
                    border-radius: var(--button-border-radius, .5rem);
                    font-size: .875rem;
                    font-weight: 600;
                    z-index: 10!important;
                }

                >.ad-image-container {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    left:0; top:0;
                    z-index: 1!important;
                    
                    > span > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        object-position: center;
                    }
                }
                >.ad-images-count {
                    position: absolute;
                    bottom: 1rem;
                    right: 1rem;
                    background-color: rgba(0, 0, 0, 0.5);
                    color: var(--bs-light);
                    padding: .25rem .5rem;
                    border-radius: var(--box-border-radius);
                    font-size: .875rem;
                    z-index: 10!important;
                }
                >.quick-sale-badge {
                    position: absolute;
                    top: 1rem;
                    left: 1rem;
                    background-color: var(--bs-danger);
                    color: var(--bs-light);
                    padding: .25rem .5rem;
                    border-radius: var(--box-border-radius);
                    font-size: .875rem;
                    font-weight: 600;
                    z-index: 10!important;
                }
                >.browse-btn.left,
                >.browse-btn.right {
                    position: absolute;
                    transform: translateY(-50%);
                    background-color: var(--primary-green, #198754);
                    color: var(--bs-light);
                    border: none;
                    border-radius: 50%;
                    width: 40px;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    z-index: 10!important;
                    top: 50%;

                    svg {
                        font-size: 1.5rem;
                        height: 16px;
                        width: 16px;
                        fill: #ffffff; 
                    }
                }


                >.browse-btn.left{
                    left: 1rem;
                }
                >.browse-btn.right{
                    right: 1rem;
                }
            }

            >.ad-details-content {
                width: 100%;
                margin: 0;
                padding: 1rem .75rem;
                min-height: fit-content;
                margin-bottom: 0rem;

                .single-line-ellipsis {
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    line-clamp: 1;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    max-height: 1.4em;
                    line-height: 1.4em;
                }

                /*.ad-images-gallery {
                    width: 100%;
                    height: fit-content;
                    margin-bottom: 1rem;

                    .main-ad-image {
                        width: 100%;
                        height: 350px;
                        background-color: var(--bs-gray-200);
                        border-radius: var(--box-border-radius);
                        object-fit: cover;
                        object-position: center;
                    }

                    .ad-thumbnails-wrapper {
                        width: 100%;
                        height: fit-content;
                        margin-top: .5rem;
                        display: flex;
                        gap: .5rem;

                        .ad-thumbnail-item {
                            width: 80px;
                            height: 80px;
                            background-color: var(--bs-gray-300);
                            border-radius: var(--box-border-radius);
                            object-fit: cover;
                            object-position: center;
                            cursor: pointer;
                        }
                    }
                } */
                
                >.ad-details-title {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: flex-start;
                    padding: 0;
                    margin-bottom: 1rem;
                    
                    .title {
                        font-size: 1.4em;
                        font-weight: 600;
                        margin-bottom: 1rem;
                        color: var(--font-dark, #2d3748);
                    }
                    .price-wrapper {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        width: 100%;

                        .price {
                            padding: .75rem 0;
                            font-size: 1.15rem;
                            font-weight: 600;
                            color: var(--font-dark, #2d3748);
                        }
                    }
                    .viewed-detalis >.listview-ad-viewed{
                        display: flex;
                        justify-content: flex-end;
                        align-items: center;
                        font-size: 1.15rem;
                        color: var(--font-dark, #4a5568);
                        font-weight: 500;

                        > span:nth-of-type(1), 
                          span:nth-of-type(2), 
                          span:nth-of-type(3),
                          span:nth-of-type(4) {
                            margin-right: .5rem;
                        }
                        
                        > span {
                            font-size: 1rem;
                        }
                        > span > svg {
                            font-size: 1rem;
                            fill: var(--font-dark, #4a5568);
                        }
                    }
                    .description {
                        width: 100%;
                        font-size: 1rem;
                        font-weight: 400;
                        color: var(--font-dark, #4a5568);
                        line-height: 1.6em;

                        >.header {
                            margin-top: 1rem;
                            font-size: 1.25rem;
                            font-weight: 500;
                        }
                    }
                }
            }
            >.ad-details-tab {
                width: 100%;
                height: fit-content;
                margin-top: 1rem;
                padding: 0rem;

                .tab-buttons-wrapper {
                    width: 100%;
                    height: fit-content;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    border-bottom: 1px solid var(--border-500, #d1d5db);

                    .tab-button {
                        padding: .75rem 1.5rem;
                        font-size: 1rem;
                        font-weight: 500;
                        color: var(--font-dark, #4a5568);
                        cursor: pointer;
                        border: none;
                        background-color: transparent;

                        &.active {
                            border-bottom: 3px solid var(--primary-green, #447904);
                            color: var(--primary-green, #447904);
                            font-weight: 600;
                        }
                    }
                }

                .tab-content {
                    width: 100%!important;
                    height: fit-content;
                    padding: 0 1rem;
                    padding-bottom: 1rem;

                    >.email-saler-wrapper {
                        width: 100%;
                        height: fit-content;
                        display: flex;
                        align-items: center;
                        justify-content: flex-start;
                        gap: 1rem;

                        form.email-seller-form {
                            width: 100%;
                            height: 100%;
                            display: flex;
                            flex-direction: column;
                            align-items: flex-start;
                            justify-content: flex-start;
                            gap: 1rem;

                            >.form-group {
                                width: 100%;
                                display: flex;
                                flex-direction: column;
                                align-items: flex-start;
                                justify-content: flex-start;
                                box-sizing: border-box;
                            }

                            >.form-group > textarea#message {
                                width: 100% !important;
                                min-width: 0;
                                max-width: 100% !important;;
                                box-sizing: border-box;
                                resize: vertical;
                                display: block;
                            }

                            >.user-details-wrapper {
                                width: 100%;
                                display: block;
                                display: none;
                                height: fit-content;
                                padding: 1rem 0;
                                margin-bottom: 1rem;
                                
                                >.user-information-label {
                                    font-size: 1rem;
                                    font-weight: 600;
                                    color: var(--font-dark, #2d3748);
                                    margin-bottom: .5rem;
                                    
                                }

                                >.user-image {
                                    width: 100%;
                                    height: 100px;
                                    display: flex;
                                    align-items: center;
                                    justify-content: flex-start;
                                    max-height: fit-content;

                                    img {
                                        width: 100px;
                                        height: 100px;
                                        border-radius: 50%;
                                        object-fit: cover;
                                        object-position: center;
                                        background-color: var(--bs-gray-100);
                                    }
                                    .user-name-like {
                                        width: 100%;
                                        display: flex;
                                        flex-direction: column;
                                        align-items: flex-start;
                                        justify-content: center;
                                        gap: 0rem;
                                        

                                        .user-name {
                                            width: 100%;
                                            font-size: 1.25rem;
                                            font-weight: 600;
                                            color: var(--font-dark, #2d3748);
                                            margin-bottom: 0.5rem;
                                            padding-left: 1rem;
                                        }
                                        .user-like {
                                            font-size: 1rem;
                                            font-weight: 400;
                                            padding-left: 1rem;
                                            color: var(--font-dark, #4a5568);
                                        }
                                    }
                                }
                                >.user-info {
                                    width: 100%;
                                    margin-top: 1rem;

                                    > svg {
                                        font-size: 1rem;
                                        font-weight: 400;
                                        fill: var(--font-dark, #4a5568);
                                        margin-bottom: 0.5rem;
                                    }
                                    .user-contact {
                                        font-size: 1em;
                                        font-weight: 400;
                                        color: var(--font-dark, #4a5568);
                                    }
                                    .user-location, .user-joined-date, .my-marketplace, .user-followers {
                                        font-size: 1em;
                                        font-weight: 400;
                                        color: var(--font-dark, #4a5568);
                                        line-height: 1.75em;
                                    }
                                }
                            }
                        }

                        >.email-saler-label {
                            font-size: 1rem;
                            font-weight: 500;
                            color: var(--font-dark, #2d3748);
                        }
                        >.email-saler-button {
                            padding: 0rem 0rem;
                            font-size: 1rem;
                            font-weight: 500;
                            color: var(--bs-light, #ffffff);
                            background-color: var(--primary-green, #447904);
                            border: none;
                            border-radius: var(--button-border-radius, .5em);
                            cursor: pointer;

                            &:hover {
                                background-color: var(--primary-green-low, #61892f);
                            }
                        }
                    }
                }
            }
        }

        >.ad-details-right-column {
            width: 100%;
            height: auto;
            background-color: var(--bg-md-dark, #d1d5db);
            padding: 0rem;

            >.title {
                width: 100%;
                padding: 2rem 1rem;
                font-size: 1.35rem;
                letter-spacing: 1.75px;
                font-weight: 500;
                color: var(--font-dark, #2d3748);
            }
            >.price {
                padding: 1.25rem 1rem;
                font-size: 1.15rem;
                font-weight: 700;
                color: var(--font-dark, #2d3748);
            }
            
            .description-text {
                width: 100%;
                padding: 0 1rem;
                font-size: 1rem;
                font-weight: 400;
                color: var(--font-dark, #4a5568);
                line-height: 1.4em !important;
                margin-bottom: 2rem;
            }

            >.user-details-wrapper {
                width: 100%;
                height: fit-content;
                display: block;
                padding: 0rem 0;
                margin-bottom: 1rem;
                
                >.user-information-label {
                    width: 100%;
                    padding: 0 1rem .5rem;
                    font-size: 1rem;
                    font-weight: 600;
                    color: var(--font-dark, #2d3748);
                }
                >.user-image {
                    width: 100%;
                    height: 100px;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    padding: 0 1rem;
                    max-height: fit-content;
                    /* background-color: var(--bs-red, #f56565); */

                    img {
                        width: 100px;
                        height: 100%;
                        border-radius: 50%;
                        object-fit: cover;
                        object-position: center;
                        background-color: var(--bs-gray-100);
                    }

                    .user-name-like {
                        width: 100%;
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;
                        justify-content: center;
                        padding: .5rem;
                        
                        .user-name {
                            width: 100%;
                            font-size: 1.25rem;
                            font-weight: 600;
                            color: var(--font-dark, #2d3748);
                            margin-bottom: 0.5rem;
                            padding-left: 1rem;
                        }
                        .user-like {
                            font-size: 1rem;
                            font-weight: 400;
                            padding-left: 1rem;
                            display: flex;
                            align-items: center;
                            gap: 0.25rem;
                            color: var(--font-dark, #4a5568);

                            svg {
                                cursor: pointer;
                                fill: var(--font-dark, #4a5568);
                                height: 24px;
                                width: 24px;
                                border: 1px solid var(--font-dark, #4a5568);
                                border-radius: 50%;
                                padding: .15rem;
                                display: flex;                                
                                align-items: center;
                                justify-content: center;
                                &:hover {
                                    border-radius: 50%;
                                    background-color:  var(--primary-green, #447904);
                                    transition: background-color 0.2s;
                                    fill: var(--bs-light, #f8f9fa);
                                    border: 1px solid var(--font-light, #f8f9fa);

                                }
                            }
                        }
                    }

                }
                >.user-info {
                    width: 100%;
                    margin-top: 2rem;
                    padding: 0 1rem;

                    > svg {
                        font-size: 1rem;
                        font-weight: 400;
                        fill: var(--font-dark, #4a5568);
                        margin-bottom: 0.5rem;
                    }
                    .user-contact {
                        font-size: 1em;
                        font-weight: 400;
                        color: var(--font-dark, #4a5568);
                    }
                    .user-location, .user-joined-date, .my-marketplace, .user-followers {
                        font-size: 1em;
                        font-weight: 400;
                        color: var(--font-dark, #4a5568);
                        line-height: 1.75em;
                    }
                }
            }
        }
    }

    >.ad-details-top-sectionEX {
        width: 100%;
        min-height: 350px;
        display: grid;
        grid-template-columns: 2fr 1fr !important;
        background-color: var(--bg-md-light, #f1f3f5);
        gap: 1rem;
        margin-top: 0rem;

        >.first-ad-image {
            position: relative;
            width: 100%;
            /* height: 350px; */
            height: 100%;
            /* height: 450px; */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;

            >.ad-image-container {
                position: absolute;
                width: 100%;
                height: 100%;
                left:0; top:0;
                z-index: 1!important;
                
                > span > img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                }
            }
            >.ad-images-count {
                position: absolute;
                bottom: 1rem;
                right: 1rem;
                background-color: rgba(0, 0, 0, 0.5);
                color: var(--bs-light);
                padding: .25rem .5rem;
                border-radius: var(--box-border-radius);
                font-size: .875rem;
                z-index: 10!important;
            }
            >.quick-sale-badge {
                position: absolute;
                top: 1rem;
                left: 1rem;
                background-color: var(--bs-danger);
                color: var(--bs-light);
                padding: .25rem .5rem;
                border-radius: var(--box-border-radius);
                font-size: .875rem;
                font-weight: 600;
                z-index: 10!important;
            }
            >.browse-btn.left,
            >.browse-btn.right {
                position: absolute;
                transform: translateY(-50%);
                background-color: rgba(0, 0, 0, 0.5);
                color: var(--bs-light);
                border: none;
                border-radius: 50%;
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                z-index: 10!important;
                top: 50%;

                svg {
                    font-size: 1.5rem;
                    height: 16px;
                    width: 16px;
                    fill: #ffffff; 
                }
            }


            >.browse-btn.left{
                left: 1rem;
            }
            >.browse-btn.right{
                right: 1rem;
            }
        }

        >.user-details-wrapper {
            width: 100%;
            height: 350px;
            display: block;
            padding: 1rem 0;
            margin-bottom: 1rem;
            
            >.user-image {
                width: 100%;
                height: 75px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                padding: 0 1rem;
                max-height: fit-content;

                img {
                    width: 75px;
                    height: 100%;
                    border-radius: 50%;
                    object-fit: cover;
                    object-position: center;
                    background-color: var(--bs-gray-100);
                }

                .user-name {
                    font-size: 1.25rem;
                    font-weight: 600;
                    color: var(--font-dark, #2d3748);
                    margin-bottom: 0.5rem;
                    padding-left: 1rem;
                }

            }
            >.user-info {
                width: 100%;
                margin-top: 1rem;
                padding: 0 1rem;

                > svg {
                    font-size: 1rem;
                    font-weight: 400;
                    fill: var(--font-dark, #4a5568);
                    margin-bottom: 0.5rem;
                }
                .user-contact {
                    font-size: .895em;
                    font-weight: 400;
                    color: var(--font-dark, #4a5568);
                }
                .user-location, .user-joined-date, .my-marketplace, .user-followers {
                    font-size: .895em;
                    font-weight: 400;
                    color: var(--font-dark, #4a5568);
                    line-height: 1.75em;
                }
            }
        }
    }
    >.mobile-viewEX {
        width: 0px !important;
        max-height: 0px;
        display: none!important;
    }

    /* >.ad-details-contentEX {
        width: 100%;
        margin: 0;
        padding: 2rem 0rem;
        min-height: fit-content;
        margin-bottom: 2rem; */

        /* >.ad-images-gallery {
            width: 100%;
            height: fit-content;
            margin-bottom: 1rem;

            .main-ad-image {
                width: 100%;
                height: 400px;
                background-color: var(--bs-gray-200);
                border-radius: var(--box-border-radius);
                object-fit: cover;
                object-position: center;
            }

            .ad-thumbnails-wrapper {
                width: 100%;
                height: fit-content;
                margin-top: .5rem;
                display: flex;
                gap: .5rem;

                .ad-thumbnail-item {
                    width: 80px;
                    height: 80px;
                    background-color: var(--bs-gray-300);
                    border-radius: var(--box-border-radius);
                    object-fit: cover;
                    object-position: center;
                    cursor: pointer;
                }
            }
        } */
        
        /* >.ad-details-title {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            padding: 0;
            margin-bottom: 1rem;
            
            .title {
                font-size: 1.25rem;
                font-weight: 600;
                color: var(--font-dark, #2d3748);
            }
            .price {
                padding: .75rem 0;
                font-size: 1.15rem;
                font-weight: 600;
                color: var(--font-dark, #2d3748);
            }
            .description {
                width: 70%;
                font-size: 1rem;
                font-weight: 400;
                color: var(--font-dark, #4a5568);
                line-height: 1.6em;
            }
        }
    } */
}

@media (max-width: 768px) {
    #main-content {
        width: 100vw !important;
        min-height: fit-content!important;
        padding: 0rem!important;
        margin: 0!important;
    
        >.main-page-container {
            width: 100%!important;
            min-height: fit-content!important;
            margin: 0!important;
            padding: 0!important;
            overflow: hidden;
        }
    }

    .user-details-wrapper {
        display: block!important;
        padding: 0 0rem!important;
        /* background-color: red!important; */
    }
    .ad-details-right-column {
        display: none!important;
    }
    .tab-content {
        width: 100%!important;
        padding: 0!important;
        form {
            width: 100%!important;
            padding: 0 1rem!important;
        }
        .login-group {
            width: 100%!important;
            padding: 0!important;
            display: flex!important;
            flex-direction: column!important;
            > a {
                width: 100%!important;
                margin-top: .5rem !important;
                margin-left:0 !important;
                text-align: center!important;
                padding: .75rem!important;
                font-size: 1rem!important;
            }
            
        }
    }
    .ad-details-page-wrapper {
        min-width: 0!important;
        width: 100vw !important;
        margin: 0 auto;
        /* padding-right: 0.5rem !important; */
        color: var(--font-dark);
        background-color: var(--bg-md-light, #f1f3f5);

        >.ad-details-column-wrapper {
            width: 100% !important;
            display: block !important;
            gap: 0 !important;
            margin: 0 !important;
            padding: 0rem !important;

            >.ad-details-left-column {
                width: 100% !important;
                height: fit-content !important;
                margin: 0 !important;
                padding: 0 !important;

                >.first-ad-image {
                    position: relative;
                    width: 100% !important;
                    min-width: 100vw !important;
                    height: 250px !important;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    overflow: hidden;

                    >.ad-image-container {
                        position: absolute;
                        width: 100% !important;
                        height: 100% !important;
                        left:0 !important; top:0 !important;
                        z-index: 1!important;
                        
                        > span > img {
                            width: 100% !important;
                            height: 100% !important;
                            object-fit: cover;
                            object-position: center;
                        }
                    }
                    >.ad-images-count {
                        position: absolute;
                        bottom: 1rem!important;
                        right: 1rem!important;
                        background-color: rgba(0, 0, 0, 0.5);
                        color: var(--bs-light);
                        /* padding: .25rem .5rem; */
                        border-radius: var(--box-border-radius);
                        font-size: .875rem;
                        z-index: 10!important;
                    }
                    >.quick-sale-badge {
                        position: absolute;
                        top: 1rem;
                        left: 1rem;
                        background-color: var(--bs-danger);
                        color: var(--bs-light);
                        padding: .25rem .5rem;
                        border-radius: var(--box-border-radius);
                        font-size: .875rem;
                        font-weight: 600;
                        z-index: 10!important;
                    }
                    >.browse-btn.left,
                    >.browse-btn.right {
                        position: absolute;
                        transform: translateY(-50%);
                        background-color: var(--); /*rgba(0, 0, 0, 0.5);*/
                        color: var(--bs-light);
                        border: none;
                        border-radius: 50%;
                        width: 40px;
                        height: 40px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        cursor: pointer;
                        z-index: 10!important;
                        top: 50%;

                        svg {
                            font-size: 1.5rem;
                            height: 16px;
                            width: 16px;
                            fill: #ffffff; 
                        }
                    }


                    >.browse-btn.left{
                        left: 1rem!important;
                    }
                    >.browse-btn.right{
                        right: 1rem!important;
                    }
                }
                >.image-modal {
                    position: fixed!important;
                    top: 0!important; 
                    left: 0!important;
                    width: 100vw!important; 
                    height: 100vh!important;
                    background-color: rgba(0, 0, 0, 0.8)!important;
                    justify-content: center!important;
                    align-items: center!important;
                    
                    > #closeModal {
                        position: absolute!important;
                        top: 15px!important;
                        right: 15px!important;
                        background-color: transparent!important;
                        border: none!important;
                        font-size: 2rem!important;
                        cursor: pointer!important;
                         background-color: red!important;
                    }
                    > #modalPrev{
                        position: absolute!important;
                        z-index: 10000!important;
                        top: 50%!important;
                        left: 10px!important;
                        width: 40px!important;
                        height: 40px!important;
                        display: flex!important;
                        align-items: center!important;
                        justify-content: center!important;
                        border: none!important;
                        border-radius: 50%!important;   
                        font-size: 1.5rem!important;
                        color: var(--font-light, #f1f3f5)!important;
                        background-color: green!important;
                        cursor: pointer!important;
                    }
                    > #modalNext{
                        position: absolute!important;
                        z-index: 10000!important;
                        display: flex!important;
                        align-items: center!important;
                        justify-content: center!important;
                        top: 50%!important;
                        right: 10px!important;
                        width: 40px!important;
                        height: 40px!important;
                        background-color: green!important;
                        border: none!important;
                        border-radius: 50%!important;   
                        font-size: 1.5rem!important;
                        color: var(--font-light, #f1f3f5)!important;
                        cursor: pointer!important;
                    }

                    >.modal-content {
                        position: relative!important;
                        width: 100%!important;
                        height: auto!important;
                        border-radius: var(--box-border-radius)!important;
                        padding: .5rem!important;

                        > img {
                            width: 100%!important;
                            height: auto!important;
                            object-fit: contain!important;
                            border-radius: var(--box-border-radius)!important;
                        }
                    }
                }
            }
        }
        
        .ad-details-top-section > .user-details-wrapper{
            display: none!important;
        }

        >.mobile-viewEX {
            display: block!important;
            width: 100% !important;
            height: fit-content !important; 
            margin-bottom: 1rem !important;
            
            >.first-ad-image {
                display: none!important;
                height: 0!important;
                img {
                    display: none!important;
                }
            }
            >.user-details-wrapper {
                display: block!important;
                margin: 0!important;
                padding: 0!important;
                width: 100% !important;
                height: fit-content !important;
                /* background-color: var(--bg-danger, #f56565); */

                >.user-image {
                    width: 100%!important;
                    height: 75px;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    padding: 0;
                    max-height: fit-content;

                    img {
                        width: 75px;
                        height: 100%!important;
                        border-radius: 50%!important;
                        object-fit: cover!important;
                        object-position: center!important;
                        background-color: var(--bs-gray-100);
                    }

                    .user-name {
                        font-size: 1.25rem;
                        font-weight: 600;
                        color: var(--font-dark, #2d3748);
                        margin-bottom: 0.5rem;
                        padding-left: 1rem;
                    }
                }
            
                >.user-info {
                    width: 100%!important;
                    margin-top: 1rem;
                    padding: 0!important;
                    /* background-color: var(--bs-gray-100); */

                    > svg {
                        font-size: 1rem;
                        font-weight: 400;
                        fill: var(--font-dark, #4a5568);
                        margin-bottom: 0.5rem;
                    }
                    .user-contact {
                        font-size: .895em;
                        font-weight: 400;
                        color: var(--font-dark, #4a5568);
                    }
                    .user-location, .user-joined-date, .my-marketplace, .user-followers {
                        font-size: .895em;
                        font-weight: 400;
                        color: var(--font-dark, #4a5568);
                        line-height: 1.75em;
                    }
                }
            }
        }
        >.ad-details-top-section {
            width: 100% !important;
            padding: 0 !important;
            margin: 0!important;
            grid-template-columns: 1fr !important;
            height: fit-content !important;
            
        }
        >.ad-details-content {
            width: 100%!important;
            margin: 0;
            padding: 0rem;
            min-height: fit-content;
            
            > .ad-details-title {
                padding-top: 2rem!important;

                .title {
                    font-size: 1.4em!important;
                    font-weight: 600!important;
                    color: var(--font-dark, #2d3748)!important;
                }

                >.price {
                    padding-top: 1rem!important;
                    font-size: 1.15rem!important;
                    color: var(--font-dark, #2d3748)!important;
                }
                >.description {
                    width: 100%!important;
                    padding-right: 1rem!important;
                    color: var(--font-dark, #2d3748)!important;
                }
            }
            
        }
    }
    .ads-grid-container {
        width: 100%!important;
        grid-template-columns: 1fr!important;

        >.card-wrapper {
            width: 100%!important;
            height: auto!important;
            margin: 0!important;
            padding: 0!important;
            border-radius: 0!important;
            margin-bottom: 1rem!important;
            display: flex!important;
            flex-direction: column!important;
            overflow: hidden!important;

            >.ad-image {
                height: 200px!important;
                width: 100%!important;
                border-radius: 0!important;
                > img {
                    height: 100%!important;
                    width: 100%!important;
                    object-fit: cover!important;
                    object-position: center!important;
                }
            }

            >.ad-details {
                width: 100%!important;
            }
        }
    }
}


/* Opret en annonce */
.image-upload-section {
    margin-top: 1rem;
    padding: 1rem .25rem;
    background-color: var(--bs-gray-400);
    /* border-radius: var(--box-border-radius); */
}
.image-slots-wrapper {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.image-slot-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    width: 110px;
    height: 110px;
    margin-bottom: 10px;
    overflow: hidden;
}

.image-slot-item img.item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
    background: #e2e8f0;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.button-url-input {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* left: 50%; */
    transform: translateX(-50%);
    top: 2px;
    right: -14px!important;
    background: var(--bs-green);
    color: var(--bs-light);
    border: 1px solid var(--boarder-600);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    /* transition: background 0.18s; */
    font-weight: 700;
    font-size: 1.5em;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.button-url-input:hover {
    background: var(--secondary-green);
}
.new-ad-container {
    background-color: var(--bs-gray-200);
    width: 100%;
    min-height: 100vh;
    min-height: 100vh;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--bs-gray-300);
    border-radius: none;
    box-shadow: var(--box-shadow);
}

.new-ad-wrapper {
    width: var(--small-width, 768px);
    margin: 0rem auto;
    padding: 1rem;
    border: 1px solid var(--bs-gray-300);
    box-shadow: var(--box-shadow);
    background-color: var(--bs-gray-300);

    .breadcrumbs {
        position: relative;
        width: 100% !important;
        padding: 1rem 0;
        font-size: .9rem;
        color: var(--font-dark, #2d3748);
    }
}
.ad-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
    background-color: var(--bs-gray-400);
    font-weight: 600;
}
.ad-header-wrapper p:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.red-star {
    color: var(--bs-danger);
    font-weight: bold;
}

/* Ny CSS til annonce-oprettelse formular */
.annonce-type-select > .annonce-type-title,
.category-wrapper > .category-title {
    /* margin-bottom: .75rem; */
    padding-bottom: .25rem;
    font-size: 1em;
    color: var(--bs-gray-700, #2d3748);
    font-weight: 600;
    border-bottom: none;
}
.category-wrapper > .categories-list {
    margin-bottom: 1.5rem;
}
.annonce-type-wrapper > .annonce-type-select,
.category-wrapper > .categories-list > select {
    /* appearance: none; */
    padding: .75rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border 0.2s;
    width: 100%;
}

.annonce-race-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1.5rem;

    select {
        flex: 1 1 45%;
        padding: .75rem;
        font-size: 1rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        transition: border 0.2s;
        width: 100%;
    }
}

.form-fields {
    background: var(--bs-light);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 32px 24px;
    margin: 24px 0;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.form-group > div {
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0px;
    color: #2d3748;
    font-size: 1.08rem;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1.15em;
    background: #f9fafb;
    transition: border 0.2s;
    color: var(--font-dark);
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    display: block;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.5px solid #3182ce;
    outline: none;
    background: #fff;
}

.image-slots-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 10px;
    width: 100%;
    height: 140px;
}
.image-slot-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: calc(100% / 5 - 1rem);
    height: 100%;
    border: 2px dashed var(--bs-gray-600);
    /* border-radius: 8px; */
    
}
.image-slot-item img.item{
    width: 100%;
    height: 100%;
    overflow: hidden;   
    object-fit: cover;
    object-position: center;
    /* border-radius: 8px; */
}



@media (max-width: 900px) {
    .tab-header { padding-left: 0 !important; }
    .new-ad-container {
        width: 100vw !important;
        padding: 1rem .5rem!important;
        margin: 0!important;
    }
    .new-ad-wrapper {
        padding: 1rem 0;
        width: 100% !important;
    }
    .image-upload-section {
        width: 100%!important;
        margin-top: 1rem;
        padding: 1rem .5rem!important;
        height: fit-content;
    }
    .image-slots-wrapper {
        width: 100% !important;
        height: fit-content;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 0rem !important;
    }
    .form-fields {
        width: 100% !important;
        padding: 18px 6px;
    }
    .image-slots-wrapper {
        gap: 10px;
    }
    .image-slot-item {
        width: 100% !important;
        min-height: 120px !important;
        padding: 8px 4px 8px 4px;

        .button-url-input {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.25em;
        }
    }
    .image-slot-item img.item {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden;   
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        border-radius: 0px !important;
    }
}

@media (max-width: 768px) {
    .tab-header { padding-left: 0 !important; }

    .new-ad-container {
        width: 100vw !important;
        padding: 1rem .5rem!important;
        margin: 0!important;
    }
    .new-ad-wrapper {
        padding: 1rem 0;
        width: 100% !important;
    }
    .image-upload-section {
        width: 100%!important;
        margin-top: 1rem;
        padding: 1rem .5rem!important;
        height: fit-content;
    }
    .image-slots-wrapper {
        width: 100% !important;
        height: fit-content;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 0rem !important;
    }
    .form-fields {
        width: 100% !important;
        padding: 18px 6px;
    }
    .image-slots-wrapper {
        gap: 10px;
    }
    .image-slot-item {
        width: 100% !important;
        min-height: 120px !important;
        padding: 8px 4px 8px 4px;

        .button-url-input {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.25em;
        }
    }
    .image-slot-item img.item {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden;   
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        border-radius: 0px !important;
    }

    .ad-header-wrapper p:first-child {
        font-size: 1.75em !important;
        margin-bottom: 0.5rem !important;
    }
    .ad-header-wrapper p {
        font-size: .90em !important;
        margin-bottom: 0.15rem !important;
    }
    .annonce-type-wrapper > .annonce-type-select,
    .category-wrapper > .categories-list > select {
        padding: .75rem;
        font-size: 1rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        transition: border 0.2s;
        width: 100%;
        max-height: 50vh !important;
        overflow-y: auto;;
    }
}