/* Ocultar submenus inicialmente */
.header-nav .menu > li.menu-item-has-children .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    top: 100%; /* Posiciona abaixo do pai */
    left: 0;
    background-color: #fff;
    padding: 10px 0;
    z-index: 999;
    min-width: 200px; /* largura mínima opcional */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
}

/* Exibir submenus no hover */
.header-nav .menu > li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilo dos itens do submenu */
.header-nav .menu > li.menu-item-has-children .sub-menu li {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

/* Garante que o menu pai controla o submenu */
.header-nav .menu {
    position: relative;
}



#search-button {
    position: absolute;
    top: 40%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    font-size: 20px;
}

#search-button:hover {
    transform: translateY(-50%) scale(1.1);
}

.submenu-toggle {
    margin-left: 10px;
    cursor: pointer;
    display: inline-block;
}

.menu-item-has-children.submenu-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header-nav .menu > li.menu-item-has-children .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    padding: 10px 0;
    z-index: 999;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
}

/* Esconde seta no desktop */
.submenu-toggle {
    display: none;
}

@media (max-width: 960px) {
    .submenu-toggle {
        display: inline-block;
        margin-left: 8px;
        cursor: pointer;
        transition: transform 0.3s ease;
        color: #777;
        font-size: 14px;
        user-select: none;
    }

    .submenu-toggle::before {
        content: "▶"; 
        display: inline-block;
    }

    .menu-item-has-children.submenu-open > .submenu-toggle::before {
        transform: rotate(90deg);
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .header-nav .menu > li.menu-item-has-children .sub-menu {
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
        position: relative;
    }

    

    .menu-mobile-container {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

   
    body.menu-open { 
        overflow: hidden;
    }
}







  
@media (min-width: 960px) {

.menu-mobile-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  
  .menu-1, .menu-2 {
    flex: 1;
  }
  
  .menu-1 {
    display: flex;
    justify-content: flex-start;
  }
  
  .menu-2 {
    display: flex;
    justify-content: flex-end;
  }
}
.imovel-checks * {
    text-transform: none !important;
  }