/* ==========================================================================
   Carrossel de Salões — Camarões Luxury Experience
   Inspirado no Living Design System Aman / Amanyara & Estrutura de Tipos de Eventos
   ========================================================================== */

.eventos-carousel-section {
    background-color: var(--color-sand-light);
    padding: 70px 0 85px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.saloes-carousel__container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header da Seção */
.saloes-carousel__header {
    margin-bottom: 32px;
}

.saloes-carousel__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-gold);
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.saloes-carousel__description {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(49, 49, 49, 0.75);
    max-width: 680px;
    margin: 0;
}

/* Slider Track Wrapper */
.saloes-carousel__slider-wrapper {
    position: relative;
    width: 100%;
}

.saloes-carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px 4px 16px;
    margin: 0 -4px;
}

.saloes-carousel__track::-webkit-scrollbar {
    display: none;
}

/* Card Individual de Salão */
.saloes-card {
    position: relative;
    flex: 0 0 84%;
    aspect-ratio: 3 / 4;
    max-height: 520px;
    min-height: 400px;
    scroll-snap-align: start;
    overflow: hidden;
    background-color: var(--color-charcoal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.saloes-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

/* Mídia & Imagem */
.saloes-card__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.saloes-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.85s var(--ease-luxury);
    display: block;
}

.saloes-card:hover .saloes-card__img {
    transform: scale(1.06);
}

/* Overlay escuro removido a pedido do usuário */
.saloes-card__overlay {
    display: none;
}

/* Gradiente sutil apenas na área do título para garantir contraste */
.saloes-card__content::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.28) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Botão Popup "+" com aviso "Clique para saber mais" (Inspirado na referência) */
.saloes-card__trigger-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
}

.saloes-card__info-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(191, 114, 30, 0.92); /* var(--color-copper) */
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 8px 14px 8px 10px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-fast);
    outline: none;
}

.saloes-card__trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.saloes-card__trigger-text {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.saloes-card__info-trigger:hover {
    background: var(--color-gold);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(191, 166, 101, 0.4);
}

.saloes-card__info-trigger:hover .saloes-card__trigger-icon {
    transform: rotate(90deg);
}

/* Conteúdo / Título do Card */
.saloes-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 24px 50px;
    z-index: 2;
    pointer-events: none;
    text-align: center;
    overflow: hidden;
}

.saloes-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.3vw, 1.85rem);
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

/* Modals Fixos para Detalhes dos Salões */
.saloes-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #fdfdfc; /* Cor clara de fundo sofisticada */
    z-index: 9999; /* Fica acima de todo o conteúdo da página */
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.45s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.saloes-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.saloes-modal__content {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fdfdfc;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
    padding-top: 0;
}

.saloes-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #1b2f29;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    transition: color var(--transition-fast),
                transform var(--transition-fast);
}

.saloes-modal__close svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    transition: transform var(--transition-fast);
}

.saloes-modal__close:hover {
    color: #bf721e;
    transform: rotate(90deg);
}

.saloes-modal__close:active {
    transform: scale(0.92) rotate(90deg);
}

.saloes-modal__header {
    padding: 36px 80px 24px 28px;
    text-align: left;
}

.saloes-modal__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #1b2f29;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    transition: color var(--transition-fast);
}

/* Configurações exclusivas do popup ativo */
.saloes-modal.is-open .saloes-modal__title {
    color: #bf721e;
}

.saloes-modal.is-open strong,
.saloes-modal.is-open b,
.saloes-modal.is-open .val {
    color: #bf721e;
}

.saloes-modal__subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(27, 47, 41, 0.7);
    margin: 0;
}

.saloes-modal__media {
    width: 100%;
    height: 45vh;
    min-height: 300px;
    max-height: 450px;
}

.saloes-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saloes-modal__body {
    padding: 40px 24px 60px;
}

.saloes-modal__desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(27, 47, 41, 0.85);
    margin: 0 0 32px 0;
}

.saloes-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saloes-modal__list li {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #1b2f29;
}

.saloes-modal__list .label {
    font-weight: 400;
    color: rgba(27, 47, 41, 0.75);
}

.saloes-modal__list .val {
    font-weight: 600;
}

/* Evitar scroll no body quando o modal estiver aberto sem saltar para o topo */
body.modal-open {
    overflow: hidden !important;
}

/* Ocultar navbar completamente quando o popup/modal estiver ativo */
body.modal-open #mainNavbar,
body.modal-open .navbar {
    display: none !important;
}

/* Botões de Navegação Alinhados à Esquerda */
.saloes-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 32px;
}

.saloes-carousel__nav-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    background-color: transparent;
    color: var(--color-charcoal);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    outline: none;
}

.saloes-carousel__nav-btn svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}

.saloes-carousel__nav-btn:hover:not(:disabled) {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(191, 114, 30, 0.25);
}

.saloes-carousel__nav-btn--prev:hover:not(:disabled) svg {
    transform: translateX(-3px);
}

.saloes-carousel__nav-btn--next:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.saloes-carousel__nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.saloes-carousel__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--color-border);
}

@media (max-width: 680px) {
    .saloes-modal__header {
        padding: 24px 64px 20px 20px;
    }

    .saloes-modal__title {
        font-size: 1.85rem;
    }

    .saloes-modal__close {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }

    .saloes-modal__close svg {
        width: 24px;
        height: 24px;
    }

    .saloes-modal__body {
        padding: 28px 20px 48px;
    }
}

/* Responsividade Tablet e Desktop */
@media (min-width: 680px) {
    .saloes-card {
        flex: 0 0 46%;
    }
}

@media (min-width: 1024px) {
    .eventos-carousel-section {
        padding: 90px 0 100px;
    }

    .saloes-carousel__header {
        margin-bottom: 40px;
    }

    .saloes-carousel__title {
        font-size: 2.5rem;
    }

    .saloes-carousel__description {
        font-size: 1.6rem;
        max-width: 860px;
    }

    .saloes-carousel__track {
        gap: 28px;
        padding-bottom: 0;
    }

    .saloes-card {
        flex: 0 0 calc((100% - 84px) / 4);
        max-height: 520px;
        min-height: 460px;
    }

    .saloes-card__content {
        bottom: 0;
        padding: 55px 30px 55px;
    }

    .saloes-card__title {
        font-size: clamp(1.35rem, 1.6vw, 1.7rem);
    }

    .saloes-carousel__nav {
        margin-top: 40px;
    }

    .saloes-modal__list li {
        font-size: 1.2rem;
    }
}
