/* Modern Environment Detail Styles */
.ambiente-detalhe-hero {
    padding: 40px 0 60px;
    background-color: #f9f9f9;
    text-align: center;
}

.ambiente-detalhe-title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 300;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.ambiente-detalhe-title span {
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.ambiente-detalhe-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #d0a23c;
    border-radius: 2px;
}

/* Gallery Section */
.gallery-section {
    padding: 0 0 80px;
    background-color: #f9f9f9;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 600px;
}

.main-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: background-image 0.3s ease-in-out;
    cursor: pointer;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

.thumbnail-item {
    width: 100%;
    height: 100%;
    min-height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    opacity: 0.8;
}

.thumbnail-item:hover, .thumbnail-item.active {
    opacity: 1;
    border-color: #d0a23c;
    transform: scale(0.98);
}

/* Scrollbar styling for thumbnails */
.thumbnails-grid::-webkit-scrollbar {
    width: 6px;
}
.thumbnails-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.thumbnails-grid::-webkit-scrollbar-thumb {
    background: #d0a23c;
    border-radius: 3px;
}

/* Content & Form Section */
.content-form-section {
    padding: 80px 0;
    background-color: #fff;
}

.content-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.ambiente-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.ambiente-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

.ambiente-text p {
    margin-bottom: 20px;
}

.ambiente-form-wrapper {
    flex: 0.8;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.form-title {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

/* Reuse form styles from form-modern.css but scoped/overridden if needed */
.ambiente-form-wrapper .form-input, 
.ambiente-form-wrapper .form-textarea {
    background-color: #fff;
}

/* Other Environments Section */
.outros-ambientes-section {
    padding: 80px 0;
    background-color: #f4f4f4;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .main-image {
        height: 400px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
    }
    
    .thumbnail-item {
        min-height: 100px;
    }
    
    .content-form-container {
        flex-direction: column;
    }
    
    .ambiente-form-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .ambiente-detalhe-title {
        font-size: 32px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ambiente-form-wrapper {
        padding: 25px;
    }
}
