/*
|--------------------------------------------------------------------------
| LAYOUT
|--------------------------------------------------------------------------
*/

.plants-page {
    display: flex;
    gap: 32px;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1800px;

    min-height: calc(100vh - 120px);

    margin: 0 auto;
    padding: 20px 60px;
}

.plants-content {
    flex: 1;
    min-width: 0;
    flex: 0 0 60%;
    max-width: calc(100% - 340px);
}

/*
|--------------------------------------------------------------------------
| IMAGEM PRINCIPAL
|--------------------------------------------------------------------------
*/

.plants-image-wrapper {
    position: relative;

    border-radius: 24px;
    overflow: hidden;

    max-height: 82vh;

    background: rgba(
        0,
        0,
        0,
        .15
    );
}

.plants-image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 82vh;

    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/

.plants-sidebar {
    width: 220px;
    min-width: 220px;
    flex: 0 0 140px;
    max-height: 84vh;
    overflow-y: hidden;
    overflow-x: hidden;
    padding-right: 8px;
}

/*
|--------------------------------------------------------------------------
| SCROLLBAR
|--------------------------------------------------------------------------
*/

.plants-sidebar::-webkit-scrollbar {
    width: 8px;
}

.plants-sidebar::-webkit-scrollbar-track {
    background: rgba(
        255,
        255,
        255,
        .08
    );

    border-radius: 999px;
}

.plants-sidebar::-webkit-scrollbar-thumb {
    background: rgba(
        183,
        217,
        92,
        .55
    );

    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| THUMBNAILS
|--------------------------------------------------------------------------
*/

.plants-thumbs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.plant-thumb {
    display: block;

    border: none;
    background: transparent;

    cursor: pointer;
    padding: 0;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.plant-thumb:hover {
    transform: translateY(-3px);
}

.plant-thumb img {
    width: 100%;
    display: block;

    border-radius: 18px;

    border: 2px solid transparent;

    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.plant-thumb.active img {
    border-color: #b7d95c;

    box-shadow:
        0 0 24px rgba(
            183,
            217,
            92,
            .45
        );

    transform: scale(1.02);
}

/*
|--------------------------------------------------------------------------
| INFO LATERAL
|--------------------------------------------------------------------------
*/

.views-info {
    position: absolute;
    right: 80px;
    top: 50%;
    transform:
        translateY(-50%);
    width: 420px;
    z-index: 30;
    font-family:
        var(--font-display);
}

.views-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 36px;
}

.views-info-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.views-info-item strong {
    display: block;
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.views-info-item span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.85);
    font-size: 1.2rem;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| ROSA DOS VENTOS
|--------------------------------------------------------------------------
*/

.views-compass {
    position: absolute;
    right: 70px;
    bottom: 70px;
    z-index: 20;
}

.views-compass img {
    width: 180px;
    height: auto;
    opacity: .95;
}

.views-mobile-info {
    display: none;
    width: 100%;
    max-width: 700px;
    margin: 24px auto;
    padding: 0 24px;
    font-family:
        var(--font-display);
}

.views-mobile-info .views-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.views-mobile-info .views-info-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.views-mobile-info strong {
    display: block;
    color: #fff;
    font-size: 2rem;
    line-height: 1.2;
}

.views-mobile-info span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.85);
    font-size: 1.2rem;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| FULLSCREEN
|--------------------------------------------------------------------------
*/

.plants-fullscreen {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 20;
}

.plants-close-fullscreen {
    z-index: 30;
}

/*
|--------------------------------------------------------------------------
| INFO
|--------------------------------------------------------------------------
*/

.plants-info {
    display: none;
}

/*
|--------------------------------------------------------------------------
| LOADER
|--------------------------------------------------------------------------
*/

.plants-image-loader {
    z-index: 25;
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1280px)
{
    .plants-page {
        padding: 20px 30px;
        gap: 24px;
    }

    .plants-sidebar {
        width: 260px;
        min-width: 260px;
    }

    .plants-content {
        max-width: calc(100% - 280px);
    }
}

/*
|--------------------------------------------------------------------------
| MOBILE LANDSCAPE
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px)
{
    .plants-page {
        flex-direction: column;

        align-items: stretch;

        padding: 20px;
        gap: 24px;
    }

    .plants-content {
        max-width: 100%;
    }

    .plants-sidebar {
        width: 100%;
        min-width: auto;

        max-height: none;

        overflow-x: auto;
        overflow-y: hidden;

        padding-right: 0;
    }

    .plants-thumbs {
        flex-direction: row;
        gap: 12px;
    }

    .plant-thumb {
        flex: 0 0 180px;
    }

    .plants-image-wrapper {
        max-height: none;
    }

    .plants-image {
        max-height: none;
    }
}

/*
|--------------------------------------------------------------------------
| MOBILE PORTRAIT
|--------------------------------------------------------------------------
*/

@media (max-width: 768px)
{
    .plants-page {
        padding: 12px;
        gap: 16px;
    }

    .plant-thumb {
        flex: 0 0 140px;
    }

    .plants-fullscreen {
        right: 12px;
        bottom: 12px;
    }

        .views-info {
        display: none;
    }

    .views-mobile-info {
        display: block;
    }
}