/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #fffbfb;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#menu {
    display: none;
    flex-direction: column;
}

.menu-open {
    display: flex;
}

#main-nav ul.menu-closed {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 4rem;
    color: white;
}

/* Alojamento Section */
.alojamento {
    padding: 4rem 2rem;
    text-align: center;
}

.alojamento h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.alojamento p {
    font-size: 1.2rem;
    color: #666;
}

.select-destination {
    margin: 2rem 0;
}

.apartment-card {
    display: none;
    border: 1px solid #ddd;
    padding: 1rem;
    margin: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem;
}

.text-one {
    padding: 4rem;
    padding-top: 6rem;
    line-height: 1.5;
    font-size: large;
    width: 65%;
    justify-content: center;
}

/* Contact Section */
.contact {
    padding: 3.5rem;
    padding-right: 50px;
    line-height: 1.5;
    position: sticky;
    top: 0;
    width: 35%;
}

.contact a {
    color: #217910;
    text-decoration: none;
}

.btn-sitecolor {
    background-color: rgba(55, 102, 64, 0.95) !important; 
    border-color: rgba(55, 102, 64, 0.95) !important;
}

/* Slideshow styles and side-by-side layout */
.info-two {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem;
    overflow: hidden;
    background-color: rgb(255, 249, 240);
}

.text-two {
    padding: 4rem;
    line-height: 1.5;
    font-size: large;
    width: 50%;
    justify-content: center;
    align-items: center;
}

.slideshow-image {
    position: relative;
    width: 50%;
    max-width: 800px;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* Add transition to slideshow images */
.slideshow-image img {
    width: 90%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    position: absolute;
    border-radius: 8px;
}

.slideshow-image img.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Footer fix */
#footer {
    clear: both;
    position: relative;
    z-index: 1;
}

/* Slideshow button styles */
.slideshow-image button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 1.8rem;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
}

.slideshow-image .prev {
    left: 10px;
}

.slideshow-image .next {
    right: 10px;
}

/* Remove focus outline on buttons */
.slideshow-image button:focus {
    outline: none;
}

.slideshow-image button:hover {
    color: rgb(219, 219, 219);
}

/* Destino Section */
.destino {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 4rem;
    line-height: 1.5;
}

.text-section {
    width: 50%;
    padding-right: 2rem;
}

.text-section h2 {
    font-size: 2.5rem;
    color: #333;
}

.text-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.text-section ul {
    list-style-type: none;
}

.text-section ul li {
    margin-bottom: 1rem;
}

.text-section ul li a {
    font-size: 1.2rem;
    color: #7f23c2;
    text-decoration: none;
}

.illustration-section {
    width: 40%;
}

.illustration-section img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Tablets and smaller devices */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        text-align: center;
    }

    header nav ul li {
        margin: 1rem 0;
    }

    .hero-overlay h1 {
        font-size: 2.5rem;
    }

    .info {
        flex-direction: column;
        padding: 2rem;
    }

    .text-one,
    .contact {
        width: 100%;
    }

    .info-two {
        flex-direction: column;
        padding: 2rem;
    }

    .text-two,
    .slideshow-image {
        width: 100%;
    }

    .text-two{
        padding: 2rem;
    }

    .contact {
        position: relative;
        top: auto;
    }

    /* Adjust button positions on smaller screens */
    .slideshow-image .prev {
        left: 5px;
    }

    .slideshow-image .next {
        right: 5px;
    }

    .destino {
        flex-direction: column;
    }

    .text-section,
    .illustration-section {
        width: 100%;
    }

    .text-section {
        padding-right: 0;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {

    header {
        flex-direction: column;
        align-items: center;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .menu-toggle {
        font-size: 2rem;
    }
}
/* Para centralizar em Telas Grandes*/
@media (min-width: 992px) { 
    .carousel {
        max-width: 300px; 
        margin: 0 auto; 
    }
}

.spinner {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #005BAC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

.loading-wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 100px; /* Ajusta conforme necessário */
}

#carouselContainer.expandido {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#carouselContainer.expandido .carousel-inner {
  max-width: 90%;
  max-height: 90%;
}

#botaoFecharCarousel {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  display: none;
}