/* ========================================
   CUSTOM HOMEPAGE STYLES - bestoGo
   ======================================== */

/* Garantir cores consistentes do footer */
.rts-footer-area-one.yacht {
    background: linear-gradient(257deg, #DEFFE6 1.73%, rgba(201, 192, 255, 0.08) 98.79%) !important;
    background-image: linear-gradient(257deg, #DEFFE6 1.73%, rgba(201, 192, 255, 0.08) 98.79%) !important;
}

/* Garantir que as setas SVG e ícones do footer sejam laranja */
.rts-footer-area-one.yacht .single-footer-widget-one ul li svg path {
    fill: #BA6827 !important;
}

.rts-footer-area-one.yacht .single-footer-widget-one.logo-area .call-us .icon {
    background: #BA6827 !important;
}

.rts-footer-area-one.yacht .single-footer-widget-one.logo-area .call-us .icon img {
    filter: brightness(0) invert(1);
}

/* Garantir que todos os cartões de destinos tenham o mesmo tamanho */
.destination-card .package-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.destination-card .package-wrapper .image-area {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.destination-card .package-wrapper .image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Reduzir altura do banner e centralizar conteúdo */
.rts-banner-area-three .rts-hero-banner,
.rts-banner-area-three .swiper-slide .rts-hero-banner,
.rts-banner-area-three .rts-hero-banner.bg {
    height: 550px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.rts-banner-area-three .rts-hero-banner .custom-container,
.rts-banner-area-three .rts-hero-banner .section-inner {
    width: 100% !important;
}

.rts-banner-area-three .rts-hero-banner .custom-container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.rts-banner-area-three .rts-hero-banner .section-inner {
    width: 100% !important;
}

.rts-banner-area-three .rts-hero-banner .section-inner .row {
    width: 100% !important;
    margin: 0 !important;
}

.rts-banner-area-three .rts-hero-banner .section-inner .row > div {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

.rts-banner-area-three .rts-hero-banner .section-title {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 991px) {
    .rts-banner-area-three .rts-hero-banner,
    .rts-banner-area-three .swiper-slide .rts-hero-banner,
    .rts-banner-area-three .rts-hero-banner.bg {
        height: 450px !important;
    }
}

@media (max-width: 768px) {
    .rts-banner-area-three .rts-hero-banner,
    .rts-banner-area-three .swiper-slide .rts-hero-banner,
    .rts-banner-area-three .rts-hero-banner.bg {
        height: 400px !important;
    }
}

/* Newsletter Section */
.rts-newsletter-area {
    padding: 80px 0;
}

.newsletter-inner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.newsletter-inner .image {
    flex: 0 0 520px;
    max-width: 520px;
}

.newsletter-inner .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-inner .content-area {
    flex: 1;
    padding: 60px;
    position: relative;
}

.newsletter-inner .content-inner {
    position: relative;
    z-index: 2;
}

.newsletter-inner .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #003A59;
}

.newsletter-inner .desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #003A59;
}

.newsletter-form button {
    padding: 15px 30px;
    white-space: nowrap;
}

.newsletter-inner .map {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.newsletter-inner .map img {
    width: 300px;
    height: auto;
}

@media (max-width: 991px) {
    .newsletter-inner {
        flex-direction: column;
        min-height: auto;
    }
    
    .newsletter-inner .image {
        flex: 0 0 auto;
        max-width: 100%;
        height: 300px;
    }
    
    .newsletter-inner .content-area {
        padding: 40px 30px;
    }
    
    .newsletter-inner .title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .newsletter-inner .content-area {
        padding: 30px 20px;
    }
    
    .newsletter-inner .title {
        font-size: 22px;
    }
}

/* Instagram Gallery Section */
.rts-gallery-area {
    padding: 80px 0;
}

.gallery-title-area {
    margin-bottom: 40px;
}

.gallery-title-area .sub-title {
    font-size: 18px;
    color: #BA6827;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-title-area .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #003A59;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
}

.gallery-wrapper.with-icon .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-wrapper.with-icon:hover .icon {
    opacity: 1;
}

.gallery-wrapper .gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-wrapper .gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-wrapper:hover .gallery-image::before {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-wrapper img.hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-wrapper:hover img.hover-image {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-title-area .section-title {
        font-size: 28px;
    }
    
    .rts-gallery-area {
        padding: 60px 0;
    }
}

/* Espaçamento entre seção Instagram e footer */
.rts-gallery-area {
    padding-bottom: 80px !important;
    margin-bottom: 40px !important;
}

/* Estilos customizados para abas de filtro */
.country-filter-tabs {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.country-filter-tabs .nav-item {
    margin-bottom: 0;
}

.country-filter-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--color-body, #666);
    padding: 12px 24px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
}

.country-filter-tabs .nav-link:hover {
    color: var(--color-primary, #003A59);
    border-bottom-color: rgba(0, 58, 89, 0.3);
}

.country-filter-tabs .nav-link.active {
    color: var(--color-primary, #003A59);
    border-bottom-color: var(--color-primary, #003A59);
    background: transparent;
}

.filter-tabs-area {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .country-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .country-filter-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* Esconder seções específicas */
.rts-destination-area {
    display: none !important;
}

.rts-popular-package-area.rts-section-gap:not(.body-bg-three) {
    display: none !important;
}

/* Esconder apenas a seção "Explore as Nossas Ofertas Exclusivas de Iates" que vem depois do rts-offer-area */
.rts-offer-area + section.rts-popular-package-area.body-bg-three {
    display: none !important;
}

/* Esconder a seção "Popular Activities on a Yacht Trip" */
.rts-activity-area {
    display: none !important;
}

/* Esconder a seção "Reserve Hoje" (rts-offer-area) */
.rts-offer-area {
    display: none !important;
}

/* Esconder a seção "Why Choose Us" (Unmatched luxury & unforgettable voyages Pure Serenity) */
.rts-why-choose-us-area {
    display: none !important;
}

/* Esconder a seção de contadores (Happy Travelers, Tour Packages, etc.) */
.rts-counter-area {
    display: none !important;
}

/* Esconder a seção de marcas (brands) */
.rts-brand-area {
    display: none !important;
}

/* Esconder o botão RTL/LTR switcher */
.rtl-ltr-switcher-btn {
    display: none !important;
}

/* Espaçamento entre última seção e footer */
.rts-footer-area-one {
    margin-top: 80px !important;
}

/* Menu mobile - botões/textos em branco */
#side-bar .mobile-menu-main .mainmenu a.main,
#side-bar .mobile-menu-main .mainmenu li a {
    color: #ffffff !important;
}

#side-bar .mobile-menu-main .mainmenu a.main:hover,
#side-bar .mobile-menu-main .mainmenu li a:hover {
    color: #ffffff !important;
}

/* Footer responsivo para mobile */
@media (max-width: 991px) {
    .rts-footer-area-one .footer-inner {
        flex-direction: column !important;
    }
    
    .rts-footer-area-one .footer-inner .mid {
        padding-left: 0 !important;
        margin-top: 40px !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .rts-footer-area-one .footer-inner .left {
        width: 100% !important;
    }
    
    .rts-footer-area-one .footer-inner .mid .single-footer-widget-one {
        min-width: 100% !important;
    }
    
    .rts-footer-area-one .copyright-area-start {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    .rts-footer-area-one .copyright-area-start p {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 768px) {
    .rts-footer-area-one {
        padding-top: 60px !important;
        padding-bottom: 30px !important;
    }
    
    .rts-footer-area-one .footer-inner .mid {
        gap: 25px !important;
    }
    
    /* Logo do footer menor em mobile com margem */
    .rts-footer-area-one .single-footer-widget-one.logo-area .logo {
        display: block !important;
        margin: 15px 0 !important;
        text-align: left !important;
    }
    
    .rts-footer-area-one .single-footer-widget-one.logo-area .logo img {
        max-width: 180px !important;
        width: 180px !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
    }
}