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

#lot {
    #plan {
        .lot-image {
            height: 100%;
            width: 100%;
            background-size: cover;
            background-position: center;
        }
    }

    #details {
        .details-pan {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            background: transparent linear-gradient(90deg, rgba(27, 37, 70, 0) 0%, rgba(32, 39, 66, .7019607843) 16%, #222841 25%, #16161f 100%) 0 0 no-repeat padding-box;
            box-shadow: 0 3px 10px #ffffff29;
            border-radius: 1rem;
            padding: 50px 40px 40px;

            h1 {
                margin: 0;
            }

            h2 {
                margin-top: 0;

                &:first-of-type {
                    margin-bottom: 0;
                }
            }

            p {
                font-size: 1.3rem;
                margin: 5px auto;
                b {
                    white-space: nowrap;
                }
            }

            > div:last-child {
                p {
                    font-size: 1.7rem;
                }
            }

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

            .parkings {
                flex-basis: 100%;

                h3 {
                    margin-top: unset;
                    font-size: 1.5rem;
                }

                hr {
                    margin: 1rem 0 1rem 2rem;
                    width: 100px;
                }
            }

            @media screen and (max-width: $breakpoints-lg) {
                flex-direction: column;
                gap: 2rem;
            }

            @media screen and (min-width: $breakpoints-xl) {
                gap: 2rem;
            }
        }

        > .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 2rem 0;

            .btn {
                padding: 0.5rem 1rem;
            }

            @media screen and (max-width: $breakpoints-md) {
                justify-content: center;

                .btn {
                    padding: 0.3rem 1rem;
                    width: 280px;
                }
            }
        }
    }
}

.simulation-modal {
    * {
        color: white;
    }

    .modal-body {
        background: $linear-dark-one;
    }

    #simulation {
        .form-control {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;

            .input-control {
                min-width: unset;
                width: 200px;

                @media screen and (max-width: $breakpoints-sm) {
                    width: 300px;
                }

                @media screen and (min-width: $breakpoints-xl) {
                    width: 250px;
                }
            }

            .simulation-data-container {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 2rem;
                width: 100%;

                > div {
                    display: flex;
                    flex-direction: column;
                }

                label {
                    margin-bottom: 0.5rem;
                }

                .slider {
                    .slider-value {
                        text-align: center;
                    }

                    input {
                        padding: 0.5rem 0;
                    }
                }
            }
        }

        .btn.simulation-button {
            margin: 2rem auto;
        }

        #schema {
            position: relative;
            background: white;
            padding: 2rem;
            display: flex;
            justify-content: space-around;
            box-shadow: inset 0 0 12px #000000b0;
            border-radius: 1rem;
            flex-wrap: wrap;
            margin: 0 2rem 2rem;

            @media screen and (max-width: $breakpoints-sm) {
                margin: 0 0 2rem;
                padding: 1rem;
            }

            * {
                color: black;
            }

            .apexcharts-tooltip {
                * {
                    color: white;
                }
            }

            #chart {
                width: 350px;

                @media screen and (max-width: $breakpoints-sm) {
                    width: 300px;
                }
            }
        }

        .note {
            font-size: 0.8rem;
        }
    }
}
