/* Section Hero */
.section-hero {
    position: relative;
    height: 70vh;
    background-image: url('../images/bg_empreendimentos.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -80px;
}

.section-hero .overlay {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.section-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.section1-title {
    position: absolute;
    bottom: 40px;
    left: 11rem;
    z-index: 2;
    text-align: left;
    color: #f5f5f5;
}

.section1-title h1 {
    color: #f5f5f5;
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
}

.btn-header {
    z-index: 2;
    margin-right: 60px;
}

.btn-custom {
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 25px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-custom:hover {
    background-color: #fff;
    color: #333;
}

/* Information Bar */
.barra-informativa {
    background-color: #8f959b;
    font-size: 1.05rem;
    font-weight: 600;
}

.barra-informativa .col-md-3,
.barra-informativa .col-md-2,
.barra-informativa .col-md-1,
.barra-informativa .col-md-4 {
    text-align: center;
    padding: 15px;
}

/* Gallery Section */
.carousel-css .item {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-css .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.carousel-css .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Remove overlay from center item */
.carousel-css .owl-item.center .item::before {
    opacity: 0;
}

.carousel-css .owl-dots {
    text-align: center !important;
    margin-top: 20px !important;
    line-height: 0 !important;
}

.carousel-css .owl-dot {
    display: inline-block !important;
    margin: 0 3px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.carousel-css .owl-dot span {
    width: 30px !important;
    height: 5px !important;
    margin: 0 !important;
    background: #ccc !important;
    display: block !important;
    transition: background 0.3s !important;
    border-radius: 0 !important;
}

.carousel-css .owl-dot.active span,
.carousel-css .owl-dot:hover span {
    background: #c73626 !important;
}

.carousel-hidden {
    display: none !important;
}

/* Owl Carousel Navigation Override */
.carousel-css .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    margin: 0 !important;
}

.carousel-css .owl-nav button {
    position: relative;
    width: 40px !important;
    height: 40px !important;
    background-color: #8f959b !important;
    border-radius: 50% !important;
    border: none !important;
    pointer-events: all;
    transition: background-color 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.carousel-css .owl-nav button:hover {
    background-color: #475259 !important;
}

.carousel-css .owl-nav button span {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
}

/* Custom arrow styles for Font Awesome icons */
.carousel-css .owl-nav button i {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Bootstrap icon fallback */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="15 18 9 12 15 6"%3E%3C/polyline%3E%3C/svg%3E');
}

.carousel-control-next-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="9 18 15 12 9 6"%3E%3C/polyline%3E%3C/svg%3E');
}

.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    opacity: 1;
    transition: transform 0.3s ease;
    z-index: 10;
    cursor: pointer;
    display: block;
}

.carousel-css .item:hover .zoom-icon {
    transform: scale(1.1);
}

.zoom-icon img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Gallery Tabs */
.btn-tab {
    background-color: transparent;
    border: 2px solid #ccc;
    color: #666;
    padding: 8px 25px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-tab:hover,
.btn-tab.active {
    background-color: #c73626;
    border-color: #c73626;
    color: #fff;
}

/* Floor Plans Section */
#section3 {
    margin-bottom: 80px !important;
}

.title-plantas {
    margin-bottom: 100px;
}

.title-plantas h2 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    color: #6b737a;
}

.tracinho {
    height: 2px;
    background: #6b737a;
    border: none;
    min-width: 200px;
    margin: 0;
    margin-left: 15px;
}

#plantas-list {
    height: 560px;
    overflow-y: auto;
    border-radius: 0;
    scrollbar-width: thin;
    scrollbar-color: #c73626 transparent;
    display: flex;
    flex-direction: column;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 30px), transparent 100%);
}

#plantas-list::-webkit-scrollbar {
    width: 8px;
}

#plantas-list::-webkit-scrollbar-track {
    background: transparent;
}

#plantas-list::-webkit-scrollbar-thumb {
    background-color: #c73626;
    border-radius: 4px;
}

#plantas-list .list-group-item {
    background-color: #6b737a;
    color: white;
    border: none;
    border-radius: 0;
    padding: 15px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#plantas-list .list-group-item:hover {
    background-color: #4A5359;
}

#plantas-list .list-group-item.active {
    background-color: #c73626;
    font-weight: bold;
}

.carousel-content-right {
    position: relative;
}

/* Ensure both columns have same height */
#section3 .row > .col-md-4,
#section3 .row > .col-md-8 {
    display: flex;
    flex-direction: column;
}

#section3 .col-md-4 {
    padding-right: 30px;
}

#carouselPlantas {
    height: 560px;
}

#carouselPlantas .item {
    text-align: center;
    border: 1px solid #6b737a;
    padding: 20px;
    background: #fff;
    height: 560px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Remove any overlay effects from floor plans carousel */
#carouselPlantas .item::before,
#carouselPlantas .item::after {
    display: none !important;
}

/* Ensure no overlay inheritance from other carousel styles */
#carouselPlantas .owl-item .item::before,
#carouselPlantas .owl-item .item::after {
    display: none !important;
    content: none !important;
}

/* Override any inherited overlay styles */
#carouselPlantas .owl-item.center .item::before {
    display: none !important;
}

.plan-title {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.plan-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    min-height: 400px;
}

.plan-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    width: auto;
    height: auto;
}

.plan-description {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-height: 80px;
    overflow: hidden;
}

/* Floor Plans Carousel Navigation */
#carouselPlantas .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    margin: 0 !important;
}

#carouselPlantas .owl-nav button {
    position: relative;
    width: 40px !important;
    height: 40px !important;
    background-color: #8f959b !important;
    border-radius: 50% !important;
    border: none !important;
    pointer-events: all;
    transition: background-color 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

#carouselPlantas .owl-nav button:hover {
    background-color: #475259 !important;
}

#carouselPlantas .owl-nav button i {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.zoom-icon-plants {
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 1;
    opacity: 1;
}

.zoom-icon-plants img {
    width: 40px !important;
    height: 40px !important;
}

/* Floor Plans specific nav styling */
#carouselPlantas .owl-nav button {
    background-color: #8f959b !important;
    width: 40px !important;
    height: 40px !important;
}

#carouselPlantas .owl-nav button:hover {
    background-color: #475259 !important;
}

#carouselPlantas .owl-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

#carouselPlantas .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 5px 3px !important;
    background: #ccc !important;
    display: inline-block !important;
    transition: background 0.3s !important;
    border-radius: 50% !important;
}

#carouselPlantas .owl-dot.active span {
    background: #c73626 !important;
}

/* Common Areas List */
#section4 {
    padding: 60px 0;
    background-color: #c9cbcd;
}

.section4-title {
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    color: #475259;
    white-space: nowrap;
    margin-right: 1rem;
}

#section4 .row {
    display: flex;
}

#section4 .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#section4 .col-md-4:nth-child(2) {
    align-items: center;
}

#section4 .col-md-4:nth-child(3) {
    align-items: flex-end;
}

#section4 ul {
    color: #475259;
    list-style: none;
    padding: 0;
}

#section4 ul li {
    padding: 2px 0;
    line-height: 1.4;
}

/* Construction Status */
#section5 {
    padding: 2rem 0;
}

#section5 .progress {
    height: 10px;
    background-color: #c9cbcd;
}

#section5 .progress-bar.bg-danger {
    background-color: #c73626 !important;
}

#section5 .progress-bar.bg-secondary {
    background-color: #c9cbcd !important;
}

#section5 h5 {
    margin-bottom: 10px;
    font-weight: normal;
    color: #475259;
}

#section5 p {
    margin-top: 5px;
    font-weight: bold;
    color: #475259;
}

/* Technical Sheet */
#section6 {
    padding: 60px 0;
}

#section6 h5 {
    margin-bottom: 10px;
    font-weight: normal;
    color: #475259;
}

#section6 p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #475259;
}

#section6 hr {
    border-color: #475259;
    border-width: 3px;
}

.info-row {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

#section6 .btn-danger {
    background-color: #c73626;
    border-color: #c73626;
}

#section6 .btn-danger:hover {
    background-color: #475259;
    border-color: #475259;
}

/* Map Section */
#section7 {
    margin-top: 100px;
    margin-bottom: 100px;
}

#map {
    width: 100%;
    height: 300px;
}

/* Contact Form */
#section8 {
    background-color: #475259;
    padding: 80px 0;
}

#section8 h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Form Border and Controls */
.form_border {
    border: 1px solid #c9cbcd;
    border-radius: 0 30px 0 0;
}

#section7 .form-control,
.wpcf7 .form-control {
    border-radius: 0;
    border-color: #c9cbcd;
    background-color: #fff;
    padding: 10px 15px;
    font-size: 1rem;
    color: #475259;
}

#section7 .form-control:focus,
.wpcf7 .form-control:focus {
    border-color: #c73626;
    box-shadow: none;
    outline: none;
}

#section7 textarea.form-control,
.wpcf7 textarea.form-control {
    min-height: 80px;
    height: 80px;
    resize: vertical;
}

#section7 .map-container {
    position: relative;
}

#section7 p {
    color: #475259;
}

#section7 h2 {
    color: #475259;
}

.map-buttons {
    background-color: #c73626;
    border-color: #c73626;
    color: #fff;
    padding: 8px 30px;
    text-transform: lowercase;
    font-weight: 500;
}

.map-buttons:hover {
    background-color: #475259;
    border-color: #475259;
    color: #fff;
}

/* Contact Form 7 Specific */
.wpcf7 {
    width: 100%;
}

.wpcf7 .mb-3 {
    margin-bottom: 1rem !important;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #dc3545;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem;
    border: 1px solid;
    border-radius: 0;
    font-size: 0.9rem;
}

.wpcf7 .wpcf7-mail-sent-ok {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* Ajax loader positioning */
.wpcf7 .ajax-loader {
    position: absolute;
    right: 100%;
    margin-right: 10px;
    margin-top: 12px;
}

/* Submit button alignment */
.wpcf7 .text-end {
    text-align: right !important;
    margin-top: 1rem;
    position: relative;
}

.wpcf7 input[type="submit"] {
    margin-top: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section1-title {
        left: 30px;
        bottom: 30px;
    }
    
    .section1-title h1 {
        font-size: 2.5rem;
    }
    
    .btn-header {
        margin-right: 30px;
    }
    
    .barra-informativa .col-md-3,
    .barra-informativa .col-md-2,
    .barra-informativa .col-md-1,
    .barra-informativa .col-md-4 {
        padding: 10px;
    }
    
    .carousel-css .item {
        height: 300px;
    }
    
    .carousel-css .owl-nav {
        padding: 0 5px;
    }
    
    #plantas-list {
        max-height: 200px;
        margin-bottom: 20px;
    }
    
    #section4 .col-md-4 {
        align-items: center !important;
        text-align: center !important;
    }
}

/* Custom Adjustments for WordPress */
.carousel-css {
    position: relative;
}

.gallery-comum,
.gallery-privativa,
.gallery-fachada {
    margin: 0;
}

/* Ensure galleries container manages visibility */
.galleries-container {
    position: relative;
    min-height: 400px;
}

.galleries-container .owl-carousel {
    position: relative;
}

/* Ensure only active gallery is visible */
.galleries-container .owl-carousel.carousel-hidden {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Ensure proper z-index for navigation */
.carousel-css .owl-stage-outer {
    position: relative;
    z-index: 1;
}

.carousel-css .owl-nav {
    z-index: 10;
}

/* Force hide all default Owl theme styles */
.owl-theme .owl-nav [class*='owl-']:hover {
    background: transparent !important;
    color: transparent !important;
    text-decoration: none !important;
}

/* Fix for double arrows */
.carousel-css .owl-nav button.owl-prev,
.carousel-css .owl-nav button.owl-next {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.carousel-css .owl-nav button.owl-prev i,
.carousel-css .owl-nav button.owl-next i {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 18px !important;
}

/* Ensure galleries container works properly */
.galleries-container {
    position: relative;
    min-height: 450px;
}

.galleries-container .carousel-css {
    position: relative;
}

/* Force carousel-hidden to work */
.carousel-css.carousel-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}