/* -------------------------- */
/* RESET E BASE */
/* -------------------------- */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;

    display: grid;
    grid-template-columns: 1fr 340px;

    background-image: url('background.png');
    background-size: cover;
    background-position: center;

    overflow: hidden;
}

/* -------------------------- */
/* SIDEBAR FIXA */
/* -------------------------- */

.sidebar {
    width: 340px;
    height: 100vh;
    background: #f8f9fa;
    position: fixed;
    right: 0;
    top: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.logo-area {
    height: 100px;
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

/* -------------------------- */
/* BOTÕES SIDEBAR */
/* -------------------------- */

.button-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-button {
    padding: 22px 15px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;

    background: linear-gradient(180deg, #ffffff, #e9ecef);
    border: 1px solid #d0d4da;
    border-radius: 10px;

    cursor: pointer;
    transition: .3s;
    text-transform: uppercase;

    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.nav-button:hover,
.nav-button.active {
    background: linear-gradient(180deg, #0056b3, #003f8c);
    color: #fff;
}

/* -------------------------- */
/* ÁREA PRINCIPAL */
/* -------------------------- */

.main-content {
    height: 100vh;
    margin-right: 340px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-display {
    width: 100%;
    height: 100%;
    max-width: 1920px;  /* Máxima largura para Full HD */
    max-height: 1080px; /* Máxima altura para Full HD */
    
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;

    display: flex;
    justify-content: center;  /* Garantir alinhamento central horizontal */
    align-items: center;      /* Garantir alinhamento central vertical */
}

/* -------------------------- */
/* CENTRALIZAÇÃO DAS IMAGENS NO CARROSSEL */
/* -------------------------- */

.content-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;    /* Centraliza horizontalmente */
    align-items: center;        /* Centraliza verticalmente */
}

/* Centralização das imagens */
.content-container img {
    position: absolute;           /* Garante a centralização absoluta */
    top: 0;                        /* A imagem começa no topo do contêiner */
    left: 0;                       /* A imagem começa no lado esquerdo do contêiner */
    right: 0;
    bottom: 0;
    
    width: 100%;                  /* Imagem vai ocupar 100% da largura */
    height: 100%;                 /* Imagem vai ocupar 100% da altura */
    
    object-fit: cover;            /* A imagem vai cobrir toda a área do carrossel */
    object-position: center;      /* Garantir que a imagem se mantenha centralizada */
    display: block;               /* Garantir que a imagem não fique em linha */
}

/* -------------------------- */
/* SE O ZOOM FOR REDUZIDO (50%) OU TELA MENOR - OBJECT-FIT: CONTAIN */
/* -------------------------- */

@media (max-width: 1920px) {  /* Para telas menores ou zoom reduzido */
    .content-container img {
        object-fit: contain; /* Ajuste para garantir que a imagem caiba sem ser cortada */
        object-position: center; /* Imagem ainda fica centralizada */
    }
}

/* -------------------------- */
/* SETAS DE NAVEGAÇÃO */
/* -------------------------- */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 18px 14px;
    font-size: 2.2rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    z-index: 10;
}

#prev-btn { left: 0; }
#next-btn { right: 0; }

.hidden { display: none !important; }

/* -------------------------- */
/* TELA INICIAL */
/* -------------------------- */

.initial-image-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url('https://placehold.co/1600x900/111/fff?text=COMPLEXO+DUBAI');
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.initial-text h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.initial-text p {
    color: #eee;
    font-size: 1.2rem;
}
