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

#visual-proposition {
    header {
        background: $mail-color;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;

        .logo-container {
            padding: 2rem;

            img {
                height: 70px;
            }

            @media screen and (max-width: $breakpoints-md) {
                padding-bottom: 1rem;

                img {
                    height: 40px;
                }
            }
        }

        #coordinates {
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            padding: 2rem;

            * {
                color: white;
                font-size: 1.2rem;
            }
        }
    }

    #content {
        max-width: 1080px;
        width: 80%;
        margin: auto;

        @media screen and (max-width: $breakpoints-lg) {
            width: 100%;
        }

        @media screen and (min-width: $breakpoints-xxl) {
            max-width: 1680px;
        }

        .menu-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            background: $mail-color;
            padding: 1.5rem 2rem;
            margin-top: 2rem;

            @media screen and (max-width: $breakpoints-lg) {
                margin-top: unset;
                padding-top: 1rem;
            }

            .menu-item {
                color: #fff;
                font-weight: bold;
                position: relative;
                font-size: 1.2rem;
                cursor: pointer;

                &.active:before {
                    content: "";
                    position: absolute;
                    bottom: -3px;
                    width: 100%;
                    height: 3px;
                    background: white;
                    left: 0;
                }
            }
        }

        .content-container {
            margin-top: 1rem;
            padding-bottom: 1rem;

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

            h1, h2 {
                margin: unset;
            }

            .content-item {
                display: none;

                &.active {
                    display: block;
                }
            }

            .lot-title {
                padding-top: 2rem;
                padding-left: 1rem;
                border-left: 5px solid #102d43;
            }

            iframe, .alentoor-widget {
                width: 100%;
                min-height: 700px !important;
                border: none;

                @media screen and (max-width: $breakpoints-md) {
                    min-height: 500px !important;
                }

                @media screen and (min-width: $breakpoints-xxl) {
                    min-height: 70dvh !important;
                }
            }

            #summary {
                padding-top: 2rem;

                > p:first-of-type {
                    width: 80%;
                    font-size: 1.2rem;
                    margin: auto auto 7rem;
                }

                .lot-description {
                    padding-left: 7rem;

                    > div:last-of-type {
                        padding-top: 2rem;
                        padding-left: 5rem;

                        * {
                            font-size: 1.2rem;
                        }
                    }
                }

                @media screen and (max-width: $breakpoints-md) {
                    padding-top: 3rem;

                    > p:first-of-type {
                        margin: auto auto 3rem;
                    }

                    .lot-description {
                        padding-left: 2rem;

                        > div:last-of-type {
                            padding-top: 1rem;
                            padding-left: 3rem;
                        }
                    }
                }
            }

            #program, #lot {
                > div {
                    display: flex;
                    flex-direction: column;
                    gap: 2rem;
                }

                .grid {
                    grid-gap: 2rem;

                    @media screen and (max-width: $breakpoints-md) {
                        grid-template-columns: 1fr !important;
                    }
                }
            }

            #program {

                img {
                    width: 100%;
                }

                .grid {
                    grid-template-columns: 70% 1fr;
                    background: #f5f5f5;

                    > div {
                        padding: 0 1rem;

                        &:last-of-type {
                            h3 {
                                margin-bottom: unset;
                            }
                        }
                    }
                }
            }

            #lot {
                h4, p {
                    margin: unset;
                }

                .grid {
                    .price-details {
                        background: #f5f5f5;
                        padding: 2rem;
                        display: flex;
                        flex-direction: column;
                    }

                    .price-details, > div {
                        > div:not(:last-of-type) {
                            margin-bottom: 1rem;
                        }
                    }
                }

                .parkings {
                    hr {
                        width: 50%;
                        margin: 1rem 0;
                    }
                }

                .altana-prices {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;

                    .altana-price-row {
                        display: flex;
                        justify-content: space-between;
                        align-items: baseline;
                        gap: 2rem;
                        margin: 0;

                        .value b {
                            white-space: nowrap;
                        }

                        &.total {
                            margin-top: 1rem;
                            padding-top: 1rem;
                            border-top: 1px solid rgba(0, 0, 0, 0.15);
                            font-weight: bold;
                        }
                    }
                }
            }
        }
    }
}
