@use "../theme/breakpoints" as *;

#favorites {
    .switcher {
        margin: 2rem auto 4rem;
    }

    #programs-list, #lots {
        display: none;
        gap: 1rem;
    }

    #programs-list {
        &.active {
            display: grid;
        }
    }

    #lots {
        overflow-x: auto;

        &.active {
            display: flex;
        }

        .lot-thumbnail {
            height: 325px;
            width: 220px;
            position: relative;
            cursor: unset;

            @media screen and (max-width: $breakpoints-md) {
                height: 220px;
                width: 155px;

                h3 {
                    font-size: 1.2rem;
                    margin: 0;
                }

                p {
                    font-size: 1rem;
                }
            }

            .favorite {
                position: absolute;
                top: 1rem;
                right: 1rem;
            }

            .actions {
                display: flex;
                flex-wrap: wrap;

                @media screen and (max-width: $breakpoints-md) {
                    gap: 0.5rem;

                    .btn {
                        font-size: 0.9rem;
                    }
                }

                .btn {
                    padding: 0.2rem 1rem;
                    min-width: unset;
                    width: auto;
                }
            }
        }

        .lot-thumbnail, .lot-thumbnail::before {
            border-bottom-right-radius: unset;
            border-bottom-left-radius: unset;
        }

        .details {
            text-align: center;

            h4, p {
                padding: 0.3rem;
            }

            h4 {
                background: #b5b5b5;
                color: white;
                font-weight: 400;
            }

            *:not(h4) {
                color: black !important;
                background: white;
                font-weight: bold;
            }

            * {
                margin: 0;
            }
        }
    }
}
